if(typeof Zapatec=="undefined"){Zapatec={};}Zapatec.Utils={};Zapatec.Utils.getAbsolutePos=function(E){var A=0,D=0;var C=/^div$/i.test(E.tagName);if(C&&E.scrollLeft){A=E.scrollLeft;}if(C&&E.scrollTop){D=E.scrollTop;}var F={x:E.offsetLeft-A,y:E.offsetTop-D};if(E.offsetParent){var B=this.getAbsolutePos(E.offsetParent);F.x+=B.x;F.y+=B.y;}return F;};Zapatec.Utils.fixBoxPosition=function(D){if(D.x<0){D.x=0;}if(D.y<0){D.y=0;}var E=Zapatec.Utils.createElement("div");var C=E.style;C.position="absolute";C.right=C.bottom=C.width=C.height="0px";window.document.body.appendChild(E);var B=Zapatec.Utils.getAbsolutePos(E);window.document.body.removeChild(E);if(Zapatec.is_ie){B.y+=window.document.body.scrollTop;B.x+=window.document.body.scrollLeft;}else{B.y+=window.scrollY;B.x+=window.scrollX;}var A=D.x+D.width-B.x;if(A>0){D.x-=A;}A=D.y+D.height-B.y;if(A>0){D.y-=A;}};Zapatec.Utils.isRelated=function(C,A){A||(A=window.event);var E=A.relatedTarget;if(!E){var B=A.type;if(B=="mouseover"){E=A.fromElement;}else{if(B=="mouseout"){E=A.toElement;}}}try{while(E){if(E==C){return true;}E=E.parentNode;}}catch(D){}return false;};Zapatec.Utils.removeClass=function(E,D){if(!(E&&E.className)){return ;}var A=E.className.split(" ");var B=[];for(var C=A.length;C>0;){if(A[--C]!=D){B[B.length]=A[C];}}E.className=B.join(" ");};Zapatec.Utils.addClass=function(B,A){Zapatec.Utils.removeClass(B,A);B.className+=" "+A;};Zapatec.Utils.getElement=function(A){if(Zapatec.is_ie){return window.event.srcElement;}else{return A.currentTarget;}};Zapatec.Utils.getTargetElement=function(A){if(Zapatec.is_ie){return window.event.srcElement;}else{return A.target;}};Zapatec.Utils.stopEvent=function(A){A||(A=window.event);if(A){if(Zapatec.is_ie){A.cancelBubble=true;A.returnValue=false;}else{A.preventDefault();A.stopPropagation();}}return false;};Zapatec.Utils.addEvent=function(A,C,B){if(A.attachEvent){A.attachEvent("on"+C,B);}else{if(A.addEventListener){A.addEventListener(C,B,false);}else{A["on"+C]=B;}}};Zapatec.Utils.removeEvent=function(A,C,B){if(A.detachEvent){A.detachEvent("on"+C,B);}else{if(A.removeEventListener){A.removeEventListener(C,B,false);}else{A["on"+C]=null;}}};Zapatec.Utils.createElement=function(D,C,A){var B=null;if(window.self.document.createElementNS){B=window.self.document.createElementNS("http://www.w3.org/1999/xhtml",D);}else{B=window.self.document.createElement(D);}if(typeof C!="undefined"&&C!=null){C.appendChild(B);}if(!A){if(Zapatec.is_ie){B.setAttribute("unselectable",true);}if(Zapatec.is_gecko){B.style.setProperty("-moz-user-select","none","");}}return B;};Zapatec.Utils.writeCookie=function(C,E,D,F,B){E=escape(E);var A=C+"="+E,G;if(D){A+=";domain="+D;}if(F){A+=";path="+F;}if(B){G=new Date();G.setTime(B*86400000+G.getTime());A+=";expires="+G.toGMTString();}document.cookie=A;};Zapatec.Utils.getCookie=function(B){var E=B+"=";var D=0;while(D<document.cookie.length){var A=D+E.length;if(document.cookie.substring(D,A)==E){var C=document.cookie.indexOf(";",A);if(C==-1){C=document.cookie.length;}return unescape(document.cookie.substring(A,C));}D=document.cookie.indexOf(" ",D)+1;if(D==0){break;}}return null;};Zapatec.Utils.makePref=function(C){function D(E){if(typeof E=="object"&&!E){return"null";}else{if(typeof E=="number"||typeof E=="boolean"){return E;}else{if(typeof E=="string"){return'"'+E.replace(/\22/,"\\22")+'"';}else{return null;}}}}var A="",B;for(B in C){A+=(A?",'":"'")+B+"':"+D(C[B]);}return A;};Zapatec.Utils.loadPref=function(txt){var obj=null;try{eval("obj={"+txt+"}");}catch(e){}return obj;};Zapatec.Utils.mergeObjects=function(A,C){for(var B in C){A[B]=C[B];}};Zapatec.Utils.__wch_id=0;Zapatec.Utils.createWCH=function(A){var C=null;A=A||window.self.document.body;if(Zapatec.is_ie&&!Zapatec.is_ie5){var B="filter:progid:DXImageTransform.Microsoft.alpha(style=0,opacity=0);";var D="WCH"+(++Zapatec.Utils.__wch_id);A.insertAdjacentHTML("beforeEnd",'<iframe id="'+D+'" scroll="no" frameborder="0" style="z-index:0;position:absolute;visibility:hidden;'+B+'border:0;top:0;left:0;width:0;height:0;" src="javascript:false;"></iframe>');C=window.self.document.getElementById(D);}return C;};Zapatec.Utils.setupWCH_el=function(I,A,D){if(I){var J=Zapatec.Utils.getAbsolutePos(A),F=J.x,M=J.y,C=F+A.offsetWidth,L=M+A.offsetHeight;if(D){var K=Zapatec.Utils.getAbsolutePos(D),H=K.x,E=K.y,G=H+D.offsetWidth,B=E+D.offsetHeight;if(F>H){F=H;}if(M>E){M=E;}if(C<G){C=G;}if(L<B){L=B;}}Zapatec.Utils.setupWCH(I,F,M,C-F,L-M);}};Zapatec.Utils.setupWCH=function(E,A,F,B,D){if(E){var C=E.style;(typeof A!="undefined")&&(C.left=A+"px");(typeof F!="undefined")&&(C.top=F+"px");(typeof B!="undefined")&&(C.width=B+"px");(typeof D!="undefined")&&(C.height=D+"px");C.visibility="inherit";}};Zapatec.Utils.hideWCH=function(A){if(A){A.style.visibility="hidden";}};Zapatec.Utils.getPageScrollY=function(){return window.pageYOffset||document.documentElement.scrollTop||(document.body?document.body.scrollTop:0)||0;};Zapatec.ScrollWithWindow={};Zapatec.ScrollWithWindow.list=[];Zapatec.ScrollWithWindow.stickiness=0.25;Zapatec.ScrollWithWindow.register=function(A){var C=parseInt(A.style.top)||0;var B=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop||0;C-=B;if(C<0){C=0;}Zapatec.ScrollWithWindow.list[Zapatec.ScrollWithWindow.list.length]={node:A,origTop:C};};Zapatec.ScrollWithWindow.unregister=function(B){for(var A=0;A<Zapatec.ScrollWithWindow.list.length;A++){var C=Zapatec.ScrollWithWindow.list[A];if(B==C.node){Zapatec.ScrollWithWindow.list.splice(A,1);return ;}}};Zapatec.ScrollWithWindow.handler=function(A){oldScrollY+=((A-oldScrollY)*this.stickiness);if(Math.abs(oldScrollY-A)<=1){oldScrollY=A;}for(var C=0;C<Zapatec.ScrollWithWindow.list.length;C++){var D=Zapatec.ScrollWithWindow.list[C];var B=D.node;if(!D.origTop){D.origTop=Zapatec.Utils.getAbsolutePos(B).y;B.style.position="absolute";}B.style.top=D.origTop+parseInt(oldScrollY)+"px";}};var oldScrollY=Zapatec.Utils.getPageScrollY();setInterval("var newScrollY = Zapatec.Utils.getPageScrollY(); if (newScrollY != oldScrollY) { Zapatec.ScrollWithWindow.handler(newScrollY); }",50);Zapatec.Utils.destroy=function(A){if(A&&A.parentNode){A.parentNode.removeChild(A);}};Zapatec.Utils.newCenteredWindow=function(A,H,B,I,F){var D=0;var G=0;if(screen.width){D=(screen.width-B)/2;}if(screen.height){G=(screen.height-I)/2;}var C="height="+I+",width="+B+",top="+G+",left="+D+",scrollbars="+F+",resizable";var E=window.open(A,H,C);return E;};Zapatec.Utils.getWindowSize=function(){var A=0;var B=0;if(document.compatMode&&document.compatMode=="CSS1Compat"){if(window.opera){A=document.body.clientWidth||0;B=document.body.clientHeight||0;}else{A=document.documentElement.clientWidth||0;B=document.documentElement.clientHeight||0;}}else{A=window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth||0;B=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight||0;}return{width:A,height:B};};Zapatec.Utils.selectOption=function(sel,val,call_default){var a=sel.options,i,o;for(i=a.length;--i>=0;){o=a[i];o.selected=(o.val==val);}sel.value=val;if(call_default){if(typeof sel.onchange=="function"){sel.onchange();}else{if(typeof sel.onchange=="string"){eval(sel.onchange);}}}};Zapatec.Utils.getNextSibling=function(C,A,B){C=C.nextSibling;if(!A){return C;}A=A.toLowerCase();if(B){B=B.toLowerCase();}while(C){if(C.nodeType==1&&(C.tagName.toLowerCase()==A||(B&&C.tagName.toLowerCase()==B))){return C;}C=C.nextSibling;}return C;};Zapatec.Utils.getFirstChild=function(C,A,B){if(!C){return null;}C=C.firstChild;if(!C){return null;}if(!A){return C;}A=A.toLowerCase();if(C.nodeType==1){if(C.tagName.toLowerCase()==A){return C;}else{if(B){B=B.toLowerCase();if(C.tagName.toLowerCase()==B){return C;}}}}return Zapatec.Utils.getNextSibling(C,A,B);};Zapatec.Utils.getChildText=function(C){if(C==null){return"";}var B=[];var A=C.firstChild;while(A!=null){if(A.nodeType==3){B.push(A.data);}A=A.nextSibling;}return B.join(" ");};Zapatec.Utils.insertAfter=function(B,A){if(B.nextSibling){B.parentNode.insertBefore(A,B.nextSibling);}else{B.parentNode.appendChild(A);}};Zapatec.Utils._ids={};Zapatec.Utils.generateID=function(A,B){if(typeof B=="undefined"){if(typeof this._ids[A]=="undefined"){this._ids[A]=0;}B=++this._ids[A];}return"zapatec-"+A+"-"+B;};Zapatec.Utils.addTooltip=function(B,A){return new Zapatec.Tooltip(B,A);};Zapatec.isLite=true;Zapatec.Utils.checkActivation=function(){if(!Zapatec.isLite){return true;}var G=[];add_product=function(J,I,K){G[J]={webdir:I,name:K,bActive:false};};add_product("calendar.js","prod1","Calendar");add_product("menu.js","prod2","Menu");add_product("tree.js","prod3","Tree");add_product("form.js","forms","Forms");add_product("effects.js","effects","Effects");add_product("hoverer.js","effects","Effects - Hoverer");add_product("slideshow.js","effects","Effects - Slidshow");add_product("zpgrid.js","grid","Grid");add_product("slider.js","slider","Slider");add_product("zptabs.js","tabs","Tabs");add_product("zptime.js","time","Time");add_product("window.js","windows","Window");var E,H,D;var B=false;var A=document.getElementsByTagName("script");for(D=0;D<A.length;D++){if(/wizard.js/i.test(A[D].src)){return true;}H=A[D].src.split("/");if(H.length==0){E=A[D];}else{E=H[H.length-1];}E=E.toLowerCase();if(typeof G[E]!="undefined"){B=true;G[E].bActive=true;}}if(!B){return true;}var F=document.getElementsByTagName("A");for(D=0;D<F.length;D++){if(/(dev|www)\.zapatec\.com/i.test(F[D].href)){return true;}}var C="You are using the Free version of the Zapatec Software.\nWhile using the Free version, a link to www.zapatec.com in this page is required.";for(D in G){if(G[D].bActive==true){C+="\nTo purchase the Zapatec "+G[D].name+" visit www.zapatec.com/website/main/products/"+G[D].webdir+"/";}}alert(C);return false;};Zapatec.is_opera=/opera/i.test(navigator.userAgent);Zapatec.is_ie=(/msie/i.test(navigator.userAgent)&&!Zapatec.is_opera);Zapatec.is_ie5=(Zapatec.is_ie&&/msie 5\.0/i.test(navigator.userAgent));Zapatec.is_mac_ie=(/msie.*mac/i.test(navigator.userAgent)&&!Zapatec.is_opera);Zapatec.is_khtml=/Konqueror|Safari|KHTML/i.test(navigator.userAgent);Zapatec.is_konqueror=/Konqueror/i.test(navigator.userAgent);Zapatec.is_gecko=/Gecko/i.test(navigator.userAgent);if(!Function.prototype.call){Function.prototype.call=function(){var self=arguments[0];self._this_func=this;var args=new Array();for(var i=1;i<arguments.length;i++){args[args.length]="arguments["+i+"]";}var ret=eval("self._this_func("+args.join(",")+")");self._this_func=null;return ret;};}if(!Array.prototype.pop){Array.prototype.pop=function(){var A;if(this.length){A=this[this.length-1];this.length-=1;}return A;};}if(!Array.prototype.push){Array.prototype.push=function(){for(var A=0;A<arguments.length;A++){this[this.length]=arguments[A];}return this.length;};}if(!Array.prototype.shift){Array.prototype.shift=function(){var B;if(this.length){B=this[0];for(var A=0;A<this.length-1;A++){this[A]=this[A+1];}this.length-=1;}return B;};}if(!Array.prototype.unshift){Array.prototype.unshift=function(){if(arguments.length){var B,A=arguments.length;for(B=this.length+A-1;B>=A;B--){this[B]=this[B-A];}for(B=0;B<A;B++){this[B]=arguments[B];}}return this.length;};}if(!Array.prototype.splice){Array.prototype.splice=function(A,C){var D=[],E=[],B;for(B=2;B<arguments.length;B++){D.push(arguments[B]);}for(B=A;(B<A+C)&&(B<this.length);B++){E.push(this[B]);}for(B=A+C;B<this.length;B++){this[B-C]=this[B];}this.length-=E.length;for(B=this.length+D.length-1;B>=A+D.length;B--){this[B]=this[B-D.length];}for(B=0;B<D.length;B++){this[A+B]=D[B];}return E;};}Zapatec.Log=function(A){if(!A){return ;}var B=A.description;if(A.severity){B=A.severity+":\n"+B;}alert(B);};Zapatec.Utils.Array={};Zapatec.Utils.Array.insertBefore=function(B,F,E,A){var D=new Array();for(var C in B){if(C==A){if(E){D[E]=F;}else{D.push(F);}}D[C]=B[C];}return D;};