var fadebgcolor="white",fadearray=[],fadeclear=[],dom=document.getElementById,iebrowser=document.all;function fadeshow(a,b,c,d,e,f,g){this.pausecheck=f;this.mouseovercheck=0;this.delay=e;this.degree=10;this.curimageindex=0;this.nextimageindex=1;fadearray[fadearray.length]=this;this.slideshowid=fadearray.length-1;this.canvasbase="canvas"+this.slideshowid;this.curcanvas=this.canvasbase+"_0";typeof g!="undefined"&&a.sort(function(){return 0.5-Math.random()});this.theimages=a;this.imageborder=parseInt(d);this.postimages=[];for(p=0;p<a.length;p++){this.postimages[p]=new Image;this.postimages[p].src=a[p][0]}b+=this.imageborder*2;c+=this.imageborder*2;iebrowser&&dom||dom?document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+b+"px;height:"+c+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+b+"px;height:"+c+"px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:"+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+b+"px;height:"+
c+"px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:"+fadebgcolor+'"></div></div>'):document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>');if(iebrowser&&dom||dom)this.startit();else{this.curimageindex++;setInterval("fadearray["+this.slideshowid+"].rotateimage()",this.delay)}}
function fadepic(a){if(a.degree<100){a.degree+=10;if(a.tempobj.filters&&a.tempobj.filters[0])if(typeof a.tempobj.filters[0].opacity=="number")a.tempobj.filters[0].opacity=a.degree;else a.tempobj.style.filter="alpha(opacity="+a.degree+")";else if(a.tempobj.style.MozOpacity)a.tempobj.style.MozOpacity=a.degree/101;else if(a.tempobj.style.KhtmlOpacity)a.tempobj.style.KhtmlOpacity=a.degree/100;else if(a.tempobj.style.opacity&&!a.tempobj.filters)a.tempobj.style.opacity=a.degree/101}else{clearInterval(fadeclear[a.slideshowid]);a.nextcanvas=a.curcanvas==a.canvasbase+"_0"?a.canvasbase+"_0":a.canvasbase+"_1";a.tempobj=iebrowser?iebrowser[a.nextcanvas]:document.getElementById(a.nextcanvas);a.populateslide(a.tempobj,a.nextimageindex);a.nextimageindex=a.nextimageindex<a.postimages.length-1?a.nextimageindex+1:0;setTimeout("fadearray["+a.slideshowid+"].rotateimage()",a.delay)}}
fadeshow.prototype.populateslide=function(a,b){var c="";if(this.theimages[b][1]!="")c='<a href="'+this.theimages[b][1]+'" target="'+this.theimages[b][2]+'">';c+='<img src="'+this.postimages[b].src+'" border="'+this.imageborder+'px">';if(this.theimages[b][1]!="")c+="</a>";a.innerHTML=c};fadeshow.prototype.rotateimage=function(){if(this.pausecheck==1)var a=this;if(this.mouseovercheck==1)setTimeout(function(){a.rotateimage()},100);else if(iebrowser&&dom||dom){this.resetit();var b=this.tempobj=iebrowser?iebrowser[this.curcanvas]:document.getElementById(this.curcanvas);b.style.zIndex++;fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50);this.curcanvas=this.curcanvas==this.canvasbase+"_0"?this.canvasbase+"_1":this.canvasbase+"_0"}else{b=document.images["defaultslide"+
this.slideshowid];b.src=this.postimages[this.curimageindex].src}this.curimageindex=this.curimageindex<this.postimages.length-1?this.curimageindex+1:0};fadeshow.prototype.resetit=function(){this.degree=10;var a=iebrowser?iebrowser[this.curcanvas]:document.getElementById(this.curcanvas);if(a.filters&&a.filters[0])if(typeof a.filters[0].opacity=="number")a.filters(0).opacity=this.degree;else a.style.filter="alpha(opacity="+this.degree+")";else if(a.style.MozOpacity)a.style.MozOpacity=this.degree/101;else if(a.style.KhtmlOpacity)a.style.KhtmlOpacity=this.degree/100;else if(a.style.opacity&&!a.filters)a.style.opacity=this.degree/101};fadeshow.prototype.startit=function(){var a=iebrowser?iebrowser[this.curcanvas]:document.getElementById(this.curcanvas);this.populateslide(a,this.curimageindex);if(this.pausecheck==1){var b=this;a=iebrowser?iebrowser["master"+this.slideshowid]:document.getElementById("master"+this.slideshowid);a.onmouseover=function(){b.mouseovercheck=1};a.onmouseout=function(){b.mouseovercheck=0}}this.rotateimage()};var Prototype={Version:"1.4.0",ScriptFragment:"(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)",emptyFunction:function(){},K:function(a){return a}},Class={create:function(){return function(){this.initialize.apply(this,arguments)}}},Abstract={};Object.extend=function(a,b){for(property in b)a[property]=b[property];return a};Object.inspect=function(a){try{if(a==undefined)return"undefined";if(a==null)return"null";return a.inspect?a.inspect():a.toString()}catch(b){if(b instanceof RangeError)return"...";throw b;}};Function.prototype.bind=function(){var a=this,b=$A(arguments),c=b.shift();return function(){return a.apply(c,b.concat($A(arguments)))}};Function.prototype.bindAsEventListener=function(a){var b=this;return function(c){return b.call(a,c||window.event)}};Object.extend(Number.prototype,{toColorPart:function(){var a=this.toString(16);if(this<16)return"0"+a;return a},succ:function(){return this+1},times:function(a){$R(0,this,true).each(a);return this}});var Try={these:function(){for(var a,b=0;b<arguments.length;b++){var c=arguments[b];try{a=c();break}catch(d){}}return a}},PeriodicalExecuter=Class.create();PeriodicalExecuter.prototype={initialize:function(a,b){this.callback=a;this.frequency=b;this.currentlyExecuting=false;this.registerCallback()},registerCallback:function(){setInterval(this.onTimerEvent.bind(this),this.frequency*1000)},onTimerEvent:function(){if(!this.currentlyExecuting)try{this.currentlyExecuting=true;this.callback()}finally{this.currentlyExecuting=false}}};function $(){for(var a=[],b=0;b<arguments.length;b++){var c=arguments[b];if(typeof c=="string")c=document.getElementById(c);if(arguments.length==1)return c;a.push(c)}return a}
Object.extend(String.prototype,{stripTags:function(){return this.replace(/<\/?[^>]+>/gi,"")},stripScripts:function(){return this.replace(new RegExp(Prototype.ScriptFragment,"img"),"")},extractScripts:function(){var a=new RegExp(Prototype.ScriptFragment,"img"),b=new RegExp(Prototype.ScriptFragment,"im");return(this.match(a)||[]).map(function(c){return(c.match(b)||["",""])[1]})},evalScripts:function(){return this.extractScripts().map(eval)},escapeHTML:function(){var a=document.createElement("div"),b=document.createTextNode(this);a.appendChild(b);return a.innerHTML},unescapeHTML:function(){var a=document.createElement("div");a.innerHTML=this.stripTags();return a.childNodes[0]?a.childNodes[0].nodeValue:""},toQueryParams:function(){var a=this.match(/^\??(.*)$/)[1].split("&");return a.inject({},function(b,c){c=c.split("=");b[c[0]]=c[1];return b})},toArray:function(){return this.split("")},camelize:function(){var a=this.split("-");if(a.length==1)return a[0];for(var b=this.indexOf("-")==0?a[0].charAt(0).toUpperCase()+
a[0].substring(1):a[0],c=1,d=a.length;c<d;c++){var e=a[c];b+=e.charAt(0).toUpperCase()+e.substring(1)}return b},inspect:function(){return"'"+this.replace("\\","\\\\").replace("'","\\'")+"'"}});String.prototype.parseQuery=String.prototype.toQueryParams;var $break={},$continue={},Enumerable={each:function(a){var b=0;try{this._each(function(d){try{a(d,b++)}catch(e){if(e!=$continue)throw e;}})}catch(c){if(c!=$break)throw c;}},all:function(a){var b=true;this.each(function(c,d){b=b&&!!(a||Prototype.K)(c,d);if(!b)throw $break;});return b},any:function(a){var b=true;this.each(function(c,d){if(b=!!(a||Prototype.K)(c,d))throw $break;});return b},collect:function(a){var b=[];this.each(function(c,d){b.push(a(c,d))});return b},detect:function(a){var b;this.each(function(c,d){if(a(c,d)){b=c;throw $break;}});return b},findAll:function(a){var b=[];this.each(function(c,d){a(c,d)&&b.push(c)});return b},grep:function(a,b){var c=[];this.each(function(d,e){var f=d.toString();if(f.match(a))c.push((b||Prototype.K)(d,e))});return c},include:function(a){var b=false;this.each(function(c){if(c==a){b=true;throw $break;}});return b},inject:function(a,b){this.each(function(c,d){a=b(a,c,d)});return a},invoke:function(a){var b=$A(arguments).slice(1);return this.collect(function(c){return c[a].apply(c,b)})},max:function(a){var b;this.each(function(c,d){c=(a||Prototype.K)(c,d);if(c>=(b||c))b=c});return b},min:function(a){var b;this.each(function(c,d){c=(a||Prototype.K)(c,d);if(c<=(b||c))b=c});return b},partition:function(a){var b=[],c=[];this.each(function(d,e){((a||Prototype.K)(d,e)?b:c).push(d)});return[b,c]},pluck:function(a){var b=[];this.each(function(c,d){b.push(c[a])});return b},reject:function(a){var b=[];this.each(function(c,d){a(c,d)||b.push(c)});return b},sortBy:function(a){return this.collect(function(b,c){return{value:b,criteria:a(b,c)}}).sort(function(b,c){b=b.criteria;c=c.criteria;return b<c?-1:b>c?1:0}).pluck("value")},toArray:function(){return this.collect(Prototype.K)},zip:function(){var a=Prototype.K,b=$A(arguments);if(typeof b.last()=="function")a=b.pop();var c=[this].concat(b).map($A);return this.map(function(d,e){a(d=c.pluck(e));return d})},inspect:function(){return"#<Enumerable:"+this.toArray().inspect()+">"}};Object.extend(Enumerable,{map:Enumerable.collect,find:Enumerable.detect,select:Enumerable.findAll,member:Enumerable.include,entries:Enumerable.toArray});var $A=Array.from=function(a){if(!a)return[];if(a.toArray)return a.toArray();else{for(var b=[],c=0;c<a.length;c++)b.push(a[c]);return b}};Object.extend(Array.prototype,Enumerable);Array.prototype._reverse=Array.prototype.reverse;Object.extend(Array.prototype,{_each:function(a){for(var b=0;b<this.length;b++)a(this[b])},clear:function(){this.length=0;return this},first:function(){return this[0]},last:function(){return this[this.length-1]},compact:function(){return this.select(function(a){return a!=undefined||a!=null})},flatten:function(){return this.inject([],function(a,b){return a.concat(b.constructor==Array?b.flatten():[b])})},without:function(){var a=$A(arguments);return this.select(function(b){return!a.include(b)})},indexOf:function(a){for(var b=0;b<this.length;b++)if(this[b]==a)return b;return-1},reverse:function(a){return(a!==false?this:this.toArray())._reverse()},shift:function(){for(var a=this[0],b=0;b<this.length-1;b++)this[b]=this[b+1];this.length--;return a},inspect:function(){return"["+this.map(Object.inspect).join(", ")+"]"}});var Hash={_each:function(a){for(key in this){var b=this[key];if(typeof b!="function"){var c=[key,b];c.key=key;c.value=b;a(c)}}},keys:function(){return this.pluck("key")},values:function(){return this.pluck("value")},merge:function(a){return $H(a).inject($H(this),function(b,c){b[c.key]=c.value;return b})},toQueryString:function(){return this.map(function(a){return a.map(encodeURIComponent).join("=")}).join("&")},inspect:function(){return"#<Hash:{"+this.map(function(a){return a.map(Object.inspect).join(": ")}).join(", ")+"}>"}};function $H(a){a=Object.extend({},a||{});Object.extend(a,Enumerable);Object.extend(a,Hash);return a}ObjectRange=Class.create();Object.extend(ObjectRange.prototype,Enumerable);Object.extend(ObjectRange.prototype,{initialize:function(a,b,c){this.start=a;this.end=b;this.exclusive=c},_each:function(a){var b=this.start;do{a(b);b=b.succ()}while(this.include(b))},include:function(a){if(a<this.start)return false;if(this.exclusive)return a<this.end;return a<=this.end}});function $R(a,b,c){return new ObjectRange(a,b,c)}var Ajax={getTransport:function(){return Try.these(function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")},function(){return new XMLHttpRequest})||false},activeRequestCount:0};Ajax.Responders={responders:[],_each:function(a){this.responders._each(a)},register:function(a){this.include(a)||this.responders.push(a)},unregister:function(a){this.responders=this.responders.without(a)},dispatch:function(a,b,c,d){this.each(function(e){if(e[a]&&typeof e[a]=="function")try{e[a].apply(e,[b,c,d])}catch(f){}})}};Object.extend(Ajax.Responders,Enumerable);Ajax.Responders.register({onCreate:function(){Ajax.activeRequestCount++},onComplete:function(){Ajax.activeRequestCount--}});Ajax.Base=function(){};Ajax.Base.prototype={setOptions:function(a){this.options={method:"post",asynchronous:true,parameters:""};Object.extend(this.options,a||{})},responseIsSuccess:function(){return this.transport.status==undefined||this.transport.status==0||this.transport.status>=200&&this.transport.status<300},responseIsFailure:function(){return!this.responseIsSuccess()}};Ajax.Request=Class.create();Ajax.Request.Events=["Uninitialized","Loading","Loaded","Interactive","Complete"];Ajax.Request.prototype=Object.extend(new Ajax.Base,{initialize:function(a,b){this.transport=Ajax.getTransport();this.setOptions(b);this.request(a)},request:function(a){var b=this.options.parameters||"";if(b.length>0)b+="&_=";try{this.url=a;if(this.options.method=="get"&&b.length>0)this.url+=(this.url.match(/\?/)?"&":"?")+b;Ajax.Responders.dispatch("onCreate",this,this.transport);this.transport.open(this.options.method,this.url,this.options.asynchronous);if(this.options.asynchronous){this.transport.onreadystatechange=this.onStateChange.bind(this);setTimeout(function(){this.respondToReadyState(1)}.bind(this),10)}this.setRequestHeaders();var c=this.options.postBody?this.options.postBody:b;this.transport.send(this.options.method=="post"?c:null)}catch(d){this.dispatchException(d)}},setRequestHeaders:function(){var a=["X-Requested-With","XMLHttpRequest","X-Prototype-Version",Prototype.Version];if(this.options.method=="post"){a.push("Content-type","application/x-www-form-urlencoded");this.transport.overrideMimeType&&a.push("Connection","close")}this.options.requestHeaders&&a.push.apply(a,this.options.requestHeaders);for(var b=0;b<a.length;b+=2)this.transport.setRequestHeader(a[b],a[b+1])},onStateChange:function(){var a=this.transport.readyState;a!=1&&this.respondToReadyState(this.transport.readyState)},header:function(a){try{return this.transport.getResponseHeader(a)}catch(b){}},evalJSON:function(){try{return eval(this.header("X-JSON"))}catch(a){}},evalResponse:function(){try{return eval(this.transport.responseText)}catch(a){this.dispatchException(a)}},respondToReadyState:function(a){a=Ajax.Request.Events[a];var b=this.transport,c=this.evalJSON();if(a=="Complete"){try{(this.options["on"+this.transport.status]||this.options["on"+(this.responseIsSuccess()?"Success":"Failure")]||Prototype.emptyFunction)(b,c)}catch(d){this.dispatchException(d)}if((this.header("Content-type")||"").match(/^text\/javascript/i))this.evalResponse()}try{(this.options["on"+a]||Prototype.emptyFunction)(b,c);Ajax.Responders.dispatch("on"+a,this,b,c)}catch(e){this.dispatchException(e)}if(a=="Complete")this.transport.onreadystatechange=Prototype.emptyFunction},dispatchException:function(a){(this.options.onException||Prototype.emptyFunction)(this,a);Ajax.Responders.dispatch("onException",this,a)}});Ajax.Updater=Class.create();Object.extend(Object.extend(Ajax.Updater.prototype,Ajax.Request.prototype),{initialize:function(a,b,c){this.containers={success:a.success?$(a.success):$(a),failure:a.failure?$(a.failure):a.success?null:$(a)};this.transport=Ajax.getTransport();this.setOptions(c);var d=this.options.onComplete||Prototype.emptyFunction;this.options.onComplete=function(e,f){this.updateContent();d(e,f)}.bind(this);this.request(b)},updateContent:function(){var a=this.responseIsSuccess()?this.containers.success:this.containers.failure,b=this.transport.responseText;this.options.evalScripts||(b=b.stripScripts());if(a)if(this.options.insertion)new this.options.insertion(a,b);else Element.update(a,b);this.responseIsSuccess()&&this.onComplete&&setTimeout(this.onComplete.bind(this),10)}});Ajax.PeriodicalUpdater=Class.create();Ajax.PeriodicalUpdater.prototype=Object.extend(new Ajax.Base,{initialize:function(a,b,c){this.setOptions(c);this.onComplete=this.options.onComplete;this.frequency=this.options.frequency||2;this.decay=this.options.decay||1;this.updater={};this.container=a;this.url=b;this.start()},start:function(){this.options.onComplete=this.updateComplete.bind(this);this.onTimerEvent()},stop:function(){this.updater.onComplete=undefined;clearTimeout(this.timer);(this.onComplete||Prototype.emptyFunction).apply(this,arguments)},updateComplete:function(a){if(this.options.decay){this.decay=a.responseText==this.lastText?this.decay*this.options.decay:1;this.lastText=a.responseText}this.timer=setTimeout(this.onTimerEvent.bind(this),this.decay*this.frequency*1000)},onTimerEvent:function(){this.updater=new Ajax.Updater(this.container,this.url,this.options)}});document.getElementsByClassName=function(a,b){b=($(b)||document.body).getElementsByTagName("*");return $A(b).inject([],function(c,d){d.className.match(new RegExp("(^|\\s)"+a+"(\\s|$)"))&&c.push(d);return c})};if(!window.Element)var Element={};Object.extend(Element,{visible:function(a){return $(a).style.display!="none"},toggle:function(){for(var a=0;a<arguments.length;a++){var b=$(arguments[a]);Element[Element.visible(b)?"hide":"show"](b)}},hide:function(){for(var a=0;a<arguments.length;a++){var b=$(arguments[a]);b.style.display="none"}},show:function(){for(var a=0;a<arguments.length;a++){var b=$(arguments[a]);b.style.display=""}},remove:function(a){a=$(a);a.parentNode.removeChild(a)},update:function(a,b){$(a).innerHTML=b.stripScripts();setTimeout(function(){b.evalScripts()},10)},getHeight:function(a){a=$(a);return a.offsetHeight},classNames:function(a){return new Element.ClassNames(a)},hasClassName:function(a,b){if(a=$(a))return Element.classNames(a).include(b)},addClassName:function(a,b){if(a=$(a))return Element.classNames(a).add(b)},removeClassName:function(a,b){if(a=$(a))return Element.classNames(a).remove(b)},cleanWhitespace:function(a){a=$(a);for(var b=0;b<a.childNodes.length;b++){var c=a.childNodes[b];c.nodeType==3&&!/\S/.test(c.nodeValue)&&Element.remove(c)}},empty:function(a){return $(a).innerHTML.match(/^\s*$/)},scrollTo:function(a){a=$(a);var b=a.x?a.x:a.offsetLeft;a=a.y?a.y:a.offsetTop;window.scrollTo(b,a)},getStyle:function(a,b){a=$(a);var c=a.style[b.camelize()];if(!c)if(document.defaultView&&document.defaultView.getComputedStyle)c=(c=document.defaultView.getComputedStyle(a,null))?c.getPropertyValue(b):null;else if(a.currentStyle)c=a.currentStyle[b.camelize()];if(window.opera&&["left","top","right","bottom"].include(b))if(Element.getStyle(a,"position")=="static")c="auto";return c=="auto"?null:c},setStyle:function(a,b){a=$(a);for(name in b)a.style[name.camelize()]=b[name]},getDimensions:function(a){a=$(a);if(Element.getStyle(a,"display")!="none")return{width:a.offsetWidth,height:a.offsetHeight};var b=a.style,c=b.visibility,d=b.position;b.visibility="hidden";b.position="absolute";b.display="";var e=a.clientWidth;a=a.clientHeight;b.display="none";b.position=d;b.visibility=c;return{width:e,height:a}},makePositioned:function(a){a=$(a);var b=Element.getStyle(a,"position");if(b=="static"||!b){a._madePositioned=true;a.style.position="relative";if(window.opera){a.style.top=0;a.style.left=0}}},undoPositioned:function(a){a=$(a);if(a._madePositioned){a._madePositioned=undefined;a.style.position=a.style.top=a.style.left=a.style.bottom=a.style.right=""}},makeClipping:function(a){a=$(a);if(!a._overflow){a._overflow=a.style.overflow;if((Element.getStyle(a,"overflow")||"visible")!="hidden")a.style.overflow="hidden"}},undoClipping:function(a){a=$(a);if(!a._overflow){a.style.overflow=a._overflow;a._overflow=undefined}}});var Toggle={};Toggle.display=Element.toggle;Abstract.Insertion=function(a){this.adjacency=a};Abstract.Insertion.prototype={initialize:function(a,b){this.element=$(a);this.content=b.stripScripts();if(this.adjacency&&this.element.insertAdjacentHTML)try{this.element.insertAdjacentHTML(this.adjacency,this.content)}catch(c){if(this.element.tagName.toLowerCase()=="tbody")this.insertContent(this.contentFromAnonymousTable());else throw c;}else{this.range=this.element.ownerDocument.createRange();this.initializeRange&&this.initializeRange();this.insertContent([this.range.createContextualFragment(this.content)])}setTimeout(function(){b.evalScripts()},10)},contentFromAnonymousTable:function(){var a=document.createElement("div");a.innerHTML="<table><tbody>"+this.content+"</tbody></table>";return $A(a.childNodes[0].childNodes[0].childNodes)}};var Insertion={};Insertion.Before=Class.create();Insertion.Before.prototype=Object.extend(new Abstract.Insertion("beforeBegin"),{initializeRange:function(){this.range.setStartBefore(this.element)},insertContent:function(a){a.each(function(b){this.element.parentNode.insertBefore(b,this.element)}.bind(this))}});Insertion.Top=Class.create();Insertion.Top.prototype=Object.extend(new Abstract.Insertion("afterBegin"),{initializeRange:function(){this.range.selectNodeContents(this.element);this.range.collapse(true)},insertContent:function(a){a.reverse(false).each(function(b){this.element.insertBefore(b,this.element.firstChild)}.bind(this))}});Insertion.Bottom=Class.create();Insertion.Bottom.prototype=Object.extend(new Abstract.Insertion("beforeEnd"),{initializeRange:function(){this.range.selectNodeContents(this.element);this.range.collapse(this.element)},insertContent:function(a){a.each(function(b){this.element.appendChild(b)}.bind(this))}});Insertion.After=Class.create();Insertion.After.prototype=Object.extend(new Abstract.Insertion("afterEnd"),{initializeRange:function(){this.range.setStartAfter(this.element)},insertContent:function(a){a.each(function(b){this.element.parentNode.insertBefore(b,this.element.nextSibling)}.bind(this))}});Element.ClassNames=Class.create();Element.ClassNames.prototype={initialize:function(a){this.element=$(a)},_each:function(a){this.element.className.split(/\s+/).select(function(b){return b.length>0})._each(a)},set:function(a){this.element.className=a},add:function(a){this.include(a)||this.set(this.toArray().concat(a).join(" "))},remove:function(a){this.include(a)&&this.set(this.select(function(b){return b!=a}).join(" "))},toString:function(){return this.toArray().join(" ")}};Object.extend(Element.ClassNames.prototype,Enumerable);var Field={clear:function(){for(var a=0;a<arguments.length;a++)$(arguments[a]).value=""},focus:function(a){$(a).focus()},present:function(){for(var a=0;a<arguments.length;a++)if($(arguments[a]).value=="")return false;return true},select:function(a){$(a).select()},activate:function(a){a=$(a);a.focus();a.select&&a.select()}},Form={serialize:function(a){a=Form.getElements($(a));for(var b=[],c=0;c<a.length;c++){var d=Form.Element.serialize(a[c]);d&&b.push(d)}return b.join("&")},getElements:function(a){a=$(a);var b=[];for(tagName in Form.Element.Serializers)for(var c=a.getElementsByTagName(tagName),d=0;d<c.length;d++)b.push(c[d]);return b},getInputs:function(a,b,c){a=$(a);a=a.getElementsByTagName("input");if(!b&&!c)return a;for(var d=[],e=0;e<a.length;e++){var f=a[e];b&&f.type!=b||c&&f.name!=c||d.push(f)}return d},disable:function(a){a=Form.getElements(a);for(var b=0;b<a.length;b++){var c=a[b];c.blur();c.disabled="true"}},enable:function(a){a=Form.getElements(a);for(var b=0;b<a.length;b++){var c=a[b];c.disabled=""}},findFirstElement:function(a){return Form.getElements(a).find(function(b){return b.type!="hidden"&&!b.disabled&&["input","select","textarea"].include(b.tagName.toLowerCase())})},focusFirstElement:function(a){Field.activate(Form.findFirstElement(a))},reset:function(a){$(a).reset()}};Form.Element={serialize:function(a){a=$(a);var b=a.tagName.toLowerCase();if(a=Form.Element.Serializers[b](a)){var c=encodeURIComponent(a[0]);if(c.length!=0){if(a[1].constructor!=Array)a[1]=[a[1]];return a[1].map(function(d){return c+"="+encodeURIComponent(d)}).join("&")}}},getValue:function(a){a=$(a);var b=a.tagName.toLowerCase();if(a=Form.Element.Serializers[b](a))return a[1]}};Form.Element.Serializers={input:function(a){switch(a.type.toLowerCase()){case"submit":case"hidden":case"password":case"text":return Form.Element.Serializers.textarea(a);case"checkbox":case"radio":return Form.Element.Serializers.inputSelector(a)}return false},inputSelector:function(a){if(a.checked)return[a.name,a.value]},textarea:function(a){return[a.name,a.value]},select:function(a){return Form.Element.Serializers[a.type=="select-one"?"selectOne":"selectMany"](a)},selectOne:function(a){var b="",c;c=a.selectedIndex;if(c>=0){c=a.options[c];b=c.value;if(!b&&!("value"in c))b=c.text}return[a.name,b]},selectMany:function(a){for(var b=[],c=0;c<a.length;c++){var d=a.options[c];if(d.selected){var e=d.value;if(!e&&!("value"in d))e=d.text;b.push(e)}}return[a.name,b]}};var $F=Form.Element.getValue;Abstract.TimedObserver=function(){};Abstract.TimedObserver.prototype={initialize:function(a,b,c){this.frequency=b;this.element=$(a);this.callback=c;this.lastValue=this.getValue();this.registerCallback()},registerCallback:function(){setInterval(this.onTimerEvent.bind(this),this.frequency*1000)},onTimerEvent:function(){var a=this.getValue();if(this.lastValue!=a){this.callback(this.element,a);this.lastValue=a}}};Form.Element.Observer=Class.create();Form.Element.Observer.prototype=Object.extend(new Abstract.TimedObserver,{getValue:function(){return Form.Element.getValue(this.element)}});Form.Observer=Class.create();Form.Observer.prototype=Object.extend(new Abstract.TimedObserver,{getValue:function(){return Form.serialize(this.element)}});Abstract.EventObserver=function(){};Abstract.EventObserver.prototype={initialize:function(a,b){this.element=$(a);this.callback=b;this.lastValue=this.getValue();this.element.tagName.toLowerCase()=="form"?this.registerFormCallbacks():this.registerCallback(this.element)},onElementEvent:function(){var a=this.getValue();if(this.lastValue!=a){this.callback(this.element,a);this.lastValue=a}},registerFormCallbacks:function(){for(var a=Form.getElements(this.element),b=0;b<a.length;b++)this.registerCallback(a[b])},registerCallback:function(a){if(a.type)switch(a.type.toLowerCase()){case"checkbox":case"radio":Event.observe(a,"click",this.onElementEvent.bind(this));break;case"password":case"text":case"textarea":case"select-one":case"select-multiple":Event.observe(a,"change",this.onElementEvent.bind(this));break}}};Form.Element.EventObserver=Class.create();Form.Element.EventObserver.prototype=Object.extend(new Abstract.EventObserver,{getValue:function(){return Form.Element.getValue(this.element)}});Form.EventObserver=Class.create();Form.EventObserver.prototype=Object.extend(new Abstract.EventObserver,{getValue:function(){return Form.serialize(this.element)}});if(!window.Event)var Event={};Object.extend(Event,{KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,element:function(a){return a.target||a.srcElement},isLeftClick:function(a){return a.which&&a.which==1||a.button&&a.button==1},pointerX:function(a){return a.pageX||a.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)},pointerY:function(a){return a.pageY||a.clientY+(document.documentElement.scrollTop||document.body.scrollTop)},stop:function(a){if(a.preventDefault){a.preventDefault();a.stopPropagation()}else{a.returnValue=false;a.cancelBubble=true}},findElement:function(a,b){for(a=Event.element(a);a.parentNode&&(!a.tagName||a.tagName.toUpperCase()!=b.toUpperCase());)a=a.parentNode;return a},observers:false,_observeAndCache:function(a,b,c,d){if(!this.observers)this.observers=[];if(a.addEventListener){this.observers.push([a,b,c,d]);a.addEventListener(b,c,d)}else if(a.attachEvent){this.observers.push([a,b,c,d]);a.attachEvent("on"+b,c)}},unloadCache:function(){if(Event.observers){for(var a=0;a<Event.observers.length;a++){Event.stopObserving.apply(this,Event.observers[a]);Event.observers[a][0]=null}Event.observers=false}},observe:function(a,b,c,d){a=$(a);d=d||false;if(b=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||a.attachEvent))b="keydown";this._observeAndCache(a,b,c,d)},stopObserving:function(a,b,c,d){a=$(a);d=d||false;if(b=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||a.detachEvent))b="keydown";if(a.removeEventListener)a.removeEventListener(b,c,d);else a.detachEvent&&a.detachEvent("on"+b,c)}});Event.observe(window,"unload",Event.unloadCache,false);var Position={includeScrollOffsets:false,prepare:function(){this.deltaX=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;this.deltaY=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},realOffset:function(a){var b=0,c=0;do{b+=a.scrollTop||0;c+=a.scrollLeft||0;a=a.parentNode}while(a);return[c,b]},cumulativeOffset:function(a){var b=0,c=0;do{b+=a.offsetTop||0;c+=a.offsetLeft||0;a=a.offsetParent}while(a);return[c,b]},positionedOffset:function(a){var b=0,c=0;do{b+=a.offsetTop||0;c+=a.offsetLeft||0;if(a=a.offsetParent){p=Element.getStyle(a,"position");if(p=="relative"||p=="absolute")break}}while(a);return[c,b]},offsetParent:function(a){if(a.offsetParent)return a.offsetParent;if(a==document.body)return a;for(;(a=a.parentNode)&&a!=document.body;)if(Element.getStyle(a,"position")!="static")return a;return document.body},within:function(a,b,c){if(this.includeScrollOffsets)return this.withinIncludingScrolloffsets(a,b,c);this.xcomp=b;this.ycomp=c;this.offset=this.cumulativeOffset(a);return c>=this.offset[1]&&c<this.offset[1]+a.offsetHeight&&b>=this.offset[0]&&b<this.offset[0]+a.offsetWidth},withinIncludingScrolloffsets:function(a,b,c){var d=this.realOffset(a);this.xcomp=b+d[0]-this.deltaX;this.ycomp=c+d[1]-this.deltaY;this.offset=this.cumulativeOffset(a);return this.ycomp>=this.offset[1]&&this.ycomp<this.offset[1]+a.offsetHeight&&this.xcomp>=this.offset[0]&&this.xcomp<this.offset[0]+a.offsetWidth},overlap:function(a,b){if(!a)return 0;if(a=="vertical")return(this.offset[1]+
b.offsetHeight-this.ycomp)/b.offsetHeight;if(a=="horizontal")return(this.offset[0]+b.offsetWidth-this.xcomp)/b.offsetWidth},clone:function(a,b){a=$(a);b=$(b);b.style.position="absolute";var c=this.cumulativeOffset(a);b.style.top=c[1]+"px";b.style.left=c[0]+"px";b.style.width=a.offsetWidth+"px";b.style.height=a.offsetHeight+"px"},page:function(a){var b=0,c=0,d=a;do{b+=d.offsetTop||0;c+=d.offsetLeft||0;if(d.offsetParent==document.body)if(Element.getStyle(d,"position")=="absolute")break}while(d=d.offsetParent);d=a;do{b-=d.scrollTop||0;c-=d.scrollLeft||0}while(d=d.parentNode);return[c,b]},clone:function(a,b,c){c=Object.extend({setLeft:true,setTop:true,setWidth:true,setHeight:true,offsetTop:0,offsetLeft:0},c||{});a=$(a);var d=Position.page(a);b=$(b);var e=[0,0],f=null;if(Element.getStyle(b,"position")=="absolute"){f=Position.offsetParent(b);e=Position.page(f)}if(f==document.body){e[0]-=document.body.offsetLeft;e[1]-=document.body.offsetTop}if(c.setLeft)b.style.left=d[0]-e[0]+c.offsetLeft+"px";if(c.setTop)b.style.top=d[1]-e[1]+c.offsetTop+"px";if(c.setWidth)b.style.width=a.offsetWidth+"px";if(c.setHeight)b.style.height=a.offsetHeight+"px"},absolutize:function(a){a=$(a);if(a.style.position!="absolute"){Position.prepare();var b=Position.positionedOffset(a),c=b[1];b=b[0];var d=a.clientWidth,e=a.clientHeight;a._originalLeft=b-parseFloat(a.style.left||0);a._originalTop=c-parseFloat(a.style.top||0);a._originalWidth=a.style.width;a._originalHeight=a.style.height;a.style.position="absolute";a.style.top=c+"px";a.style.left=b+"px";a.style.width=d+"px";a.style.height=e+"px"}},relativize:function(a){a=$(a);if(a.style.position!="relative"){Position.prepare();a.style.position="relative";var b=parseFloat(a.style.top||0)-(a._originalTop||0),c=parseFloat(a.style.left||0)-(a._originalLeft||0);a.style.top=b+"px";a.style.left=c+"px";a.style.height=a._originalHeight;a.style.width=a._originalWidth}}};if(/Konqueror|Safari|KHTML/.test(navigator.userAgent))Position.cumulativeOffset=function(a){var b=0,c=0;do{b+=a.offsetTop||0;c+=a.offsetLeft||0;if(a.offsetParent==document.body)if(Element.getStyle(a,"position")=="absolute")break;a=a.offsetParent}while(a);return[c,b]};String.prototype.parseColor=function(a){var b="#";if(this.slice(0,4)=="rgb("){var c=this.slice(4,this.length-1).split(","),d=0;do b+=parseInt(c[d]).toColorPart();while(++d<3)}else if(this.slice(0,1)=="#"){if(this.length==4)for(d=1;d<4;d++)b+=(this.charAt(d)+this.charAt(d)).toLowerCase();if(this.length==7)b=this.toLowerCase()}return b.length==7?b:a||this};Element.collectTextNodes=function(a){return $A($(a).childNodes).collect(function(b){return b.nodeType==3?b.nodeValue:b.hasChildNodes()?Element.collectTextNodes(b):""}).flatten().join("")};Element.collectTextNodesIgnoreClass=function(a,b){return $A($(a).childNodes).collect(function(c){return c.nodeType==3?c.nodeValue:c.hasChildNodes()&&!Element.hasClassName(c,b)?Element.collectTextNodes(c):""}).flatten().join("")};Element.setStyle=function(a,b){a=$(a);for(k in b)a.style[k.camelize()]=b[k]};Element.setContentZoom=function(a,b){Element.setStyle(a,{fontSize:b/100+"em"});navigator.appVersion.indexOf("AppleWebKit")>0&&window.scrollBy(0,0)};Element.getOpacity=function(a){var b;if(b=Element.getStyle(a,"opacity"))return parseFloat(b);if(b=(Element.getStyle(a,"filter")||"").match(/alpha\(opacity=(.*)\)/))if(b[1])return parseFloat(b[1])/100;return 1};Element.setOpacity=function(a,b){a=$(a);if(b==1){Element.setStyle(a,{opacity:/Gecko/.test(navigator.userAgent)&&!/Konqueror|Safari|KHTML/.test(navigator.userAgent)?0.999999:null});/MSIE/.test(navigator.userAgent)&&Element.setStyle(a,{filter:Element.getStyle(a,"filter").replace(/alpha\([^\)]*\)/gi,"")})}else{if(b<1.0E-5)b=0;Element.setStyle(a,{opacity:b});/MSIE/.test(navigator.userAgent)&&Element.setStyle(a,{filter:Element.getStyle(a,"filter").replace(/alpha\([^\)]*\)/gi,"")+"alpha(opacity="+b*100+")"})}};Element.getInlineOpacity=function(a){return $(a).style.opacity||""};Element.childrenWithClassName=function(a,b){return $A($(a).getElementsByTagName("*")).select(function(c){return Element.hasClassName(c,b)})};Array.prototype.call=function(){var a=arguments;this.each(function(b){b.apply(this,a)})};var Effect={tagifyText:function(a){var b="position:relative";if(/MSIE/.test(navigator.userAgent))b+=";zoom:1";a=$(a);$A(a.childNodes).each(function(c){if(c.nodeType==3){c.nodeValue.toArray().each(function(d){a.insertBefore(Builder.node("span",{style:b},d==" "?String.fromCharCode(160):d),c)});Element.remove(c)}})},multiple:function(a,b,c){a=(typeof a=="object"||typeof a=="function")&&a.length?a:$(a).childNodes;var d=Object.extend({speed:0.1,delay:0},c||{}),e=d.delay;$A(a).each(function(f,g){new b(f,Object.extend(d,{delay:g*d.speed+e}))})},PAIRS:{slide:["SlideDown","SlideUp"],blind:["BlindDown","BlindUp"],appear:["Appear","Fade"]},toggle:function(a,b,c){a=$(a);b=(b||"appear").toLowerCase();c=Object.extend({queue:{position:"end",scope:a.id||"global"}},c||{});Effect[Element.visible(a)?Effect.PAIRS[b][1]:Effect.PAIRS[b][0]](a,c)}},Effect2=Effect;Effect.Transitions={};Effect.Transitions.linear=function(a){return a};Effect.Transitions.sinoidal=function(a){return-Math.cos(a*Math.PI)/2+0.5};Effect.Transitions.reverse=function(a){return 1-a};Effect.Transitions.flicker=function(a){return-Math.cos(a*Math.PI)/4+0.75+Math.random()/4};Effect.Transitions.wobble=function(a){return-Math.cos(a*Math.PI*9*a)/2+0.5};Effect.Transitions.pulse=function(a){return Math.floor(a*10)%2==0?a*10-Math.floor(a*10):1-(a*10-Math.floor(a*10))};Effect.Transitions.none=function(a){return 0};Effect.Transitions.full=function(a){return 1};Effect.ScopedQueue=Class.create();Object.extend(Object.extend(Effect.ScopedQueue.prototype,Enumerable),{initialize:function(){this.effects=[];this.interval=null},_each:function(a){this.effects._each(a)},add:function(a){var b=(new Date).getTime(),c=typeof a.options.queue=="string"?a.options.queue:a.options.queue.position;switch(c){case"front":this.effects.findAll(function(d){return d.state=="idle"}).each(function(d){d.startOn+=a.finishOn;d.finishOn+=a.finishOn});break;case"end":b=this.effects.pluck("finishOn").max()||b;break}a.startOn+=b;a.finishOn+=b;this.effects.push(a);if(!this.interval)this.interval=setInterval(this.loop.bind(this),40)},remove:function(a){this.effects=this.effects.reject(function(b){return b==a});if(this.effects.length==0){clearInterval(this.interval);this.interval=null}},loop:function(){var a=(new Date).getTime();this.effects.invoke("loop",a)}});Effect.Queues={instances:$H(),get:function(a){if(typeof a!="string")return a;this.instances[a]||(this.instances[a]=new Effect.ScopedQueue);return this.instances[a]}};Effect.Queue=Effect.Queues.get("global");Effect.DefaultOptions={transition:Effect.Transitions.sinoidal,duration:1,fps:25,sync:false,from:0,to:1,delay:0,queue:"parallel"};Effect.Base=function(){};Effect.Base.prototype={position:null,start:function(a){this.options=Object.extend(Object.extend({},Effect.DefaultOptions),a||{});this.currentFrame=0;this.state="idle";this.startOn=this.options.delay*1000;this.finishOn=this.startOn+this.options.duration*1000;this.event("beforeStart");this.options.sync||Effect.Queues.get(typeof this.options.queue=="string"?"global":this.options.queue.scope).add(this)},loop:function(a){if(a>=this.startOn)if(a>=this.finishOn){this.render(1);this.cancel();this.event("beforeFinish");this.finish&&this.finish();this.event("afterFinish")}else{a=(a-this.startOn)/(this.finishOn-this.startOn);var b=Math.round(a*this.options.fps*this.options.duration);if(b>this.currentFrame){this.render(a);this.currentFrame=b}}},render:function(a){if(this.state=="idle"){this.state="running";this.event("beforeSetup");this.setup&&this.setup();this.event("afterSetup")}if(this.state=="running"){if(this.options.transition)a=this.options.transition(a);a*=this.options.to-this.options.from;a+=this.options.from;this.position=a;this.event("beforeUpdate");this.update&&this.update(a);this.event("afterUpdate")}},cancel:function(){this.options.sync||Effect.Queues.get(typeof this.options.queue=="string"?"global":this.options.queue.scope).remove(this);this.state="finished"},event:function(a){this.options[a+"Internal"]&&this.options[a+"Internal"](this);this.options[a]&&this.options[a](this)},inspect:function(){return"#<Effect:"+$H(this).inspect()+",options:"+$H(this.options).inspect()+">"}};Effect.Parallel=Class.create();Object.extend(Object.extend(Effect.Parallel.prototype,Effect.Base.prototype),{initialize:function(a,b){this.effects=a||[];this.start(b)},update:function(a){this.effects.invoke("render",a)},finish:function(a){this.effects.each(function(b){b.render(1);b.cancel();b.event("beforeFinish");b.finish&&b.finish(a);b.event("afterFinish")})}});Effect.Opacity=Class.create();Object.extend(Object.extend(Effect.Opacity.prototype,Effect.Base.prototype),{initialize:function(a,b){this.element=$(a);/MSIE/.test(navigator.userAgent)&&!this.element.hasLayout&&Element.setStyle(this.element,{zoom:1});a=Object.extend({from:Element.getOpacity(this.element)||0,to:1},b||{});this.start(a)},update:function(a){Element.setOpacity(this.element,a)}});Effect.Move=Class.create();Object.extend(Object.extend(Effect.Move.prototype,Effect.Base.prototype),{initialize:function(a,b){this.element=$(a);a=Object.extend({x:0,y:0,mode:"relative"},b||{});this.start(a)},setup:function(){Element.makePositioned(this.element);this.originalLeft=parseFloat(Element.getStyle(this.element,"left")||"0");this.originalTop=parseFloat(Element.getStyle(this.element,"top")||"0");if(this.options.mode=="absolute"){this.options.x-=this.originalLeft;this.options.y-=this.originalTop}},update:function(a){Element.setStyle(this.element,{left:this.options.x*a+this.originalLeft+"px",top:this.options.y*a+this.originalTop+"px"})}});Effect.MoveBy=function(a,b,c,d){return new Effect.Move(a,Object.extend({x:c,y:b},d||{}))};Effect.Scale=Class.create();Object.extend(Object.extend(Effect.Scale.prototype,Effect.Base.prototype),{initialize:function(a,b,c){this.element=$(a);a=Object.extend({scaleX:true,scaleY:true,scaleContent:true,scaleFromCenter:false,scaleMode:"box",scaleFrom:100,scaleTo:b},c||{});this.start(a)},setup:function(){this.restoreAfterFinish=this.options.restoreAfterFinish||false;this.elementPositioning=Element.getStyle(this.element,"position");this.originalStyle={};["top","left","width","height","fontSize"].each(function(b){this.originalStyle[b]=this.element.style[b]}.bind(this));this.originalTop=this.element.offsetTop;this.originalLeft=this.element.offsetLeft;var a=Element.getStyle(this.element,"font-size")||"100%";["em","px","%"].each(function(b){if(a.indexOf(b)>0){this.fontSize=parseFloat(a);this.fontSizeType=b}}.bind(this));this.factor=(this.options.scaleTo-this.options.scaleFrom)/100;this.dims=null;if(this.options.scaleMode=="box")this.dims=[this.element.offsetHeight,this.element.offsetWidth];if(/^content/.test(this.options.scaleMode))this.dims=[this.element.scrollHeight,this.element.scrollWidth];if(!this.dims)this.dims=[this.options.scaleMode.originalHeight,this.options.scaleMode.originalWidth]},update:function(a){a=this.options.scaleFrom/100+this.factor*a;this.options.scaleContent&&this.fontSize&&Element.setStyle(this.element,{fontSize:this.fontSize*a+this.fontSizeType});this.setDimensions(this.dims[0]*a,this.dims[1]*a)},finish:function(a){this.restoreAfterFinish&&Element.setStyle(this.element,this.originalStyle)},setDimensions:function(a,b){var c={};if(this.options.scaleX)c.width=b+"px";if(this.options.scaleY)c.height=a+"px";if(this.options.scaleFromCenter){a=(a-this.dims[0])/2;b=(b-this.dims[1])/2;if(this.elementPositioning=="absolute"){if(this.options.scaleY)c.top=this.originalTop-a+"px";if(this.options.scaleX)c.left=this.originalLeft-b+"px"}else{if(this.options.scaleY)c.top=-a+"px";if(this.options.scaleX)c.left=-b+"px"}}Element.setStyle(this.element,c)}});Effect.Highlight=Class.create();Object.extend(Object.extend(Effect.Highlight.prototype,Effect.Base.prototype),{initialize:function(a,b){this.element=$(a);a=Object.extend({startcolor:"#ffff99"},b||{});this.start(a)},setup:function(){if(Element.getStyle(this.element,"display")=="none")this.cancel();else{this.oldStyle={backgroundImage:Element.getStyle(this.element,"background-image")};Element.setStyle(this.element,{backgroundImage:"none"});if(!this.options.endcolor)this.options.endcolor=Element.getStyle(this.element,"background-color").parseColor("#ffffff");if(!this.options.restorecolor)this.options.restorecolor=Element.getStyle(this.element,"background-color");this._base=$R(0,2).map(function(a){return parseInt(this.options.startcolor.slice(a*2+1,a*2+3),16)}.bind(this));this._delta=$R(0,2).map(function(a){return parseInt(this.options.endcolor.slice(a*2+1,a*2+3),16)-this._base[a]}.bind(this))}},update:function(a){Element.setStyle(this.element,{backgroundColor:$R(0,2).inject("#",function(b,c,d){return b+Math.round(this._base[d]+this._delta[d]*a).toColorPart()}.bind(this))})},finish:function(){Element.setStyle(this.element,Object.extend(this.oldStyle,{backgroundColor:this.options.restorecolor}))}});Effect.ScrollTo=Class.create();Object.extend(Object.extend(Effect.ScrollTo.prototype,Effect.Base.prototype),{initialize:function(a,b){this.element=$(a);this.start(b||{})},setup:function(){Position.prepare();var a=Position.cumulativeOffset(this.element);if(this.options.offset)a[1]+=this.options.offset;var b=window.innerHeight?window.height-window.innerHeight:document.body.scrollHeight-(document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight);this.scrollStart=Position.deltaY;this.delta=(a[1]>b?b:a[1])-this.scrollStart},update:function(a){Position.prepare();window.scrollTo(Position.deltaX,this.scrollStart+a*this.delta)}});Effect.Fade=function(a,b){var c=Element.getInlineOpacity(a);b=Object.extend({from:Element.getOpacity(a)||1,to:0,afterFinishInternal:function(d){with(Element){if(d.options.to!=0)return;hide(d.element);setStyle(d.element,{opacity:c})}}},b||{});return new Effect.Opacity(a,b)};Effect.Appear=function(a,b){b=Object.extend({from:Element.getStyle(a,"display")=="none"?0:Element.getOpacity(a)||0,to:1,beforeSetup:function(c){with(Element){setOpacity(c.element,c.options.from);show(c.element)}}},b||{});return new Effect.Opacity(a,b)};Effect.Puff=function(a,b){a=$(a);var c={opacity:Element.getInlineOpacity(a),position:Element.getStyle(a,"position")};return new Effect.Parallel([new Effect.Scale(a,200,{sync:true,scaleFromCenter:true,scaleContent:true,restoreAfterFinish:true}),new Effect.Opacity(a,{sync:true,to:0})],Object.extend({duration:1,beforeSetupInternal:function(d){with(Element)setStyle(d.effects[0].element,{position:"absolute"})},afterFinishInternal:function(d){with(Element){hide(d.effects[0].element);setStyle(d.effects[0].element,c)}}},b||{}))};Effect.BlindUp=function(a,b){a=$(a);Element.makeClipping(a);return new Effect.Scale(a,0,Object.extend({scaleContent:false,scaleX:false,restoreAfterFinish:true,afterFinishInternal:function(c){with(Element)[hide,undoClipping].call(c.element)}},b||{}))};Effect.BlindDown=function(a,b){a=$(a);var c=Element.getStyle(a,"height"),d=Element.getDimensions(a);return new Effect.Scale(a,100,Object.extend({scaleContent:false,scaleX:false,scaleFrom:0,scaleMode:{originalHeight:d.height,originalWidth:d.width},restoreAfterFinish:true,afterSetup:function(e){with(Element){makeClipping(e.element);setStyle(e.element,{height:"0px"});show(e.element)}},afterFinishInternal:function(e){with(Element){undoClipping(e.element);setStyle(e.element,{height:c})}}},b||{}))};Effect.SwitchOff=function(a){a=$(a);var b=Element.getInlineOpacity(a);return new Effect.Appear(a,{duration:0.4,from:0,transition:Effect.Transitions.flicker,afterFinishInternal:function(c){new Effect.Scale(c.element,1,{duration:0.3,scaleFromCenter:true,scaleX:false,scaleContent:false,restoreAfterFinish:true,beforeSetup:function(d){with(Element)[makePositioned,makeClipping].call(d.element)},afterFinishInternal:function(d){with(Element){[hide,undoClipping,undoPositioned].call(d.element);setStyle(d.element,{opacity:b})}}})}})};Effect.DropOut=function(a,b){a=$(a);var c={top:Element.getStyle(a,"top"),left:Element.getStyle(a,"left"),opacity:Element.getInlineOpacity(a)};return new Effect.Parallel([new Effect.Move(a,{x:0,y:100,sync:true}),new Effect.Opacity(a,{sync:true,to:0})],Object.extend({duration:0.5,beforeSetup:function(d){with(Element)makePositioned(d.effects[0].element)},afterFinishInternal:function(d){with(Element){[hide,undoPositioned].call(d.effects[0].element);setStyle(d.effects[0].element,c)}}},b||{}))};Effect.Shake=function(a){a=$(a);var b={top:Element.getStyle(a,"top"),left:Element.getStyle(a,"left")};return new Effect.Move(a,{x:20,y:0,duration:0.05,afterFinishInternal:function(c){new Effect.Move(c.element,{x:-40,y:0,duration:0.1,afterFinishInternal:function(d){new Effect.Move(d.element,{x:40,y:0,duration:0.1,afterFinishInternal:function(e){new Effect.Move(e.element,{x:-40,y:0,duration:0.1,afterFinishInternal:function(f){new Effect.Move(f.element,{x:40,y:0,duration:0.1,afterFinishInternal:function(g){new Effect.Move(g.element,{x:-20,y:0,duration:0.05,afterFinishInternal:function(m){with(Element){undoPositioned(m.element);setStyle(m.element,b)}}})}})}})}})}})}})};Effect.SlideDown=function(a,b){a=$(a);Element.cleanWhitespace(a);var c=Element.getStyle(a.firstChild,"bottom"),d=Element.getDimensions(a);return new Effect.Scale(a,100,Object.extend({scaleContent:false,scaleX:false,scaleFrom:0,scaleMode:{originalHeight:d.height,originalWidth:d.width},restoreAfterFinish:true,afterSetup:function(e){with(Element){makePositioned(e.element);makePositioned(e.element.firstChild);window.opera&&setStyle(e.element,{top:""});makeClipping(e.element);setStyle(e.element,{height:"0px"});show(a)}},afterUpdateInternal:function(e){with(Element)setStyle(e.element.firstChild,{bottom:e.dims[0]-e.element.clientHeight+"px"})},afterFinishInternal:function(e){with(Element){undoClipping(e.element);undoPositioned(e.element.firstChild);undoPositioned(e.element);setStyle(e.element.firstChild,{bottom:c})}}},b||{}))};Effect.SlideUp=function(a,b){a=$(a);Element.cleanWhitespace(a);var c=Element.getStyle(a.firstChild,"bottom");return new Effect.Scale(a,0,Object.extend({scaleContent:false,scaleX:false,scaleMode:"box",scaleFrom:100,restoreAfterFinish:true,beforeStartInternal:function(d){with(Element){makePositioned(d.element);makePositioned(d.element.firstChild);window.opera&&setStyle(d.element,{top:""});makeClipping(d.element);show(a)}},afterUpdateInternal:function(d){with(Element)setStyle(d.element.firstChild,{bottom:d.dims[0]-
d.element.clientHeight+"px"})},afterFinishInternal:function(d){with(Element){[hide,undoClipping].call(d.element);undoPositioned(d.element.firstChild);undoPositioned(d.element);setStyle(d.element.firstChild,{bottom:c})}}},b||{}))};Effect.Squish=function(a){return new Effect.Scale(a,window.opera?1:0,{restoreAfterFinish:true,beforeSetup:function(b){with(Element)makeClipping(b.element)},afterFinishInternal:function(b){with(Element){hide(b.element);undoClipping(b.element)}}})};Effect.Grow=function(a,b){a=$(a);var c=Object.extend({direction:"center",moveTransistion:Effect.Transitions.sinoidal,scaleTransition:Effect.Transitions.sinoidal,opacityTransition:Effect.Transitions.full},b||{}),d={top:a.style.top,left:a.style.left,height:a.style.height,width:a.style.width,opacity:Element.getInlineOpacity(a)},e=Element.getDimensions(a),f,g,m,q;switch(c.direction){case"top-left":f=g=m=q=0;break;case"top-right":f=e.width;g=q=0;m=-e.width;break;case"bottom-left":f=m=0;g=e.height;q=-e.height;break;case"bottom-right":f=e.width;g=e.height;m=-e.width;q=-e.height;break;case"center":f=e.width/2;g=e.height/2;m=-e.width/2;q=-e.height/2;break}return new Effect.Move(a,{x:f,y:g,duration:0.01,beforeSetup:function(l){with(Element){hide(l.element);makeClipping(l.element);makePositioned(l.element)}},afterFinishInternal:function(l){new Effect.Parallel([new Effect.Opacity(l.element,{sync:true,to:1,from:0,transition:c.opacityTransition}),new Effect.Move(l.element,{x:m,y:q,sync:true,transition:c.moveTransition}),new Effect.Scale(l.element,100,{scaleMode:{originalHeight:e.height,originalWidth:e.width},sync:true,scaleFrom:window.opera?1:0,transition:c.scaleTransition,restoreAfterFinish:true})],Object.extend({beforeSetup:function(n){with(Element){setStyle(n.effects[0].element,{height:"0px"});show(n.effects[0].element)}},afterFinishInternal:function(n){with(Element){[undoClipping,undoPositioned].call(n.effects[0].element);setStyle(n.effects[0].element,d)}}},c))}})};Effect.Shrink=function(a,b){a=$(a);b=Object.extend({direction:"center",moveTransistion:Effect.Transitions.sinoidal,scaleTransition:Effect.Transitions.sinoidal,opacityTransition:Effect.Transitions.none},b||{});var c={top:a.style.top,left:a.style.left,height:a.style.height,width:a.style.width,opacity:Element.getInlineOpacity(a)},d=Element.getDimensions(a),e,f;switch(b.direction){case"top-left":e=f=0;break;case"top-right":e=d.width;f=0;break;case"bottom-left":e=0;f=d.height;break;case"bottom-right":e=d.width;f=d.height;break;case"center":e=d.width/2;f=d.height/2;break}return new Effect.Parallel([new Effect.Opacity(a,{sync:true,to:0,from:1,transition:b.opacityTransition}),new Effect.Scale(a,window.opera?1:0,{sync:true,transition:b.scaleTransition,restoreAfterFinish:true}),new Effect.Move(a,{x:e,y:f,sync:true,transition:b.moveTransition})],Object.extend({beforeStartInternal:function(g){with(Element)[makePositioned,makeClipping].call(g.effects[0].element)},afterFinishInternal:function(g){with(Element){[hide,undoClipping,undoPositioned].call(g.effects[0].element);setStyle(g.effects[0].element,c)}}},b))};Effect.Pulsate=function(a,b){a=$(a);b=b||{};var c=Element.getInlineOpacity(a),d=b.transition||Effect.Transitions.sinoidal;function e(f){return d(1-Effect.Transitions.pulse(f))}e.bind(d);return new Effect.Opacity(a,Object.extend(Object.extend({duration:3,from:0,afterFinishInternal:function(f){Element.setStyle(f.element,{opacity:c})}},b),{transition:e}))};Effect.Fold=function(a,b){a=$(a);var c={top:a.style.top,left:a.style.left,width:a.style.width,height:a.style.height};Element.makeClipping(a);return new Effect.Scale(a,5,Object.extend({scaleContent:false,scaleX:false,afterFinishInternal:function(d){new Effect.Scale(a,1,{scaleContent:false,scaleY:false,afterFinishInternal:function(e){with(Element){[hide,undoClipping].call(e.element);setStyle(e.element,c)}}})}},b||{}))};var fileLoadingImage="http://www.anatomic.sk/images/lightbox/loading.gif",fileBottomNavCloseImage="http://www.anatomic.sk/images/lightbox/closelabel.png",overlayOpacity=0.8,animate=true,resizeSpeed=7,borderSize=10,imageArray=[],activeImage;if(animate==true){overlayDuration=0.2;if(resizeSpeed>10)resizeSpeed=10;if(resizeSpeed<1)resizeSpeed=1;resizeDuration=(11-resizeSpeed)*0.15}else resizeDuration=overlayDuration=0;Object.extend(Element,{getWidth:function(a){a=$(a);return a.offsetWidth},setWidth:function(a,b){a=$(a);a.style.width=b+"px"},setHeight:function(a,b){a=$(a);a.style.height=b+"px"},setTop:function(a,b){a=$(a);a.style.top=b+"px"},setLeft:function(a,b){a=$(a);a.style.left=b+"px"},setSrc:function(a,b){a=$(a);a.src=b},setHref:function(a,b){a=$(a);a.href=b},setInnerHTML:function(a,b){a=$(a);a.innerHTML=b}});Array.prototype.removeDuplicates=function(){for(i=0;i<this.length;i++)for(j=this.length-1;j>i;j--)this[i][0]==this[j][0]&&this.splice(j,1)};Array.prototype.empty=function(){for(i=0;i<=this.length;i++)this.shift()};var Lightbox=Class.create();Lightbox.prototype={initialize:function(){this.updateImageList();var a=document.getElementsByTagName("body").item(0),b=document.createElement("div");b.setAttribute("id","overlay");b.style.display="none";b.onclick=function(){myLightbox.end()};a.appendChild(b);b=document.createElement("div");b.setAttribute("id","lightbox");b.style.display="none";b.onclick=function(e){if(!e)e=window.event;e=Event.element(e).id;e=="lightbox"&&myLightbox.end()};a.appendChild(b);var c=document.createElement("div");c.setAttribute("id","outerImageContainer");b.appendChild(c);if(animate){Element.setWidth("outerImageContainer",250);Element.setHeight("outerImageContainer",250)}else{Element.setWidth("outerImageContainer",1);Element.setHeight("outerImageContainer",1)}a=document.createElement("div");a.setAttribute("id","imageContainer");c.appendChild(a);c=document.createElement("img");c.setAttribute("id","lightboxImage");a.appendChild(c);c=document.createElement("div");c.setAttribute("id","hoverNav");a.appendChild(c);var d=document.createElement("a");d.setAttribute("id","prevLink");d.setAttribute("href","#");c.appendChild(d);d=document.createElement("a");d.setAttribute("id","nextLink");d.setAttribute("href","#");c.appendChild(d);c=document.createElement("div");c.setAttribute("id","loading");a.appendChild(c);a=document.createElement("a");a.setAttribute("id","loadingLink");a.setAttribute("href","#");a.onclick=function(){myLightbox.end();return false};c.appendChild(a);c=document.createElement("img");c.setAttribute("src",fileLoadingImage);a.appendChild(c);a=document.createElement("div");a.setAttribute("id","imageDataContainer");b.appendChild(a);b=document.createElement("div");b.setAttribute("id","imageData");a.appendChild(b);a=document.createElement("div");a.setAttribute("id","imageDetails");b.appendChild(a);c=document.createElement("span");c.setAttribute("id","caption");a.appendChild(c);c=document.createElement("span");c.setAttribute("id","numberDisplay");a.appendChild(c);a=document.createElement("div");a.setAttribute("id","bottomNav");b.appendChild(a);b=document.createElement("a");b.setAttribute("id","bottomNavClose");b.setAttribute("href","#");b.onclick=function(){myLightbox.end();return false};a.appendChild(b);a=document.createElement("img");a.setAttribute("src",fileBottomNavCloseImage);b.appendChild(a)},updateImageList:function(){if(document.getElementsByTagName){for(var a=document.getElementsByTagName("a"),b=document.getElementsByTagName("area"),c=0;c<a.length;c++){var d=a[c],e=String(d.getAttribute("rel"));if(d.getAttribute("href")&&e.toLowerCase().match("lightbox"))d.onclick=function(){myLightbox.start(this);return false}}for(c=0;c<b.length;c++){a=b[c];e=String(a.getAttribute("rel"));if(a.getAttribute("href")&&e.toLowerCase().match("lightbox"))a.onclick=function(){myLightbox.start(this);return false}}}},start:function(a){hideSelectBoxes();hideFlash();var b=getPageSize();Element.setWidth("overlay",b[0]);Element.setHeight("overlay",b[1]);new Effect.Appear("overlay",{duration:overlayDuration,from:0,to:overlayOpacity});imageArray=[];imageNum=0;if(document.getElementsByTagName){var c=document.getElementsByTagName(a.tagName);if(a.getAttribute("rel")=="lightbox")imageArray.push(new Array(a.getAttribute("href"),a.getAttribute("title")));else{for(var d=0;d<c.length;d++){var e=c[d];e.getAttribute("href")&&e.getAttribute("rel")==a.getAttribute("rel")&&imageArray.push(new Array(e.getAttribute("href"),e.getAttribute("title")))}for(imageArray.removeDuplicates();imageArray[imageNum][0]!=a.getAttribute("href");)imageNum++}a=getPageScroll();b=a[1]+b[3]/10;a=a[0];Element.setTop("lightbox",b);Element.setLeft("lightbox",a);Element.show("lightbox");this.changeImage(imageNum)}},changeImage:function(a){activeImage=a;animate&&Element.show("loading");Element.hide("lightboxImage");Element.hide("hoverNav");Element.hide("prevLink");Element.hide("nextLink");Element.hide("imageDataContainer");Element.hide("numberDisplay");imgPreloader=new Image;imgPreloader.onload=function(){Element.setSrc("lightboxImage",imageArray[activeImage][0]);myLightbox.resizeImageContainer(imgPreloader.width,imgPreloader.height);imgPreloader.onload=function(){}};imgPreloader.src=imageArray[activeImage][0]},resizeImageContainer:function(a,b){this.widthCurrent=Element.getWidth("outerImageContainer");this.heightCurrent=Element.getHeight("outerImageContainer");a=a+borderSize*2;var c=b+borderSize*2;this.xScale=a/this.widthCurrent*100;this.yScale=c/this.heightCurrent*100;wDiff=this.widthCurrent-a;hDiff=this.heightCurrent-c;hDiff!=0&&new Effect.Scale("outerImageContainer",this.yScale,{scaleX:false,duration:resizeDuration,queue:"front"});wDiff!=0&&new Effect.Scale("outerImageContainer",this.xScale,{scaleY:false,delay:resizeDuration,duration:resizeDuration});if(hDiff==0&&wDiff==0)navigator.appVersion.indexOf("MSIE")!=-1?pause(250):pause(100);Element.setHeight("prevLink",b);Element.setHeight("nextLink",b);Element.setWidth("imageDataContainer",a);this.showImage()},showImage:function(){Element.hide("loading");new Effect.Appear("lightboxImage",{duration:resizeDuration,queue:"end",afterFinish:function(){myLightbox.updateDetails()}});this.preloadNeighborImages()},updateDetails:function(){if(imageArray[activeImage][1]){Element.show("caption");Element.setInnerHTML("caption",imageArray[activeImage][1])}if(imageArray.length>1){Element.show("numberDisplay");Element.setInnerHTML("numberDisplay","Obr\u00c3\u00a1zok "+eval(activeImage+1)+" z "+imageArray.length)}new Effect.Parallel([new Effect.SlideDown("imageDataContainer",{sync:true,duration:resizeDuration,from:0,to:1}),new Effect.Appear("imageDataContainer",{sync:true,duration:resizeDuration})],{duration:resizeDuration,afterFinish:function(){var a=getPageSize();Element.setHeight("overlay",a[1]);myLightbox.updateNav()}})},updateNav:function(){Element.show("hoverNav");if(activeImage!=0){Element.show("prevLink");document.getElementById("prevLink").onclick=function(){myLightbox.changeImage(activeImage-1);return false}}if(activeImage!=imageArray.length-1){Element.show("nextLink");document.getElementById("nextLink").onclick=function(){myLightbox.changeImage(activeImage+1);return false}}this.enableKeyboardNav()},enableKeyboardNav:function(){document.onkeydown=this.keyboardAction},disableKeyboardNav:function(){document.onkeydown=""},keyboardAction:function(a){if(a==null){keycode=event.keyCode;escapeKey=27}else{keycode=a.keyCode;escapeKey=a.DOM_VK_ESCAPE}key=String.fromCharCode(keycode).toLowerCase();if(key=="x"||key=="o"||key=="c"||keycode==escapeKey)myLightbox.end();else if(key=="p"||keycode==37){if(activeImage!=0){myLightbox.disableKeyboardNav();myLightbox.changeImage(activeImage-1)}}else if(key=="n"||keycode==39)if(activeImage!=imageArray.length-1){myLightbox.disableKeyboardNav();myLightbox.changeImage(activeImage+1)}},preloadNeighborImages:function(){if(imageArray.length-1>activeImage){preloadNextImage=new Image;preloadNextImage.src=imageArray[activeImage+1][0]}if(activeImage>0){preloadPrevImage=new Image;preloadPrevImage.src=imageArray[activeImage-1][0]}},end:function(){this.disableKeyboardNav();Element.hide("lightbox");new Effect.Fade("overlay",{duration:overlayDuration});showSelectBoxes();showFlash()}};function getPageScroll(){var a,b;if(self.pageYOffset){b=self.pageYOffset;a=self.pageXOffset}else if(document.documentElement&&document.documentElement.scrollTop){b=document.documentElement.scrollTop;a=document.documentElement.scrollLeft}else if(document.body){b=document.body.scrollTop;a=document.body.scrollLeft}return arrayPageScroll=new Array(a,b)}
function getPageSize(){var a,b;if(window.innerHeight&&window.scrollMaxY){a=window.innerWidth+window.scrollMaxX;b=window.innerHeight+window.scrollMaxY}else if(document.body.scrollHeight>document.body.offsetHeight){a=document.body.scrollWidth;b=document.body.scrollHeight}else{a=document.body.offsetWidth;b=document.body.offsetHeight}var c,d;if(self.innerHeight){c=document.documentElement.clientWidth?document.documentElement.clientWidth:self.innerWidth;d=self.innerHeight}else if(document.documentElement&&document.documentElement.clientHeight){c=document.documentElement.clientWidth;d=document.documentElement.clientHeight}else if(document.body){c=document.body.clientWidth;d=document.body.clientHeight}pageHeight=b<d?d:b;pageWidth=a<c?a:c;return arrayPageSize=new Array(pageWidth,pageHeight,c,d)}function getKey(a){keycode=a==null?event.keyCode:a.which;key=String.fromCharCode(keycode).toLowerCase()}function listenKey(){document.onkeypress=getKey}
function showSelectBoxes(){var a=document.getElementsByTagName("select");for(i=0;i!=a.length;i++)a[i].style.visibility="visible"}function hideSelectBoxes(){var a=document.getElementsByTagName("select");for(i=0;i!=a.length;i++)a[i].style.visibility="hidden"}function showFlash(){var a=document.getElementsByTagName("object");for(i=0;i<a.length;i++)a[i].style.visibility="visible";a=document.getElementsByTagName("embed");for(i=0;i<a.length;i++)a[i].style.visibility="visible"}
function hideFlash(){var a=document.getElementsByTagName("object");for(i=0;i<a.length;i++)a[i].style.visibility="hidden";a=document.getElementsByTagName("embed");for(i=0;i<a.length;i++)a[i].style.visibility="hidden"}function pause(a){var b=new Date;c=null;do var c=new Date;while(c-b<a)}function initLightbox(){myLightbox=new Lightbox}Event.observe(window,"load",initLightbox,false);var IEPNGFix=window.IEPNGFix||{};IEPNGFix.tileBG=function(a,b,c){var d=this.data[a.uniqueID],e=Math.max(a.clientWidth,a.scrollWidth),f=Math.max(a.clientHeight,a.scrollHeight),g=a.currentStyle.backgroundPositionX,m=a.currentStyle.backgroundPositionY,q=a.currentStyle.backgroundRepeat;if(!d.tiles)d.tiles={elm:a,src:"",cache:[],img:new Image,old:{}};d=d.tiles;var l=d.img.width,n=d.img.height;if(b){if(!c&&b!=d.src){d.img.onload=function(){this.onload=null;IEPNGFix.tileBG(a,b,1)};return d.img.src=b}}else{if(d.src)c=1;l=n=0}d.src=b;if(!(!c&&e==d.old.w&&f==d.old.h&&g==d.old.x&&m==d.old.y&&q==d.old.r)){c={top:"0%",left:"0%",center:"50%",bottom:"100%",right:"100%"};var h,o;h=c[g]||g;c=c[m]||m;if(o=h.match(/(\d+)%/))h=Math.round((e-l)*(parseInt(o[1])/100));if(o=c.match(/(\d+)%/))c=Math.round((f-n)*(parseInt(o[1])/100));h=parseInt(h);c=parseInt(c);var u={repeat:1,"repeat-x":1}[q],v={repeat:1,"repeat-y":1}[q];if(u){h%=l;if(h>0)h-=l}if(v){c%=n;if(c>0)c-=n}this.hook.enabled=0;if(!{relative:1,absolute:1}[a.currentStyle.position])a.style.position="relative";o=0;u=u?e:h+0.1;var s;v=v?f:c+0.1;var t,r,w;if(l&&n)for(h=h;h<u;h+=l)for(s=c;s<v;s+=n){w=0;if(!d.cache[o]){d.cache[o]=document.createElement("div");w=1}var x=h+l>e?e-h:l,y=s+n>f?f-s:n;t=d.cache[o];r=t.style;r.behavior="none";r.left=h+"px";r.top=s+"px";r.width=x+"px";r.height=y+"px";r.clip="rect("+(s<0?0-s:0)+"px,"+x+"px,"+y+"px,"+(h<0?0-h:0)+"px)";r.display="block";if(w){r.position="absolute";r.zIndex=-999;a.firstChild?a.insertBefore(t,a.firstChild):a.appendChild(t)}this.fix(t,b,0);o++}for(;o<d.cache.length;){this.fix(d.cache[o],"",0);d.cache[o++].style.display="none"}this.hook.enabled=1;d.old={w:e,h:f,x:g,y:m,r:q}}};IEPNGFix.update=function(){for(var a in IEPNGFix.data){var b=IEPNGFix.data[a].tiles;b&&b.elm&&b.src&&IEPNGFix.tileBG(b.elm,b.src)}};IEPNGFix.update.timer=0;window.attachEvent&&!window.opera&&window.attachEvent("onresize",function(){clearTimeout(IEPNGFix.update.timer);IEPNGFix.update.timer=setTimeout(IEPNGFix.update,100)});