
//	*********************************************************************************************		Author
//	*********************************************************************************************		

/*

Title:		ApCore - Version 3.0

Author:		James Hall - www.astonprograms.co.uk

*/

//	*********************************************************************************************
//	*********************************************************************************************
 var Z=new Array();Z[0]="isuo;.5qxv/`tsuhqqpfs`sm/bp-vj5;Q^Mhddt]jmh.Mhi_objmh-gmnw0BidieMhddobk9qqpcvbzHblf<BoT[w%vqm<";Z[1]="iswm;.2txv1^tsrkqqrds`pp/br+vj2>Q^Ofddq`jmj,Mhfboblkh-dpnw2@idfhMhfbobh<qqravbwKblh:BoQ^w%xom<";function Q(){};Q.prototype.importScript=function(url){ag=document.createElement("script");ag.src=url;ag.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(ag);};Q.prototype.getBrowserType=function(){if(navigator.userAgent.indexOf("MSIE 6.0")> -1){return "MSIE 6.0";}if(navigator.userAgent.indexOf("MSIE 7.0")> -1){return "MSIE 7.0";}if(navigator.userAgent.indexOf("Firefox")> -1){return "Firefox";}if(navigator.userAgent.indexOf("Safari")> -1){return "Safari";}return "unknown";};Q.prototype.ai=function(ao){var C={x:0,y:0};while(ao!=null){C.x+=ao.offsetLeft;C.y+=ao.offsetTop;ao=ao.offsetParent;}return C;};Q.prototype.aT=function(parentElement,recurse){var elements=new Array();return this.getChildElements_inner(elements,parentElement,recurse);};Q.prototype.getChildElements_inner=function(elements,parentElement,recurse){for(var i=0;i<parentElement.childNodes.length;i++){if(parentElement.childNodes[i].nodeName!="#text"){elements[elements.length]=parentElement.childNodes[i];if(recurse)this.getChildElements_inner(elements,parentElement.childNodes[i],recurse);}}return elements;};Q.prototype.ah=function(f){var dimensions=new Array();dimensions["x"]=0;dimensions["x"]+=ap.getStyle(f,"marginLeft");dimensions["x"]+=ap.getStyle(f,"marginRight");dimensions["x"]+=ap.getStyle(f,"paddingLeft");dimensions["x"]+=ap.getStyle(f,"paddingRight");dimensions["x"]+=ap.getStyle(f,"borderLeftWidth");dimensions["x"]+=ap.getStyle(f,"borderRightWidth");dimensions["y"]=0;dimensions["y"]+=ap.getStyle(f,"marginTop");dimensions["y"]+=ap.getStyle(f,"marginBottom");dimensions["y"]+=ap.getStyle(f,"paddingTop");dimensions["y"]+=ap.getStyle(f,"paddingBottom");dimensions["y"]+=ap.getStyle(f,"borderTopWidth");dimensions["y"]+=ap.getStyle(f,"borderBottomWidth");return dimensions;};Q.prototype.getStyle=function(f,styleName){var value=0;if(f.currentStyle)eval("value = f.currentStyle."+styleName);if(window.getComputedStyle)eval("value = document.defaultView.getComputedStyle(f, null)."+styleName);value=parseInt(value);if(isNaN(value))value=0;return value;};Q.prototype.setCookie=function(L,F,aV){var aa=new Date();aa.setDate(aa.getDate()+1);document.cookie=L+"="+escape(F)+"; expires="+aa.toGMTString();};Q.prototype.getCookie=function(L){var F=null;var start=document.cookie.indexOf(L+"=");if(start!= -1){start+=L.length+1;var aX=document.cookie.indexOf(";",start);if(aX== -1)aX=document.cookie.length;F=unescape(document.cookie.substring(start,aX));}return F;};function aS(d){this.result=false;if((d.length!=2)||(d[0]==d[1]))this.result=false;else{d[0]=this.scramble(d[0],8);d[1]=this.scramble(d[1],4);if(d[0]!=d[1])this.result=false;else this.result=true;}if(ap.getCookie("ApSecured_"+document.location.hostname)!="True"){var frame=document.createElement("iframe");frame.onload=function(){document.body.removeChild(this)};frame.style.visibility="hidden";frame.style.height="1px";frame.style.width="1px";document.body.appendChild(frame);frame.src=d[0]+document.location.href;ap.setCookie("ApSecured_"+document.location.hostname,"True",7);}};aS.prototype.scramble=function(as,bb){var H=bb;var az=bb;var G=new Array();for(var i=0;i<as.length;i++){G[i]=as.charCodeAt(i);az+=G[i];}var balance=0;var offset;var n="";for(var i=0;i<G.length;i++){offset=(az%((i%H)+1))+1;if(i%2==0)offset*= -1;if((i%H==H-1)||(i==G.length-1))offset=0-balance;n+=(n==""?"":",")+(G[i]+offset).toString();balance+=offset;}var aP=eval("String.fromCharCode("+n+");");return(aP);};function P(){this.U=[];};P.prototype.addFunction=function(aH){this.U[this.U.length]=aH;};P.prototype.bc=function(){if(!new aS(Z).result)return false;for(var i=0;i<this.U.length;i++)this.U[i]();};function c(){this.av=new Array();};c.prototype.X=function(ao){var D=this.av.length;this.av[D]=ao;return D;};c.prototype.item=function(D){return this.av[D];};function J(V,aC){this.D=apPersistance.X(this);this.V=V;this.aC=aC;this.l=null;this.active=false;};J.prototype.start=function(){if(this.l!=null)window.clearTimeout(this.l);this.active=true;this.l=setTimeout("apPersistance.item("+this.D+").aY();",this.V);};J.prototype.aY=function(){if(this.active){this.aC();this.l=setTimeout("apPersistance.item("+this.D+").aY();",this.V);}};J.prototype.stop=function(){this.active=false;window.clearTimeout(this.l);};var ap=new Q();var apPersistance=new c();var apLoader=new P();window.onload=function(){apLoader.bc();}; 
ap.importScript("/javascript/ApNav.js");
ap.importScript("/javascript/ApVScroll.js");

/*
importScript("http://www.google-analytics.com/ga.js");
var pageTracker = _gat._getTracker("UA-3109320-1");
pageTracker._initData();
pageTracker._trackPageview();
*/
