function makePOSTRequest(A,C,E,B){var D=false;D=new getXmlHttpObj();if(!D){alert("Cannot create XMLHTTP instance");return false}else{D.open("POST",A,true);D.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8");D.setRequestHeader("Content-length",C.length);D.setRequestHeader("Connection","close");D.send(C);document.getElementById(E).innerHTML=B;return true}}function sendPOSTRequest(A,C,D,B){http_request=false;http_request=new getXmlHttpObj();if(!http_request){alert("Cannot create XML HTTP instance");return false}else{http_request.open("POST",A,B);http_request.onreadystatechange=function(){alertContents(D)};http_request.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8");http_request.setRequestHeader("Content-length",C.length);http_request.setRequestHeader("Connection","close");http_request.send(C);return true}}function alertContents(A){if(http_request.readyState==4){if(http_request.status==200){result=http_request.responseText;if(result.indexOf("errors")==-1){http_success=true;document.getElementById(A).innerHTML=result}else{document.getElementById("errors").innerHTML=result}}else{alert("There was a problem with the request.")}}}function getLead(C){var D="lead_form-mini";var A='<div class="thankyou"><p>Thank you for your request. A digital marketing specialist will contact you shortly.<br /><br />Feel free to call us 866-492-7886</p></div>';var B="first_name="+encodeURIComponent(document.getElementById("aj-first_name").value)+"&last_name="+encodeURIComponent(document.getElementById("aj-last_name").value)+"&company="+encodeURIComponent(document.getElementById("aj-company").value)+"&email="+encodeURIComponent(document.getElementById("aj-email").value)+"&phone="+encodeURIComponent(document.getElementById("aj-phone").value)+"&where="+encodeURIComponent(document.getElementById("aj-where").value)+"&submitted="+encodeURIComponent(document.getElementById("aj-submitted").value);makePOSTRequest("/include/php/AJAX-mini_lead_gen.php",B,D,A)}function getNewsletter(C){var D="banner-newsletter";var A='<div class="thankyou"><p>Please check your inbox, we just sent you an email</p></div>';var B="&email="+encodeURIComponent(document.getElementById("newsletter-email").value)+"&submitted="+encodeURIComponent(document.getElementById("newsletter-submitted").value);makePOSTRequest("/include/php/AJAX-mini_newsletter.php",B,D,A)}function getWhitepaper(C){var D="sidebar_form-whitepaper";var A='<div class="thankyou"><p>Thank you for your request. A digital marketing specialist will contact you shortly.</p></div>';var B="first_name="+encodeURIComponent(document.getElementById("wp-first_name").value)+"&last_name="+encodeURIComponent(document.getElementById("wp-last_name").value)+"&form_title="+encodeURIComponent(document.getElementById("wp-form_title").value)+"&company="+encodeURIComponent(document.getElementById("wp-company").value)+"&email="+encodeURIComponent(document.getElementById("wp-email").value)+"&industry="+encodeURIComponent(document.getElementById("wp-industry").value)+"&phone="+encodeURIComponent(document.getElementById("wp-phone").value)+"&ext="+encodeURIComponent(document.getElementById("wp-ext").value)+"&newsletter="+encodeURIComponent(document.getElementById("wp-newsletter").checked)+"&free_trial="+encodeURIComponent(document.getElementById("wp-free_trial").checked)+"&lead_source="+encodeURIComponent(document.getElementById("wp-lead_source").value)+"&submitted="+encodeURIComponent(document.getElementById("wp-submitted").value);makePOSTRequest("/include/php/AJAX-whitepaper.php",B,D,A)}function postComment(B){document.getElementById(B).submit.disabled=true;http_success=false;var A=document.getElementById("c-name").value;var H=document.getElementById("c-title").value;var F=document.getElementById("c-comments").value;var G=document.getElementById("c-captcha").value;var I=document.getElementById("c-vid").value;var J=document.getElementById("c-submitted").value;A=stripHTML(A);H=stripHTML(H);F=stripHTML(F);var C="&name="+encodeURIComponent(A)+"&title="+encodeURIComponent(H)+"&comments="+encodeURIComponent(F)+"&captcha="+encodeURIComponent(G)+"&vid="+encodeURIComponent(I)+"&submitted="+encodeURIComponent(J);var D=sendPOSTRequest("/videos/comments.php",C,B,false);if(http_success&&D){var E="<blockquote><h4>"+H+"</h4><p>"+F+'<span><a href="flag_comments.php?abuse=">report abuse</a></span></p><h5>Posted by '+A+"</h5></blockquote>";document.getElementById("newcomment").innerHTML=E;document.getElementById("errors").innerHTML=""}else{document.getElementById(B).submit.disabled=false}}function MM_openBrWindow(C,A,B){window.open(C,A,B)}function MM_preloadImages(){var D=document;if(D.images){if(!D.MM_p){D.MM_p=new Array()}var C,B=D.MM_p.length,A=MM_preloadImages.arguments;for(C=0;C<A.length;C++){if(A[C].indexOf("#")!=0){D.MM_p[B]=new Image;D.MM_p[B++].src=A[C]}}}}function MM_findObj(E,D){var C,B,A;if(!D){D=document}if((C=E.indexOf("?"))>0&&parent.frames.length){D=parent.frames[E.substring(C+1)].document;E=E.substring(0,C)}if(!(A=D[E])&&D.all){A=D.all[E]}for(B=0;!A&&B<D.forms.length;B++){A=D.forms[B][E]}for(B=0;!A&&D.layers&&B<D.layers.length;B++){A=MM_findObj(E,D.layers[B].document)}if(!A&&D.getElementById){A=D.getElementById(E)}return A}function MM_validateForm(){var E,B,A,K,H,F,D,I,C,J="",G=MM_validateForm.arguments;for(E=0;E<(G.length-2);E+=3){H=G[E+2];C=MM_findObj(G[E]);if(C){K=G[E+1];if((C=C.value)!=""){if(H.indexOf("isEmail")!=-1){B=C.indexOf("@");if(B<1||B==(C.length-1)){J+="- "+K+"\n"}}else{if(H!="R"){F=parseFloat(C);if(isNaN(C)){J+="- "+K+" must contain a number.\n"}if(H.indexOf("inRange")!=-1){B=H.indexOf(":");D=H.substring(8,B);I=H.substring(B+1);if(F<D||I<F){J+="  "+K+" must contain a number between "+D+" and "+I+".\n"}}}}}else{if(H.charAt(0)=="R"){J+="- "+K+"\n"}}}}if(J){alert("The following error(s) occurred:\n"+J)}document.MM_returnValue=(J=="")}function NB_validateForm(){var G,E,B,A,M,I,F,D,J,C,L,K="",H=NB_validateForm.arguments;for(E=0;E<(H.length-2);E+=3){I=H[E+2];G=MM_findObj(H[E]);if(G){M=H[E+1];if((C=G.value)!=""){if(I.indexOf("isEmail")!=-1){if(!checkEmail(C)){K+="- "+M+"\n"}}else{if(I.indexOf("isPhone")!=-1){if(!checkPhone(C)){K+="- "+M+"\n"}}else{if(I.indexOf("isCC")!=-1){if(!checkCC(C)){K+="- "+M+"\n"}}else{if(I.indexOf("isURL")!=-1){if(!checkURL(C)){K+="- "+M+"\n"}}else{if(I.indexOf("isUsername")!=-1){if(!checkUsername(C)){K+="- "+M+"\n"}}else{if(I.indexOf("isPassword")!=-1){if(!checkPassword(C)){K+="- "+M+"\n"}else{L=C}}else{if(I.indexOf("isCPassword")!=-1){if(C!=L){K+="- "+M+"\n"}}else{if(I.indexOf("isChecked")!=-1){if(!G.checked){K+="- "+M+"\n"}}else{if(I!="R"){F=parseFloat(C);if(isNaN(C)){K+="- "+M+"\n"}if(I.indexOf("inRange")!=-1){B=I.indexOf(":");D=I.substring(8,B);J=I.substring(B+1);if(F<D||J<F){K+="  "+M+" must contain a number between "+D+" and "+J+".\n"}}}}}}}}}}}}else{if(I.charAt(0)=="R"){K+="- "+M+"\n"}}}}if(K){alert("The following error(s) occurred:\n"+K)}document.NB_returnValue=(K=="")}function MM_swapImgRestore(){var C,A,B=document.MM_sr;for(C=0;B&&C<B.length&&(A=B[C])&&A.oSrc;C++){A.src=A.oSrc}}function MM_swapImage(){var D,C=0,A,B=MM_swapImage.arguments;document.MM_sr=new Array;for(D=0;D<(B.length-2);D+=3){if((A=MM_findObj(B[D]))!=null){document.MM_sr[C++]=A;if(!A.oSrc){A.oSrc=A.src}A.src=B[D+2]}}}function MM_jumpMenu(targ,selObj,restore){eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");if(restore){selObj.selectedIndex=0}}function menu_jump(A){window.location.href=A.options[A.selectedIndex].value}function externalLinks(){if(!document.getElementsByTagName){return }var C=document.getElementsByTagName("a");for(var B=0;B<C.length;B++){var A=C[B];if(A.getAttribute("href")&&A.getAttribute("rel")=="external"){A.target="_blank"}}}addOnLoadEvent(externalLinks);function ltrim(A){return A.replace(/^\s*/,"")}function rtrim(A){return A.replace(/\s*$/,"")}function trim(A){return rtrim(ltrim(A))}var digits="0123456789";var phoneNumberDelimiters="()- ";var validWorldPhoneChars=phoneNumberDelimiters+"+";var minDigitsInIPhoneNumber=10;function isInteger(B){var A;for(A=0;A<B.length;A++){var C=B.charAt(A);if(((C<"0")||(C>"9"))){return false}}return true}function stripCharsInBag(C,D){var B;var A="";for(B=0;B<C.length;B++){var E=C.charAt(B);if(D.indexOf(E)==-1){A+=E}}return A}function checkPhone(A){var B=stripCharsInBag(A,validWorldPhoneChars);return(isInteger(B)&&B.length>=minDigitsInIPhoneNumber)}function checkEmail(F){var A="@";var B=".";var E=F.indexOf(A);var C=F.length;var D=F.indexOf(B);if(F.indexOf(A)==-1){return false}if(F.indexOf(A)==-1||F.indexOf(A)==0||F.indexOf(A)==C){return false}if(F.indexOf(B)==-1||F.indexOf(B)==0||F.indexOf(B)==C){return false}if(F.indexOf(A,(E+1))!=-1){return false}if(F.substring(E-1,E)==B||F.substring(E+1,E+2)==B){return false}if(F.indexOf(B,(E+2))==-1){return false}if(F.indexOf(" ")!=-1){return false}return true}function checkCC(C){var B="0123456789";var A="";for(i=0;i<C.length;i++){x=C.charAt(i);if(B.indexOf(x,0)!=-1){A+=x}}j=A.length/2;if(j<6.5||j>8||j==7){return false}k=Math.floor(j);m=Math.ceil(j)-k;c=0;for(i=0;i<k;i++){a=A.charAt(i*2+m)*2;c+=a>9?Math.floor(a/10+a%10):a}for(i=0;i<k+m;i++){c+=A.charAt(i*2+1-m)*1}return(c%10==0)}function checkURL(B){var A=/^(([\w]+:)?\/\/)?(([\d\w]|%[a-fA-f\d]{2,2})+(:([\d\w]|%[a-fA-f\d]{2,2})+)?@)?([\d\w][-\d\w]{0,253}[\d\w]\.)+[\w]{2,4}(:[\d]+)?(\/([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)*(\?(&?([-+_~.\d\w]|%[a-fA-f\d]{2,2})=?)*)?(#([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)?$/;if(A.test(B)){return true}else{return false}}function checkPassword(C){var B="";var D="4";var A="20";if(C==""){return false}var E=/\n/;if((C.length<D)||(C.length>A)){alert("The password is the wrong length.\n");return false}else{if(E.test(C)){alert("The password contains illegal characters.\n");return false}else{if(!((C.search(/(a-z)+/))&&(C.search(/(A-Z)+/))&&(C.search(/(0-9)+/)))){alert("The password must contain at least one uppercase letter, one lowercase letter, and one numeral.\n");return false}else{return true}}}}function checkUsername(C){var B="";var D="1";var A="50";if(C==""){return false}var E=/\W/;if((C.length<D)||(C.length>A)){alert("The username is the wrong length.\n");return false}else{if(E.test(C)){alert("The username contains illegal characters.\n");return false}else{return true}}}function isEmpty(B){var A="";if(B.length==0){A="The mandatory text area has not been filled in.\n"}return A}function isDifferent(B){var A="";if(B!="Can't touch this!"){A="You altered the inviolate text area.\n"}return A}function checkRadio(B){var A="";if(!(B)){A="Please check a radio button.\n"}return A}function checkDropdown(A){var B="";if(A==0){B="You didn't choose an option from the drop-down list.\n"}return B}function sameAsMailingAddress(A){if(document.getElementById(A).sameasmailing.checked==true){document.getElementById(A).baddress.value=document.getElementById(A).address.value;document.getElementById(A).baddress2.value=document.getElementById(A).address2.value;document.getElementById(A).bcity.value=document.getElementById(A).city.value;document.getElementById(A).bstate.value=document.getElementById(A).state.value;document.getElementById(A).bcountry.value=document.getElementById(A).country.value;document.getElementById(A).bzip.value=document.getElementById(A).zip.value}else{document.getElementById(A).baddress.value="";document.getElementById(A).baddress2.value="";document.getElementById(A).bcity.value="";document.getElementById(A).bstate.value="";document.getElementById(A).bcountry.value="";document.getElementById(A).bzip.value=""}};
	function pause(C){var B=new Date();var A=null;do{A=new Date()}while(A-B<C)}function bookmarkPage(A,C){A=window.location;C=document.title;if(window.sidebar){window.sidebar.addPanel(C,A,"")}else{if(window.opera&&window.print){var B=document.createElement("a");B.setAttribute("href",A);B.setAttribute("title",C);B.setAttribute("rel","sidebar");B.click()}else{if(document.all){window.external.AddFavorite(A,C)}else{alert("Sorry! Your browser doesn't support this function.")}}}}var inputClicked=new Array();function clearInput(A){if(!inputClicked[A]){inputClicked[A]=true;document.getElementById(A).value=""}}function stripHTML(A){return A.replace(/(<([^>]+)>)/ig,"")}function gaTracker(A){pageTracker._trackPageview('"/'+A+'"')}function adWordsTracker(G){var C=1070463498;var J="en_US";var A="1";var I="FFFFFF";var F=1;var E=G;var B="https://www.googleadservices.com/pagead/conversion.js";var H=document.createElement("script");H.setAttribute("type","text/javascript");H.setAttribute("src",B);document.getElementsByTagName("body")[0].appendChild(H);var D=document.createElement("noscript");document.getElementsByTagName("body")[0].appendChild(D);D.innerHTML='<img height="1" width="1" src="https://www.googleadservices.com/pagead/conversion/1070463498/imp.gif?value=1.0&label='+G+'&script=0" />'};
	var MooTools={version:"1.11"};function $defined(A){return(A!=undefined)}function $type(B){if(!$defined(B)){return false}if(B.htmlElement){return"element"}var A=typeof B;if(A=="object"&&B.nodeName){switch(B.nodeType){case 1:return"element";case 3:return(/\S/).test(B.nodeValue)?"textnode":"whitespace"}}if(A=="object"||A=="function"){switch(B.constructor){case Array:return"array";case RegExp:return"regexp";case Class:return"class"}if(typeof B.length=="number"){if(B.item){return"collection"}if(B.callee){return"arguments"}}}return A}function $merge(){var C={};for(var B=0;B<arguments.length;B++){for(var E in arguments[B]){var A=arguments[B][E];var D=C[E];if(D&&$type(A)=="object"&&$type(D)=="object"){C[E]=$merge(D,A)}else{C[E]=A}}}return C}var $extend=function(){var A=arguments;if(!A[1]){A=[this,A[0]]}for(var B in A[1]){A[0][B]=A[1][B]}return A[0]};var $native=function(){for(var B=0,A=arguments.length;B<A;B++){arguments[B].extend=function(C){for(var D in C){if(!this.prototype[D]){this.prototype[D]=C[D]}if(!this[D]){this[D]=$native.generic(D)}}}}};$native.generic=function(A){return function(B){return this.prototype[A].apply(B,Array.prototype.slice.call(arguments,1))}};$native(Function,Array,String,Number);function $chk(A){return !!(A||A===0)}function $pick(B,A){return $defined(B)?B:A}function $random(B,A){return Math.floor(Math.random()*(A-B+1)+B)}function $time(){return new Date().getTime()}function $clear(A){clearTimeout(A);clearInterval(A);return null}var Abstract=function(A){A=A||{};A.extend=$extend;return A};var Window=new Abstract(window);var Document=new Abstract(document);document.head=document.getElementsByTagName("head")[0];window.xpath=!!(document.evaluate);if(window.ActiveXObject){window.ie=window[window.XMLHttpRequest?"ie7":"ie6"]=true}else{if(document.childNodes&&!document.all&&!navigator.taintEnabled){window.webkit=window[window.xpath?"webkit420":"webkit419"]=true}else{if(document.getBoxObjectFor!=null){window.gecko=true}}}window.khtml=window.webkit;Object.extend=$extend;if(typeof HTMLElement=="undefined"){var HTMLElement=function(){};if(window.webkit){document.createElement("iframe")}HTMLElement.prototype=(window.webkit)?window["[[DOMElement.prototype]]"]:{}}HTMLElement.prototype.htmlElement=function(){};if(window.ie6){try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}}var Class=function(B){var A=function(){return(arguments[0]!==null&&this.initialize&&$type(this.initialize)=="function")?this.initialize.apply(this,arguments):this};$extend(A,this);A.prototype=B;A.constructor=Class;return A};Class.empty=function(){};Class.prototype={extend:function(B){var C=new this(null);for(var D in B){var A=C[D];C[D]=Class.Merge(A,B[D])}return new Class(C)},implement:function(){for(var B=0,A=arguments.length;B<A;B++){$extend(this.prototype,arguments[B])}}};Class.Merge=function(C,D){if(C&&C!=D){var B=$type(D);if(B!=$type(C)){return D}switch(B){case"function":var A=function(){this.parent=arguments.callee.parent;return D.apply(this,arguments)};A.parent=C;return A;case"object":return $merge(C,D)}}return D};var Chain=new Class({chain:function(A){this.chains=this.chains||[];this.chains.push(A);return this},callChain:function(){if(this.chains&&this.chains.length){this.chains.shift().delay(10,this)}},clearChain:function(){this.chains=[]}});var Events=new Class({addEvent:function(B,A){if(A!=Class.empty){this.$events=this.$events||{};this.$events[B]=this.$events[B]||[];this.$events[B].include(A)}return this},fireEvent:function(C,B,A){if(this.$events&&this.$events[C]){this.$events[C].each(function(D){D.create({bind:this,delay:A,"arguments":B})()},this)}return this},removeEvent:function(B,A){if(this.$events&&this.$events[B]){this.$events[B].remove(A)}return this}});var Options=new Class({setOptions:function(){this.options=$merge.apply(null,[this.options].extend(arguments));if(this.addEvent){for(var A in this.options){if($type(this.options[A]=="function")&&(/^on[A-Z]/).test(A)){this.addEvent(A,this.options[A])}}}return this}});Array.extend({forEach:function(C,D){for(var B=0,A=this.length;B<A;B++){C.call(D,this[B],B,this)}},filter:function(D,E){var C=[];for(var B=0,A=this.length;B<A;B++){if(D.call(E,this[B],B,this)){C.push(this[B])}}return C},map:function(D,E){var C=[];for(var B=0,A=this.length;B<A;B++){C[B]=D.call(E,this[B],B,this)}return C},every:function(C,D){for(var B=0,A=this.length;B<A;B++){if(!C.call(D,this[B],B,this)){return false}}return true},some:function(C,D){for(var B=0,A=this.length;B<A;B++){if(C.call(D,this[B],B,this)){return true}}return false},indexOf:function(C,D){var A=this.length;for(var B=(D<0)?Math.max(0,A+D):D||0;B<A;B++){if(this[B]===C){return B}}return -1},copy:function(D,C){D=D||0;if(D<0){D=this.length+D}C=C||(this.length-D);var A=[];for(var B=0;B<C;B++){A[B]=this[D++]}return A},remove:function(C){var B=0;var A=this.length;while(B<A){if(this[B]===C){this.splice(B,1);A--}else{B++}}return this},contains:function(A,B){return this.indexOf(A,B)!=-1},associate:function(C){var D={},B=Math.min(this.length,C.length);for(var A=0;A<B;A++){D[C[A]]=this[A]}return D},extend:function(C){for(var B=0,A=C.length;B<A;B++){this.push(C[B])}return this},merge:function(C){for(var B=0,A=C.length;B<A;B++){this.include(C[B])}return this},include:function(A){if(!this.contains(A)){this.push(A)}return this},getRandom:function(){return this[$random(0,this.length-1)]||null},getLast:function(){return this[this.length-1]||null}});Array.prototype.each=Array.prototype.forEach;Array.each=Array.forEach;function $A(A){return Array.copy(A)}function $each(C,B,D){if(C&&typeof C.length=="number"&&$type(C)!="object"){Array.forEach(C,B,D)}else{for(var A in C){B.call(D||C,C[A],A)}}}Array.prototype.test=Array.prototype.contains;String.extend({test:function(A,B){return(($type(A)=="string")?new RegExp(A,B):A).test(this)},toInt:function(){return parseInt(this,10)},toFloat:function(){return parseFloat(this)},camelCase:function(){return this.replace(/-\D/g,function(A){return A.charAt(1).toUpperCase()})},hyphenate:function(){return this.replace(/\w[A-Z]/g,function(A){return(A.charAt(0)+"-"+A.charAt(1).toLowerCase())})},capitalize:function(){return this.replace(/\b[a-z]/g,function(A){return A.toUpperCase()})},trim:function(){return this.replace(/^\s+|\s+$/g,"")},clean:function(){return this.replace(/\s{2,}/g," ").trim()},rgbToHex:function(B){var A=this.match(/\d{1,3}/g);return(A)?A.rgbToHex(B):false},hexToRgb:function(B){var A=this.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/);return(A)?A.slice(1).hexToRgb(B):false},contains:function(A,B){return(B)?(B+this+B).indexOf(B+A+B)>-1:this.indexOf(A)>-1},escapeRegExp:function(){return this.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")}});Array.extend({rgbToHex:function(D){if(this.length<3){return false}if(this.length==4&&this[3]==0&&!D){return"transparent"}var B=[];for(var A=0;A<3;A++){var C=(this[A]-0).toString(16);B.push((C.length==1)?"0"+C:C)}return D?B:"#"+B.join("")},hexToRgb:function(C){if(this.length!=3){return false}var A=[];for(var B=0;B<3;B++){A.push(parseInt((this[B].length==1)?this[B]+this[B]:this[B],16))}return C?A:"rgb("+A.join(",")+")"}});Function.extend({create:function(A){var B=this;A=$merge({bind:B,event:false,"arguments":null,delay:false,periodical:false,attempt:false},A);if($chk(A.arguments)&&$type(A.arguments)!="array"){A.arguments=[A.arguments]}return function(E){var C;if(A.event){E=E||window.event;C=[(A.event===true)?E:new A.event(E)];if(A.arguments){C.extend(A.arguments)}}else{C=A.arguments||arguments}var F=function(){return B.apply($pick(A.bind,B),C)};if(A.delay){return setTimeout(F,A.delay)}if(A.periodical){return setInterval(F,A.periodical)}if(A.attempt){try{return F()}catch(D){return false}}return F()}},pass:function(A,B){return this.create({"arguments":A,bind:B})},attempt:function(A,B){return this.create({"arguments":A,bind:B,attempt:true})()},bind:function(B,A){return this.create({bind:B,"arguments":A})},bindAsEventListener:function(B,A){return this.create({bind:B,event:true,"arguments":A})},delay:function(B,C,A){return this.create({delay:B,bind:C,"arguments":A})()},periodical:function(A,C,B){return this.create({periodical:A,bind:C,"arguments":B})()}});Number.extend({toInt:function(){return parseInt(this)},toFloat:function(){return parseFloat(this)},limit:function(B,A){return Math.min(A,Math.max(B,this))},round:function(A){A=Math.pow(10,A||0);return Math.round(this*A)/A},times:function(B){for(var A=0;A<this;A++){B(A)}}});var Element=new Class({initialize:function(D,C){if($type(D)=="string"){if(window.ie&&C&&(C.name||C.type)){var A=(C.name)?' name="'+C.name+'"':"";var B=(C.type)?' type="'+C.type+'"':"";delete C.name;delete C.type;D="<"+D+A+B+">"}D=document.createElement(D)}D=$(D);return(!C||!D)?D:D.set(C)}});var Elements=new Class({initialize:function(A){return(A)?$extend(A,this):this}});Elements.extend=function(A){for(var B in A){this.prototype[B]=A[B];this[B]=$native.generic(B)}};function $(B){if(!B){return null}if(B.htmlElement){return Garbage.collect(B)}if([window,document].contains(B)){return B}var A=$type(B);if(A=="string"){B=document.getElementById(B);A=(B)?"element":false}if(A!="element"){return null}if(B.htmlElement){return Garbage.collect(B)}if(["object","embed"].contains(B.tagName.toLowerCase())){return B}$extend(B,Element.prototype);B.htmlElement=function(){};return Garbage.collect(B)}document.getElementsBySelector=document.getElementsByTagName;function $$(){var D=[];for(var C=0,B=arguments.length;C<B;C++){var A=arguments[C];switch($type(A)){case"element":D.push(A);case"boolean":break;case false:break;case"string":A=document.getElementsBySelector(A,true);default:D.extend(A)}}return $$.unique(D)}$$.unique=function(G){var D=[];for(var C=0,A=G.length;C<A;C++){if(G[C].$included){continue}var B=$(G[C]);if(B&&!B.$included){B.$included=true;D.push(B)}}for(var F=0,E=D.length;F<E;F++){D[F].$included=null}return new Elements(D)};Elements.Multi=function(A){return function(){var D=arguments;var B=[];var G=true;for(var E=0,C=this.length,F;E<C;E++){F=this[E][A].apply(this[E],D);if($type(F)!="element"){G=false}B.push(F)}return(G)?$$.unique(B):B}};Element.extend=function(A){for(var B in A){HTMLElement.prototype[B]=A[B];Element.prototype[B]=A[B];Element[B]=$native.generic(B);var C=(Array.prototype[B])?B+"Elements":B;Elements.prototype[C]=Elements.Multi(B)}};Element.extend({set:function(A){for(var C in A){var B=A[C];switch(C){case"styles":this.setStyles(B);break;case"events":if(this.addEvents){this.addEvents(B)}break;case"properties":this.setProperties(B);break;default:this.setProperty(C,B)}}return this},inject:function(C,A){C=$(C);switch(A){case"before":C.parentNode.insertBefore(this,C);break;case"after":var B=C.getNext();if(!B){C.parentNode.appendChild(this)}else{C.parentNode.insertBefore(this,B)}break;case"top":var D=C.firstChild;if(D){C.insertBefore(this,D);break}default:C.appendChild(this)}return this},injectBefore:function(A){return this.inject(A,"before")},injectAfter:function(A){return this.inject(A,"after")},injectInside:function(A){return this.inject(A,"bottom")},injectTop:function(A){return this.inject(A,"top")},adopt:function(){var A=[];$each(arguments,function(B){A=A.concat(B)});$$(A).inject(this);return this},remove:function(){return this.parentNode.removeChild(this)},clone:function(C){var B=$(this.cloneNode(C!==false));if(!B.$events){return B}B.$events={};for(var A in this.$events){B.$events[A]={keys:$A(this.$events[A].keys),values:$A(this.$events[A].values)}}return B.removeEvents()},replaceWith:function(A){A=$(A);this.parentNode.replaceChild(A,this);return A},appendText:function(A){this.appendChild(document.createTextNode(A));return this},hasClass:function(A){return this.className.contains(A," ")},addClass:function(A){if(!this.hasClass(A)){this.className=(this.className+" "+A).clean()}return this},removeClass:function(A){this.className=this.className.replace(new RegExp("(^|\\s)"+A+"(?:\\s|$)"),"$1").clean();return this},toggleClass:function(A){return this.hasClass(A)?this.removeClass(A):this.addClass(A)},setStyle:function(B,A){switch(B){case"opacity":return this.setOpacity(parseFloat(A));case"float":B=(window.ie)?"styleFloat":"cssFloat"}B=B.camelCase();switch($type(A)){case"number":if(!["zIndex","zoom"].contains(B)){A+="px"}break;case"array":A="rgb("+A.join(",")+")"}this.style[B]=A;return this},setStyles:function(A){switch($type(A)){case"object":Element.setMany(this,"setStyle",A);break;case"string":this.style.cssText=A}return this},setOpacity:function(A){if(A==0){if(this.style.visibility!="hidden"){this.style.visibility="hidden"}}else{if(this.style.visibility!="visible"){this.style.visibility="visible"}}if(!this.currentStyle||!this.currentStyle.hasLayout){this.style.zoom=1}if(window.ie){this.style.filter=(A==1)?"":"alpha(opacity="+A*100+")"}this.style.opacity=this.$tmp.opacity=A;return this},getStyle:function(C){C=C.camelCase();var A=this.style[C];if(!$chk(A)){if(C=="opacity"){return this.$tmp.opacity}A=[];for(var B in Element.Styles){if(C==B){Element.Styles[B].each(function(F){var E=this.getStyle(F);A.push(parseInt(E)?E:"0px")},this);if(C=="border"){var D=A.every(function(E){return(E==A[0])});return(D)?A[0]:false}return A.join(" ")}}if(C.contains("border")){if(Element.Styles.border.contains(C)){return["Width","Style","Color"].map(function(E){return this.getStyle(C+E)},this).join(" ")}else{if(Element.borderShort.contains(C)){return["Top","Right","Bottom","Left"].map(function(E){return this.getStyle("border"+E+C.replace("border",""))},this).join(" ")}}}if(document.defaultView){A=document.defaultView.getComputedStyle(this,null).getPropertyValue(C.hyphenate())}else{if(this.currentStyle){A=this.currentStyle[C]}}}if(window.ie){A=Element.fixStyle(C,A,this)}if(A&&C.test(/color/i)&&A.contains("rgb")){return A.split("rgb").splice(1,4).map(function(E){return E.rgbToHex()}).join(" ")}return A},getStyles:function(){return Element.getMany(this,"getStyle",arguments)},walk:function(A,C){A+="Sibling";var B=(C)?this[C]:this[A];while(B&&$type(B)!="element"){B=B[A]}return $(B)},getPrevious:function(){return this.walk("previous")},getNext:function(){return this.walk("next")},getFirst:function(){return this.walk("next","firstChild")},getLast:function(){return this.walk("previous","lastChild")},getParent:function(){return $(this.parentNode)},getChildren:function(){return $$(this.childNodes)},hasChild:function(A){return !!$A(this.getElementsByTagName("*")).contains(A)},getProperty:function(D){var B=Element.Properties[D];if(B){return this[B]}var A=Element.PropertiesIFlag[D]||0;if(!window.ie||A){return this.getAttribute(D,A)}var C=this.attributes[D];return(C)?C.nodeValue:null},removeProperty:function(B){var A=Element.Properties[B];if(A){this[A]=""}else{this.removeAttribute(B)}return this},getProperties:function(){return Element.getMany(this,"getProperty",arguments)},setProperty:function(C,B){var A=Element.Properties[C];if(A){this[A]=B}else{this.setAttribute(C,B)}return this},setProperties:function(A){return Element.setMany(this,"setProperty",A)},setHTML:function(){this.innerHTML=$A(arguments).join("");return this},setText:function(B){var A=this.getTag();if(["style","script"].contains(A)){if(window.ie){if(A=="style"){this.styleSheet.cssText=B}else{if(A=="script"){this.setProperty("text",B)}}return this}else{this.removeChild(this.firstChild);return this.appendText(B)}}this[$defined(this.innerText)?"innerText":"textContent"]=B;return this},getText:function(){var A=this.getTag();if(["style","script"].contains(A)){if(window.ie){if(A=="style"){return this.styleSheet.cssText}else{if(A=="script"){return this.getProperty("text")}}}else{return this.innerHTML}}return($pick(this.innerText,this.textContent))},getTag:function(){return this.tagName.toLowerCase()},empty:function(){Garbage.trash(this.getElementsByTagName("*"));return this.setHTML("")}});Element.fixStyle=function(E,A,D){if($chk(parseInt(A))){return A}if(["height","width"].contains(E)){var B=(E=="width")?["left","right"]:["top","bottom"];var C=0;B.each(function(F){C+=D.getStyle("border-"+F+"-width").toInt()+D.getStyle("padding-"+F).toInt()});return D["offset"+E.capitalize()]-C+"px"}else{if(E.test(/border(.+)Width|margin|padding/)){return"0px"}}return A};Element.Styles={border:[],padding:[],margin:[]};["Top","Right","Bottom","Left"].each(function(B){for(var A in Element.Styles){Element.Styles[A].push(A+B)}});Element.borderShort=["borderWidth","borderStyle","borderColor"];Element.getMany=function(B,D,C){var A={};$each(C,function(E){A[E]=B[D](E)});return A};Element.setMany=function(B,D,C){for(var A in C){B[D](A,C[A])}return B};Element.Properties=new Abstract({"class":"className","for":"htmlFor",colspan:"colSpan",rowspan:"rowSpan",accesskey:"accessKey",tabindex:"tabIndex",maxlength:"maxLength",readonly:"readOnly",frameborder:"frameBorder",value:"value",disabled:"disabled",checked:"checked",multiple:"multiple",selected:"selected"});Element.PropertiesIFlag={href:2,src:2};Element.Methods={Listeners:{addListener:function(B,A){if(this.addEventListener){this.addEventListener(B,A,false)}else{this.attachEvent("on"+B,A)}return this},removeListener:function(B,A){if(this.removeEventListener){this.removeEventListener(B,A,false)}else{this.detachEvent("on"+B,A)}return this}}};window.extend(Element.Methods.Listeners);document.extend(Element.Methods.Listeners);Element.extend(Element.Methods.Listeners);var Garbage={elements:[],collect:function(A){if(!A.$tmp){Garbage.elements.push(A);A.$tmp={opacity:1}}return A},trash:function(D){for(var B=0,A=D.length,C;B<A;B++){if(!(C=D[B])||!C.$tmp){continue}if(C.$events){C.fireEvent("trash").removeEvents()}for(var E in C.$tmp){C.$tmp[E]=null}for(var F in Element.prototype){C[F]=null}Garbage.elements[Garbage.elements.indexOf(C)]=null;C.htmlElement=C.$tmp=C=null}Garbage.elements.remove(null)},empty:function(){Garbage.collect(window);Garbage.collect(document);Garbage.trash(Garbage.elements)}};window.addListener("beforeunload",function(){window.addListener("unload",Garbage.empty);if(window.ie){window.addListener("unload",CollectGarbage)}});var Event=new Class({initialize:function(C){if(C&&C.$extended){return C}this.$extended=true;C=C||window.event;this.event=C;this.type=C.type;this.target=C.target||C.srcElement;if(this.target.nodeType==3){this.target=this.target.parentNode}this.shift=C.shiftKey;this.control=C.ctrlKey;this.alt=C.altKey;this.meta=C.metaKey;if(["DOMMouseScroll","mousewheel"].contains(this.type)){this.wheel=(C.wheelDelta)?C.wheelDelta/120:-(C.detail||0)/3}else{if(this.type.contains("key")){this.code=C.which||C.keyCode;for(var B in Event.keys){if(Event.keys[B]==this.code){this.key=B;break}}if(this.type=="keydown"){var A=this.code-111;if(A>0&&A<13){this.key="f"+A}}this.key=this.key||String.fromCharCode(this.code).toLowerCase()}else{if(this.type.test(/(click|mouse|menu)/)){this.page={x:C.pageX||C.clientX+document.documentElement.scrollLeft,y:C.pageY||C.clientY+document.documentElement.scrollTop};this.client={x:C.pageX?C.pageX-window.pageXOffset:C.clientX,y:C.pageY?C.pageY-window.pageYOffset:C.clientY};this.rightClick=(C.which==3)||(C.button==2);switch(this.type){case"mouseover":this.relatedTarget=C.relatedTarget||C.fromElement;break;case"mouseout":this.relatedTarget=C.relatedTarget||C.toElement}this.fixRelatedTarget()}}}return this},stop:function(){return this.stopPropagation().preventDefault()},stopPropagation:function(){if(this.event.stopPropagation){this.event.stopPropagation()}else{this.event.cancelBubble=true}return this},preventDefault:function(){if(this.event.preventDefault){this.event.preventDefault()}else{this.event.returnValue=false}return this}});Event.fix={relatedTarget:function(){if(this.relatedTarget&&this.relatedTarget.nodeType==3){this.relatedTarget=this.relatedTarget.parentNode}},relatedTargetGecko:function(){try{Event.fix.relatedTarget.call(this)}catch(A){this.relatedTarget=this.target}}};Event.prototype.fixRelatedTarget=(window.gecko)?Event.fix.relatedTargetGecko:Event.fix.relatedTarget;Event.keys=new Abstract({enter:13,up:38,down:40,left:37,right:39,esc:27,space:32,backspace:8,tab:9,"delete":46});Element.Methods.Events={addEvent:function(C,B){this.$events=this.$events||{};this.$events[C]=this.$events[C]||{keys:[],values:[]};if(this.$events[C].keys.contains(B)){return this}this.$events[C].keys.push(B);var A=C;var D=Element.Events[C];if(D){if(D.add){D.add.call(this,B)}if(D.map){B=D.map}if(D.type){A=D.type}}if(!this.addEventListener){B=B.create({bind:this,event:true})}this.$events[C].values.push(B);return(Element.NativeEvents.contains(A))?this.addListener(A,B):this},removeEvent:function(C,B){if(!this.$events||!this.$events[C]){return this}var F=this.$events[C].keys.indexOf(B);if(F==-1){return this}var A=this.$events[C].keys.splice(F,1)[0];var E=this.$events[C].values.splice(F,1)[0];var D=Element.Events[C];if(D){if(D.remove){D.remove.call(this,B)}if(D.type){C=D.type}}return(Element.NativeEvents.contains(C))?this.removeListener(C,E):this},addEvents:function(A){return Element.setMany(this,"addEvent",A)},removeEvents:function(A){if(!this.$events){return this}if(!A){for(var B in this.$events){this.removeEvents(B)}this.$events=null}else{if(this.$events[A]){this.$events[A].keys.each(function(C){this.removeEvent(A,C)},this);this.$events[A]=null}}return this},fireEvent:function(C,B,A){if(this.$events&&this.$events[C]){this.$events[C].keys.each(function(D){D.create({bind:this,delay:A,"arguments":B})()},this)}return this},cloneEvents:function(C,A){if(!C.$events){return this}if(!A){for(var B in C.$events){this.cloneEvents(C,B)}}else{if(C.$events[A]){C.$events[A].keys.each(function(D){this.addEvent(A,D)},this)}}return this}};window.extend(Element.Methods.Events);document.extend(Element.Methods.Events);Element.extend(Element.Methods.Events);Element.Events=new Abstract({mouseenter:{type:"mouseover",map:function(A){A=new Event(A);if(A.relatedTarget!=this&&!this.hasChild(A.relatedTarget)){this.fireEvent("mouseenter",A)}}},mouseleave:{type:"mouseout",map:function(A){A=new Event(A);if(A.relatedTarget!=this&&!this.hasChild(A.relatedTarget)){this.fireEvent("mouseleave",A)}}},mousewheel:{type:(window.gecko)?"DOMMouseScroll":"mousewheel"}});Element.NativeEvents=["click","dblclick","mouseup","mousedown","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","keydown","keypress","keyup","load","unload","beforeunload","resize","move","focus","blur","change","submit","reset","select","error","abort","contextmenu","scroll"];Function.extend({bindWithEvent:function(B,A){return this.create({bind:B,"arguments":A,event:Event})}});Elements.extend({filterByTag:function(A){return new Elements(this.filter(function(B){return(Element.getTag(B)==A)}))},filterByClass:function(A,C){var B=this.filter(function(D){return(D.className&&D.className.contains(A," "))});return(C)?B:new Elements(B)},filterById:function(C,B){var A=this.filter(function(D){return(D.id==C)});return(B)?A:new Elements(A)},filterByAttribute:function(B,A,D,E){var C=this.filter(function(F){var G=Element.getProperty(F,B);if(!G){return false}if(!A){return true}switch(A){case"=":return(G==D);case"*=":return(G.contains(D));case"^=":return(G.substr(0,D.length)==D);case"$=":return(G.substr(G.length-D.length)==D);case"!=":return(G!=D);case"~=":return G.contains(D," ")}return false});return(E)?C:new Elements(C)}});function $E(A,B){return($(B)||document).getElement(A)}function $ES(A,B){return($(B)||document).getElementsBySelector(A)}$$.shared={regexp:/^(\w*|\*)(?:#([\w-]+)|\.([\w-]+))?(?:\[(\w+)(?:([!*^$]?=)["']?([^"'\]]*)["']?)?])?$/,xpath:{getParam:function(B,D,E,C){var A=[D.namespaceURI?"xhtml:":"",E[1]];if(E[2]){A.push('[@id="',E[2],'"]')}if(E[3]){A.push('[contains(concat(" ", @class, " "), " ',E[3],' ")]')}if(E[4]){if(E[5]&&E[6]){switch(E[5]){case"*=":A.push("[contains(@",E[4],', "',E[6],'")]');break;case"^=":A.push("[starts-with(@",E[4],', "',E[6],'")]');break;case"$=":A.push("[substring(@",E[4],", string-length(@",E[4],") - ",E[6].length,' + 1) = "',E[6],'"]');break;case"=":A.push("[@",E[4],'="',E[6],'"]');break;case"!=":A.push("[@",E[4],'!="',E[6],'"]')}}else{A.push("[@",E[4],"]")}}B.push(A.join(""));return B},getItems:function(B,E,G){var F=[];var A=document.evaluate(".//"+B.join("//"),E,$$.shared.resolver,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(var D=0,C=A.snapshotLength;D<C;D++){F.push(A.snapshotItem(D))}return(G)?F:new Elements(F.map($))}},normal:{getParam:function(A,C,E,B){if(B==0){if(E[2]){var D=C.getElementById(E[2]);if(!D||((E[1]!="*")&&(Element.getTag(D)!=E[1]))){return false}A=[D]}else{A=$A(C.getElementsByTagName(E[1]))}}else{A=$$.shared.getElementsByTagName(A,E[1]);if(E[2]){A=Elements.filterById(A,E[2],true)}}if(E[3]){A=Elements.filterByClass(A,E[3],true)}if(E[4]){A=Elements.filterByAttribute(A,E[4],E[5],E[6],true)}return A},getItems:function(A,B,C){return(C)?A:$$.unique(A)}},resolver:function(A){return(A=="xhtml")?"http://www.w3.org/1999/xhtml":false},getElementsByTagName:function(D,C){var E=[];for(var B=0,A=D.length;B<A;B++){E.extend(D[B].getElementsByTagName(C))}return E}};$$.shared.method=(window.xpath)?"xpath":"normal";Element.Methods.Dom={getElements:function(A,H){var C=[];A=A.trim().split(" ");for(var E=0,D=A.length;E<D;E++){var F=A[E];var G=F.match($$.shared.regexp);if(!G){break}G[1]=G[1]||"*";var B=$$.shared[$$.shared.method].getParam(C,this,G,E);if(!B){break}C=B}return $$.shared[$$.shared.method].getItems(C,this,H)},getElement:function(A){return $(this.getElements(A,true)[0]||false)},getElementsBySelector:function(A,E){var D=[];A=A.split(",");for(var C=0,B=A.length;C<B;C++){D=D.concat(this.getElements(A[C],true))}return(E)?D:$$.unique(D)}};Element.extend({getElementById:function(C){var B=document.getElementById(C);if(!B){return false}for(var A=B.parentNode;A!=this;A=A.parentNode){if(!A){return false}}return B},getElementsByClassName:function(A){return this.getElements("."+A)}});document.extend(Element.Methods.Dom);Element.extend(Element.Methods.Dom);Element.extend({getValue:function(){switch(this.getTag()){case"select":var A=[];$each(this.options,function(B){if(B.selected){A.push($pick(B.value,B.text))}});return(this.multiple)?A:A[0];case"input":if(!(this.checked&&["checkbox","radio"].contains(this.type))&&!["hidden","text","password"].contains(this.type)){break}case"textarea":return this.value}return false},getFormElements:function(){return $$(this.getElementsByTagName("input"),this.getElementsByTagName("select"),this.getElementsByTagName("textarea"))},toQueryString:function(){var A=[];this.getFormElements().each(function(D){var C=D.name;var E=D.getValue();if(E===false||!C||D.disabled){return }var B=function(F){A.push(C+"="+encodeURIComponent(F))};if($type(E)=="array"){E.each(B)}else{B(E)}});return A.join("&")}});Element.extend({scrollTo:function(A,B){this.scrollLeft=A;this.scrollTop=B},getSize:function(){return{scroll:{x:this.scrollLeft,y:this.scrollTop},size:{x:this.offsetWidth,y:this.offsetHeight},scrollSize:{x:this.scrollWidth,y:this.scrollHeight}}},getPosition:function(A){A=A||[];var B=this,D=0,C=0;do{D+=B.offsetLeft||0;C+=B.offsetTop||0;B=B.offsetParent}while(B);A.each(function(E){D-=E.scrollLeft||0;C-=E.scrollTop||0});return{x:D,y:C}},getTop:function(A){return this.getPosition(A).y},getLeft:function(A){return this.getPosition(A).x},getCoordinates:function(B){var A=this.getPosition(B);var C={width:this.offsetWidth,height:this.offsetHeight,left:A.x,top:A.y};C.right=C.left+C.width;C.bottom=C.top+C.height;return C}});Element.Events.domready={add:function(B){if(window.loaded){B.call(this);return }var A=function(){if(window.loaded){return }window.loaded=true;window.timer=$clear(window.timer);this.fireEvent("domready")}.bind(this);if(document.readyState&&window.webkit){window.timer=function(){if(["loaded","complete"].contains(document.readyState)){A()}}.periodical(50)}else{if(document.readyState&&window.ie){if(!$("ie_ready")){var C=(window.location.protocol=="https:")?"://0":"javascript:void(0)";document.write('<script id="ie_ready" defer src="'+C+'"><\/script>');$("ie_ready").onreadystatechange=function(){if(this.readyState=="complete"){A()}}}}else{window.addListener("load",A);document.addListener("DOMContentLoaded",A)}}}};window.onDomReady=function(A){return this.addEvent("domready",A)};window.extend({getWidth:function(){if(this.webkit419){return this.innerWidth}if(this.opera){return document.body.clientWidth}return document.documentElement.clientWidth},getHeight:function(){if(this.webkit419){return this.innerHeight}if(this.opera){return document.body.clientHeight}return document.documentElement.clientHeight},getScrollWidth:function(){if(this.ie){return Math.max(document.documentElement.offsetWidth,document.documentElement.scrollWidth)}if(this.webkit){return document.body.scrollWidth}return document.documentElement.scrollWidth},getScrollHeight:function(){if(this.ie){return Math.max(document.documentElement.offsetHeight,document.documentElement.scrollHeight)}if(this.webkit){return document.body.scrollHeight}return document.documentElement.scrollHeight},getScrollLeft:function(){return this.pageXOffset||document.documentElement.scrollLeft},getScrollTop:function(){return this.pageYOffset||document.documentElement.scrollTop},getSize:function(){return{size:{x:this.getWidth(),y:this.getHeight()},scrollSize:{x:this.getScrollWidth(),y:this.getScrollHeight()},scroll:{x:this.getScrollLeft(),y:this.getScrollTop()}}},getPosition:function(){return{x:0,y:0}}});var Fx={};Fx.Base=new Class({options:{onStart:Class.empty,onComplete:Class.empty,onCancel:Class.empty,transition:function(A){return -(Math.cos(Math.PI*A)-1)/2},duration:500,unit:"px",wait:true,fps:50},initialize:function(A){this.element=this.element||null;this.setOptions(A);if(this.options.initialize){this.options.initialize.call(this)}},step:function(){var A=$time();if(A<this.time+this.options.duration){this.delta=this.options.transition((A-this.time)/this.options.duration);this.setNow();this.increase()}else{this.stop(true);this.set(this.to);this.fireEvent("onComplete",this.element,10);this.callChain()}},set:function(A){this.now=A;this.increase();return this},setNow:function(){this.now=this.compute(this.from,this.to)},compute:function(B,A){return(A-B)*this.delta+B},start:function(B,A){if(!this.options.wait){this.stop()}else{if(this.timer){return this}}this.from=B;this.to=A;this.change=this.to-this.from;this.time=$time();this.timer=this.step.periodical(Math.round(1000/this.options.fps),this);this.fireEvent("onStart",this.element);return this},stop:function(A){if(!this.timer){return this}this.timer=$clear(this.timer);if(!A){this.fireEvent("onCancel",this.element)}return this},custom:function(B,A){return this.start(B,A)},clearTimer:function(A){return this.stop(A)}});Fx.Base.implement(new Chain,new Events,new Options);Fx.CSS={select:function(B,C){if(B.test(/color/i)){return this.Color}var A=$type(C);if((A=="array")||(A=="string"&&C.contains(" "))){return this.Multi}return this.Single},parse:function(C,D,A){if(!A.push){A=[A]}var F=A[0],E=A[1];if(!$chk(E)){E=F;F=C.getStyle(D)}var B=this.select(D,E);return{from:B.parse(F),to:B.parse(E),css:B}}};Fx.CSS.Single={parse:function(A){return parseFloat(A)},getNow:function(C,B,A){return A.compute(C,B)},getValue:function(C,A,B){if(A=="px"&&B!="opacity"){C=Math.round(C)}return C+A}};Fx.CSS.Multi={parse:function(A){return A.push?A:A.split(" ").map(function(B){return parseFloat(B)})},getNow:function(E,D,C){var A=[];for(var B=0;B<E.length;B++){A[B]=C.compute(E[B],D[B])}return A},getValue:function(C,A,B){if(A=="px"&&B!="opacity"){C=C.map(Math.round)}return C.join(A+" ")+A}};Fx.CSS.Color={parse:function(A){return A.push?A:A.hexToRgb(true)},getNow:function(E,D,C){var A=[];for(var B=0;B<E.length;B++){A[B]=Math.round(C.compute(E[B],D[B]))}return A},getValue:function(A){return"rgb("+A.join(",")+")"}};Fx.Style=Fx.Base.extend({initialize:function(B,C,A){this.element=$(B);this.property=C;this.parent(A)},hide:function(){return this.set(0)},setNow:function(){this.now=this.css.getNow(this.from,this.to,this)},set:function(A){this.css=Fx.CSS.select(this.property,A);return this.parent(this.css.parse(A))},start:function(C,B){if(this.timer&&this.options.wait){return this}var A=Fx.CSS.parse(this.element,this.property,[C,B]);this.css=A.css;return this.parent(A.from,A.to)},increase:function(){this.element.setStyle(this.property,this.css.getValue(this.now,this.options.unit,this.property))}});Element.extend({effect:function(B,A){return new Fx.Style(this,B,A)}});Fx.Styles=Fx.Base.extend({initialize:function(B,A){this.element=$(B);this.parent(A)},setNow:function(){for(var A in this.from){this.now[A]=this.css[A].getNow(this.from[A],this.to[A],this)}},set:function(C){var A={};this.css={};for(var B in C){this.css[B]=Fx.CSS.select(B,C[B]);A[B]=this.css[B].parse(C[B])}return this.parent(A)},start:function(C){if(this.timer&&this.options.wait){return this}this.now={};this.css={};var E={},D={};for(var B in C){var A=Fx.CSS.parse(this.element,B,C[B]);E[B]=A.from;D[B]=A.to;this.css[B]=A.css}return this.parent(E,D)},increase:function(){for(var A in this.now){this.element.setStyle(A,this.css[A].getValue(this.now[A],this.options.unit,A))}}});Element.extend({effects:function(A){return new Fx.Styles(this,A)}});Fx.Elements=Fx.Base.extend({initialize:function(B,A){this.elements=$$(B);this.parent(A)},setNow:function(){for(var C in this.from){var F=this.from[C],E=this.to[C],B=this.css[C],A=this.now[C]={};for(var D in F){A[D]=B[D].getNow(F[D],E[D],this)}}},set:function(G){var B={};this.css={};for(var D in G){var F=G[D],C=this.css[D]={},A=B[D]={};for(var E in F){C[E]=Fx.CSS.select(E,F[E]);A[E]=C[E].parse(F[E])}}return this.parent(B)},start:function(D){if(this.timer&&this.options.wait){return this}this.now={};this.css={};var I={},J={};for(var E in D){var G=D[E],A=I[E]={},H=J[E]={},C=this.css[E]={};for(var B in G){var F=Fx.CSS.parse(this.elements[E],B,G[B]);A[B]=F.from;H[B]=F.to;C[B]=F.css}}return this.parent(I,J)},increase:function(){for(var C in this.now){var A=this.now[C],B=this.css[C];for(var D in A){this.elements[C].setStyle(D,B[D].getValue(A[D],this.options.unit,D))}}}});Fx.Slide=Fx.Base.extend({options:{mode:"vertical"},initialize:function(B,A){this.element=$(B);this.wrapper=new Element("div",{styles:$extend(this.element.getStyles("margin"),{overflow:"hidden"})}).injectAfter(this.element).adopt(this.element);this.element.setStyle("margin",0);this.setOptions(A);this.now=[];this.parent(this.options);this.open=true;this.addEvent("onComplete",function(){this.open=(this.now[0]===0)});if(window.webkit419){this.addEvent("onComplete",function(){if(this.open){this.element.remove().inject(this.wrapper)}})}},setNow:function(){for(var A=0;A<2;A++){this.now[A]=this.compute(this.from[A],this.to[A])}},vertical:function(){this.margin="margin-top";this.layout="height";this.offset=this.element.offsetHeight},horizontal:function(){this.margin="margin-left";this.layout="width";this.offset=this.element.offsetWidth},slideIn:function(A){this[A||this.options.mode]();return this.start([this.element.getStyle(this.margin).toInt(),this.wrapper.getStyle(this.layout).toInt()],[0,this.offset])},slideOut:function(A){this[A||this.options.mode]();return this.start([this.element.getStyle(this.margin).toInt(),this.wrapper.getStyle(this.layout).toInt()],[-this.offset,0])},hide:function(A){this[A||this.options.mode]();this.open=false;return this.set([-this.offset,0])},show:function(A){this[A||this.options.mode]();this.open=true;return this.set([0,this.offset])},toggle:function(A){if(this.wrapper.offsetHeight==0||this.wrapper.offsetWidth==0){return this.slideIn(A)}return this.slideOut(A)},increase:function(){this.element.setStyle(this.margin,this.now[0]+this.options.unit);this.wrapper.setStyle(this.layout,this.now[1]+this.options.unit)}});Fx.Transition=function(B,A){A=A||[];if($type(A)!="array"){A=[A]}return $extend(B,{easeIn:function(C){return B(C,A)},easeOut:function(C){return 1-B(1-C,A)},easeInOut:function(C){return(C<=0.5)?B(2*C,A)/2:(2-B(2*(1-C),A))/2}})};Fx.Transitions=new Abstract({linear:function(A){return A}});Fx.Transitions.extend=function(A){for(var B in A){Fx.Transitions[B]=new Fx.Transition(A[B]);Fx.Transitions.compat(B)}};Fx.Transitions.compat=function(A){["In","Out","InOut"].each(function(B){Fx.Transitions[A.toLowerCase()+B]=Fx.Transitions[A]["ease"+B]})};Fx.Transitions.extend({Pow:function(B,A){return Math.pow(B,A[0]||6)},Expo:function(A){return Math.pow(2,8*(A-1))},Circ:function(A){return 1-Math.sin(Math.acos(A))},Sine:function(A){return 1-Math.sin((1-A)*Math.PI/2)},Back:function(B,A){A=A[0]||1.618;return Math.pow(B,2)*((A+1)*B-A)},Bounce:function(D){var C;for(var B=0,A=1;1;B+=A,A/=2){if(D>=(7-4*B)/11){C=-Math.pow((11-6*B-11*D)/4,2)+A*A;break}}return C},Elastic:function(B,A){return Math.pow(2,10*--B)*Math.cos(20*B*Math.PI*(A[0]||1)/3)}});["Quad","Cubic","Quart","Quint"].each(function(B,A){Fx.Transitions[B]=new Fx.Transition(function(C){return Math.pow(C,[A+2])});Fx.Transitions.compat(B)});var XHR=new Class({options:{method:"post",async:true,onRequest:Class.empty,onSuccess:Class.empty,onFailure:Class.empty,urlEncoded:true,encoding:"utf-8",autoCancel:false,headers:{}},setTransport:function(){this.transport=(window.XMLHttpRequest)?new XMLHttpRequest():(window.ie?new ActiveXObject("Microsoft.XMLHTTP"):false);return this},initialize:function(A){this.setTransport().setOptions(A);this.options.isSuccess=this.options.isSuccess||this.isSuccess;this.headers={};if(this.options.urlEncoded&&this.options.method=="post"){var B=(this.options.encoding)?"; charset="+this.options.encoding:"";this.setHeader("Content-type","application/x-www-form-urlencoded"+B)}if(this.options.initialize){this.options.initialize.call(this)}},onStateChange:function(){if(this.transport.readyState!=4||!this.running){return }this.running=false;var A=0;try{A=this.transport.status}catch(B){}if(this.options.isSuccess.call(this,A)){this.onSuccess()}else{this.onFailure()}this.transport.onreadystatechange=Class.empty},isSuccess:function(A){return((A>=200)&&(A<300))},onSuccess:function(){this.response={text:this.transport.responseText,xml:this.transport.responseXML};this.fireEvent("onSuccess",[this.response.text,this.response.xml]);this.callChain()},onFailure:function(){this.fireEvent("onFailure",this.transport)},setHeader:function(A,B){this.headers[A]=B;return this},send:function(A,C){if(this.options.autoCancel){this.cancel()}else{if(this.running){return this}}this.running=true;if(C&&this.options.method=="get"){A=A+(A.contains("?")?"&":"?")+C;C=null}this.transport.open(this.options.method.toUpperCase(),A,this.options.async);this.transport.onreadystatechange=this.onStateChange.bind(this);if((this.options.method=="post")&&this.transport.overrideMimeType){this.setHeader("Connection","close")}$extend(this.headers,this.options.headers);for(var B in this.headers){try{this.transport.setRequestHeader(B,this.headers[B])}catch(D){}}this.fireEvent("onRequest");this.transport.send($pick(C,null));return this},cancel:function(){if(!this.running){return this}this.running=false;this.transport.abort();this.transport.onreadystatechange=Class.empty;this.setTransport();this.fireEvent("onCancel");return this}});XHR.implement(new Chain,new Events,new Options);var Ajax=XHR.extend({options:{data:null,update:null,onComplete:Class.empty,evalScripts:false,evalResponse:false},initialize:function(B,A){this.addEvent("onSuccess",this.onComplete);this.setOptions(A);this.options.data=this.options.data||this.options.postBody;if(!["post","get"].contains(this.options.method)){this._method="_method="+this.options.method;this.options.method="post"}this.parent();this.setHeader("X-Requested-With","XMLHttpRequest");this.setHeader("Accept","text/javascript, text/html, application/xml, text/xml, */*");this.url=B},onComplete:function(){if(this.options.update){$(this.options.update).empty().setHTML(this.response.text)}if(this.options.evalScripts||this.options.evalResponse){this.evalScripts()}this.fireEvent("onComplete",[this.response.text,this.response.xml],20)},request:function(A){A=A||this.options.data;switch($type(A)){case"element":A=$(A).toQueryString();break;case"object":A=Object.toQueryString(A)}if(this._method){A=(A)?[this._method,A].join("&"):this._method}return this.send(this.url,A)},evalScripts:function(){var B,A;if(this.options.evalResponse||(/(ecma|java)script/).test(this.getHeader("Content-type"))){A=this.response.text}else{A=[];var C=/<script[^>]*>([\s\S]*?)<\/script>/gi;while((B=C.exec(this.response.text))){A.push(B[1])}A=A.join("\n")}if(A){(window.execScript)?window.execScript(A):window.setTimeout(A,0)}},getHeader:function(A){try{return this.transport.getResponseHeader(A)}catch(B){}return null}});Object.toQueryString=function(B){var C=[];for(var A in B){C.push(encodeURIComponent(A)+"="+encodeURIComponent(B[A]))}return C.join("&")};Element.extend({send:function(A){return new Ajax(this.getProperty("action"),$merge({data:this.toQueryString()},A,{method:"post"})).request()}});var Tips=new Class({options:{onShow:function(A){A.setStyle("visibility","visible")},onHide:function(A){A.setStyle("visibility","hidden")},maxTitleChars:30,showDelay:100,hideDelay:100,className:"tool",offsets:{x:16,y:16},fixed:false},initialize:function(B,A){this.setOptions(A);this.toolTip=new Element("div",{"class":this.options.className+"-tip",styles:{position:"absolute",top:"0",left:"0",visibility:"hidden"}}).inject(document.body);this.wrapper=new Element("div").inject(this.toolTip);$$(B).each(this.build,this);if(this.options.initialize){this.options.initialize.call(this)}},build:function(B){B.$tmp.myTitle=(B.href&&B.getTag()=="a")?B.href.replace("http://",""):(B.rel||false);if(B.title){var C=B.title.split("::");if(C.length>1){B.$tmp.myTitle=C[0].trim();B.$tmp.myText=C[1].trim()}else{B.$tmp.myText=B.title}B.removeAttribute("title")}else{B.$tmp.myText=false}if(B.$tmp.myTitle&&B.$tmp.myTitle.length>this.options.maxTitleChars){B.$tmp.myTitle=B.$tmp.myTitle.substr(0,this.options.maxTitleChars-1)+"&hellip;"}B.addEvent("mouseenter",function(D){this.start(B);if(!this.options.fixed){this.locate(D)}else{this.position(B)}}.bind(this));if(!this.options.fixed){B.addEvent("mousemove",this.locate.bindWithEvent(this))}var A=this.end.bind(this);B.addEvent("mouseleave",A);B.addEvent("trash",A)},start:function(A){this.wrapper.empty();if(A.$tmp.myTitle){this.title=new Element("span").inject(new Element("div",{"class":this.options.className+"-title"}).inject(this.wrapper)).setHTML(A.$tmp.myTitle)}if(A.$tmp.myText){this.text=new Element("span").inject(new Element("div",{"class":this.options.className+"-text"}).inject(this.wrapper)).setHTML(A.$tmp.myText)}$clear(this.timer);this.timer=this.show.delay(this.options.showDelay,this)},end:function(A){$clear(this.timer);this.timer=this.hide.delay(this.options.hideDelay,this)},position:function(A){var B=A.getPosition();this.toolTip.setStyles({left:B.x+this.options.offsets.x,top:B.y+this.options.offsets.y})},locate:function(B){var D={x:window.getWidth(),y:window.getHeight()};var A={x:window.getScrollLeft(),y:window.getScrollTop()};var C={x:this.toolTip.offsetWidth,y:this.toolTip.offsetHeight};var G={x:"left",y:"top"};for(var E in G){var F=B.page[E]+this.options.offsets[E];if((F+C[E]-A[E])>D[E]){F=B.page[E]-this.options.offsets[E]-C[E]}this.toolTip.setStyle(G[E],F)}},show:function(){if(this.options.timeout){this.timer=this.hide.delay(this.options.timeout,this)}this.fireEvent("onShow",[this.toolTip])},hide:function(){this.fireEvent("onHide",[this.toolTip])}});Tips.implement(new Events,new Options);var Accordion=Fx.Elements.extend({options:{onActive:Class.empty,onBackground:Class.empty,display:0,show:false,height:true,width:false,opacity:true,fixedHeight:false,fixedWidth:false,wait:false,alwaysHide:false},initialize:function(){var C,E,F,B;$each(arguments,function(I,H){switch($type(I)){case"object":C=I;break;case"element":B=$(I);break;default:var G=$$(I);if(!E){E=G}else{F=G}}});this.togglers=E||[];this.elements=F||[];this.container=$(B);this.setOptions(C);this.previous=-1;if(this.options.alwaysHide){this.options.wait=true}if($chk(this.options.show)){this.options.display=false;this.previous=this.options.show}if(this.options.start){this.options.display=false;this.options.show=false}this.effects={};if(this.options.opacity){this.effects.opacity="fullOpacity"}if(this.options.width){this.effects.width=this.options.fixedWidth?"fullWidth":"offsetWidth"}if(this.options.height){this.effects.height=this.options.fixedHeight?"fullHeight":"scrollHeight"}for(var D=0,A=this.togglers.length;D<A;D++){this.addSection(this.togglers[D],this.elements[D])}this.elements.each(function(H,G){if(this.options.show===G){this.fireEvent("onActive",[this.togglers[G],H])}else{for(var I in this.effects){H.setStyle(I,0)}}},this);this.parent(this.elements);if($chk(this.options.display)){this.display(this.options.display)}},addSection:function(E,C,G){E=$(E);C=$(C);var F=this.togglers.contains(E);var B=this.togglers.length;this.togglers.include(E);this.elements.include(C);if(B&&(!F||G)){G=$pick(G,B-1);E.injectBefore(this.togglers[G]);C.injectAfter(E)}else{if(this.container&&!F){E.inject(this.container);C.inject(this.container)}}var A=this.togglers.indexOf(E);E.addEvent("click",this.display.bind(this,A));if(this.options.height){C.setStyles({"padding-top":0,"border-top":"none","padding-bottom":0,"border-bottom":"none"})}if(this.options.width){C.setStyles({"padding-left":0,"border-left":"none","padding-right":0,"border-right":"none"})}C.fullOpacity=1;if(this.options.fixedWidth){C.fullWidth=this.options.fixedWidth}if(this.options.fixedHeight){C.fullHeight=this.options.fixedHeight}C.setStyle("overflow","hidden");if(!F){for(var D in this.effects){C.setStyle(D,0)}}return this},display:function(A){A=($type(A)=="element")?this.elements.indexOf(A):A;if((this.timer&&this.options.wait)||(A===this.previous&&!this.options.alwaysHide)){return this}this.previous=A;var B={};this.elements.each(function(E,D){B[D]={};var C=(D!=A)||(this.options.alwaysHide&&(E.offsetHeight>0));this.fireEvent(C?"onBackground":"onActive",[this.togglers[D],E]);for(var F in this.effects){B[D][F]=C?0:E[this.effects[F]]}},this);return this.start(B)},showThisHideOpen:function(A){return this.display(A)}});Fx.Accordion=Accordion;
	var list=$$(".LTBl li.fx a");list.each(function(B){var A=new Fx.Styles(B,{duration:200,wait:false});B.addEvent("mouseenter",function(){A.start({"padding-left":5})});B.addEvent("mouseleave",function(){A.start({"padding-left":0})})});
	var hs={graphicsDir:"/images/highslide/",restoreCursor:"zoomout.cur",expandSteps:10,expandDuration:250,restoreSteps:10,restoreDuration:250,marginLeft:15,marginRight:15,marginTop:15,marginBottom:15,zIndexCounter:1001,restoreTitle:"Click to close image, click and drag to move. Use arrow keys for next and previous.",loadingText:"Loading...",loadingTitle:"Click to cancel",loadingOpacity:0.75,focusTitle:"Click to bring to front",allowMultipleInstances:true,numberOfImagesToPreload:5,captionSlideSpeed:1,padToMinWidth:false,outlineWhileAnimating:2,outlineStartOffset:3,fullExpandTitle:"Expand to actual size",fullExpandPosition:"bottom right",fullExpandOpacity:1,showCredits:true,creditsText:"Powered by <i>Highslide JS</i>",creditsHref:"http://vikjavev.no/highslide/",creditsTitle:"Go to the Highslide JS homepage",enableKeyListener:true,previousText:"Previous",nextText:"Next",moveText:"Move",closeText:"Close",closeTitle:"Click to close",resizeTitle:"Resize",allowWidthReduction:false,allowHeightReduction:true,preserveContent:true,objectLoadTime:"before",cacheAjax:true,captionId:null,spaceForCaption:30,slideshowGroup:null,minWidth:200,minHeight:200,allowSizeReduction:true,outlineType:"drop-shadow",wrapperClassName:"highslide-wrapper",preloadTheseImages:[],continuePreloading:true,expanders:[],overrides:["allowSizeReduction","outlineType","outlineWhileAnimating","spaceForCaption","captionId","captionText","captionEval","contentId","width","height","allowWidthReduction","allowHeightReduction","preserveContent","objectType","cacheAjax","objectWidth","objectHeight","objectLoadTime","swfObject","wrapperClassName","minWidth","minHeight","slideshowGroup","easing","easingClose","fadeInOut"],overlays:[],idCounter:0,faders:[],pendingOutlines:{},sleeping:[],preloadTheseAjax:[],cacheBindings:[],cachedGets:{},clones:{},ie:(document.all&&!window.opera),safari:/Safari/.test(navigator.userAgent),geckoMac:/Macintosh.+rv:1\.[0-8].+Gecko/.test(navigator.userAgent),$:function(A){return document.getElementById(A)},push:function(A,B){A[A.length]=B},createElement:function(A,F,E,D,C){var B=document.createElement(A);if(F){hs.setAttribs(B,F)}if(C){hs.setStyles(B,{padding:0,border:"none",margin:0})}if(E){hs.setStyles(B,E)}if(D){D.appendChild(B)}return B},setAttribs:function(B,C){for(var A in C){B[A]=C[A]}},setStyles:function(B,C){for(var A in C){try{if(hs.ie&&A=="opacity"){if(C[A]>0.99){B.style.removeAttribute("filter")}else{B.style.filter="alpha(opacity="+(C[A]*100)+")"}}else{B.style[A]=C[A]}}catch(D){}}},ieVersion:function(){var A=navigator.appVersion.split("MSIE");return A[1]?parseFloat(A[1]):null},getPageSize:function(){var C=document.compatMode&&document.compatMode!="BackCompat"?document.documentElement:document.body;var B=hs.ie?C.clientWidth:(document.documentElement.clientWidth||self.innerWidth),A=hs.ie?C.clientHeight:self.innerHeight;return{width:B,height:A,scrollLeft:hs.ie?C.scrollLeft:pageXOffset,scrollTop:hs.ie?C.scrollTop:pageYOffset}},position:function(A){var B={x:A.offsetLeft,y:A.offsetTop};while(A.offsetParent){A=A.offsetParent;B.x+=A.offsetLeft;B.y+=A.offsetTop;if(A!=document.body&&A!=document.documentElement){B.x-=A.scrollLeft;B.y-=A.scrollTop}}return B},expand:function(A,D,B){if(A.getParams){return D}try{new hs.Expander(A,D,B);return false}catch(C){return true}},htmlExpand:function(A,E,C){if(A.getParams){return E}for(var B=0;B<hs.sleeping.length;B++){if(hs.sleeping[B]&&hs.sleeping[B].a==A){hs.sleeping[B].awake();hs.sleeping[B]=null;return false}}try{hs.hasHtmlexpanders=true;new hs.Expander(A,E,C,"html");return false}catch(D){return true}},getElementByClass:function(E,C,D){var B=E.getElementsByTagName(C);for(var A=0;A<B.length;A++){if((new RegExp(D)).test(B[A].className)){return B[A]}}return null},getSelfRendered:function(){var A='<div class="highslide-header"><ul><li class="highslide-previous"><a onclick="return hs.previous(this)" href="#">'+hs.previousText+'</a></li><li class="highslide-next"><a onclick="return hs.next(this)" href="#">'+hs.nextText+'</a></li><li class="highslide-move"><a href="#" onclick="return false">'+hs.moveText+'</a></li><li class="highslide-close"><a onclick="return hs.close(this)" title="'+hs.closeTitle+'" href="#">'+hs.closeText+'</a></li></ul></div><div class="highslide-body"></div><div class="highslide-footer"><div><span class="highslide-resize" title="'+hs.resizeTitle+'"><span></span></span></div></div>';return hs.createElement("div",{className:"highslide-html-content",innerHTML:A})},getCacheBinding:function(A){for(var B=0;B<hs.cacheBindings.length;B++){if(hs.cacheBindings[B][0]==A){var C=hs.cacheBindings[B][1];hs.cacheBindings[B][1]=C.cloneNode(1);return C}}return null},preloadAjax:function(D){var E=document.getElementsByTagName("A");var A,C;for(var B=0;B<E.length;B++){A=E[B];C=hs.isHsAnchor(A);if(C&&C[0]=="hs.htmlExpand"&&hs.getParam(A,"objectType")=="ajax"&&hs.getParam(A,"cacheAjax")){hs.push(hs.preloadTheseAjax,A)}}hs.preloadAjaxElement(0)},preloadAjaxElement:function(C){if(!hs.preloadTheseAjax[C]){return }var A=hs.preloadTheseAjax[C];var B=hs.getNode(hs.getParam(A,"contentId"));if(!B){B=hs.getSelfRendered()}var D=new hs.Ajax(A,B,1);D.onError=function(){};D.onLoad=function(){hs.push(hs.cacheBindings,[A,B]);hs.preloadAjaxElement(C+1)};D.run()},focusTopmost:function(){var B=0,A=-1;for(var C=0;C<hs.expanders.length;C++){if(hs.expanders[C]){if(hs.expanders[C].wrapper.style.zIndex&&hs.expanders[C].wrapper.style.zIndex>B){B=hs.expanders[C].wrapper.style.zIndex;A=C}}}if(A==-1){hs.focusKey=-1}else{hs.expanders[A].focus()}},getAdjacentAnchor:function(E,G){var A=document.getElementsByTagName("A"),B={},F=-1,C=0;for(var D=0;D<A.length;D++){if(hs.isHsAnchor(A[D])&&((hs.expanders[E].slideshowGroup==hs.getParam(A[D],"slideshowGroup")))){B[C]=A[D];if(hs.expanders[E]&&A[D]==hs.expanders[E].a){F=C}C++}}return B[F+G]||null},getParam:function(A,C){A.getParams=A.onclick;var B=A.getParams?A.getParams():null;A.getParams=null;return(B&&typeof B[C]!="undefined")?B[C]:(typeof hs[C]!="undefined"?hs[C]:null)},getSrc:function(A){var B=hs.getParam(A,"src");if(B){return B}return A.href},getNode:function(D){var B=hs.$(D),C=hs.clones[D],A={};if(!B&&!C){return null}if(!C){C=B.cloneNode(true);C.id="";hs.clones[D]=C;return B}else{return C.cloneNode(true)}},discardElement:function(A){hs.garbageBin.appendChild(A);hs.garbageBin.innerHTML=""},previousOrNext:function(B,E){var D=hs.last=hs.getExpander(B);try{var A=hs.upcoming=hs.getAdjacentAnchor(D.key,E);A.onclick()}catch(C){}try{D.close()}catch(C){}return false},previous:function(A){return hs.previousOrNext(A,-1)},next:function(A){return hs.previousOrNext(A,1)},keyHandler:function(A){if(!A){A=window.event}if(!A.target){A.target=A.srcElement}if(A.target.form){return true}var B=null;switch(A.keyCode){case 32:case 34:case 39:case 40:B=1;break;case 8:case 33:case 37:case 38:B=-1;break;case 27:case 13:B=0}if(B!==null){hs.removeEventListener(document,"keydown",hs.keyHandler);if(!hs.enableKeyListener){return true}if(A.preventDefault){A.preventDefault()}else{A.returnValue=false}if(B==0){try{hs.getExpander().close()}catch(A){}return false}else{return hs.previousOrNext(hs.focusKey,B)}}return true},registerOverlay:function(A){hs.push(hs.overlays,A)},getWrapperKey:function(B){var D,C=/^highslide-wrapper-([0-9]+)$/;D=B;while(D.parentNode){if(D.id&&C.test(D.id)){return D.id.replace(C,"$1")}D=D.parentNode}D=B;while(D.parentNode){if(D.tagName&&hs.isHsAnchor(D)){for(var A=0;A<hs.expanders.length;A++){var E=hs.expanders[A];if(E&&E.a==D){return A}}}D=D.parentNode}return null},getExpander:function(A){if(typeof A=="undefined"){return hs.expanders[hs.focusKey]||null}if(typeof A=="number"){return hs.expanders[A]||null}if(typeof A=="string"){A=hs.$(A)}return hs.expanders[hs.getWrapperKey(A)]||null},isHsAnchor:function(A){return(A.onclick&&A.onclick.toString().replace(/\s/g," ").match(/hs.(htmlE|e)xpand/))},reOrder:function(){for(var A=0;A<hs.expanders.length;A++){if(hs.expanders[A]&&hs.expanders[A].isExpanded){hs.focusTopmost()}}},mouseClickHandler:function(D){if(!D){D=window.event}if(D.button>1){return true}if(!D.target){D.target=D.srcElement}var B=D.target;while(B.parentNode&&!(/highslide-(image|move|html|resize)/.test(B.className))){B=B.parentNode}var E=hs.getExpander(B);if(E&&(E.isClosing||!E.isExpanded)){return true}if(E&&D.type=="mousedown"){if(D.target.form){return true}var A=B.className.match(/highslide-(image|move|resize)/);if(A){hs.dragArgs={exp:E,type:A[1],left:E.x.min,width:E.x.span,top:E.y.min,height:E.y.span,clickX:D.clientX,clickY:D.clientY};hs.addEventListener(document,"mousemove",hs.dragHandler);if(D.preventDefault){D.preventDefault()}if(/highslide-(image|html)-blur/.test(E.content.className)){E.focus();hs.hasFocused=true}return false}else{if(/highslide-html/.test(B.className)&&hs.focusKey!=E.key){E.focus();E.redoShowHide()}}}else{if(D.type=="mouseup"){hs.removeEventListener(document,"mousemove",hs.dragHandler);if(hs.dragArgs){if(hs.dragArgs.type=="image"){hs.dragArgs.exp.content.style.cursor=hs.styleRestoreCursor}var C=hs.dragArgs.hasDragged;if(!C&&!hs.hasFocused&&!/(move|resize)/.test(hs.dragArgs.type)){E.close()}else{if(C||(!C&&hs.hasHtmlexpanders)){hs.dragArgs.exp.redoShowHide()}}if(hs.dragArgs.exp.releaseMask){hs.dragArgs.exp.releaseMask.style.display="none"}hs.hasFocused=false;hs.dragArgs=null}else{if(/highslide-image-blur/.test(B.className)){B.style.cursor=hs.styleRestoreCursor}}}}return false},dragHandler:function(B){if(!hs.dragArgs){return true}if(!B){B=window.event}var A=hs.dragArgs,C=A.exp;if(C.iframe){if(!C.releaseMask){C.releaseMask=hs.createElement("div",null,{position:"absolute",width:C.x.span+"px",height:C.y.span+"px",left:0,top:0,zIndex:4,background:(hs.ie?"white":"none"),opacity:0.01},C.wrapper,true)}if(C.releaseMask.style.display=="none"){C.releaseMask.style.display=""}}A.dX=B.clientX-A.clickX;A.dY=B.clientY-A.clickY;var D=Math.sqrt(Math.pow(A.dX,2)+Math.pow(A.dY,2));if(!A.hasDragged){A.hasDragged=(A.type!="image"&&D>0)||(D>(hs.dragSensitivity||5))}if(A.hasDragged&&B.clientX>5&&B.clientY>5){if(A.type=="resize"){C.resize(A)}else{C.move(A)}}return false},wrapperMouseHandler:function(C){try{if(!C){C=window.event}var B=/mouseover/i.test(C.type);if(!C.target){C.target=C.srcElement}if(hs.ie){C.relatedTarget=B?C.fromElement:C.toElement}var E=hs.getExpander(C.target);if(!E||!C.relatedTarget||hs.getExpander(C.relatedTarget)==E||hs.dragArgs){return }for(var A=0;A<E.overlays.length;A++){var D=hs.$("hsId"+E.overlays[A]);if(D&&D.getAttribute("hideOnMouseOut")){var G=B?0:D.getAttribute("opacity"),F=B?D.getAttribute("opacity"):0;hs.fade(D,G,F)}}}catch(C){}},addEventListener:function(A,C,B){try{A.addEventListener(C,B,false)}catch(D){try{A.detachEvent("on"+C,B);A.attachEvent("on"+C,B)}catch(D){A["on"+C]=B}}},removeEventListener:function(A,C,B){try{A.removeEventListener(C,B,false)}catch(D){try{A.detachEvent("on"+C,B)}catch(D){A["on"+C]=null}}},preloadFullImage:function(B){if(hs.continuePreloading&&hs.preloadTheseImages[B]&&hs.preloadTheseImages[B]!="undefined"){var A=document.createElement("img");A.onload=function(){A=null;hs.preloadFullImage(B+1)};A.src=hs.preloadTheseImages[B]}},preloadImages:function(E){if(E&&typeof E!="object"){hs.numberOfImagesToPreload=E}var A,D,B=0;var G=document.getElementsByTagName("A");for(var C=0;C<G.length;C++){A=G[C];D=hs.isHsAnchor(A);if(D&&D[0]=="hs.expand"){if(B<hs.numberOfImagesToPreload){hs.preloadTheseImages[B]=hs.getSrc(A);B++}}}new hs.Outline(hs.outlineType,function(){hs.preloadFullImage(0)});var F=hs.createElement("img",{src:hs.graphicsDir+hs.restoreCursor})},genContainer:function(){if(!hs.container){hs.container=hs.createElement("div",null,{position:"absolute",left:0,top:0,width:"100%",zIndex:hs.zIndexCounter},document.body,true);hs.loading=hs.createElement("a",{className:"highslide-loading",title:hs.loadingTitle,innerHTML:hs.loadingText,href:"javascript:void(0)"},{position:"absolute",opacity:hs.loadingOpacity,left:"-9999px",zIndex:1},hs.container);hs.garbageBin=hs.createElement("div",null,{display:"none"},hs.container);hs.clearing=hs.createElement("div",null,{clear:"both",paddingTop:"1px"},null,true);Math.linearTween=function(B,A,D,C){return D*B/C+A};Math.easeInQuad=function(B,A,D,C){return D*(B/=C)*B+A};hs.ie6SSL=(hs.ie&&hs.ieVersion()<=6&&location.protocol=="https:")}},fade:function(E,H,C,D,B,A){if(typeof B=="undefined"){if(typeof D!="number"){D=250}if(D<25){hs.setStyles(E,{opacity:C});return }B=hs.faders.length;A=C>H?1:-1;var G=(25/(D-D%25))*Math.abs(H-C)}H=parseFloat(H);var F=(E.fade===0||E.fade===false||(E.fade==2&&hs.ie));E.style.visibility=((F?C:H)<=0)?"hidden":"visible";if(F||H<0||(A==1&&H>C)){return }if(E.fading&&E.fading.i!=B){clearTimeout(hs.faders[E.fading.i]);H=E.fading.o}E.fading={i:B,o:H,step:(G||E.fading.step)};E.style.visibility=(H<=0)?"hidden":"visible";hs.setStyles(E,{opacity:H});hs.faders[B]=setTimeout(function(){hs.fade(E,H+E.fading.step*A,C,null,B,A)},25)},close:function(A){var B=hs.getExpander(A);if(B){B.close()}return false}};hs.Outline=function(G,E){this.onLoad=E;this.outlineType=G;var A=hs.ieVersion(),F;this.hasAlphaImageLoader=hs.ie&&A>=5.5&&A<7;if(!G){if(E){E()}return }hs.genContainer();this.table=hs.createElement("table",{cellSpacing:0},{visibility:"hidden",position:"absolute",borderCollapse:"collapse"},hs.container,true);var B=hs.createElement("tbody",null,null,this.table,1);this.td=[];for(var C=0;C<=8;C++){if(C%3==0){F=hs.createElement("tr",null,{height:"auto"},B,true)}this.td[C]=hs.createElement("td",null,null,F,true);var D=C!=4?{lineHeight:0,fontSize:0}:{position:"relative"};hs.setStyles(this.td[C],D)}this.td[4].className=G;this.preloadGraphic()};hs.Outline.prototype={preloadGraphic:function(){var B=hs.graphicsDir+(hs.outlinesDir||"outlines/")+this.outlineType+".png";var A=hs.safari?hs.container:null;this.graphic=hs.createElement("img",null,{position:"absolute",left:"-9999px",top:"-9999px"},A,true);var C=this;this.graphic.onload=function(){C.onGraphicLoad()};this.graphic.src=B},onGraphicLoad:function(){var D=this.offset=this.graphic.width/4,F=[[0,0],[0,-4],[-2,0],[0,-8],0,[-2,-8],[0,-2],[0,-6],[-2,-2]],C={height:(2*D)+"px",width:(2*D)+"px"};for(var B=0;B<=8;B++){if(F[B]){if(this.hasAlphaImageLoader){var A=(B==1||B==7)?"100%":this.graphic.width+"px";var E=hs.createElement("div",null,{width:"100%",height:"100%",position:"relative",overflow:"hidden"},this.td[B],true);hs.createElement("div",null,{filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale, src='"+this.graphic.src+"')",position:"absolute",width:A,height:this.graphic.height+"px",left:(F[B][0]*D)+"px",top:(F[B][1]*D)+"px"},E,true)}else{hs.setStyles(this.td[B],{background:"url("+this.graphic.src+") "+(F[B][0]*D)+"px "+(F[B][1]*D)+"px"})}if(window.opera&&(B==3||B==5)){hs.createElement("div",null,C,this.td[B],true)}hs.setStyles(this.td[B],C)}}this.graphic=null;if(hs.pendingOutlines[this.outlineType]){hs.pendingOutlines[this.outlineType].destroy()}hs.pendingOutlines[this.outlineType]=this;if(this.onLoad){this.onLoad()}},setPosition:function(E,A,F,B,C,D){if(D){this.table.style.visibility=(C>=4*this.offset)?"visible":"hidden"}this.table.style.left=(A-this.offset)+"px";this.table.style.top=(F-this.offset)+"px";this.table.style.width=(B+2*(E.offsetBorderW+this.offset))+"px";B+=2*(E.offsetBorderW-this.offset);C+=+2*(E.offsetBorderH-this.offset);this.td[4].style.width=B>=0?B+"px":0;this.td[4].style.height=C>=0?C+"px":0;if(this.hasAlphaImageLoader){this.td[3].style.height=this.td[5].style.height=this.td[4].style.height}},destroy:function(A){if(A){this.table.style.visibility="hidden"}else{hs.discardElement(this.table)}}};hs.Expander=function(H,E,A,I){this.a=H;this.custom=A;this.contentType=I||"image";this.isHtml=(I=="html");this.isImage=!this.isHtml;hs.continuePreloading=false;hs.genContainer();var J=this.key=hs.expanders.length;for(var F=0;F<hs.overrides.length;F++){var B=hs.overrides[F];this[B]=E&&typeof E[B]!="undefined"?E[B]:hs[B]}this.src=E&&E.src?E.src:H.href;var C=this.thumb=((E&&E.thumbnailId)?hs.$(E.thumbnailId):null)||H.getElementsByTagName("img")[0]||H;this.thumbsUserSetId=C.id||H.id;for(var F=0;F<hs.expanders.length;F++){if(hs.expanders[F]&&hs.expanders[F].a==H){hs.expanders[F].focus();return false}}for(var F=0;F<hs.expanders.length;F++){if(hs.expanders[F]&&hs.expanders[F].thumb!=C&&!hs.expanders[F].onLoadStarted){hs.expanders[F].cancelLoading()}}hs.expanders[this.key]=this;if(!hs.allowMultipleInstances){if(hs.expanders[J-1]){hs.expanders[J-1].close()}if(typeof hs.focusKey!="undefined"&&hs.expanders[hs.focusKey]){hs.expanders[hs.focusKey].close()}}var G=hs.position(C);this.thumbWidth=C.width?parseInt(C.width):C.offsetWidth;this.thumbHeight=C.height?parseInt(C.height):C.offsetHeight;this.thumbLeft=G.x;this.thumbTop=G.y;this.thumbOffsetBorderW=(this.thumb.offsetWidth-this.thumbWidth)/2;this.thumbOffsetBorderH=(this.thumb.offsetHeight-this.thumbHeight)/2;this.wrapper=hs.createElement("div",{id:"highslide-wrapper-"+this.key,className:this.wrapperClassName},{visibility:"hidden",position:"absolute",zIndex:hs.zIndexCounter++},null,true);this.wrapper.onmouseover=this.wrapper.onmouseout=hs.wrapperMouseHandler;if(this.contentType=="image"&&this.outlineWhileAnimating==2){this.outlineWhileAnimating=0}if(hs.pendingOutlines[this.outlineType]){this.connectOutline();this[this.contentType+"Create"]()}else{if(!this.outlineType){this[this.contentType+"Create"]()}else{this.displayLoading();var D=this;new hs.Outline(this.outlineType,function(){D.connectOutline();D[D.contentType+"Create"]()})}}return true};hs.Expander.prototype={connectOutline:function(A,C){var B=hs.pendingOutlines[this.outlineType];this.objOutline=B;B.table.style.zIndex=this.wrapper.style.zIndex;hs.pendingOutlines[this.outlineType]=null},displayLoading:function(){if(this.onLoadStarted||this.loading){return }this.loading=hs.loading;var B=this;this.loading.onclick=function(){B.cancelLoading()};this.loading.style.top=(this.thumbTop+(this.thumbHeight-this.loading.offsetHeight)/2)+"px";var B=this,A=(this.thumbLeft+this.thumbOffsetBorderW+(this.thumbWidth-this.loading.offsetWidth)/2)+"px";setTimeout(function(){if(B.loading){B.loading.style.left=A}},100)},imageCreate:function(){var B=this;var A=document.createElement("img");this.content=A;A.onload=function(){if(hs.expanders[B.key]){B.contentLoaded()}};if(hs.blockRightClick){A.oncontextmenu=function(){return false}}A.className="highslide-image";A.style.visibility="hidden";A.style.display="block";A.style.position="absolute";A.style.maxWidth="none";A.style.zIndex=3;A.title=hs.restoreTitle;if(hs.safari){hs.container.appendChild(A)}if(hs.ie&&hs.flushImgSize){A.src=null}A.src=this.src;this.displayLoading()},htmlCreate:function(){this.content=hs.getCacheBinding(this.a);if(!this.content){this.content=hs.getNode(this.contentId)}if(!this.content){this.content=hs.getSelfRendered()}this.innerContent=this.content;if(this.swfObject||this.objectType=="iframe"){this.setObjContainerSize(this.innerContent)}hs.container.appendChild(this.wrapper);hs.setStyles(this.wrapper,{position:"static",padding:"0 "+hs.marginRight+"px 0 "+hs.marginLeft+"px"});this.content=hs.createElement("div",{className:"highslide-html"},{position:"relative",zIndex:3,overflow:"hidden"},this.wrapper);this.mediumContent=hs.createElement("div",null,null,this.content,1);this.mediumContent.appendChild(this.innerContent);hs.setStyles(this.innerContent,{position:"relative"});this.innerContent.className+=" highslide-display-block";if(this.width){this.innerContent.style.width=this.width+"px"}if(this.height){this.innerContent.style.height=this.height+"px"}if(this.innerContent.offsetWidth<this.minWidth){this.innerContent.style.width=this.minWidth+"px"}if(this.objectType=="ajax"&&!hs.getCacheBinding(this.a)){this.displayLoading();var A=new hs.Ajax(this.a,this.innerContent);var B=this;A.onLoad=function(){if(hs.expanders[B.key]){B.contentLoaded()}};A.onError=function(){location.href=this.src};A.run()}else{if(this.objectType=="iframe"&&this.objectLoadTime=="before"){this.writeExtendedContent()}else{this.contentLoaded()}}},contentLoaded:function(){try{if(!this.content){return }this.content.onload=null;if(this.onLoadStarted){return }else{this.onLoadStarted=true}if(this.loading){hs.setStyles(this.loading,{left:"-9999px",top:"-9999px"});this.loading=null}this.marginBottom=hs.marginBottom;if(this.isImage){this.newWidth=this.content.width;this.newHeight=this.content.height;this.fullExpandWidth=this.newWidth;this.fullExpandHeight=this.newHeight;this.content.style.width=this.thumbWidth+"px";this.content.style.height=this.thumbHeight+"px";this.getCaption()}else{if(this.htmlGetSize){this.htmlGetSize()}}this.wrapper.appendChild(this.content);this.content.style.position="relative";if(this.caption){this.wrapper.appendChild(this.caption)}this.wrapper.style.left=this.thumbLeft+"px";this.wrapper.style.top=this.thumbTop+"px";hs.container.appendChild(this.wrapper);this.offsetBorderW=(this.content.offsetWidth-this.thumbWidth)/2;this.offsetBorderH=(this.content.offsetHeight-this.thumbHeight)/2;var D=hs.marginRight+2*this.offsetBorderW;this.marginBottom+=2*this.offsetBorderH;var H=this.newWidth/this.newHeight;var B=this.allowSizeReduction?this.minWidth:this.newWidth;var K=this.allowSizeReduction?this.minHeight:this.newHeight;var E={x:"auto",y:"auto"};var G=hs.getPageSize();this.x={min:parseInt(this.thumbLeft)-this.offsetBorderW+this.thumbOffsetBorderW,span:this.newWidth,minSpan:(this.newWidth<B&&!hs.padToMinWidth)?this.newWidth:B,marginMin:hs.marginLeft,marginMax:D,scroll:G.scrollLeft,clientSpan:G.width,thumbSpan:this.thumbWidth};var C=this.x.min+parseInt(this.thumbWidth);this.x=this.justify(this.x);this.y={min:parseInt(this.thumbTop)-this.offsetBorderH+this.thumbOffsetBorderH,span:this.newHeight,minSpan:this.newHeight<K?this.newHeight:K,marginMin:hs.marginTop,marginMax:this.marginBottom,scroll:G.scrollTop,clientSpan:G.height,thumbSpan:this.thumbHeight};var A=this.y.min+parseInt(this.thumbHeight);this.y=this.justify(this.y);if(this.isHtml){this.htmlSizeOperations()}if(this.isImage){this.correctRatio(H)}var J=this.x;var I=this.y;this.show()}catch(F){window.location.href=this.src}},setObjContainerSize:function(A,C){var B=hs.getElementByClass(A,"DIV","highslide-body");if(this.objectType=="iframe"){if(this.objectWidth){B.style.width=this.objectWidth+"px"}if(this.objectHeight){B.style.height=this.objectHeight+"px"}}if(this.swfObject){B.style.width=this.swfObject.attributes.width+"px";B.style.height=this.swfObject.attributes.height+"px"}},writeExtendedContent:function(){if(this.hasExtendedContent){return }var D=this;this.body=hs.getElementByClass(this.innerContent,"DIV","highslide-body");if(this.objectType=="iframe"){this.displayLoading();var E=hs.clearing.cloneNode(1);this.body.appendChild(E);this.newWidth=this.innerContent.offsetWidth;if(!this.objectWidth){this.objectWidth=E.offsetWidth}var A=this.innerContent.offsetHeight-this.body.offsetHeight,B=this.objectHeight||(hs.getPageSize()).height-A-hs.marginTop-hs.marginBottom,C=this.objectLoadTime=="before"?' onload="if (hs.expanders['+this.key+"]) hs.expanders["+this.key+'].contentLoaded()" ':"";this.body.innerHTML+='<iframe name="hsIframe'+this.key+'" frameborder="0" key="'+this.key+'"  allowtransparency="true" style="width:'+this.objectWidth+"px; height:"+B+'px" '+C+' src="'+this.src+'" id="'+(new Date()).getTime()+'"></iframe>';this.ruler=this.body.getElementsByTagName("div")[0];this.iframe=this.body.getElementsByTagName("iframe")[0];if(this.objectLoadTime=="after"){this.correctIframeSize()}}else{if(this.swfObject){this.body.id=this.body.id||"hs-flash-id-"+this.key;this.swfObject.write(this.body.id)}}this.hasExtendedContent=true},htmlGetSize:function(){if(this.iframe&&!this.objectHeight){var A;try{var D=this.iframe.contentDocument||this.iframe.contentWindow.document;var B=D.createElement("div");B.style.clear="both";D.body.appendChild(B);var A=B.offsetTop;if(hs.ie){A+=parseInt(D.body.currentStyle.marginTop)+parseInt(D.body.currentStyle.marginBottom)-1}}catch(C){A=300}this.iframe.style.height=this.body.style.height=A+"px"}this.innerContent.appendChild(hs.clearing);if(!this.newWidth){this.newWidth=this.innerContent.offsetWidth}this.newHeight=this.innerContent.offsetHeight;this.innerContent.removeChild(hs.clearing);if(hs.ie&&this.newHeight>parseInt(this.innerContent.currentStyle.height)){this.newHeight=parseInt(this.innerContent.currentStyle.height)}hs.setStyles(this.wrapper,{position:"absolute",padding:"0"});hs.setStyles(this.content,{width:this.thumbWidth+"px",height:this.thumbHeight+"px"})},correctIframeSize:function(){var B=this.innerContent.offsetWidth-this.ruler.offsetWidth;if(B<0){B=0}var A=this.innerContent.offsetHeight-this.body.offsetHeight;hs.setStyles(this.iframe,{width:(this.x.span-B)+"px",height:(this.y.span-A)+"px"});hs.setStyles(this.body,{width:this.iframe.style.width,height:this.iframe.style.height});this.scrollingContent=this.iframe;this.scrollerDiv=this.scrollingContent},htmlSizeOperations:function(){this.setObjContainerSize(this.innerContent);if(this.swfObject&&this.objectLoadTime=="before"){this.writeExtendedContent()}if(this.x.span<this.newWidth&&!this.allowWidthReduction){this.x.span=this.newWidth}if(this.y.span<this.newHeight&&!this.allowHeightReduction){this.y.span=this.newHeight}this.scrollerDiv=this.innerContent;hs.setStyles(this.mediumContent,{width:this.x.span+"px",position:"relative",left:(this.x.min-this.thumbLeft)+"px",top:(this.y.min-this.thumbTop)+"px"});hs.setStyles(this.innerContent,{border:"none",width:"auto",height:"auto"});var E=hs.getElementByClass(this.innerContent,"DIV","highslide-body");if(E&&!this.swfObject&&this.objectType!="iframe"){var B=E;E=hs.createElement(B.nodeName,null,{overflow:"hidden"},null,true);B.parentNode.insertBefore(E,B);E.appendChild(hs.clearing);E.appendChild(B);var C=this.innerContent.offsetWidth-E.offsetWidth;var A=this.innerContent.offsetHeight-E.offsetHeight;E.removeChild(hs.clearing);var D=hs.safari||navigator.vendor=="KDE"?1:0;hs.setStyles(E,{width:(this.x.span-C-D)+"px",height:(this.y.span-A)+"px",overflow:"auto",position:"relative"});if(D&&B.offsetHeight>E.offsetHeight){E.style.width=(parseInt(E.style.width)+D)+"px"}this.scrollingContent=E;this.scrollerDiv=this.scrollingContent}if(this.iframe&&this.objectLoadTime=="before"){this.correctIframeSize()}if(!this.scrollingContent&&this.y.span<this.mediumContent.offsetHeight){this.scrollerDiv=this.content}if(this.scrollerDiv==this.content&&!this.allowWidthReduction&&this.objectType!="iframe"){this.x.span+=17}if(this.scrollerDiv&&this.scrollerDiv.offsetHeight>this.scrollerDiv.parentNode.offsetHeight){setTimeout("try { hs.expanders["+this.key+"].scrollerDiv.style.overflow = 'auto'; } catch(e) {}",hs.expandDuration)}},justify:function(D){var E,C=D==this.x?"x":"y";var B=false;var A=true;D.min=Math.round(D.min-((D.span-D.thumbSpan)/2));if(D.min<D.scroll+D.marginMin){D.min=D.scroll+D.marginMin;B=true}if(D.span<D.minSpan){D.span=D.minSpan;A=false}if(D.min+D.span>D.scroll+D.clientSpan-D.marginMax){if(B&&A){D.span=D.clientSpan-D.marginMin-D.marginMax}else{if(D.span<D.clientSpan-D.marginMin-D.marginMax){D.min=D.scroll+D.clientSpan-D.span-D.marginMin-D.marginMax}else{D.min=D.scroll+D.marginMin;if(A){D.span=D.clientSpan-D.marginMin-D.marginMax}}}}if(D.span<D.minSpan){D.span=D.minSpan;A=false}if(D.min<D.marginMin){tmpMin=D.min;D.min=D.marginMin;if(A){D.span=D.span-(D.min-tmpMin)}}return D},correctRatio:function(C){var B=this.x;var F=this.y;var E=false;if(B.span/F.span>C){var A=B.span;B.span=F.span*C;if(B.span<B.minSpan){if(hs.padToMinWidth){B.imgSpan=B.span}B.span=B.minSpan;if(!B.imgSpan){F.span=B.span/C}}E=true}else{if(B.span/F.span<C){var D=F.span;F.span=B.span/C;E=true}}if(E){B.min=parseInt(this.thumbLeft)-this.offsetBorderW+this.thumbOffsetBorderW;B.minSpan=B.span;this.x=this.justify(B);F.min=parseInt(this.thumbTop)-this.offsetBorderH+this.thumbOffsetBorderH;F.minSpan=F.span;this.y=this.justify(F)}},show:function(){var A={x:this.x.min-20,y:this.y.min-20,w:this.x.span+40,h:this.y.span+40+this.spaceForCaption};hs.hideSelects=(hs.ie&&hs.ieVersion()<7);if(hs.hideSelects){this.showHideElements("SELECT","hidden",A)}hs.hideIframes=((window.opera&&navigator.appVersion<9)||navigator.vendor=="KDE"||(hs.ie&&hs.ieVersion()<5.5));if(hs.hideIframes){this.showHideElements("IFRAME","hidden",A)}if(hs.geckoMac){this.showHideElements("*","hidden",A)}if(this.x.imgSpan){this.content.style.margin="0 auto"}this.overlays=[];this.changeSize(1,{x:this.thumbLeft+this.thumbOffsetBorderW-this.offsetBorderW,y:this.thumbTop+this.thumbOffsetBorderH-this.offsetBorderH,w:this.thumbWidth,h:this.thumbHeight,imgW:this.thumbWidth,o:hs.outlineStartOffset},{x:this.x.min,y:this.y.min,w:this.x.span,h:this.y.span,imgW:this.x.imgSpan,o:this.objOutline?this.objOutline.offset:0},hs.expandDuration,hs.expandSteps)},changeSize:function(F,I,J,A,H){if(F&&this.objOutline&&!this.outlineWhileAnimating){this.objOutline.setPosition(this,this.x.min,this.y.min,this.x.span,this.y.span)}else{if(!F&&this.objOutline){if(this.outlineWhileAnimating){this.objOutline.setPosition(this,I.x,I.y,I.w,I.h)}else{this.objOutline.destroy((this.isHtml&&this.preserveContent))}}}if(!F){var C=this.wrapper.childNodes.length;for(var E=C-1;E>=0;E--){var B=this.wrapper.childNodes[E];if(B!=this.content){hs.discardElement(B)}}}if(this.fadeInOut){I.op=F?0:1;J.op=F}var K,D=this,G=Math[this.easing]||Math.easeInQuad;if(!F){G=Math[this.easingClose]||G}for(var E=1;E<=H;E++){K=Math.round(E*(A/H));(function(){var N=E,M={};for(var L in I){M[L]=G(K,I[L],J[L]-I[L],A);if(/[xywh]/.test(L)){M[L]=Math.round(M[L])}}setTimeout(function(){if(F&&N==1){D.content.style.visibility="visible";D.a.className+=" highslide-active-anchor"}D.setSize(M)},K)})()}if(F){setTimeout(function(){if(D.objOutline){D.objOutline.table.style.visibility="visible"}},K);setTimeout(function(){if(D.caption){D.writeCaption()}D.afterExpand()},K+50)}else{setTimeout(function(){D.afterClose()},K)}},setSize:function(C){try{if(this.isHtml){hs.setStyles(this.content,{width:C.w+"px",height:C.h+"px"});hs.setStyles(this.mediumContent,{left:(this.x.min-C.x)+"px",top:(this.y.min-C.y)+"px"});this.innerContent.style.visibility="visible"}else{this.wrapper.style.width=(C.w+2*this.offsetBorderW)+"px";this.content.style.width=((C.imgW&&!isNaN(C.imgW))?C.imgW:C.w)+"px";if(hs.safari){this.content.style.maxWidth=this.content.style.width}this.content.style.height=C.h+"px"}if(C.op){hs.setStyles(this.wrapper,{opacity:C.op})}if(this.objOutline&&this.outlineWhileAnimating){var B=this.objOutline.offset-C.o;this.objOutline.setPosition(this,C.x+B,C.y+B,C.w-2*B,C.h-2*B,1)}hs.setStyles(this.wrapper,{visibility:"visible",left:C.x+"px",top:C.y+"px"})}catch(A){window.location.href=this.src}},afterExpand:function(){this.isExpanded=true;this.focus();if(this.isHtml&&this.objectLoadTime=="after"){this.writeExtendedContent()}if(this.isHtml){if(this.iframe){try{var C=this,B=this.iframe.contentDocument||this.iframe.contentWindow.document;hs.addEventListener(B,"mousedown",function(){if(hs.focusKey!=C.key){C.focus()}})}catch(A){}if(hs.ie&&typeof this.isClosing!="boolean"){this.iframe.style.width=(this.objectWidth-1)+"px"}}}this.createOverlays();if(hs.showCredits){this.writeCredits()}if(this.isImage&&this.fullExpandWidth>this.x.span){this.createFullExpand()}if(!this.caption){this.prepareNextOutline()}},prepareNextOutline:function(){var A=this.key;var B=this.outlineType;new hs.Outline(B,function(){try{hs.expanders[A].preloadNext()}catch(C){}})},preloadNext:function(){var B=hs.getAdjacentAnchor(this.key,1);if(B.onclick.toString().match(/hs\.expand/)){var A=hs.createElement("img",{src:hs.getSrc(B)})}},cancelLoading:function(){hs.expanders[this.key]=null;if(this.loading){hs.loading.style.left="-9999px"}},writeCredits:function(){this.credits=hs.createElement("a",{href:hs.creditsHref,className:"highslide-credits",innerHTML:hs.creditsText,title:hs.creditsTitle});this.createOverlay({overlayId:this.credits,position:"top left"})},getCaption:function(){if(!this.captionId&&this.thumbsUserSetId){this.captionId="caption-for-"+this.thumbsUserSetId}if(this.captionId){this.caption=hs.getNode(this.captionId)}if(!this.caption&&!this.captionText&&this.captionEval){try{this.captionText=eval(this.captionEval)}catch(e){}}if(!this.caption&&this.captionText){this.caption=hs.createElement("div",{className:"highslide-caption",innerHTML:this.captionText})}if(!this.caption){var next=this.a.nextSibling;while(next&&!hs.isHsAnchor(next)){if(/highslide-caption/.test(next.className||null)){this.caption=next.cloneNode(1);break}next=next.nextSibling}}if(this.caption){this.marginBottom+=this.spaceForCaption}},writeCaption:function(){try{hs.setStyles(this.wrapper,{width:this.wrapper.offsetWidth+"px",height:this.wrapper.offsetHeight+"px"});hs.setStyles(this.caption,{visibility:"hidden",marginTop:hs.safari?0:"-"+this.y.span+"px"});this.caption.className+=" highslide-display-block";var A,G=this;if(hs.ie&&(hs.ieVersion()<6||document.compatMode=="BackCompat")){A=this.caption.offsetHeight}else{var B=hs.createElement("div",{innerHTML:this.caption.innerHTML},null,null,true);this.caption.innerHTML="";this.caption.appendChild(B);A=this.caption.childNodes[0].offsetHeight;this.caption.innerHTML=this.caption.childNodes[0].innerHTML}hs.setStyles(this.caption,{overflow:"hidden",height:0,zIndex:2,marginTop:0});this.wrapper.style.height="auto";if(hs.captionSlideSpeed){var E=(Math.round(A/50)||1)*hs.captionSlideSpeed}else{this.placeCaption(A,1);return }for(var D=A%E,C=0;D<=A;D+=E,C+=10){(function(){var I=D,H=(D==A)?1:0;setTimeout(function(){G.placeCaption(I,H)},C)})()}}catch(F){}},placeCaption:function(A,B){if(!this.caption){return }this.caption.style.height=A+"px";this.caption.style.visibility="visible";this.y.span=this.wrapper.offsetHeight-2*this.offsetBorderH;var D=this.objOutline;if(D){var C=this.wrapper.offsetHeight-2*this.objOutline.offset;if(C>=0){D.td[4].style.height=C+"px"}if(D.hasAlphaImageLoader){D.td[3].style.height=D.td[5].style.height=D.td[4].style.height}}if(B){this.prepareNextOutline()}},showHideElements:function(C,B,G){var E=document.getElementsByTagName(C);var A=C=="*"?"overflow":"visibility";for(var F=0;F<E.length;F++){if(A=="visibility"||(document.defaultView.getComputedStyle(E[F],"").getPropertyValue("overflow")=="auto"||E[F].getAttribute("hidden-by")!=null)){var I=E[F].getAttribute("hidden-by");if(B=="visible"&&I){I=I.replace("["+this.key+"]","");E[F].setAttribute("hidden-by",I);if(!I){E[F].style[A]=E[F].origProp}}else{if(B=="hidden"){var K=hs.position(E[F]);K.w=E[F].offsetWidth;K.h=E[F].offsetHeight;var J=(K.x+K.w<G.x||K.x>G.x+G.w);var H=(K.y+K.h<G.y||K.y>G.y+G.h);var D=hs.getWrapperKey(E[F]);if(!J&&!H&&D!=this.key){if(!I){E[F].setAttribute("hidden-by","["+this.key+"]");E[F].origProp=E[F].style[A];E[F].style[A]="hidden"}else{if(!I.match("["+this.key+"]")){E[F].setAttribute("hidden-by",I+"["+this.key+"]")}}}else{if(I=="["+this.key+"]"||hs.focusKey==D){E[F].setAttribute("hidden-by","");E[F].style[A]=E[F].origProp||""}else{if(I&&I.match("["+this.key+"]")){E[F].setAttribute("hidden-by",I.replace("["+this.key+"]",""))}}}}}}}},focus:function(){this.wrapper.style.zIndex=hs.zIndexCounter++;for(var A=0;A<hs.expanders.length;A++){if(hs.expanders[A]&&A==hs.focusKey){var B=hs.expanders[A];B.content.className+=" highslide-"+B.contentType+"-blur";if(B.caption){B.caption.className+=" highslide-caption-blur"}if(B.isImage){B.content.style.cursor=hs.ie?"hand":"pointer";B.content.title=hs.focusTitle}}}if(this.objOutline){this.objOutline.table.style.zIndex=this.wrapper.style.zIndex}this.content.className="highslide-"+this.contentType;if(this.caption){this.caption.className=this.caption.className.replace(" highslide-caption-blur","")}if(this.isImage){this.content.title=hs.restoreTitle;hs.styleRestoreCursor=window.opera?"pointer":"url("+hs.graphicsDir+hs.restoreCursor+"), pointer";if(hs.ie&&hs.ieVersion()<6){hs.styleRestoreCursor="hand"}this.content.style.cursor=hs.styleRestoreCursor}hs.focusKey=this.key;hs.addEventListener(document,"keydown",hs.keyHandler)},move:function(A){this.x.min=A.left+A.dX;this.y.min=A.top+A.dY;if(A.type=="image"){this.content.style.cursor="move"}hs.setStyles(this.wrapper,{left:this.x.min+"px",top:this.y.min+"px"});if(this.objOutline){this.objOutline.setPosition(this,this.x.min,this.y.min,this.x.span,this.y.span)}},resize:function(C){this.x.span=C.width+C.dX;this.y.span=C.height+C.dY;if(this.x.span<this.minWidth){this.x.span=this.minWidth}if(this.y.span<this.minHeight){this.y.span=this.minHeight}var D=this.scrollerDiv;if(typeof this.wDiff=="undefined"){this.wDiff=this.innerContent.offsetWidth-D.offsetWidth;this.hDiff=this.innerContent.offsetHeight-D.offsetHeight}hs.setStyles(D,{width:(this.x.span-this.wDiff)+"px",height:(this.y.span-this.hDiff)+"px"});var B={width:this.x.span+"px",height:this.y.span+"px"};hs.setStyles(this.content,B);if(this.releaseMask){hs.setStyles(this.releaseMask,B)}this.mediumContent.style.width="auto";hs.setStyles(this.body,{width:"auto",height:"auto"});for(var A=0;A<this.overlays.length;A++){this.positionOverlay(hs.$("hsId"+this.overlays[A]))}if(this.objOutline){this.objOutline.setPosition(this,this.x.min,this.y.min,this.x.span,this.y.span)}},close:function(){if(this.isClosing||!this.isExpanded){return }this.isClosing=true;hs.removeEventListener(document,"keydown",hs.keyHandler);try{if(this.isHtml){this.htmlPrepareClose()}this.content.style.cursor="default";this.changeSize(0,{x:this.x.min,y:this.y.min,w:this.x.span,h:parseInt(this.content.style.height),imgW:this.x.imgSpan,o:this.objOutline?this.objOutline.offset:0},{x:this.thumbLeft-this.offsetBorderW+this.thumbOffsetBorderW,y:this.thumbTop-this.offsetBorderH+this.thumbOffsetBorderH,w:this.thumbWidth,h:this.thumbHeight,imgW:this.thumbWidth,o:hs.outlineStartOffset},hs.restoreDuration,hs.restoreSteps)}catch(A){this.afterClose()}},htmlPrepareClose:function(){if(hs.geckoMac){if(!hs.mask){hs.mask=hs.createElement("div",null,{position:"absolute"},hs.container)}hs.setStyles(hs.mask,{width:this.x.span+"px",height:this.y.span+"px",left:this.x.min+"px",top:this.y.min+"px",display:"block"})}if(this.swfObject){try{hs.$(this.swfObject.getAttribute("id")).StopPlay()}catch(A){}}if(this.objectLoadTime=="after"&&!this.preserveContent){this.destroyObject()}if(this.scrollerDiv&&this.scrollerDiv!=this.scrollingContent){this.scrollerDiv.style.overflow="hidden"}},destroyObject:function(){if(hs.ie&&this.iframe){try{this.iframe.contentWindow.document.body.innerHTML=""}catch(A){}}this.body.innerHTML=""},sleep:function(){if(this.objOutline){this.objOutline.table.className="highslide-display-none"}this.releaseMask=null;this.wrapper.className+=" highslide-display-none";hs.push(hs.sleeping,this)},awake:function(){hs.expanders[this.key]=this;if(!hs.allowMultipleInstances&&hs.focusKey!=this.key){try{hs.expanders[hs.focusKey].close()}catch(A){}}this.wrapper.className=this.wrapper.className.replace(/highslide-display-none/,"");var C=hs.zIndexCounter++;this.wrapper.style.zIndex=C;this.isClosing=false;var B=this.objOutline||0;if(B){if(!this.outlineWhileAnimating){B.table.style.visibility="hidden"}B.table.className=null;B.table.style.zIndex=C}this.show()},createOverlay:function(C){var B=C.overlayId;if(typeof B=="string"){B=hs.getNode(B)}if(!B||typeof B=="string"){return }var A=hs.createElement("div",{id:"hsId"+hs.idCounter++},{left:0,top:0,position:"absolute",zIndex:3,visibility:"hidden"},this.wrapper,true);if(C.opacity){hs.setStyles(B,{opacity:C.opacity})}B.style.styleFloat="none";B.className+=" highslide-display-block";A.appendChild(B);A.hsPos=C.position;this.positionOverlay(A);if(C.hideOnMouseOut){A.setAttribute("hideOnMouseOut",true)}if(!C.opacity){C.opacity=1}A.setAttribute("opacity",C.opacity);A.fade=C.fade;hs.fade(A,0,C.opacity);hs.push(this.overlays,hs.idCounter-1)},positionOverlay:function(D,B){var G=this.offsetBorderW,A=this.x.span-D.offsetWidth,F=this.offsetBorderH,C=(B||parseInt(this.content.style.height))-D.offsetHeight,E=D.hsPos||"center center";if(/^bottom/.test(E)){F+=C}if(/^center/.test(E)){F+=C/2}if(/right$/.test(E)){G+=A}if(/center$/.test(E)){G+=A/2}D.style.left=G+"px";D.style.top=F+"px"},createOverlays:function(){for(var A=0;A<hs.overlays.length;A++){var C=hs.overlays[A],D=C.thumbnailId,B=C.slideshowGroup;if((!D&&!B)||D==this.thumbsUserSetId||B===this.slideshowGroup){if(this.isImage||(this.isHtml&&C.useOnHtml)){this.createOverlay(C)}}}},createFullExpand:function(){this.fullExpandLabel=hs.createElement("a",{href:"javascript:hs.expanders["+this.key+"].doFullExpand();",title:hs.fullExpandTitle,className:"highslide-full-expand"});this.createOverlay({overlayId:this.fullExpandLabel,position:hs.fullExpandPosition,hideOnMouseOut:true,opacity:hs.fullExpandOpacity})},doFullExpand:function(){try{if(this.fullExpandLabel){hs.discardElement(this.fullExpandLabel)}this.focus();this.x.min=parseInt(this.wrapper.style.left)-(this.fullExpandWidth-this.content.width)/2;if(this.x.min<hs.marginLeft){this.x.min=hs.marginLeft}this.wrapper.style.left=this.x.min+"px";hs.setStyles(this.content,{width:this.fullExpandWidth+"px",maxWidth:this.fullExpandWidth+"px",height:this.fullExpandHeight+"px"});this.x.span=this.fullExpandWidth;this.wrapper.style.width=(this.x.span+2*this.offsetBorderW)+"px";this.y.span=this.wrapper.offsetHeight-2*this.offsetBorderH;if(this.objOutline){this.objOutline.setPosition(this,this.x.min,this.y.min,this.x.span,this.y.span)}for(var A=0;A<this.overlays.length;A++){this.positionOverlay(hs.$("hsId"+this.overlays[A]))}this.redoShowHide()}catch(B){window.location.href=this.content.src}},redoShowHide:function(){var A={x:parseInt(this.wrapper.style.left)-20,y:parseInt(this.wrapper.style.top)-20,w:this.content.offsetWidth+40,h:this.content.offsetHeight+40+this.spaceForCaption};if(hs.hideSelects){this.showHideElements("SELECT","hidden",A)}if(hs.hideIframes){this.showHideElements("IFRAME","hidden",A)}if(hs.geckoMac){this.showHideElements("*","hidden",A)}},afterClose:function(){this.a.className=this.a.className.replace("highslide-active-anchor","");if(hs.hideSelects){this.showHideElements("SELECT","visible")}if(hs.hideIframes){this.showHideElements("IFRAME","visible")}if(hs.geckoMac){this.showHideElements("*","visible")}if(this.isHtml&&this.preserveContent){this.sleep()}else{if(this.objOutline&&this.outlineWhileAnimating){this.objOutline.destroy()}hs.discardElement(this.wrapper)}if(hs.mask){hs.mask.style.display="none"}hs.expanders[this.key]=null;hs.reOrder()}};hs.Ajax=function(A,B,C){this.a=A;this.content=B;this.pre=C};hs.Ajax.prototype={run:function(){if(!this.src){this.src=hs.getSrc(this.a)}if(this.src.match("#")){var A=this.src.split("#");this.src=A[0];this.id=A[1]}if(hs.cachedGets[this.src]){this.cachedGet=hs.cachedGets[this.src];if(this.id){this.getElementContent()}else{this.loadHTML()}return }try{this.xmlHttp=new XMLHttpRequest()}catch(B){try{this.xmlHttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(B){try{this.xmlHttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(B){this.onError()}}}var C=this;this.xmlHttp.onreadystatechange=function(){if(C.xmlHttp.readyState==4){if(C.id){C.getElementContent()}else{C.loadHTML()}}};this.xmlHttp.open("GET",this.src,true);this.xmlHttp.send(null)},getElementContent:function(){hs.genContainer();var B=window.opera||hs.ie6SSL?{src:"blank.htm"}:null;this.iframe=hs.createElement("iframe",B,{position:"absolute",left:"-9999px"},hs.container);try{this.loadHTML()}catch(A){var C=this;setTimeout(function(){C.loadHTML()},50)}},loadHTML:function(){var B=this.cachedGet||this.xmlHttp.responseText;if(this.pre){hs.cachedGets[this.src]=B}if(!hs.ie||hs.ieVersion()>=5.5){B=B.replace(/\s/g," ");B=B.replace(new RegExp("<link[^>]*>","gi"),"");B=B.replace(new RegExp("<script[^>]*>.*?<\/script>","gi"),"");if(this.iframe){var D=this.iframe.contentDocument||this.iframe.contentWindow.document;D.open();D.write(B);D.close();try{B=D.getElementById(this.id).innerHTML}catch(C){try{B=this.iframe.document.getElementById(this.id).innerHTML}catch(C){}}}else{B=B.replace(new RegExp("^.*?<body[^>]*>(.*?)</body>.*?$","i"),"$1")}}hs.getElementByClass(this.content,"DIV","highslide-body").innerHTML=B;this.onLoad();for(var A in this){this[A]=null}}};var HsExpander=hs.Expander;hs.addEventListener(document,"mousedown",hs.mouseClickHandler);hs.addEventListener(document,"mouseup",hs.mouseClickHandler);hs.addEventListener(window,"load",hs.preloadImages);hs.addEventListener(window,"load",hs.preloadAjax);
	hs.outlineType = 'rounded-white';
    hs.outlineWhileAnimating = true;