var base_url="http://www.oefshop.com/",isIE=jCalix_checkNav("msie"),isIE6=jCalix_checkNav("msie 6"),isIE7=jCalix_checkNav("msie 7"),isIE8=jCalix_checkNav("msie 8"),isChrome=jCalix_checkNav("chrome"),isSafari=jCalix_checkNav("safari"),isIphone=jCalix_checkNav("iphone"),histo=[],hashIndex=0,ajax=false,currentHashIndex=0,current_hash,fr=null,htmlpage=null,htmlbody=null,ajaxtimer=null,ajaxtimertick=300,jCalix=new _$;
function _$(b,c){this.obj=b;this.isArray=false;this.onloadlist=[];this.init=false;this.isEmpty=true;if(this.obj)this.isEmpty=false;this.getObject=function(a){if(a===0)a="0";return a!=null&&this.obj.length>1?this.obj[a]:this.obj};this.exists=function(){return this.obj?true:false};this.get=function(a){if(this.obj==null)return null;if(a===0)a="0";return this.isArray?this.obj[a]:this.obj};this.html=function(a){if(a!=null)this.obj.innerHTML=a;else return this.obj.innerHTML};this.Display=function(a){if(a)this.obj.style.display=
a;else{a=this.Attributes("style");if(isIE)return a.display;return a?a.toLowerCase().indexOf("display: none")!=-1?"none":a.toLowerCase().indexOf("display: block")!=-1?"block":a.toLowerCase().indexOf("display: fixed")!=-1?"fixed":a.toLowerCase().indexOf("display: inherited")?"inherited":null:null}};this.append=function(a){a.obj?this.obj.appendChild(a.obj):this.obj.appendChild(a)};this.Parent=function(){return new _$(this.obj.parentNode)};this.Child=function(){return isIE?new _$(this.obj.childNodes[0]):
new _$(this.obj.childNodes[1])};this.getListByTag=function(a){return new _$("::"+a,{node:this.obj})};this.getListByClass=function(a){return new _$("."+a,{node:this.obj})};this.remove=function(a){a.obj?this.obj.removeChild(a.obj):this.obj.removeChild(a)};this.val=function(a){if(a)this.obj.value=a;else return this.obj.value};this.Checked=function(a){if(a)this.obj.checked=a;else return this.obj.checked};this.Attributes=function(a,e){if(e)jCalix_setAttributes(this.obj,a,e);else return this.obj.getAttribute(a)};
this.RemoveAttributes=function(a){isIE7&&a=="class"?this.obj.removeAttribute("className"):this.obj.removeAttribute(a)};this.RemoveClass=function(){if(isIE7)this.obj.getAttribute("className")&&this.obj.removeAttribute("className");else this.obj.getAttribute("class")&&this.obj.removeAttribute("class")};this.Class=function(a){if(a)jCalix_setClass(this.obj,a);else return jCalix_getClass(this.obj)};this.Id=function(a){if(a)jCalix_setId(this.obj,a);else return jCalix_getId(this.obj)};this.Click=function(a){if(a)this.obj.onclick=
a;else return this.obj.onclick};this.Change=function(a){if(a)this.obj.onchange=a;else return this.obj.onchange};this.Mouseover=function(a){if(a)this.obj.onmouseover=a;else return this.obj.onmouseover};this.Mouseout=function(a){if(a)this.obj.onmouseout=a;else return this.obj.onmouseout};this.Mousedown=function(a){if(a)this.obj.onmousedown=a;else return this.obj.onmousedown};this.Mouseup=function(a){if(a)this.obj.onmouseup=a;else return this.obj.onmouseup};this.Mousemove=function(a){if(a)this.obj.onmousemove=
a;else return this.obj.onmousemove};this.Keydown=function(a){if(a)this.obj.onkeydown=a;else return this.obj.onkeydown};this.Keyup=function(a){if(a)this.obj.onkeyup=a;else return this.obj.onkeyup};this.Keypress=function(a){if(a)this.obj.onkeypress=a;else return this.obj.onkeypress};this.Load=function(a){this.obj.onload=a};this.Href=function(){return this.obj.href};this.Length=function(){return this.obj.length};this.Style=function(){return this.obj.style};this.getStyle=function(){return jCalix_getStyle(this.obj)};
this.getPosition=function(){return jCalix_getPosition(this.obj)};this.getRelativePosition=function(){return jCalix_getRelativePosition(this.obj)};this.setPosition=function(a){var e=jCalix_getPosition(this.obj);if(a.x)this.obj.style.left=e.x+a.x+"px";if(a.y)this.obj.style.top=e.y+a.x+"px"};this.setRelativePosition=function(a){if(a.x)this.obj.style.left=a.x+"px";if(a.y)this.obj.style.top=a.y+"px"};this.getWidth=function(){return this.obj.offsetWidth};this.getHeight=function(){return this.obj.offsetHeight};
this.setWidth=function(a){this.obj.style.width=a+"px"};this.setPadding=function(a){this.obj.style.padding=a+"px"};this.setHeight=function(a){this.obj.style.height=a+"px"};this.setOverflow=function(a,e){if(e){this.obj.overflowX=e.x;this.obj.overflowY=e.y}else this.obj.style.overflow=a};this.Opacity=function(a){if(a===0)a="0";if(a)jCalix_setOpacity(this.obj,a);else return jCalix_getOpacity(this.obj)};this.Clone=function(){return new _$(this.obj)};this.Append=function(a){this.obj.appendChild(a.getObject())};
if(typeof _$.initialized=="undefined"){_$.prototype.addOnLoad=function(a){this.onloadlist[this.onloadlist.length]=a};_$.prototype.onLoad=function(){jCalix_loadEvent(this.onloadlist)};_$.prototype.toArray=function(a){return jCalix_toArray(a)};_$.prototype.strContains=function(a,e){return jCalix_containsString(a,e)};_$.prototype.setCookie=function(a,e,g,h,f){jCalix_setCookie(a,e,g,h,f)};_$.prototype.getCookie=function(a){return jCalix_getCook(a)};_$.prototype.checkNavigator=function(a){return jCalix_checkNav(a)};
_$.prototype.ajaxRequest=function(a,e,g,h){return jCalix_ajax_request(a,e,g,h)};_$.prototype.ajaxSetLinks=function(a){if(a==null)a={callback_before:null,callback_in:null,callback_after:null};jCalix_setup_ajax_links(a.callback_before,a.callback_in,a.callback_after)};_$.prototype.initAjax=function(){jCalix_init_ajax()};_$.prototype.initAjaxHistory=function(){jCalix_init_history()};_$.prototype.addHistoryEntry=function(a,e){jCalix_add_history_entry(a,e)};_$.prototype.CreateElement=function(a){return new _$(document.createElement(a))};
_$.prototype.Animate=function(a,e){return jCalix_animate(a,e)};_$.prototype.capture=function(a){var e=new _$;e.obj=a;return e};_$.prototype.simuleClick=function(){jCalix_simuleClick(this.obj)};_$.initialized=true}if(b){var d;if(typeof b=="object"||typeof b=="function")return typeof b=="object"?this.obj.obj?new _$(this.obj.obj):jCalix.capture(b):this;else{this.init=true;if(c==null)c={node:null,index1:null,index2:null};if(b.charAt(0)==":"&&b.charAt(1)==":"){b=b.split("::");b=b[1];if(c.node)if(c.index1!=
null){this.obj=c.node.getElementsByTagName(b)[c.index1];return new _$(this.obj)}else{if(this.obj=c.node.getElementsByTagName(b))if(this.obj.length==1)return new _$(this.obj[0]);return jCalix_build_object_list(this.obj)}else if(c.index1!=null){this.obj=document.getElementsByTagName(b)[c.index1];return new _$(this.obj)}else{if(this.obj=document.getElementsByTagName(b))if(this.obj.length==1)return new _$(this.obj[0]);return jCalix_build_object_list(this.obj)}}if(b.indexOf("#")!=-1)if(b.indexOf("::")!=
-1){b=b.split("::");if(document.getElementById(b[0].substr(1))==null){this.obj=null;return new _$(this.obj)}if(c.index1!=null){this.obj=c.node!=null?c.node.getElementById(b[0].substr(1)).getElementsByTagName(b[1])[c.index1]:document.getElementById(b[0].substr(1)).getElementsByTagName(b[1])[c.index1];return new _$(this.obj)}else{if(this.obj=c.node!=null?c.node.getElementById(b[0].substr(1)).getElementsByTagName(b[1]):document.getElementById(b[0].substr(1)).getElementsByTagName(b[1]))if(this.obj.length==
1)return new _$(this.obj[0]);return jCalix_build_object_list(this.obj)}}else{this.obj=c.node!=null?c.node.getElementById(b.substr(1)):document.getElementById(b.substr(1));return new _$(this.obj)}else if(c.index1!=null)if(b.indexOf("::")!=-1){b=b.split("::");if(c.index2!=null){d=c.node!=null?jCalix_getElementsByClass(b[0].substr(1),c.node):jCalix_getElementsByClass(b[0].substr(1));if(d!=null){if(d[c.index1]==null)return new _$(null);this.obj=d[c.index1].getElementsByTagName(b[1])[c.index2]}else this.obj=
null;return new _$(this.obj)}else{d=c.node!=null?jCalix_getElementsByClass(b[0].substr(1),c.node):jCalix_getElementsByClass(b[0].substr(1));if(d!=null){if(d[c.index1]==null)return new _$(null);this.obj=d[c.index1].getElementsByTagName(b[1]);if(this.obj.length==1)return new _$(this.obj[0]);return jCalix_build_object_list(this.obj)}else{this.obj=null;return new _$(this.obj)}}}else{d=c.node!=null?jCalix_getElementsByClass(b.substr(1),c.node):jCalix_getElementsByClass(b.substr(1));this.obj=d!=null?d[c.index1]:
null;return new _$(this.obj)}else if(b.indexOf("::")!=-1){b=b.split("::");if(c.index2!=null){d=c.node!=null?jCalix_getElementsByClass(b[0].substr(1),c.node):jCalix_getElementsByClass(b[0].substr(1));if(d!=null){if(d[0]==null)return new _$(null);this.obj=d[0].getElementsByTagName(b[1])[c.index2]}else this.obj=null;return new _$(this.obj)}else{d=c.node!=null?jCalix_getElementsByClass(b[0].substr(1),c.node):jCalix_getElementsByClass(b[0].substr(1));if(d!=null){if(d[0]==null)return new _$(null);this.obj=
d[0].getElementsByTagName(b[1]);if(this.obj.length==1)return new _$(this.obj[0]);return jCalix_build_object_list(this.obj)}else{this.obj=null;return new _$(this.obj)}}}else{if(this.obj=c.node!=null?jCalix_getElementsByClass(b.substr(1),c.node):jCalix_getElementsByClass(b.substr(1)))if(this.obj.length==1)return new _$(this.obj[0]);return jCalix_build_object_list(this.obj)}}}}
function jCalix_build_object_list(b){if(b==null)return new _$(null);for(var c=new Array(b.length),d=0;d<b.length;d++)c[d]=new _$(b[d]);b=new _$(c);b.isArray=true;return b}function jCalix_getElementsByClass(b,c,d){if(c==null)c=document;if(d==null)d="*";var a=[];c=c.getElementsByTagName(d);for(j=i=0;i<c.length;i++)if((" "+c[i].className+" ").indexOf(" "+b+" ")!=-1)a[j++]=c[i];return a.length==0?null:a}function jCalix_do_onload(b){onloadlist[onloadlist.length]=b}
function jCalix_loadEvent(b){window.onload=function(){for(var c=0;c<b.length;c++)b[c]();return true}}
function jCalix_slideshow(b,c){var d=_$(b),a="li",e=468,g=false,h=300,f="translation";f=f=0;var k=false;f=false;f=2E3;var l="#prevslide",m="#nextslide";if(c){if(c.slidesize)e=c.slidesize;if(c.bigimg)g=_$(c.bigimg);if(c.speed)h=c.speed;if(c.effect){f=c.effect;f=c.effect.top;f=c.effect.left;k=c.effect.fading}if(c.cycle)f=c.cycle;if(c.interval)f=c.interval;if(c.prev)l=c.prev;if(c.next)m=c.next;if(c.elemtype)a=c.elemtype}if(g.exists()){var n=g.getListByTag("img");for(f=1;f<n.Length();f++)n.get(f).Display("none")}d.Parent().setOverflow("hidden");
d.Parent().setWidth(e);d.setWidth(1E4);d.setPadding(0);d.Parent().getWidth();a=d.getListByTag(a);for(f=0;f<a.Length();f++){a.get(f).Display("inline");if(g.exists()){a.get(f).getObject().src=f;a.get(f).Click(function(){k&&jCalix.Animate(g,{effect:{fading:"fadeout"},speed:100,after:function(){jCalix.Animate(g,{effect:{fading:"fadein"},speed:100})}});for(var o=0;o<n.Length();o++)o==this.src?n.get(o).Display("block"):n.get(o).Display("none")})}}m&&_$(m).Click(function(){jCalix.Animate(d,{speed:h,effect:{name:"translation",
left:"-380"}});return false});l&&_$(l).Click(function(){jCalix.Animate(d,{speed:h,effect:{name:"translation",left:"0"}});return false});return false}
function jCalix_animate(b,c){var d=500,a="",e=null,g=b.getRelativePosition().y;g=Math.round(g*100)/100;var h=b.getRelativePosition().x;h=Math.round(h*100)/100;var f="0",k="0",l=null;if(c){if(c.speed)d=c.speed;if(c.effect){if(c.effect.name)a=c.effect.name;if(c.effect.left)k=c.effect.left;if(c.effect.top)f=c.effect.top;if(c.effect.fading)e=c.effect.fading;if(c.after)l=c.after}}var m=function(){jCalix_fade(b,true,d,{after:l})},n=function(){jCalix_fade(b,false,d,{after:l})},o=function(){jCalix_translate(b,
d,k,f,{after:l,orgtop:g,orgleft:h})};if(e=="fadein")setTimeout(n,0);else e=="fadeout"&&setTimeout(m,0);c&&a=="translation"&&setTimeout(o,0)}function jCalix_fade(b,c,d,a){if(a&&(b.Opacity()<=0||b.Opacity()>=1))a.before&&a.before();var e=1/d*25;e=Math.round(e*100)/100;if(b.Opacity()>=1&&c==false||b.Opacity()<=0&&c==true){a&&a.after&&a.after();return false}c?b.Opacity(b.Opacity()-e):b.Opacity(parseFloat(parseFloat(b.Opacity())+e));setTimeout(function(){jCalix_fade(b,c,d,a)},25)}
function jCalix_translate(b,c,d,a,e){var g="0",h="0";if(e){if(e.orgtop)g=e.orgtop;if(e.orgleft)h=e.orgleft}var f=Math.round(b.getRelativePosition().x*100)/100,k=Math.round(b.getRelativePosition().y*100)/100,l=0,m=0;l=d-h<0?parseInt(d-h):Math.abs(parseInt(d-h));m=a-g<0?parseInt(a-g):Math.abs(parseInt(a-g));if(f==d&&k==a)return false;l=parseFloat(l/(c/10));l=Math.round(l*100)/100;m=parseFloat(m/(c/10));m=Math.round(m*100)/100;b.getObject().style.position="relative";f=Math.round(parseFloat(parseFloat(f)+
l));k=Math.round(parseFloat(parseFloat(k)+m));if(f<d&&d-h<0&&f!=d)f=d;else if(f>d&&d-h>0&&f!=d)f=d;if(k<a&&a-g<0&&k!=a)k=a;else if(k>a&&a-g>0&&k!=a)k=a;b.setRelativePosition({x:f,y:k});setTimeout(function(){jCalix_translate(b,c,d,a,e)},10)}function jCalix_setAttributes(b,c,d){b.setAttribute(c,d)}function jCalix_getClass(b){return isIE?b.className:b.getAttribute("class")}
function jCalix_setClass(b,c,d){if(isIE7)d?b.setAttribute("className",jCalix_getClass(b)+" "+c):b.setAttribute("className",c);else d?b.setAttribute("class",jCalix_getClass(b)+" "+c):b.setAttribute("class",c)}function jCalix_getId(b){return b.getAttribute("id")}function jCalix_setId(b,c){b.setAttribute("id",c)}function jCalix_getStyle(b){return b.getAttribute("style")}function jCalix_containsString(b,c){if(b==null)return false;return b.indexOf(c)!=-1?true:false}
function jCalix_setOpacity(b,c){if(isIE)b.style.filter="alpha(opacity="+c*100+")";else b.style.opacity=c}
function jCalix_getOpacity(b){if(b.getAttribute("style")==null)return 1;if(isIE){if(isIE7){if(b.getAttribute("style").filter=="")return 1}else if(b.getAttribute("style").toLowerCase().indexOf("opacity")==-1)return 1;b=b.style.filter;b=b.split("=");if(b[1]==null)return 1;b=b[1].split(")");return b[0]/100}else{if(b.getAttribute("style").indexOf("opacity")==-1)return 1;else if(b.style.opacity=="")return 1;return b.style.opacity}}
function jCalix_setCookie(b,c,d,a,e){var g=new Date;g.setDate(g.getDate()+d);document.cookie=b+"="+escape(c)+(d==null?"":";expires="+g.toGMTString())+(a==null?"":";domain="+a)+(e==null?"":";path="+e)}function jCalix_getCook(b){deb=document.cookie.indexOf(b+"=");if(deb>=0){deb+=b.length+1;fin=document.cookie.indexOf(";",deb);if(fin<0)fin=document.cookie.length;return unescape(document.cookie.substring(deb,fin))}return null}
function jCalix_checkNav(b){if(b=="msie 7")var c=navigator.appVersion.toLowerCase().indexOf("compatible")+1;b=navigator.appVersion.toLowerCase().indexOf(b)+1;return c?c:b}function jCalix_getPosition(b){var c=0,d=0;if(b!=null){for(;b.offsetParent;){c+=b.offsetLeft;d+=b.offsetTop;b=b.offsetParent}c+=b.offsetLeft;d+=b.offsetTop}return{x:c,y:d}}
function jCalix_getRelativePosition(b){var c=0,d=0;if(b.style){if(b.style.left)c=b.style.left.replace("px","");if(b.style.top)d=b.style.top.replace("px","")}return{x:c,y:d}}function jCalix_toArray(b){for(var c=[],d=0;d<b.Length();d++)c[d]=b.get(d).getObject();return c}function jCalix_simuleClick(b){if(document.createEvent){var c=document.createEvent("MouseEvents");c.initMouseEvent("click",true,true,document.defaultView,1,0,0,0,0,false,false,false,false,0,null);b.dispatchEvent(c)}else b.click()}
var hash="",parameters="";
function jCalix_ajax_request(b,c,d,a){http_request=true;if(window.XMLHttpRequest){http_request=new XMLHttpRequest;http_request.overrideMimeType&&http_request.overrideMimeType("text/xml")}else if(window.ActiveXObject)try{http_request=new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(e){try{http_request=new ActiveXObject("Microsoft.XMLHTTP")}catch(g){}}if(!http_request){alert("Cannot create XMLHTTP instance");return false}if(d==false){http_request.open("GET",b,true);http_request.send(null)}else{http_request.open("POST",b,
true);http_request.setRequestHeader("Content-type","application/x-www-form-urlencoded");isSafari||http_request.setRequestHeader("Connection","close");http_request.send(c)}http_request.onreadystatechange=function(){if(http_request.readyState==4)if(http_request.status==200){hash=b.replace(base_url,"");if(c)hash+="?"+c;hash="/"+hash;a&&a(b,c)}};return http_request}
function jCalix_setup_ajax_links(b,c,d){b&&b();b=_$(":a");for(var a=0;a<b.Length();a++)b.get(a).Click()==null&&b.get(a).Click(function(){if(ajax)return false;ajax=true;jCalix_ajax_request(this.href.split("?")[0],this.href.split("?")[1],true,c);return false});d&&d();return ajax=false}function jCalix_init_ajax(){var b=document.createElement("div");jCalix_setId(b,"content-receiver");jCalix_setClass(b,"ajaxbuffer");_$(":body",{index1:0}).append(b)}
function jCalix_init_history(){if(isIE7){fr=document.createElement("iframe");fr.setAttribute("name","histoframe");fr.setAttribute("id","histoframe");fr.setAttribute("src",base_url);fr.style.display="none";fr.style.visibility="hidden";fr.style.width="0";fr.style.height="0"}var b=document.createElement("div");b.setAttribute("id","historyindex");b.innerHTML="0";_$(":body",{index1:0}).append(b);histo=[];htmlpage=_$("#ajax");htmlbody=_$(":body",{index1:0});b.style.display="none";isIE7&&b.appendChild(fr)}
function jCalix_add_history_entry(b,c){var d=false;currentHashIndex=hashIndex;var a=hash.split("html");window.location.hash=a[1]?a[0]+"html/"+encode64(a[1].replace("//","/").replace("menu_id","mi").replace("dyn_id","di").replace("alb_id","ai")).replace("html","html/"):hash;current_hash=window.location.hash;for(a=histo.length-1;a>=0;a--)if(histo[a].key==b&&histo[a].parameters==c){d=true;break}if(!d){histo[hashIndex]=[];histo[hashIndex].html=htmlpage.html();histo[hashIndex].key=current_hash;histo[hashIndex].parameters=
c;histo[hashIndex].id=htmlbody.Class()}if(isIE7){window.frames.histoframe.document.open();window.frames.histoframe.document.write("<body>"+current_hash+"</body>");window.frames.histoframe.document.close()}document.createElement("div");histo[hashIndex].index=hashIndex;hashIndex++;if(ajaxtimer==null)ajaxtimer=window.setTimeout(jCalix_onTickCallback,ajaxtimertick);return false}
function jCalix_onTickCallback(){var b=false,c=document.location.hash;if(isIE7)c=window.frames.histoframe.document.body.innerHTML;if(current_hash!=c){current_hash=isIE7?c:document.location.hash;for(c=histo.length-1;c>=0;c--)if(current_hash==histo[c].key){currentHashIndex=histo[c].index;b=true;break}if(b)if(histo[currentHashIndex]!=null){htmlbody=_$(":body",{index1:0});htmlpage.html(histo[currentHashIndex].html);htmlbody.Class(histo[currentHashIndex].id);jCalix.ajaxSetLinks({callback_in:ajaxResponse});
onLoad()}else{window.clearTimeout(ajaxtimer);ajaxtimer=null}}window.clearTimeout(ajaxtimer);ajaxtimer=window.setTimeout(jCalix_onTickCallback,ajaxtimertick)};