var ti={fade:null},debug;var scr=(function(){this.width=null;this.height=null;return{init:function(){if(typeof(window.innerWidth)=="number"){this.width=window.innerWidth;this.height=window.innerHeight}else{if(document.documentElement&&document.documentElement.clientWidth){this.width=document.documentElement.clientWidth;this.height=document.documentElement.clientHeight}else{if(document.body){this.width=document.body.clientWidth;this.height=document.body.clientHeight}else{con("Could not detect screen size.")}}}},top:function(){return window.pageYOffset||document.documentElement.scrollTop},left:function(){return window.pageXOffset||document.documentElement.scrollLeft},scroll:function(){window.scrollBy(0,-15);if(scr.top()>0){ti.scroll=setTimeout(scr.scroll,1)}}}})();function InitDebug(){debug=true;window.$=function(a){if(document.getElementById(a)===null){con("$ error: "+a+" is null");return null}return document.getElementById(a)};if(window.console){if(typeof console.clear!=="undefined"&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1){console.clear()}else{console.log(Array(5).join("\n"))}console.log("=== CLEAR CONSOLE on RELOAD ===");console.log("Debug started at "+Time());Bench(true);window.con=function(a){if(a===undefined){console.log("CONSOLE: Test.")}else{console.log(a)}};window.err=function(a,b){console.log('Error calling "'+a+'": '+(b!==undefined?b:"wrong arguments"))}}}function con(){}function err(){}function Ajax(a){Ajax.xml=Ajax.xml||[];Ajax.www=Ajax.www||[];Ajax.called=Ajax.called||[];Ajax.init=function(b){Ajax.xml[a]=null;try{Ajax.xml[a]=new XMLHttpRequest()}catch(c){try{Ajax.xml[a]=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{Ajax.xml[a]=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){alert("AJAX is not available!")}}}};Ajax.type=function(b){Ajax.xml[a].responseType=b};Ajax.response=function(){return Ajax.xml[a].responseText};Ajax.responseXML=function(){return Ajax.xml[a].responseXML};Ajax.error=function(){return Ajax.xml[a].responseText.indexOf("ERROR:")>-1};Ajax.replace=function(c,b){return Ajax.xml[a].responseText.replace(c,b)};Ajax.find=function(b){return Ajax.xml[a].responseText.indexOf(b)>-1};Ajax.abort=function(){Ajax.xml[a].onreadystatechange=function(){};Ajax.xml[a].abort()};Ajax.post=function(c,b,e,d){Ajax(a).call(c,b,e,d)};Ajax.call=function(d,c,g,e){var b,h=g!==undefined?"post":"get";if(Ajax.xml[a].readyState>0&&Ajax.xml[a].readyState<4){if(e===undefined){e=0}else{if(e>=12){var f=new Date().getTime()-Ajax.called[a];if(f>10000){alert("Ajax call ("+Ajax.www[a]+") could not be finished (State:"+Ajax.xml[a].readyState+")")}else{alert('Ajax call "'+d+'" could not be launched.\nAjax is still busy with "'+Ajax.www[a]+'" (State:'+Ajax.xml[a].readyState+").\nPlease try again.")}return false}}e++;window.setTimeout(function(){Ajax(a).call(d,c,g,e)},e*250);return false}Ajax.xml[a].open(h,d,true);if(c!==undefined){if(typeof(c)!="function"){b=c;c=function(){$(b).innerHTML=Ajax.xml[a].responseText}}Ajax.xml[a].onreadystatechange=function(){if(Ajax.xml[a].readyState===4&&Ajax.xml[a].status===200){c.call()}}}else{Ajax.xml[a].onreadystatechange=function(){}}if(h=="post"){Ajax.xml[a].setRequestHeader("Content-type","application/x-www-form-urlencoded")}else{g=null}Ajax.xml[a].send(g);Ajax.called[a]=new Date().getTime();Ajax.www[a]=d;return false};return(window.Ajax=Ajax)}function Delay(c){var b=new Date(),a=null;do{a=new Date()}while(a-b0){a=a!==undefined?a:50;$$(c).opacity(b);ti.fade=window.setTimeout("FadeOut('"+c+"',"+(b-5)+","+a+");",a)}}function WipeOut(c,b,e){var d=$((e==-1?"":"temp_")+"content");d.style.marginLeft=e*(c-b)+"px";var a=b-25;if(a<0){a=0}if(b>0){window.setTimeout("WipeOut("+c+","+a+","+e+");",1)}else{$$("content").remove();$("temp_content").id="content"}}function $(a){return document.getElementById(a)}function $$(a){if((obj=document.getElementById(a))!==null){$$.html=function(b){if(b!==undefined){obj.innerHTML=b}else{return obj.innerHTML}};$$.left=function(b){if(b===undefined){return obj.offsetLeft}else{obj.style.left=b+"px";obj.style.posLeft=b}};$$.top=function(b){if(b===undefined){return obj.offsetTop}else{obj.style.top=b+"px";obj.style.posTop=b}};$$.display=function(b){obj.style.display=(b===undefined)?"none":b};$$.visibility=function(b){obj.style.visibility=(b===undefined||b===false)?"hidden":"visible"};$$.opacity=function(b){obj.style.MozOpacity=((b/100)+0.001);obj.style.opacity=(b/100)+0.001;obj.style.filter="alpha(opacity="+b+")";if(b==100&&obj.style.filter&&obj.style.removeAttribute){obj.style.removeAttribute("filter")}};$$.height=function(b){if(b===undefined){return obj.clientHeight}else{obj.style.height=b+"px"}};$$.width=function(b){if(b===undefined){return obj.clientWidth}else{obj.style.width=b+"px"}};$$.bg=function(b){obj.style.background=b};$$.position=function(c,b){$$(a).left(c);$$(a).top(b)};$$.size=function(c,b){$$(a).width(c);$$(a).height(b)};$$.remove=function(){if($(a)!==null){node=$(a);if(node.parentNode!==undefined){node.parentNode.removeChild(node)}}};$$.current_display=function(){if(obj.currentStyle){return obj.currentStyle.display}else{if(window.getComputedStyle){return window.getComputedStyle(obj,null).getPropertyValue("display")}}}}else{con("$$: "+a+" is not defined.")}return(window.$$=$$)}function Frm(a){return document.forms[a]}function Tbl(a){return $(a)!==null?$(a).tBodies[0]:null}function AddNewStyleRule(a,c){var b=document.styleSheets[0];if(b.addRule){b.addRule(a,c)}else{if(b.insertRule){b.insertRule(a+" {"+c+"}",b.cssRules.length)}}}function ShowArray(b,d){for(var c=0;c<=b.length-1;c++){$$(b[c]).visibility(d)}}function DisplayArray(b,d){for(var c=0;c<=b.length-1;c++){$$(b[c]).display(d)}}var img=(function(){var b=[];function a(c){if(c!=""){if(c.substr(c.length-1,1)!="/"){c+="/"}}return c}return{cache:function(d,c){con("Caching: "+c);d=a(d);for(var e=0;e<=c.length-1;e++){this.pic=new Image();this.pic.src=d+c[e]}},cycle:function(f,e,c,d){if(f!==undefined){if(arguments.length!=4){err("img.cycle");return}b.id=f;b.dir=a(e);b.arr=c;b.delay=d;b.current=0}FadeIn(b.id,15);if($(b.id).src!=b.dir+b.arr[b.current]){$(b.id).src=b.dir+b.arr[b.current]}b.current++;if(b.current>=b.arr.length){b.current=0}window.setTimeout(img.cycle,b.delay);if(f!==undefined){img.cache(e,c.slice(1,c.length))}}}})();function inArray(c,d){var b=c.length;for(var e=0;e=0){if(c[a].substring(0,e)==b){return c[a].substring(e+1);break}}}return false}var base64=(function(){var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",e,g,p,l,k,o,n,j,h;return{encode:function(a){e="";g=0;while(g>2;n=((p&3)<<4)|(l>>4);j=((l&15)<<2)|(k>>6);h=k&63;if(isNaN(l)){j=h=64}else{if(isNaN(k)){h=64}}e+=f.charAt(o)+f.charAt(n)+f.charAt(j)+f.charAt(h)}return e},decode:function(a){e="";g=0;a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(g>4);l=((n&15)<<4)|(j>>2);k=((j&3)<<6)|h;e+=String.fromCharCode(p)+(j!=64?String.fromCharCode(l):"")+(h!=64?String.fromCharCode(k):"")}return e}}}());function Pad(b,a){b+="";while(b.length0){c_start=document.cookie.indexOf(a+"=");if(c_start!=-1){c_start=c_start+a.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1){c_end=document.cookie.length}return unescape(document.cookie.substring(c_start,c_end))}}return""}}})();