var DIR_ROOT="/";var DIR_FIX="/";var SEP_AND=new String("|&|");var SEP_IGUAL=new String("|=|");function ltrim(A){return A.replace(/^(\s+)/g,"")}function rtrim(A){return A.replace(/(\s+)$/g,"")}function trim(A){return ltrim(rtrim(A))}function $(A){return document.getElementById(A)}var Navegador=function(){this.esIE=false;this.esIE6=false;this.esIE7=false;this.esIE8=false;this.esFf=false;this.esOp=false;this.esNs=false;if(window.navigator.userAgent.search(RegExp("MSIE","im"))!=-1){this.esIE=true;if(window.navigator.userAgent.search(RegExp("MSIE 8","im"))!=-1){this.esIE8=true}else{if(window.navigator.userAgent.search(RegExp("MSIE 7","im"))!=-1){this.esIE7=true}else{if(window.navigator.userAgent.search(RegExp("MSIE 6","im"))!=-1){this.esIE6=true}}}}else{if(window.navigator.userAgent.search(RegExp("Firefox","im"))!=-1){this.esFf=true}else{if(window.navigator.userAgent.search(RegExp("Opera","im"))!=-1){this.esOp=true}else{if(window.navigator.userAgent.search(RegExp("Safari","im"))!=-1){this.esSa=true}else{if(window.navigator.userAgent.search(RegExp("Netscape","im"))!=-1){this.esNs=true}}}}}};var Nav=new Navegador();Function.prototype.closure=function(C){if(!window.__objs){window.__objs=[];window.__funs=[]}var A=this;var B=C.__objId;if(!B){__objs[B=C.__objId=__objs.length]=C}var E=A.__funId;if(!E){__funs[E=A.__funId=__funs.length]=A}if(!C.__closures){C.__closures=[]}var F=C.__closures[E];if(F){return F}C=null;A=null;var D=__objs[B].__closures[E]=function(){if(!!__funs[E]&&!!__objs[B]){return __funs[E].apply(__objs[B],arguments)}else{return false}};D.__funId=E;return D};var EliminarClosures=function(B){var A=0;if(B){if(B.__objId){for(A in B.__closures){delete (window.__funs[A]);delete (B.__closures[A])}delete (window.__objs[B.__objId]);B.__closures=null;B.__objId=null}}A=null};var LimpiarClosures=function(){if(!!Nav&&!Nav.esIE){window.addEventListener("unload",LimpiarClosures,false)}else{window.detachEvent("onunload",LimpiarClosures)}if(window.__objs){for(i in window.__objs){EliminarClosures(window.__objs[i])}}window.__objs=[];window.__funs=[]};var Limpiar=function(){if(!!Nav&&!Nav.esIE){window.addEventListener("unload",LimpiarClosures,false)}else{window.attachEvent("onunload",LimpiarClosures)}}();document.LimpiarClosures=LimpiarClosures;function AddEvent(C,B,A){if(Nav.esIE){C.attachEvent("on"+B,A)}else{C.addEventListener(B,A,((Nav.esOp)?false:true))}}function RemEvent(C,B,A){if(Nav.esIE){C.detachEvent("on"+B,A)}else{C.removeEventListener(B,A,((Nav.esOp)?false:true))}}function FireEvent(C,B){var A=null;if(Nav.esIE){C.fireEvent("on"+B)}else{if(B=="click"||B=="dblclick"||B=="mousedown"||B=="mousemove"||B=="mouseout"||B=="mouseover"||B=="mouseup"){A=document.createEvent("MouseEvents");A.initMouseEvent(B,true,true,window,0,0,0,0,0,false,false,false,false,0,null)}else{if(B=="keydown"||B=="keypress"||B=="keyup"){A=document.createEvent("KeyboardEvent");A.initKeyEvent(B,true,true,null,false,false,false,false,9,0)}else{A=document.createEvent("Event");A.initEvent(B,true,false)}}C.dispatchEvent(A)}}function StopEvent(A){if(Nav.esIE){A.returnValue=false;A.cancelBubble=true}else{A.preventDefault();A.stopPropagation()}}Request=function(B,A){this.pedido=new crearXHR();this.reportar=true;this.respuestaXML=null;this.respuestaHTML=null;this.archivo=null;this.valores=null;this.listener=B;this.onError=null;this.onRetry=null;this.retrys=0;this.curRetry=0;if(!A){this.metodo="POST"}else{this.metodo=A}};Request.prototype.pedir=function(B,C,A,D){if(!!B){this.archivo=B}if(!!C){this.valores=C}if(!!A){this.metodo=A}if(!D){this.curRetry=0}this.respuestaXML=null;this.respuestaHTML=null;this.cancelar(this.pedido);this.pedido.onreadystatechange=this.procesar.closure(this);this.pedido.open(this.metodo,this.archivo,true);if(this.valores){this.valores=this.valores.puntualChars();this.pedido.send(this.valores)}else{this.pedido.send()}};Request.prototype.procesar=function(){var B=false;if(this.pedido&&this.pedido.readyState==4){var A=this.pedido.status;if((A>=200&&A<300)||A==304||A==1223){if(this.pedido.responseXML){this.respuestaXML=this.pedido.responseXML.documentElement}this.respuestaHTML=this.pedido.responseText;this.cancelar();if(this.listener&&this.listener.onRequestLoad){this.listener.onRequestLoad()}else{if(typeof (this.listener)=="function"){this.listener()}}}else{if(this.curRetry<this.retrys){this.curRetry++;this.pedir(false,false,false,true);if(typeof (this.onRetry)=="function"){this.onRetry()}}else{if(this.reportar){ERROR.reportar("Error en clase Request.\nESTADO: "+this.pedido.status+" "+this.pedido.statusText+"\nARCHIVO: "+this.archivo+"\nMETODO: "+this.metodo)}if(this.onError&&(typeof (this.onError)=="function"||typeof (this.onError)=="object")){this.onError()}this.cancelar()}}}};Request.prototype.cancelar=function(){cancelarPedido(this.pedido)};String.prototype.puntualChars=function(){var B=new Array({chr:"€",ent:"&euro;"}),A,C=this.toString();for(A=0;A<B.length;A++){C=C.replace(B[A]["chr"],B[A]["ent"])}return C};String.prototype.unPuntualChars=function(){var B=new Array({chr:"€",ent:"&euro;"}),A,C=this.toString();for(A=0;A<B.length;A++){C=C.replace(B[A]["ent"],B[A]["chr"])}return C};crearXHR=function(){var C=null;if(window.XMLHttpRequest){C=new XMLHttpRequest()}else{if(window.ActiveXObject){var A=new Array("Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP","Microsoft.XMLHTTP");for(var B=0;B<A.length;B++){try{C=new ActiveXObject(A[B])}catch(D){}}}}return C};cancelarPedido=function(A){if(A!=null){A.onreadystatechange=new Function();A.abort()}};ReportarError=function(B,A){this.archivo=(!!B)?B:DIR_FIX+"xmlHttpRequest/reportarError.php";this.metodo=(!!A)?A:"POST";this.req=new Request();this.req.reportar=false;this.alerta=true;this.reportar=function(C){var D="Ha ocurrido un error.\nLos administradores del sistema ya han sido notificados del mismo.\nSi el error continua pongase en contacto con los mismos.";this.req.pedir(this.archivo,C,this.metodo);if(this.alerta){if(LayError){LayLoader.showed=Blocker.showed=1;LayLoader.hide();Blocker.hide();LayError.message=D;LayError.onAcept=function(){LayError.hide();Blocker.hide()};LayError.onCancel=function(){LayLoader.hide();Blocker.hide()};Blocker.show();LayError.show()}else{alert(D)}}return false}};ERROR=new ReportarError();ToolTip=function(B){var D=1;var A="";var C="";if(B&&B.zIndex){D=B.zIndex-1}if(B&&B.css){A=B.css}if(B&&B.mensaje){C=B.mensaje}this.cont=document.createElement("div");this.cont.style.position="absolute";this.cont.style.display="none";this.cont.style.zIndex=D;this.cont.unselectable=true;document.body.insertBefore(this.cont,document.body.firstChild);this.tip=document.createElement("div");this.tip.style.position="relative";this.tip.style.zIndex=D+1;this.tip.style.width=0;if(A){this.tip.className=A}if(C){this.tip.innerHTML=C}this.tip.unselectable=true;this.cont.appendChild(this.tip);this.ocultar=function(){this.cont.style.display="none";if(this.ele){RemEvent(this.ele,"mousemove",function(E){this.controlarUbicacion(E)}.closure(this))}};this.mostrar=function(F,G,E){this.mensaje(G);if(E){this.tip.className=E}this.cont.style.display="block";this.tip.style.width="auto";this.tip.style.height="auto";this.controlarTamanios();this.controlarUbicacion(F);if(F&&F.srcElement.uniqueID!=this.tip.uniqueID){this.ele=F.srcElement;RemEvent(this.ele,"mousemove",function(H){this.controlarUbicacion(H)}.closure(this));AddEvent(this.ele,"mousemove",function(H){this.controlarUbicacion(H)}.closure(this))}};this.mensaje=function(E){if(E){this.tip.innerHTML=E}};this.controlarUbicacion=function(E){this.cont.style.top=(E.clientY+document.documentElement.scrollTop+19)+"px";if(E.clientX+this.cont.offsetWidth-2+document.documentElement.scrollLeft<document.body.offsetWidth){this.cont.style.left=(E.clientX-2+document.documentElement.scrollLeft)+"px"}else{this.cont.style.left=(E.clientX+document.documentElement.scrollLeft+10-this.cont.offsetWidth)+"px"}}.closure(this);this.controlarTamanios=function(){this.tip.style.width=(this.tip.offsetWidth-4)+"px";this.tip.style.height=(this.tip.offsetHeight-4)+"px"}};if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(K,B,L,D,H,I,F,E,C,J){if(!document.getElementById){return }this.DETECT_KEY=J?J:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(K){this.setAttribute("swf",K)}if(B){this.setAttribute("id",B)}if(L){this.setAttribute("width",L)}if(D){this.setAttribute("height",D)}if(H){this.setAttribute("version",new deconcept.PlayerVersion(H.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(I){this.addParam("bgcolor",I)}var A=F?F:"high";this.addParam("quality",A);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var G=(E)?E:window.location;this.setAttribute("xiRedirectUrl",G);this.setAttribute("redirectUrl","");if(C){this.setAttribute("redirectUrl",C)}};deconcept.SWFObject.prototype={useExpressInstall:function(A){this.xiSWFPath=!A?"expressinstall.swf":A;this.setAttribute("useExpressInstall",true)},setAttribute:function(A,B){this.attributes[A]=B},getAttribute:function(A){return this.attributes[A]},addParam:function(B,A){this.params[B]=A},getParams:function(){return this.params},addVariable:function(B,A){this.variables[B]=A},getVariable:function(A){return this.variables[A]},getVariables:function(){return this.variables},getVariablePairs:function(){var C=new Array();var B;var A=this.getVariables();for(B in A){C[C.length]=B+"="+A[B]}return C},getSWFHTML:function(){var B="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}B='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';B+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var F=this.getParams();for(var E in F){B+=[E]+'="'+F[E]+'" '}var D=this.getVariablePairs().join("&");if(D.length>0){B+='flashvars="'+D+'"'}B+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}B='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';B+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var C=this.getParams();for(var E in C){B+='<param name="'+E+'" value="'+C[E]+'" />'}var A=this.getVariablePairs().join("&");if(A.length>0){B+='<param name="flashvars" value="'+A+'" />'}B+="</object>"}return B},write:function(B){if(this.getAttribute("useExpressInstall")){var A=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(A)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var C=(typeof B=="string")?document.getElementById(B):B;C.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var E=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){E=new deconcept.PlayerVersion(A.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var B=1;var C=3;while(B){try{C++;B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+C);E=new deconcept.PlayerVersion([C,0,0])}catch(D){B=null}}}else{try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(D){try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");E=new deconcept.PlayerVersion([6,0,21]);B.AllowScriptAccess="always"}catch(D){if(E.major==6){return E}}try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(D){}}if(B!=null){E=new deconcept.PlayerVersion(B.GetVariable("$version").split(" ")[1].split(","))}}}return E};deconcept.PlayerVersion=function(A){this.major=A[0]!=null?parseInt(A[0]):0;this.minor=A[1]!=null?parseInt(A[1]):0;this.rev=A[2]!=null?parseInt(A[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(A){if(this.major<A.major){return false}if(this.major>A.major){return true}if(this.minor<A.minor){return false}if(this.minor>A.minor){return true}if(this.rev<A.rev){return false}return true};deconcept.util={getRequestParameter:function(C){var D=document.location.search||document.location.hash;if(C==null){return D}if(D){var B=D.substring(1).split("&");for(var A=0;A<B.length;A++){if(B[A].substring(0,B[A].indexOf("="))==C){return B[A].substring((B[A].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var B=document.getElementsByTagName("OBJECT");for(var C=B.length-1;C>=0;C--){B[C].style.display="none";for(var A in B[C]){if(typeof B[C][A]=="function"){B[C][A]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(A){return document.all[A]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var iZoomMinMarging=30;var iZoomDelay=4;var iZoomFrames=16;var iZoomImgW=0;var iZoomImgH=0;var iZoomImgY=0;var iZoomImgX=0;var bZoomImgOn=false;var bZoomImgAnim=false;var aZoomImgInfo=new Object();var eZoomImage=null;var oZoomImgLoad=null;var eZoomImgLoader=null;var eZoomImgLayer=null;var eZoomImgImage=null;var eZoomImgClose=null;var eZoomImgBack=null;var eZoomImgFord=null;var eZoomFromGalery=false;var eZoomFromBtnGalery=false;var eZoomHasFord=false;var eZoomHasBack=false;var eZoomImgBlock=null;var eZoomTransGalery=null;var eZoomImgClosePos="right";function zoomInit(){iZoomImgW=WBody();iZoomImgH=HScreen();iZoomImgY=YPos();iZoomImgX=XPos();eZoomImgLoader=document.getElementById("zoomLayLoader");eZoomImgLayer=document.getElementById("zoomLayPrev");eZoomImgImage=document.getElementById("zoomImagePrev");eZoomImgImage.onclick=zoomImageOut;eZoomImgEpi=document.getElementById("zoomImageEpi");eZoomImgEpi.firstChild.innerHTML="";eZoomImgEpi.style.display="none";eZoomImgClose=document.getElementById("zoomImageClose");eZoomImgClose.onclick=zoomImageOut;eZoomImgClose.style.visibility="hidden";eZoomImgBack=document.getElementById("zoomImageBack");eZoomImgBack.onclick=zoomImagePrev;eZoomImgBack.style.visibility="hidden";eZoomImgFord=document.getElementById("zoomImageFord");eZoomImgFord.onclick=zoomImageNext;eZoomImgFord.style.visibility="hidden";eZoomImgBlock=document.getElementById("zoomLayBlock");if(!eZoomFromBtnGalery){eZoomImgBlock.style.display="none";eZoomFromBtnGalery=false}setOpacity(70,eZoomImgBlock)}function zoomImage(B,C,A){StopEvent(B);zoomInit();eZoomImage=C;eZoomFromGalery=(!A)?false:true;zoomShowLoader(true);zoomImageLoad()}function zoomImageLoad(){oZoomImgLoad=new Image();oZoomImgLoad.onload=function(){zoomImageLoaded()};oZoomImgLoad.src=eZoomImage.src.substr(0,eZoomImage.src.lastIndexOf(".")-1)+eZoomImage.src.substr(eZoomImage.src.lastIndexOf("."),eZoomImage.src.length)}function zoomImageLoaded(){zoomShowLoader(false);zoomImageIn()}function zoomShowLoader(A){if(A){eZoomImgLoader.style.top=Math.ceil(((iZoomImgH-eZoomImgLoader.offsetHeight)/2)+iZoomImgY)+"px";eZoomImgLoader.style.left=Math.ceil(((iZoomImgW-eZoomImgLoader.offsetWidth)/2)+iZoomImgX)+"px";eZoomImgLoader.style.visibility="visible"}else{eZoomImgLoader.style.top="-"+(eZoomImgLoader.offsetHeight+20)+"px";eZoomImgLoader.style.visibility="hidden"}}function zoomImageIn(){var H=eZoomImage.width;var A=eZoomImage.height;var C=oZoomImgLoad.width;var N=oZoomImgLoad.height;var B=C/N;var M=getElementPos(eZoomImage);var E=M.x;var D=M.y;if(bZoomImgAnim!=true){aZoomImgInfo.iIniW=H;aZoomImgInfo.iIniH=A;aZoomImgInfo.iIniX=E;aZoomImgInfo.iIniY=D;eZoomImgImage.style.height=A+"px";eZoomImgImage.style.width=H+"px";eZoomImgImage.src=oZoomImgLoad.src;eZoomImgImage.title=eZoomImage.title;eZoomImgLayer.style.top=D+"px";eZoomImgLayer.style.left=E+"px";setOpacity(0,eZoomImgLayer);eZoomImgLayer.style.visibility="visible";var G=0;if(trim(eZoomImage.alt)!=""){eZoomImgEpi.firstChild.innerHTML=eZoomImage.alt;eZoomImgEpi.style.width=H+"px";eZoomImgEpi.style.display="block";G=eZoomImgEpi.offsetHeight}if(C>iZoomImgW-iZoomMinMarging){C=iZoomImgW-iZoomMinMarging;N=C/B}if(N>iZoomImgH-iZoomMinMarging-G){N=iZoomImgH-iZoomMinMarging-G;C=(N-G)*B}var K=(((iZoomImgW/2)-(C/2)-E)+iZoomImgX);var J=(((iZoomImgH/2)-(N/2)-D)+iZoomImgY-(G/2));var L=(C-H);var F=(N-A);var I="(100 / iZoomFrames) * iCurFrame";setTimeout("zoomImageAnim("+H+", "+L+", "+A+", "+F+", "+E+", "+K+", "+D+", "+J+', 0, "in")',iZoomDelay);bZoomImgAnim=true;M=null}}function zoomImageOut(){if(bZoomImgAnim!=true){RemEvent(document,"keypress",zoomImageKeypress);eZoomImgBlock.style.display="none";eZoomImgClose.style.visibility=eZoomImgBack.style.visibility=eZoomImgFord.style.visibility="hidden";var F=parseInt(eZoomImgImage.style.width);var A=parseInt(eZoomImgImage.style.height);var B=eZoomImage.width;var J=eZoomImage.height;var D=parseInt(eZoomImgLayer.style.left);var C=parseInt(eZoomImgLayer.style.top);var H=aZoomImgInfo.iIniX-D;var G=aZoomImgInfo.iIniY-C;var I=aZoomImgInfo.iIniW-F;var E=aZoomImgInfo.iIniH-A;setTimeout("zoomImageAnim("+F+", "+I+", "+A+", "+E+", "+D+", "+H+", "+C+", "+G+', 0, "out")',iZoomDelay);bZoomImgAnim=true}}function zoomImageAnim(F,M,A,E,C,K,B,I,H,O){if(H==(iZoomFrames+1)){bZoomImgAnim=false;if(O=="in"){zoomImageInEnd()}else{zoomImageOutEnd()}}else{var N=strongEaseInOut(H,F,M,iZoomFrames);var G=strongEaseInOut(H,A,E,iZoomFrames);var L=strongEaseInOut(H,C,K,iZoomFrames);var J=strongEaseInOut(H,B,I,iZoomFrames);var D=(O=="in")?(100/iZoomFrames)*H:(100/iZoomFrames)*(iZoomFrames-H);eZoomImgLayer.style.left=L+"px";eZoomImgLayer.style.top=J+"px";eZoomImgImage.style.width=N+"px";eZoomImgImage.style.height=G+"px";if(eZoomImgEpi.style.display=="block"){eZoomImgEpi.style.width=N+"px"}setOpacity(D,eZoomImgLayer);H++;setTimeout("zoomImageAnim("+F+", "+M+", "+A+", "+E+", "+C+", "+K+", "+B+", "+I+", "+H+', "'+O+'")',iZoomDelay)}}function zoomImageInEnd(){bZoomImgOn=true;eZoomImgClose.style.top=(parseInt(eZoomImgLayer.style.top)-(eZoomImgClose.offsetHeight/2))+"px";if(eZoomImgClosePos=="left"){eZoomImgClose.style.left=(parseInt(eZoomImgLayer.style.left)-(eZoomImgClose.offsetWidth/2))+"px"}else{eZoomImgClose.style.left=(parseInt(eZoomImgLayer.style.left)+parseInt(eZoomImgImage.style.width)-(eZoomImgClose.offsetWidth/2))+"px"}eZoomImgClose.style.visibility="visible";if(!eZoomTransGalery){if(eZoomFromGalery&&!!eZoomImage.parentNode&&!!eZoomImage.parentNode.nextSibling&&!!eZoomImage.parentNode.nextSibling.nextSibling){eZoomHasFord=true;eZoomImgFord.style.top=(((iZoomImgH-eZoomImgFord.offsetHeight)/2)+iZoomImgY)+"px";eZoomImgFord.style.visibility="visible"}else{eZoomHasFord=false}if(eZoomFromGalery&&!!eZoomImage.parentNode&&!!eZoomImage.parentNode.previousSibling&&!!eZoomImage.parentNode.previousSibling.previousSibling){eZoomHasBack=true;eZoomImgBack.style.top=(((iZoomImgH-eZoomImgBack.offsetHeight)/2)+iZoomImgY)+"px";eZoomImgBack.style.visibility="visible"}else{eZoomHasBack=false}}else{eZoomTransGalery()}var A=(HBody()>iZoomImgH)?HBody():iZoomImgH;eZoomImgBlock.style.height=A+"px";eZoomImgBlock.style.width=WBody()+"px";eZoomImgBlock.style.display="block";AddEvent(document,"keypress",zoomImageKeypress)}function zoomImageOutEnd(){bZoomImgOn=false;eZoomImgLayer.style.visibility="hidden";eZoomImgLayer.style.top="-1000px";eZoomImgLayer.style.left="0"}function zoomImageNext(){if(eZoomHasFord){eZoomFromBtnGalery=true;FireEvent(eZoomImage.parentNode.nextSibling.nextSibling.firstChild,"click")}}function zoomImagePrev(){if(eZoomHasBack){eZoomFromBtnGalery=true;FireEvent(eZoomImage.parentNode.previousSibling.previousSibling.firstChild,"click")}}function zoomImageKeypress(A){if(bZoomImgAnim!=true){if(A.keyCode==27){zoomImageOut()}else{if(A.keyCode==39){zoomImageNext()}else{if(A.keyCode==37){zoomImagePrev()}}}}}var oContador=new function(){var A=null;var B="";var D=new Array();var C=true;var E=new Request();E.listener=function(){var K=E.respuestaXML;var M=null;var L=null;var N=null;var H="";var O="";if(K&&B=="pedirBanner"){for(i=0;i<K.childNodes.length;i++){L=K.childNodes[i];for(j=0;j<L.childNodes.length;j++){M=L.childNodes[j];N=M.getAttribute("nombre");H=N.split(".");var P=$(D[i].contenedor);if(H[1]!="swf"){O=cTag("img");O.src=N;O.width=M.getAttribute("width");O.height=M.getAttribute("height");if(M.firstChild.data!=""){O.style.cursor="pointer";F(O,M.getAttribute("id"),M.firstChild.data)}if(P){P.appendChild(O)}}else{O=cTag("div");O.id="banner"+M.getAttribute("id");if(P){P.appendChild(O)}var I="";if(M.firstChild.data!=""){I="?clickTag=clicksBanners.php?id="+M.getAttribute("id")}var J=new FlashObject(N+I,"animaF",M.getAttribute("width"),M.getAttribute("height"),"8","");J.addParam("menu","false");J.addParam("wmode","transparent");J.write("banner"+M.getAttribute("id"))}}var G=K.childNodes[i].getAttribute("nombre")}}}.closure(this);var F=function(H,I,G){AddEvent(H,"click",function(){clickBanner(I,G)})};this.setearPedido=function(G,J,I,H){var K=new Object();K.idSeccion=G;K.posicion=J;K.cantidad=I;K.contenedor=H;D.push(K)};this.pedirContador=function(){B="pedirBanner";var H="";for(i=0;i<D.length;i++){H+="idSeccion"+i+SEP_IGUAL+D[i].idSeccion+SEP_AND+"posicion"+i+SEP_IGUAL+D[i].posicion+SEP_AND+"cantidad"+i+SEP_IGUAL+D[i].cantidad+SEP_AND}var G=0;if(WScreen()==1024){G=1}else{if(WScreen()>1024){G=2}}H+="indices"+SEP_IGUAL+D.length+SEP_AND;H+="resPos"+SEP_IGUAL+G+SEP_AND;E.pedir(DIR_ROOT+"request/devolverBanner.php",H)};this.clickBanner=function(H,G,I,J){B="";E.pedir(DIR_ROOT+"requests/clickBanner.php","idBanner"+SEP_IGUAL+H+SEP_AND);if(G.substr(0,1)=="?"){document.location=G}else{if(I==1){window.open(G)}else{document.location=G}}if(J){StopEvent(J)}}};function ZoomElement(){var Y=4;var C=10;var V=strongEaseInOut;var S=0;var c=0;var Q=0;var R=0;var D=false;var B=false;var P=null;var b=null;var A=null;var U=null;var X=null;var H,N,W,Z,G,L,F,K,E,T;var O=function(){if(!window.innerWidth){S=document.documentElement.clientWidth;c=document.documentElement.clientHeight;Q=document.documentElement.scrollTop;R=document.documentElement.scrollLeft}else{S=window.innerWidth;c=window.innerHeight;Q=window.pageYOffset;R=window.pageXOffset}};this.zoomElement=function(h,f,g,d,k,e){P=h;b=f;A=g;U=d;X=k;O();if(!e){J()}};var J=function(){H=P.offsetWidth;W=P.offsetHeight;var f=b.offsetWidth;var d=b.offsetHeight;var e=getElementPos(P);G=e.x;F=e.y;if(B!=true){b.style.overflow="hidden";b.style.height=W+"px";b.style.width=H+"px";b.style.top=F+"px";b.style.left=G+"px";setOpacity(0,b);b.style.visibility="visible";L=(((S/2)-(f/2)-G)+R);K=(((c/2)-(d/2)-F)+Q);N=(f-H);Z=(d-W);E=0;T="in";setTimeout(M,Y);B=true;e=null}};this.zoomElementOut=function(){if(B!=true){b.style.overflow="hidden";H=b.offsetWidth;b.__width=H;W=b.offsetHeight;var f=P.offsetWidth;var d=P.offsetHeight;G=parseInt(b.style.left);F=parseInt(b.style.top);var e=getElementPos(P);L=e.x-G;K=e.y-F;N=P.offsetWidth-H;Z=P.offsetHeight-W;E=0;T="out";setTimeout(M,Y);B=true}};var M=function(){if(E==(C+1)){B=false;if(T=="in"){I()}else{a()}}else{var e=V(E,H,N,C);var g=V(E,W,Z,C);var d=V(E,G,L,C);var k=V(E,F,K,C);var f=(T=="in")?(100/C)*E:(100/C)*(C-E);b.style.left=d+"px";b.style.top=k+"px";b.style.width=e+"px";b.style.height=g+"px";setOpacity(f,b);E++;setTimeout(M,Y)}if(X){X(E,T)}}.closure(this);var I=function(){D=true;b.style.height="auto";if(A){A()}};var a=function(){D=false;b.style.visibility="hidden";b.style.top="-1000px";b.style.left="0";b.style.overflow="auto";b.style.height="auto";b.style.width=b.__width+"px";if(U){U()}}}function layer(D,I){var P=$("lay"+D);var h=$("bg"+D);var Y=$("error"+D);var Z=0;var E=false;var M=0;var F=new Array();var O=new Array();var R=new Array();var B=new Request();var f=false;var U=false;var J=null;this.onSuccess=null;this.onError=null;this.onClose=null;B.listener=function(){var k=B.respuestaXML;N(false);if(!k){alert(B.respuestaHTML)}else{if(k.getAttribute("exito")=="si"){RemEvent(document,"keypress",this.escape);N(true);if(!this.onSuccess){P.style.zIndex=9;Exito.onAccept=d;Exito.show(k.firstChild.data)}else{this.onSuccess()}}else{RemEvent(document,"keypress",this.escape);N(true);if(!this.onError){P.style.zIndex=9;Error.onAccept=Q;Error.show(k.firstChild.data)}else{this.onError()}}}}.closure(this);var d=function(){P.style.zIndex=10;X();N(false);this.close()}.closure(this);var Q=function(){AddEvent(document,"keypress",this.escape);N(false);P.style.zIndex=10}.closure(this);var c=function(){if(!!h){h.style.height=((HBody()>HScreen())?HBody():HScreen())+"px";h.style.width=((WBody()>WScreen())?WScreen():WBody())+"px"}P.style.top=(((HScreen()-P.offsetHeight)/2)+YPos())+"px";P.style.left=(((WScreen()-P.offsetWidth)/2)+XPos())+"px"}.closure(this);this.escape=function(k){if(k.keyCode==27){this.close()}}.closure(this);this.enter=function(k){if(k.keyCode==13){this.send()}}.closure(this);this.open=function(m,k,l){if(!!l){StopEvent(l)}if(!!f){return false}f=true;U=m;Z=k;G()};this.close=function(k){if(!!k){StopEvent(k)}if(!!f){return false}f=true;RemEvent(window,"scroll",c);RemEvent(window,"resize",c);RemEvent(document,"keypress",this.escape);clearTimeout(T);K=0;V="out";T=setTimeout(b,a)}.closure(this);this.addField=function(l,n,q,k){var m={c:l,n:n};F.push(m);if(q){l.expresion=q;l.inputError=g;l.onblur=W.closure(l);O.push(F.length-1)}if(k){R.push(F.length-1)}};this.setBackground=function(k){h=k};var X=function(){var k=null;for(k=0;k<R.length;k++){F[R[k]]["c"].value=""}for(k=0;k<F.length;k++){g(F[k]["c"],false)}M=0;H()};this.send=function(m){var k="",l=null;if(!!m){StopEvent(m)}if(E){return false}else{if(S()){return false}}N(true);k+="seccion"+SEP_IGUAL+Z+SEP_AND;for(l=0;l<F.length;l++){k+=F[l]["n"]+SEP_IGUAL+trim(F[l]["c"].value)+SEP_AND}if(this.moreInfo!=""){k+=this.moreInfo}B.pedir(DIR_ROOT+"requests/"+I+".php",k)}.closure(this);var g=function(l,k){M+=(k)?1:0;l.className=(k)?"inputError":""}.closure(this);var H=function(){Y.style.display=(M>0)?"block":"none"};var W=function(){this.value=trim(this.value);if(this.value.search(this.expresion)==0||this.errorDesactivado){this.inputError(this,false)}else{this.inputError(this,true)}};var S=function(){var k=null;M=0;for(k=0;k<O.length;k++){F[O[k]]["c"].onblur()}H();return(M>0)};var N=function(k){var l=null;E=k;for(l=0;l<F.length;l++){F[l]["c"].disabled=k}};var T=0;var a=1;var e=5;var K=0;var V="";var G=function(){c();if(!!h){setOpacity(0,h);h.style.display="block"}iZoomEleDelay=1;if(!J){J=new ZoomElement()}J.zoomElement(U,P,C,A,false)};var L=function(){J.zoomElement(U,P,C,A,false,true);J.zoomElementOut()};var C=function(){c();try{F[0]["c"].focus()}catch(k){}AddEvent(window,"scroll",c);AddEvent(window,"resize",c);AddEvent(document,"keypress",this.escape);clearTimeout(T);K=(!!h)?0:e+1;V="in";T=setTimeout(b,a)}.closure(this);var A=function(){if(!!h){h.style.display="none"}if(!!this.onClose){this.onClose()}}.closure(this);var b=function(){if(K==e+1){f=false;if(V=="in"){}else{L()}}else{var k=(V=="in")?(60/e)*K:(60/e)*(e-K);if(!!h){setOpacity(k,h)}K++;T=setTimeout(b,a)}}.closure(this)}var Exito=new function(){this.show=function(D){$("msjExito").innerHTML=D;var C=$("capaExito");C.style.top=(((HScreen()-C.offsetHeight)/2)+YPos())+"px";C.style.left=(((WScreen()-C.offsetWidth)/2)+XPos())+"px";C.style.visibility="visible";try{$("aceptarExito").focus()}catch(E){}AddEvent(document,"keypress",B);AddEvent($("aceptarExito"),"click",A);AddEvent($("cerrarExito"),"click",A)};this.hide=function(){RemEvent(document,"keypress",B);RemEvent($("aceptarExito"),"click",A);RemEvent($("cerrarExito"),"click",A);var C=$("capaExito");C.style.visibility="hidden";C.style.top="-1000px"};this.onAccept=null;var A=function(C){if(!!C){StopEvent(C)}this.hide();if(!!this.onAccept){this.onAccept()}}.closure(this);var B=function(C){if(C.keyCode==27){A()}}.closure(this)};var Error=new function(){this.show=function(D){$("msjError").innerHTML=D;var C=$("capaError");C.style.top=(((HScreen()-C.offsetHeight)/2)+YPos())+"px";C.style.left=(((WScreen()-C.offsetWidth)/2)+XPos())+"px";C.style.visibility="visible";try{$("aceptarError").focus()}catch(E){}AddEvent(document,"keypress",B);AddEvent($("aceptarError"),"click",A);AddEvent($("cerrarError"),"click",A)};this.hide=function(){RemEvent(document,"keypress",B);RemEvent($("aceptarError"),"click",A);RemEvent($("cerrarError"),"click",A);var C=$("capaError");C.style.visibility="hidden";C.style.top="-1000px"};this.onAccept=null;var A=function(C){if(!!C){StopEvent(C)}this.hide();if(!!this.onAccept){this.onAccept()}}.closure(this);var B=function(C){if(C.keyCode==27){A()}}.closure(this)};function Delegate(){}Delegate.create=function(E,D){var B=new Array();var A=arguments.length;for(var C=2;C<A;C++){B[C-2]=arguments[C]}return function(){var F=[].concat(arguments,B);D.apply(E,F)}};Tween=function(F,G,D,C,B,E,A){this.init(F,G,D,C,B,E,A)};var t=Tween.prototype;t.obj=new Object();t.prop="";t.func=function(B,A,D,C){return D*B/C+A};t.begin=0;t.change=0;t.prevTime=0;t.prevPos=0;t.looping=false;t._duration=0;t._time=0;t._pos=0;t._position=0;t._startTime=0;t._finish=0;t.name="";t.suffixe="";t._listeners=new Array();t.setTime=function(A){this.prevTime=this._time;if(A>this.getDuration()){if(this.looping){this.rewind(A-this._duration);this.update();this.broadcastMessage("onMotionLooped",{target:this,type:"onMotionLooped"})}else{this._time=this._duration;this.update();this.stop();this.broadcastMessage("onMotionFinished",{target:this,type:"onMotionFinished"})}}else{if(A<0){this.rewind();this.update()}else{this._time=A;this.update()}}};t.getTime=function(){return this._time};t.setDuration=function(A){this._duration=(A==null||A<=0)?100000:A};t.getDuration=function(){return this._duration};t.setPosition=function(B){this.prevPos=this._pos;var A=this.suffixe!=""?this.suffixe:"";this.obj[this.prop]=Math.round(B)+A;this._pos=B;this.broadcastMessage("onMotionChanged",{target:this,type:"onMotionChanged"})};t.getPosition=function(A){if(A==undefined){A=this._time}return this.func(A,this.begin,this.change,this._duration)};t.setFinish=function(A){this.change=A-this.begin};t.geFinish=function(){return this.begin+this.change};t.init=function(F,G,D,C,B,E,A){if(!arguments.length){return }this._listeners=new Array();this.addListener(this);if(A){this.suffixe=A}this.obj=F;this.prop=G;this.begin=C;this._pos=C;this.setDuration(E);if(D!=null&&D!=""){this.func=D}this.setFinish(B)};t.start=function(){this.rewind();this.startEnterFrame();this.broadcastMessage("onMotionStarted",{target:this,type:"onMotionStarted"})};t.rewind=function(A){this.stop();this._time=(A==undefined)?0:A;this.fixTime();this.update()};t.fforward=function(){this._time=this._duration;this.fixTime();this.update()};t.update=function(){this.setPosition(this.getPosition(this._time))};t.startEnterFrame=function(){this.stopEnterFrame();this.isPlaying=true;this.onEnterFrame()};t.onEnterFrame=function(){if(this.isPlaying){this.nextFrame();setTimeout(Delegate.create(this,this.onEnterFrame),0)}};t.nextFrame=function(){this.setTime((this.getTimer()-this._startTime)/1000)};t.stop=function(){this.stopEnterFrame();this.broadcastMessage("onMotionStopped",{target:this,type:"onMotionStopped"})};t.stopEnterFrame=function(){this.isPlaying=false};t.continueTo=function(A,B){this.begin=this._pos;this.setFinish(A);if(this._duration!=undefined){this.setDuration(B)}this.start()};t.resume=function(){this.fixTime();this.startEnterFrame();this.broadcastMessage("onMotionResumed",{target:this,type:"onMotionResumed"})};t.yoyo=function(){this.continueTo(this.begin,this._time)};t.addListener=function(A){this.removeListener(A);return this._listeners.push(A)};t.removeListener=function(C){var A=this._listeners;var B=A.length;while(B--){if(A[B]==C){A.splice(B,1);return true}}return false};t.broadcastMessage=function(){var A=new Array();for(var D=0;D<arguments.length;D++){A.push(arguments[D])}var E=A.shift();var C=this._listeners;var B=C.length;for(var D=0;D<B;D++){if(C[D][E]){C[D][E].apply(C[D],A)}}};t.fixTime=function(){this._startTime=this.getTimer()-this._time*1000};t.getTimer=function(){return new Date().getTime()-this._time};Tween.backEaseIn=function(C,A,G,F,B,E){if(D==undefined){var D=1.70158}return G*(C/=F)*C*((D+1)*C-D)+A};Tween.backEaseOut=function(C,A,G,F,B,E){if(D==undefined){var D=1.70158}return G*((C=C/F-1)*C*((D+1)*C+D)+1)+A};Tween.backEaseInOut=function(C,A,G,F,B,E){if(D==undefined){var D=1.70158}if((C/=F/2)<1){return G/2*(C*C*(((D*=(1.525))+1)*C-D))+A}return G/2*((C-=2)*C*(((D*=(1.525))+1)*C+D)+2)+A};Tween.elasticEaseIn=function(C,A,G,F,B,E){if(C==0){return A}if((C/=F)==1){return A+G}if(!E){E=F*0.3}if(!B||B<Math.abs(G)){B=G;var D=E/4}else{var D=E/(2*Math.PI)*Math.asin(G/B)}return -(B*Math.pow(2,10*(C-=1))*Math.sin((C*F-D)*(2*Math.PI)/E))+A};Tween.elasticEaseOut=function(C,A,G,F,B,E){if(C==0){return A}if((C/=F)==1){return A+G}if(!E){E=F*0.3}if(!B||B<Math.abs(G)){B=G;var D=E/4}else{var D=E/(2*Math.PI)*Math.asin(G/B)}return(B*Math.pow(2,-10*C)*Math.sin((C*F-D)*(2*Math.PI)/E)+G+A)};Tween.elasticEaseInOut=function(C,A,G,F,B,E){if(C==0){return A}if((C/=F/2)==2){return A+G}if(!E){var E=F*(0.3*1.5)}if(!B||B<Math.abs(G)){var B=G;var D=E/4}else{var D=E/(2*Math.PI)*Math.asin(G/B)}if(C<1){return -0.5*(B*Math.pow(2,10*(C-=1))*Math.sin((C*F-D)*(2*Math.PI)/E))+A}return B*Math.pow(2,-10*(C-=1))*Math.sin((C*F-D)*(2*Math.PI)/E)*0.5+G+A};Tween.bounceEaseOut=function(B,A,D,C){if((B/=C)<(1/2.75)){return D*(7.5625*B*B)+A}else{if(B<(2/2.75)){return D*(7.5625*(B-=(1.5/2.75))*B+0.75)+A}else{if(B<(2.5/2.75)){return D*(7.5625*(B-=(2.25/2.75))*B+0.9375)+A}else{return D*(7.5625*(B-=(2.625/2.75))*B+0.984375)+A}}}};Tween.bounceEaseIn=function(B,A,D,C){return D-Tween.bounceEaseOut(C-B,0,D,C)+A};Tween.bounceEaseInOut=function(B,A,D,C){if(B<C/2){return Tween.bounceEaseIn(B*2,0,D,C)*0.5+A}else{return Tween.bounceEaseOut(B*2-C,0,D,C)*0.5+D*0.5+A}};Tween.strongEaseInOut=function(B,A,D,C){return D*(B/=C)*B*B*B*B+A};Tween.regularEaseIn=function(B,A,D,C){return D*(B/=C)*B+A};Tween.regularEaseOut=function(B,A,D,C){return -D*(B/=C)*(B-2)+A};Tween.regularEaseInOut=function(B,A,D,C){if((B/=C/2)<1){return D/2*B*B+A}return -D/2*((--B)*(B-2)-1)+A};Tween.strongEaseIn=function(B,A,D,C){return D*(B/=C)*B*B*B*B+A};Tween.strongEaseOut=function(B,A,D,C){return D*((B=B/C-1)*B*B*B*B+1)+A};Tween.strongEaseInOut=function(B,A,D,C){if((B/=C/2)<1){return D/2*B*B*B*B*B+A}return D/2*((B-=2)*B*B*B*B+2)+A};fCookie=function(){this.init()};var p=fCookie.prototype;p.path=DIR_ROOT;p.init=function(){};p.set=function(E,A,D){var C=new Date();if(D){C.setSeconds(C.getSeconds()+D)}else{C.setHours(C.getHours()+1)}var B=C.toGMTString();document.cookie=E+"="+escape(A)+"; expires="+B+"; path="+this.path+";"};p.unset=function(A){document.cookie=A+"=; expires=Fri, 21 Dec 1976 04:31:24 GMT; path="+this.path+";"};p.get=function(D){var B=0,A=0,C="";if(document.cookie.length>0){var B=document.cookie.indexOf(D+"=");if(B!=-1){B=B+D.length+1;A=document.cookie.indexOf(";",B);if(A==-1){A=document.cookie.length}C=unescape(document.cookie.substring(B,A))}}return C};var Cookie=new fCookie();var Loader=new function(){this.hide=function(){if(A){A.style.display="none"}};this.init=function(){A=$("LoaderGeneral")};this.show=function(){if(!B){this.init()}A.style.top=Math.round((HScreen()-A.offsetHeight)/2+YPos())+"px";A.style.width=Math.round((WScreen()-A.offsetWidth/2))+"px";A.style.visibility="visible"};var A=null;var B=false};var Blocker=new function(){this.hide=function(){if(A){A.style.display="none"}};this.init=function(){A=$("BlockeadorGeneral");setOpacity(70,A)};this.show=function(){if(!B){this.init()}A.style.height=HBody()+"px";A.style.width=WScreen()+"px";A.style.display="block"};var A=null;var B=false};var ER_STR=/^([^ \t\n\r]([ \t\n\r]|[^ \t\n\r])*[^ \t\n\r])+$|^[^ \t\n\r]$/ig;var ER_ALFA_NUM=/^[a-z0-9][a-z0-9]+[a-z0-9]$/ig;var ER_EMAIL=/^[a-z0-9_\.\-]+@[a-z0-9_\-]+(\.[a-z0-9_\-]{2,20})*\.[a-z]{2,4}$/ig;var ER_NATURAL_NOCERO=/^[1-9]+[0-9]*$/;var ER_FECHA=/^(([0][1-9])|([12][0-9])|(3[01]))(\/|-)((0[1-9])|(1[012]))(\/|-)([12][0-9]{3})$/;var aSolActs=new Object;function cambiarSolapa(E,D,A,C,B){if(!!aSolActs[E]){aSolActs[E]["tit"].className=C;aSolActs[E]["con"].style.display="none"}aSolActs[E]=new Object;aSolActs[E]["tit"]=$("titSolDeCont"+E+"Pos"+D);aSolActs[E]["tit"].className=A;aSolActs[E]["con"]=$("conSolDeCont"+E+"Pos"+D);aSolActs[E]["con"].style.display="block";if(B){StopEvent(B)}}function writeInElement(D,C,B,E,A){D.href="mailto:"+E+"@"+B+"."+C;if(A){D.innerHTML=E+"@"+B+"."+C}}function getElementPos(B){var C=B.style.position;B.style.position="relative";var A=B.offsetLeft;var D=B.offsetTop;B.style.position=C;while(B.tagName.toLowerCase()!="body"){B=B.parentNode;if(B.style.position=="absolute"){A+=B.offsetLeft;D+=B.offsetTop}}return{x:A,y:D}}function setOpacity(A,B){if(!window.innerWidth){B.style.filter="alpha(opacity="+A+")"}else{B.style.opacity=(A/100)}}function strongEaseInOut(B,A,D,C){if((B/=C/2)<1){return D/2*B*B*B*B*B+A}return D/2*((B-=2)*B*B*B*B+2)+A}function WScreen(){return(Nav.esIE)?document.documentElement.clientWidth:window.innerWidth}function HScreen(){return(Nav.esIE)?document.documentElement.clientHeight:window.innerHeight}function YPos(){return(Nav.esIE)?document.documentElement.scrollTop:window.pageYOffset}function XPos(){return(Nav.esIE)?document.documentElement.scrollLeft:window.pageXOffset}function HBody(){return document.documentElement.scrollHeight}function WBody(){return document.documentElement.scrollWidth}function serialize(C){var H=function(O){var N=typeof O,K;var M;if(N=="object"&&!O){return"null"}if(N=="object"){if(!O.constructor){return"object"}var J=O.constructor.toString();if(K=J.match(/(\w+)\(/)){J=K[1].toLowerCase()}var L=["boolean","number","string","array"];for(M in L){if(J==L[M]){N=L[M];break}}}return N};var E=H(C);var A,B="";switch(E){case"function":A="";break;case"undefined":A="N";break;case"boolean":A="b:"+(C?"1":"0");break;case"number":A=(Math.round(C)==C?"i":"d")+":"+C;break;case"string":A="s:"+C.length+':"'+C+'"';break;case"array":case"object":A="a";var D=0;var F="";var I;var G;for(G in C){B=H(C[G]);if(B=="function"){continue}I=(G.match(/^[0-9]+$/)?parseInt(G):G);F+=serialize(I)+serialize(C[G]);D++}A+=":"+D+":{"+F+"}";break}if(E!="object"&&E!="array"){A+=";"}return A}function unserialize(D){var A=function(H,I,G,F){throw new window[H](I,G,F)};var E=function(I,K,J){var F=[];var H=I.slice(K,K+1);var G=2;while(H!=J){if((G+K)>I.length){A("Error","Invalid")}F.push(H);H=I.slice(K+(G-1),K+G);G+=1}return[F.length,F.join("")]};var C=function(I,J,H){buf=[];for(var F=0;F<H;F++){var G=I.slice(J+(F-1),J+F);buf.push(G)}return[buf.length,buf.join("")]};var B=function(Y,I){if(!I){I=0}var V=[];var W=(Y.slice(I,I+1)).toLowerCase();var M=I+2;var U=new Function("x","return x");var O=0;var L=0;switch(W){case"i":U=new Function("x","return parseInt(x)");var G=E(Y,M,";");var O=G[0];var X=G[1];M+=O+1;break;case"b":U=new Function("x","return (parseInt(x) == 1)");var G=E(Y,M,";");var O=G[0];var X=G[1];M+=O+1;break;case"d":U=new Function("x","return parseFloat(x)");var G=E(Y,M,";");var O=G[0];var X=G[1];M+=O+1;break;case"n":X=null;break;case"s":var J=E(Y,M,":");var O=J[0];var F=J[1];M+=O+2;var G=C(Y,M+1,parseInt(F));var O=G[0];var X=G[1];M+=O+2;if(O!=parseInt(F)&&O!=X.length){A("SyntaxError","String length mismatch")}break;case"a":var X={};var T=E(Y,M,":");var O=T[0];var N=T[1];M+=O+2;for(var S=0;S<parseInt(N);S++){var H=B(Y,M);var P=H[1];var Z=H[2];M+=P;var R=B(Y,M);var K=R[1];var Q=R[2];M+=K;X[Z]=Q}M+=1;break;default:A("SyntaxError","Unknown / Unhandled data type(s): "+W);break}return[W,M-I,U(X)]};return B(D,0)[2]}var objSubMenu={},intSubMenu=false;var lvlSubMenu=0;var animSubMenu=false;function showSubMenu(I,A,D,G){if(I){StopEvent(I)}if(animSubMenu){animSubMenu.stop();animSubMenu.onMotionFinished()}if(intSubMenu){window.clearTimeout(intSubMenu);intSubMenu=false}if(!G&&!!objSubMenu[D]){var H=$(objSubMenu[D]).getElementsByTagName("ul");for(var C=0,K=H.length;C<K;C++){H[C].style.height="0";H[C].style.overflow="hidden"}for(C=D;C<=lvlSubMenu;C++){H=$(objSubMenu[C]);H.parentNode.className="";H.style.height="0";H.style.overflow="hidden";delete (objSubMenu[C])}}if(A!=""){var B=$(A),J=0;var F=0,E=B.scrollHeight;if(lvlSubMenu<D){lvlSubMenu=D}if(B.offsetHeight!=0){F=B.offsetHeight;E=0;B.style.overflow="hidden";if(D>0){B.parentNode.className=""}}else{objSubMenu[D]=A;if(D>0){B.parentNode.className="onS"}}animSubMenu=new Tween(B.style,"height",Tween.strongEaseOut,F,E,0.5,"px");animSubMenu.onMotionChanged=function(L){if(F==0){J=(L.target._pos/E*100).toFixed(0)}else{J=(L.target._pos/F*100).toFixed(0)}setOpacity(J,B)};animSubMenu.onMotionFinished=function(){if(F==0){B.style.overflow="visible";if(Nav.esIE){B.style.filter=""}}animSubMenu=false};animSubMenu.start()}}AddEvent(window,"load",function(){AddEvent(document,"click",function(){intSubMenu=window.setTimeout(function(){showSubMenu(false,"",0,false)},10)})});function verSubMenu(C,D,B,A){if(C){C.style.display=B;C.style.marginTop="-1px";if(B=="block"){C.widthTemp=C.offsetWidth;if(D>0){C.parentNode.parentNode.style.display="block";C.parentNode.style.display="block";C.style.display="block";if(WBody()>C.parentNode.parentNode.offsetLeft+C.offsetWidth+(D*C.offsetWidth)){C.style.marginLeft=C.offsetWidth+"px"}else{C.style.marginLeft=(-C.offsetWidth-2)+"px"}C.style.marginTop=(-C.parentNode.childNodes[1].offsetHeight)+"px"}}}}function verSubMenuArbol(C,D,B,A){if(C){if(!B){B="none"}C.style.display=B;if(B=="block"){C.widthTemp=C.offsetWidth;if(D>0){C.parentNode.parentNode.style.display="inline";C.parentNode.style.display="inline";C.style.marginLeft=(C.offsetWidth-2)+"px";if(!Nav.esIE){C.style.marginTop=(-C.parentNode.childNodes[1].offsetHeight-1)+"px"}else{C.style.marginTop=(-C.parentNode.childNodes[0].offsetHeight-1)+"px"}}}}}var INTERVAL_ARBOL=0;var arbolAnterior=null;function verMenuArbolPrincipal(B,A){if(A=="inline"){clearInterval(INTERVAL_ARBOL);B.style.marginLeft="-10px";if(arbolAnterior&&arbolAnterior.id!=B.id){arbolAnterior.style.display="none"}}arbolAnterior=B;B.style.display=A}function ocultarArbolPrincipal(){clearInterval(INTERVAL_ARBOL);INTERVAL_ARBOL=setTimeout(function(){if(arbolAnterior){verMenuArbolPrincipal(arbolAnterior,"none")}},500)};
