/* ,.·'`'·.,,.·'`'·.,,.·'`'·.,,.·'`'·.,,.·'`'·.,,.·'`'·.,,.·'`'·.,,.·'`'·.,,. *\

   Zen JavaScript DHTML
   (c) 2006 Zendhi Nagao <nagaozen@hotmail.com>

   This Lib is freely distributable under the terms of an MIT-style license.
   For details, see Zen web site: http://zend.lojcomm.com.br

   ps[0]: This Lib is derived from Dithered 1k JS library
          http://www.dithered.com

\* ,.·'`'·.,,.·'`'·.,,.·'`'·.,,.·'`'·.,,.·'`'·.,,.·'`'·.,,.·'`'·.,,.·'`'·.,,. */

var imgsPath="design/images/";

var d=document;var l=d.layers;var op=navigator.userAgent.indexOf('Opera')!=-1;var ie=d.all?1:0;
function gE(e,f){if(l){f=(f)?f:self;var V=f.d.layers;if(V[e])return V[e];for(var W=0;W<V.length;)t=gE(e,V[W++]);return t;}g=(f)?f:d;if(g.all)return g.all[e];return g.getElementById(e);}

function sE(e){l?e.visibility='show':e.style.visibility='visible';}
function hE(e){l?e.visibility='hide':e.style.visibility='hidden';}

function gX(e){if(l){return e.left;}else if(ie){return e.style.pixelLeft;}else{return parseInt(e.style.getPropertyValue('left'));}}
function gY(e){if(l){return e.top;}else if(ie){return e.style.pixelTop;}else{return parseInt(e.style.getPropertyValue('top'));}}
function gW(e){if(l)return e.clip.width;else return e.offsetWidth;}
function gH(e){if(l)return e.clip.height;else return e.offsetHeight;}
function gO(e){if(ie){var a=/opacity=(\d+)/gi.exec(e.style.filter);if(a==null)return 100;else return a[1];}else{if(e.style.opacity=="")return 100;else return e.style.opacity*100;}}

function sX(e,x){l?e.left=x:op?e.style.pixelLeft=x:e.style.left=x;}
function sY(e,y){l?e.top=y:op?e.style.pixelTop=y:e.style.top=y;}
function sZ(e,z){l?e.zIndex=z:e.style.zIndex=z;}
function sW(e,w,m){if(typeof m)m=0;l?e.clip.width=w:op?e.style.pixelWidth=w:e.style.width=w-m;}
function sH(e,h,m){if(typeof m)m=0;l?e.clip.height=h:op?e.style.pixelHeight=h:e.style.height=h-m;}
function sO(e,o){ie?e.style.filter="alpha(opacity="+o+")":e.style.opacity=(o/100);}
function sC(e,t,r,b,x){l?(X=e.clip,X.top=t,X.right=r,X.bottom=b,X.left=x):e.style.clip='rect('+t+' '+r+' '+b+' '+x+')';}

function cC(e,c){e.className=c;}
function hC(e,c){if(e.className==null){if(c==null)return true;else return false;}var namesArray=e.className.split(" ");for(var i=0;i<namesArray.length;i++)if(namesArray[i]==c)return true;return false;}
function rC(e,c){if(e.className==null)return;var newNamesArray=new Array();var namesArray=e.className.split(" ");for(var i=0;i<namesArray.length;i++)if(namesArray[i]!=c)newNamesArray.push(namesArray[i]);e.className=newNamesArray.join(" ");}

function wH(e,h){if(l){Y=e.document;Y.open();Y.write(h);Y.close();}else if(e.innerHTML){e.innerHTML='';e.innerHTML=h;}}
function cH(e1,e2){wH(e2,e1.innerHTML);}

function mL(e,x,y){sX(e,x);sY(e,y);}
function rL(e,w,h,m){if(ie)m=0;sW(e,w,m);sH(e,h,m);}

function bW(){if(!ie)return window.innerWidth-20;else return d.body.clientWidth;}
function bH(){if(!ie)return window.innerHeight;else return d.body.clientHeight;}
function pW(){var pw;if(d.body.scrollWidth>d.body.offsetWidth)pw=d.body.scrollWidth;else pw=d.body.offsetWidth;if(pw<bW())pw=bW();return pw;}
function pH(){var ph;if(d.body.scrollHeight>d.body.offsetHeight)ph=d.body.scrollHeight;else ph=d.body.offsetHeight;if(ph<bH())ph=bH();return ph;}
function rX(){if(!ie)return window.pageXOffset;else return d.body.scrollLeft;}
function rY(){if(!ie)return window.pageYOffset;else return d.body.scrollTop;}

function sI(id,i){e=gE(id);e.src=i;}
function dE(id,s){e=gE(id);if(typeof s=="undefined")s=(e.style.display=="none")?1:0;e.style.display=(s==1)?'':'none';}
function pI(){d.pli=new Array();var i,a=pI.arguments;for(i=0;i<a.length;i++){d.pli[i]=new Image();d.pli[i].src=a[i];}}
function wait(t){var st,now,dif;st=new Date();while(1){now = new Date();dif = now-st;if(dif>t) return;}}

if(window.ActiveXObject && !window.XMLHttpRequest){window.XMLHttpRequest=function(){return new ActiveXObject('Microsoft.XMLHTTP');}}
function ajaxRequest(fn,url,postdata){sE(gE("mouseTrail"));if(!postdata)postdata=null;r=new XMLHttpRequest();r.onreadystatechange=function(){ajaxExecute(fn,r);};if(postdata==null){r.open("GET",url,true);}else{r.open("POST",url,true);r.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8");}r.setRequestHeader("If-Modified-Since","Tue, 31 Aug 1982 00:00:00 GMT");r.send(postdata);}
function ajaxExecute(fn,obj){if(obj.readyState==4){hE(gE("mouseTrail"));if(obj.status==200)this.tmr=window.setTimeout(""+ eval(fn) +"",100);else alert(obj.status+" - "+obj.statusText);}}
function ajaxDisplay(id,obj){e=gE(id);wH(e,obj.responseText);}