/* eXtropia Web Framework (c) 2006, eXtropia Studios */
var _t=true;var _f=false;var _ua=navigator.userAgent;var _w=window;var _d=document;_w.a=_w.alert;_w.p=_w.prompt;_w.sT=_w.setTimeout;_w.cT=_w.clearTimeout;_w.sI=_w.setInterval;_w.cI=_w.clearInterval;_d.gI=_d.getElementById;_d.gN=_d.getElementsByName;_d.gT=_d.getElementsByTagName;_d.cE=_d.createElement;_s=["Opera","function","iface_header","iface_cont","none","block","Error:","&d_rpcid=","?d_rpcid=","\">\n","about:blank","dragbar","drag","visible","name",0];function UA(){}UA.ie55=(_ua.indexOf("MSIE 5.5")>-1);UA.ie5=(_ua.indexOf("MSIE 5")>-1);UA.ie6=(_ua.indexOf("MSIE 6")>-1&&_ua.indexOf(_s[0])==-1);UA.ie50=(UA.ie5&&!UA.ie55);UA.ie=(UA.ie5||UA.ie6);UA.opr=(_ua.indexOf(_s[0])>-1);UA.sfr=(_ua.indexOf("Safari")>-1);UA.ffx=(_ua.indexOf("Firefox")>-1);UA.ie5m=(UA.ie5&&_ua.indexOf("Mac_PowerPC")>-1);UA.dom=(_d.gI&&!_d.all);if(UA.ie5m){_d.gI=function(e){return _d.all[e];};_w.sT=function(a,t){return setTimeout(a,t);};_w.cT=function(t){return clearTimeout(t);};}if(UA.ie){_d.gN=function(name){var a=new Array();var j=0;for(var i in _d.all){if(_d.all[i].name&&_d.all[i].name==name){a[j++]=_d.all[i];}}return a;};}function If(){}If.minS=[0,0];If.view=[0,0];If.pad=16;If.hdrH=0;If.rTO=null;If.pgMd=0;If.z=0;If.nextZ=function(){return++If.z;};If.getPM=function(){return If.pgMd;};If.resize=function(szInf){};If.getView=function(){if(!If.pgMd){If.view[0]=document.body.clientWidth;If.view[1]=document.body.clientHeight;}else{if(UA.sfr){If.view[0]=self.innerWidth;If.view[1]=self.innerHeight;}else{if(!UA.opr&&_d.documentElement&&_d.documentElement.clientWidth>0){If.view[0]=_d.documentElement.clientWidth;}else{If.view[0]=document.body.clientWidth;}if(!UA.opr&&_d.documentElement&&_d.documentElement.clientHeight>0){If.view[1]=_d.documentElement.clientHeight;}else{If.view[1]=document.body.clientHeight;}}}if(If.view[0]<If.minS[0])If.view[0]=If.minS[0];if(If.view[1]<If.minS[1])If.view[1]=If.minS[1];};If.getW=function(){return If.view[0];};If.getH=function(){return If.view[1];};If.getX=function(e){if(!e){e=_w.event;}try{if(UA.sfr){return e.clientX-If.getSL();}else{return e.clientX;}}catch(err){return 0;}};If.getY=function(e){if(!e){e=_w.event;}try{if(UA.sfr){return e.clientY-If.getST();}else{return e.clientY;}}catch(err){return 0;}};If.getSL=function(){switch(If.pgMd){case 0:return document.body.scrollLeft;case 1:if(_d.documentElement&&_d.documentElement.scrollLeft>0){return _d.documentElement.scrollLeft;}else{return document.body.scrollLeft;}}};If.getST=function(){switch(If.pgMd){case 0:return document.body.scrollTop;case 1:if(_d.documentElement&&_d.documentElement.scrollTop>0){return _d.documentElement.scrollTop;}else{return document.body.scrollTop;}}};If.getObjPos=function(obj){var pos=[0,0];if(obj.offsetParent){while(obj.offsetParent){pos[0]+=obj.offsetLeft;pos[1]+=obj.offsetTop;obj=obj.offsetParent;}}else{if(obj.x)pos[0]+=obj.x;if(obj.y)pos[1]+=obj.y;}return pos;};If.addLoad=function(fn){var oFn=_w.onload;if(typeof _w.onload!=_s[1]){_w.onload=fn;}else{_w.onload=function(){oFn();fn();}}};If.addAbort=function(fn){var oFn=_w.onabort;if(typeof _w.abort!=_s[1]){_w.abort=fn;}else{_w.abort=function(){oFn();fn();}}};If.addResize=function(fn){var oFn=If.resize;if(typeof oFn!=_s[1]){If.resize=fn;}else{If.resize=function(szInf){oFn(szInf);fn(szInf);}}};If.addHandler=function(e,f,o){if(!o)o=document;if(UA.ie){o.attachEvent("on"+e,f);}else{o.addEventListener(e,f,_t);}};If.remHandler=function(e,f,o){if(!o)o=document;if(UA.ie){o.detachEvent("on"+e,f);}else{o.removeEventListener(e,f,_t);}};If.tgglHdr=function(){try{var h=_d.gI(_s[2]);var e=_d.gI(_s[3]);if(h.style.display==_s[4]){If.resize([If.view[0],If.view[1],e?e.offsetWidth:0,e?e.offsetHeight:0,If.hdrH,If.pad]);h.style.display=_s[5];If.hdrH=h.offsetHeight;}else{h.style.display=_s[4];If.resize([If.view[0],If.view[1],e?e.offsetWidth:0,e?e.offsetHeight:0,0,If.pad]);}}catch(err){_w.a("If.tgglHdr error : "+err.toString());}};If.maximize=function(){try{var e=_d.gI(_s[3]);If.resize([If.view[0],If.view[1],e?e.offsetWidth:0,e?e.offsetHeight:0,If.hdrH,If.pad]);}catch(err){_w.a("If.maximize error : "+err.toString());}};If.init=function(){if(document.compatMode){switch(document.compatMode){case "BackCompat":case "QuirksMode":If.pgMd=0;break;case "CSS1Compat":If.pgMd=1;break;}}else{if(UA.ie5){If.pgMd=0;}if(UA.sfr){If.pgMd=1;}}If.getView();var h=_d.gI(_s[2]);If.hdrH=(h?(h.style.display==_s[4]?0:h.offsetHeight):0);return 0;};If.reflow=function(){If.rTO=null;If.getView();var e=_d.gI(_s[3]);var h=_d.gI(_s[2]);var hdr=(h?(h.style.display==_s[4]?0:If.hdrH):0);If.resize([If.view[0],If.view[1],e?e.offsetWidth:0,e?e.offsetHeight:0,hdr,If.pad]);};If.setMin=function(w,h){If.minS[0]=w;If.minS[1]=h;};_w.onresize=function(){if(If.rTO)_w.cT(If.rTO);If.rTO=_w.sT("If.reflow()",25);};If.stopEvent=function(e){if(!e)var e=_w.event;e.cancelBubble=_t;if(e.stopPropagation)e.stopPropagation();};If.addLoad(If.init);function DirectRPC(url,upd,tmo,tmd){this.url=url;this.upd=upd;this.num=DirectRPC.cnt++;this.iFId="drpcframe_"+this.num;this.iFrm=null;this.doc=null;this.wDTO=null;if(tmo){this.wDTO=tmo;}if(tmd){this.wDD=tmd;}else{this.wDD=5000;}this.wD=null;this.wDA="window.dRPC["+this.num+"].doTmo()";_w.dRPC[this.num]=this;if(this.url){if(this.url.indexOf("?")>-1){this.url+=_s[7]+this.num;}else{this.url+=_s[8]+this.num;}}this.setOnUpdate=function(upd){this.upd=upd;};this.getOnUpdate=function(){return this.upd;};this.setOnTimeout=function(tmo){this.wDTO=tmo;};this.getOnTimeout=function(){return this.wDTO;};this.response=function(d){if(this.wD){_w.cT(this.wD);this.wD=null;}if(this.upd){if(d){this.upd(d);}}};this.request=function(url,tmo){this.init();var doc;if(url){if(url.indexOf("?")>-1){url+=_s[7]+this.num;}else{url+=_s[8]+this.num;}}else url=this.url;if(url){try{if(this.iFrm.contentDocument){doc=this.iFrm.contentDocument;}else if(this.iFrm.contentWindow){doc=this.iFrm.contentWindow.document;}else if(this.iFrm.document){doc=this.iFrm.document;}if(doc!=document){doc.location.replace(url);}if(tmo){if(this.wD){_w.cT(this.wD);}this.wD=_w.sT(this.wDA,this.wDD);}}catch(e){_w.a("RPC failed : "+e.toString());this.iFrm.src=url;}}};this.requestPost=function(url,argN,argV,tmo){this.init();var fDat="";try{for(var i in argN){fDat+="<input type=\"hidden\" name=\""+argN[i]+_s[9];}}catch(e){_w.a(_s[6]+e.toString());return;}var doc;if(url){if(url.indexOf("?")>-1){url+=_s[7]+this.num;}else{url+=_s[8]+this.num;}}else url=this.url;if(url){if(this.iFrm.contentDocument){doc=this.iFrm.contentDocument;}else if(this.iFrm.contentWindow){doc=this.iFrm.contentWindow.document;}else if(this.iFrm.document){doc=this.iFrm.document;}if(doc!=document){try{doc.body.innerHTML=("<form id=\"call\" method=\"POST\" action=\""+url+_s[9]+fDat+"</form>");var form=doc.getElementById("call");for(var i in argN){form[argN[i]].value=argV[i];}form.submit();if(tmo){if(this.wD){_w.cT(this.wD);}this.wD=_w.sT(this.wDA,this.wDD);}}catch(e){_w.a(_s[6]+e.toString());}}}};this.doTmo=function(){this.wD=null;if(this.wDTO){if(this.wDTO()){this.wD=_w.sT(this.wDA,this.wDD);return;}}};this.cancelRequest=function(){try{if(this.iFrm.contentDocument){doc=this.iFrm.contentDocument;}else if(this.iFrm.contentWindow){doc=this.iFrm.contentWindow.document;}else if(this.iFrm.document){doc=this.iFrm.document;}if(doc!=document){doc.location.replace(_s[10]);}if(this.wD){_w.cT(this.wD);this.wD=null;}}catch(e){this.iFrm.src=_s[10];}};this.init=function(){if(this.iFrm)return;if(_d.cE){try{var t=_d.cE("iframe");t.setAttribute('id',this.iFId);t.style.width="0px";t.style.height="0px";t.style.border="0px";this.iFrm=document.body.appendChild(t);}catch(err){document.body.innerHTML+='<iframe id="' + this.iFId + '" style="width:0px;height:0px;border:0px;"></iframe>';this.iFrm=new Object();this.iFrm.document=new Object();this.iFrm.document.location=new Object();this.iFrm.document.location.iframeX=_d.gI(this.iFId);this.iFrm.document.location.replace=function(addr){this.iframeX.src=addr;};}}};if(document)this.init();}DirectRPC.cnt=0;_w.dRPC=new Array();function Drag(){}Drag.ok;Drag.z;Drag.x;Drag.obj;Drag.tX;Drag.tY;Drag.init=function(){Drag.ok=_f;Drag.obj=null;If.addHandler("mousedown",function(e){if(!UA.ie&&!UA.dom)return;var hit=UA.dom?e.target:event.srcElement;var root=UA.dom?"HTML":"BODY";while(hit.tagName!=root&&hit.className!=_s[11]){hit=UA.dom?hit.parentNode:hit.parentElement;}if(hit.className!=_s[11])return;while(hit.tagName!=root&&hit.className!=_s[12]){hit=UA.dom?hit.parentNode:hit.parentElement;}if(hit.className==_s[12]){Drag.ok=_t;Drag.obj=hit;Drag.obj.opc=Drag.obj.style.opacity;Drag.obj.style.zIndex=If.nextZ();Drag.tX=parseInt(Drag.obj.style.left+0);Drag.tY=parseInt(Drag.obj.style.top+0);Drag.x=UA.dom?e.clientX:event.clientX;Drag.y=UA.dom?e.clientY:event.clientY;}});If.addHandler("mouseup",function(){Drag.ok=_f;});If.addHandler("mousemove",function(e){if(Drag.ok){Drag.obj.style.left=String(UA.dom?Drag.tX+e.clientX-Drag.x:Drag.tX+event.clientX-Drag.x)+"px";Drag.obj.style.top=String(UA.dom?Drag.tY+e.clientY-Drag.y:Drag.tY+event.clientY-Drag.y)+"px";return _f;}});};Drag.set=function(id,x,y,w,h){var e=null;if(id===id.toString()){e=_d.gI(id);}else if(id){e=id;}if(e){if(x){e.style.left=x.toString()+"px";}if(y){e.style.top=y.toString()+"px";}if(w){e.style.width=w.toString()+"px";}if(h){e.style.height=h.toString()+"px";}e.style.zIndex=If.nextZ();}return e;};Drag.openDL=function(id,x,y,w,h){try{var e=Drag.set(id,x,y,w,h);if(e){e.style.visibility=_s[13];e.style.display=_s[5];return e;}else{e=_d.cE("div");e.setAttribute("id",id);e.setAttribute("class",_s[12]);e.style.left=x.toString()+"px";e.style.top=y.toString()+"px";e.style.width=w.toString()+"px";e.style.height=h.toString()+"px";e.style.visibility=_s[13];e.style.display=_s[5];return document.body.appendChild(e);}}catch(err){_w.a("Drag.openDL error : "+err.toString());}};Drag.closeDL=function(e){if(e.toString()===e){e=_d.gI(e);}if(e){if(e.className==_s[12]){e.style.display=_s[4];e.style.visibility="hidden";}}};If.addLoad(Drag.init);function LJ(){}LJ.rt="/theleander/";LJ.pgs=["about/","downloads/","projects/","links/"];LJ.dl=[null,null,null,null];LJ.rpc=null;LJ.dlX=[0,0,0,0];LJ.dlY=[143,143,134,143];LJ.dlW=[632,632,632,632];LJ.dlH=[0,0,0,0];LJ.ldlT=[null,null,null,null];LJ.ldlC=[null,null,null,null];LJ.bsy=[null,null,null,null];LJ.rpcCB=function(cD){LJ.ldlT[cD[2]].innerHTML=cD[0].innerHTML;LJ.ldlC[cD[2]].innerHTML=cD[1].innerHTML;if(!LJ.dl[cD[2]])LJ.dl[cD[2]]=Drag.openDL('ldl_'+cD[2],LJ.dlX[cD[2]],LJ.dlY[cD[2]],LJ.dlW[cD[2]],LJ.dlH[cD[2]]);else Drag.openDL(LJ.dl[cD[2]]);Fader.fadeOut(LJ.bsy);LJ.loadDfrd();};LJ.show=function(sect){Fader.fadeIn(LJ.bsy);LJ.rpc.request(LJ.pgs[sect]);};LJ.hide=function(n){Drag.closeDL(LJ.dl[n]);};LJ.em=function(event,s){try{var n=s.getAttribute(_s[14]);var re=/{at}/gi;n=n.replace(re,"@");re=/\{dot}/gi;n=n.replace(re,".");_w.location=("mailto:"+n);}catch(e){_w.a("Sorry, was unable to process address");}try{event.stopPropagation();}catch(e){}};LJ.loadDfrd=function(){try{var dfrd=_d.gN("ldme");for(var i=0;i<dfrd.length;i++){var d=dfrd[i];if(d&&!d.done&&d.getAttribute){d.src=d.getAttribute("id");d.setAttribute(_s[14],"ldme_done");d.done=_t;}}}catch(e){_w.a("Error loading deferred : "+e.toString());}};LJ.reqPrj=function(fn){Fader.fadeIn(LJ.bsy);LJ.rpc.request(LJ.rt+LJ.pgs[2]+"request.php?pf="+fn);};LJ.init=function(){try{LJ.rpc=new DirectRPC(null,LJ.rpcCB);If.getView();for(var i=0;i<4;i++){LJ.dlX[i]=((If.getW()-LJ.dlW[i])/2)+(i<<5);LJ.dlY[i]+=(i<<5);LJ.ldlT[i]=_d.gI("ldl_title_"+i);LJ.ldlC[i]=_d.gI("ldl_content_"+i);}LJ.bsy=_d.gI("busy");}catch(e){_w.a("Sorry, there has been a problem\n"+e.toString());}};If.addLoad(LJ.init);function Fader(t,e,mn,mx){this.e=e;var first=null;if(this.e instanceof Array){for(var i in this.e){if(typeof(this.e[i])=="string"){this.e[i]=_d.gI(this.e[i]);}}first=this.e[0];}else{first=this.e;}if(Fader.ie){this.setOpc=this.setOpcIE;}else if(typeof(first.style.opacity)!="undefined"){this.setOpc=this.setOpcW3;}else{this.setOpc=this.setOpcVs;}this.t=t;this.o=0;this.d=1;this.iv=null;this.stop=function(){if(this.iv){_w.cI(this.iv);this.iv=null;}};this.start=function(){var o=this;this.iv=_w.sI(function(){o.calcOpc();},this.t)};this.fIn=function(){this.d=1;this.start();};this.fOut=function(){this.d=0;this.start();};this.calcOpc=function(){if(this.d){if(this.o<9){this.o++;this.setOpc();}else{this.stop();}}else{if(this.o>0){this.o--;this.setOpc();}else{this.stop();}}}};Fader.prototype.setOpcVs=function(){};Fader.prototype.setOpcW3=function(){var x=0.1*this.o;try{if(this.e instanceof Array){for(var i in this.e){if(this.e[i].style)this.e[i].style.opacity=x;}}else{this.e.style.opacity=x;}}catch(e){alert(e.toString());}};Fader.prototype.setOpcIE=function(){var x=10*this.o;try{if(this.e instanceof Array){for(var i in this.e){this.e[i].filters.alpha.opacity=x;}}else{this.e.filters.alpha.opacity=x;}}catch(e){alert(e.toString());}};Fader.fadeOut=function(e){if(!e.fdr){e.fdr=new Fader(25,e);}else{e.fdr.stop();}e.fdr.fOut();};Fader.fadeIn=function(e){if(!e.fdr){e.fdr=new Fader(25,e);}else{e.fdr.stop();}e.fdr.fIn();};If.addLoad(function(){if(UA.ie){var e=_d.gT("img");for(var i in e){if(e[i].className=="trans"&&e[i].style){e[i].style.filter="alpha(opacity=0)";}}}});
/* 23044:13230 */