var t;function activar()
{clearTimeout(t);}
function mostrar_servicios()
{var capa=document.getElementById('servicios');capa.style.visibility="visible";}
function mostrar_productos()
{var capa=document.getElementById('productos');capa.style.visibility="visible";}
function mostrar_noticias()
{var capa=document.getElementById('noticias');capa.style.visibility="visible";}
function mostrar_faq()
{var capa=document.getElementById('faq');capa.style.visibility="visible";}
function ocultar_submenus()
{var capa2=document.getElementById('servicios');capa2.style.visibility="hidden";var capa3=document.getElementById('productos');capa3.style.visibility="hidden";var capa4=document.getElementById('noticias');capa4.style.visibility="hidden";var capa5=document.getElementById('faq');capa5.style.visibility="hidden";}
function retardo()
{t=setTimeout('ocultar_submenus()',800);}
function PopUp(img){foto1=new Image();foto1.src=(img);Control(img);}
function Control(img){if((foto1.width!=0)&&(foto1.height!=0)){verFoto(img);}
else{funcion="Control('"+img+"')";intervalo=setTimeout(funcion,20);}}
function verFoto(img){ancho=foto1.width+20;alto=foto1.height+20;anchoPantalla=screen.width;altoPantalla=screen.height;cadena="width="+ancho+",height="+alto+",left="+(anchoPantalla-foto1.width)/2+",top="+(altoPantalla-foto1.height)/2;ventana=window.open(img,"",cadena);ventana.document.writeln('<html>');ventana.document.writeln('<head>');ventana.document.writeln('<title></title>');ventana.document.writeln('</head>');ventana.document.writeln('<body>');ventana.document.writeln('<img src="'+img+'" style="border:2px #e5e5e5 solid;";');ventana.document.writeln('</body>');ventana.document.writeln('</html>');}
function creaAjax(){var objetoAjax=false;try{objetoAjax=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{objetoAjax=new ActiveXObject("Microsoft.XMLHTTP");}
catch(E){objetoAjax=false;}}
if(!objetoAjax&&typeof XMLHttpRequest!='undefined'){objetoAjax=new XMLHttpRequest();}
return objetoAjax;}
function FAjax(url,capa,valores,metodo)
{var ajax=creaAjax();var capaContenedora=document.getElementById(capa);if(metodo.toUpperCase()=='POST'){ajax.open('POST',url,true);ajax.onreadystatechange=function(){if(ajax.readyState==1){capaContenedora.innerHTML="";}
else if(ajax.readyState==4){if(ajax.status==200)
{document.getElementById(capa).innerHTML=ajax.responseText;}
else if(ajax.status==404)
{capaContenedora.innerHTML="La direccion existe";}
else
{capaContenedora.innerHTML="Error: ".ajax.status;}}}
ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');ajax.send(valores);return;}
if(metodo.toUpperCase()=='GET'){ajax.open('GET',url,true);ajax.onreadystatechange=function(){if(ajax.readyState==1){capaContenedora.innerHTML="";}
else if(ajax.readyState==4){if(ajax.status==200){document.getElementById(capa).innerHTML="";document.getElementById(capa).innerHTML=ajax.responseText;}
else if(ajax.status==404)
{capaContenedora.innerHTML="La direccion existe";}
else
{capaContenedora.innerHTML="Error: ".ajax.status;}}}
ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');ajax.send(null);return}}
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('7 E={4Q:6(){Q.M(1m,\'4T\',Q.56)},3x:6(f){7 g=17,H=1m,1P=5n;5(!g.23||!g.4X)B;5(3A(f)==\'4u\')f=17.23(f);5(f==14||1P.2H.2D(\'5m\')!=-1||((1P.2H.2D(\'5x\')!=-1||1P.2H.2D(\'6O\')!=-1)&&!(3A(4d)!="6t"&&4d.6v))||1P.6q==\'6k\'||(1P.6i.2D(\'6j\')!=-1&&1P.2H.2D(\'6x\')!=-1))B;5(f.1E){f.1E();B};5(!f.1Z||f.1Z==\'\'){7 h="6u",c=1;1B(17.23(h+c)!=14){c++};f.1Z=h+c}7 k=f.1Z;f.3f=2E 6B();7 l=f.3f;l.21={6C:[\'-1s\',0],6z:[0,\'-1s\'],6F:[\'1s\',0],6G:[0,\'1s\'],6g:[0,\'-1p\'],6e:[0,\'1p\'],6a:[0,\'-4Z\'],6d:[0,\'+4Z\']};l.3e=["-2s","2s"];l.3n=["-2s","2s"];7 m=Z(\'5N\',C),D=Z(\'5L\',C),G=Z(\'5P\',C),19=Z(\'5R\',C);7 o=Z(\'5M\',C),1i=Z(\'5J\',C),2Q=8;19.A.1t=\'5a 59 5D\';19.1x();f.1a.55=\'2F\';1i.A.5I="5T";1i.A.1w="4C";1i.A.T="4C";1i.A.22="3Y";1i.A.3B="-5Q";1i.1x();7 p=f.R,4F=f.1d;2c(f,19,\'15\',[\'1t-Y-T\',\'1t-1Y-T\',\'1t-11-T\',\'1t-1O-T\']);7 q=f.R,4O=f.1d,3Z=4F-4O,3R=p-q;7 s=(f.1Q)?f.1Q:0,4N=(f.1S)?f.1S:0;7 t=17.3G.1n,3C=/#([^#.]*)$/;7 u=[\'6b\',\'6c\',\'66\'];l.V=[];l.1W=[];l.63=l.O=[];l.5X=l.1T=[];l.1q=[8,8];l.X=[];l.1H=[0,0];l.1l=[];l.3E=[];l.W=[];1B(f.4D){m.13(f.4D)};m.13(o);f.13(D);f.13(19);5(L(f,\'22\')!=\'3Y\')f.1a.22="38";7 w=L(f,\'62-6D\');f.1a.4s=\'Y\';D.A.T="4S";D.A.1w="4S";D.A.11="15";D.A.Y="15";2c(f,19,"15",[\'J-Y\',\'J-11\',\'J-1Y\',\'J-1O\']);7 x=f.1d,4Y=f.R,3W;3W=D.R;D.A.61="5Z 59 5V";5(D.R>3W)2Q=C;D.A.5Y="15";2c(19,f,8,[\'J-Y\',\'J-11\',\'J-1Y\',\'J-1O\']);1r(D);1r(f);l.W[0]=D.1f-f.1f;l.W[2]=D.1k-f.1k;f.1a.4v=L(f,"J-1O");f.1a.4G=L(f,"J-1Y");1r(D);1r(f);l.W[1]=D.1f-f.1f;l.W[3]=D.1k-f.1k;f.1a.4v=L(19,"J-11");f.1a.4G=L(19,"J-Y");7 y=l.W[2]+l.W[3],3S=l.W[0]+l.W[1];D.1a.4s=w;2c(f,D,8,[\'J-Y\',\'J-1Y\',\'J-11\',\'J-1O\']);G.A.T=f.1d+\'F\';G.A.1w=f.R+\'F\';D.A.T=x+\'F\';D.A.1w=4Y+\'F\';G.A.22=\'3Y\';G.A.11=\'15\';G.A.Y=\'15\';G.1x();D.13(m);f.13(G);G.13(1i);m.A.22=\'38\';D.A.22=\'38\';m.A.11="0";m.A.T="4M%";D.A.55=\'2F\';D.A.Y="-"+l.W[2]+"F";D.A.11="-"+l.W[0]+"F";l.3L=1i.R;l.3a=6(){7 a=m.60,3b=64=0;1o(7 i=0;i<a.5b;i++){5(a[i].1d){3b=12.1R(a[i].1d,3b)}};l.O[0]=((l.X[1]&&!l.1l[1])||l.1W[1])?f.1d-l.1H[0]:f.1d;l.1T[0]=3b+y;B l.1T[0]};l.2N=6(){l.O[1]=((l.X[0]&&!l.1l[0])||l.1W[0])?f.R-l.1H[1]:f.R;l.1T[1]=m.R+3S-2;B l.1T[1]};l.4K=6(){m.A.3K=\'69\';m.A.3K=\'65\'};l.3D=6(){D.A.T=(2Q)?(l.O[0]-y-3Z)+\'F\':l.O[0]+\'F\'};l.3F=6(){D.A.1w=(2Q)?(l.O[1]-3S-3R)+\'F\':l.O[1]+\'F\'};l.2t=6(){l.3a();l.2N();G.2x=2E 3I();7 a=G.2x;2t(a,\'68\');a.2p=[18(L(a.4,\'J-11\')),18(L(a.4,\'J-1O\'))];a.4.A.J=\'15\';a.4.K=0;a.4.2R=C;a.4.2f=1;m.4J=a.4;44(a,0);l.1H[0]=a.1c.1d;l.3D();G.2T=2E 3I();7 b=G.2T;2t(b,\'67\');b.2p=[18(L(b.4,\'J-Y\')),18(L(b.4,\'J-1Y\'))];b.4.A.J=\'15\';b.4.K=0;b.4.2R=8;b.4.2f=0;m.5W=b.4;5(H.4z)b.4.A.22=\'38\';44(b,0);l.1H[1]=b.1c.R;l.3F();G.A.1w=f.R+\'F\';b.2j=Z(\'5U\');G.13(b.2j);b.2j.3T=6(){b.4.2S=C;l.24=b.4;b.4.2W=C;b.4.2e=8;G.2x.4.2e=8;E.M(g,\'3X\',2w);E.M(g,\'2v\',2G);E.M(g,\'2M\',2C);B 8}};l.24=14;l.2t();m.4E(o);5(!Q.2d(f,\'4R\',2b)||!Q.2d(f,\'4H\',2b)){f.5H=2b};Q.2d(f,\'4R\',2b);Q.2d(f,\'4H\',2b);f.5F(\'5B\',\'0\');Q.M(f,\'5E\',6(e){5(f.2Z)B;5(!e){7 e=H.1A};7 a=e.57;l.58=a;l.28();5(l.21[\'25\'+a]&&!1m.4z){f.1e(l.21[\'25\'+a][0],l.21[\'25\'+a][1],C);5(e.1J)e.1J();B 8}});Q.M(f,\'5G\',6(e){5(f.2Z)B;5(!e){7 e=H.1A};7 a=e.57;5(l.21[\'25\'+a]){f.1e(l.21[\'25\'+a][0],l.21[\'25\'+a][1],C);5(e.1J)e.1J();B 8}});Q.M(f,\'5K\',6(){l.58=8});Q.M(g,\'2M\',2n);Q.M(f,\'5S\',6(e){5(!e)e=H.1A;7 a=(e.1F)?e.1F:(e.1g)?e.1g:8;5(!a||(a.1u&&a.1u.U(2I("\\\\5O\\\\b"))))B;l.4V=e.2B;l.4t=e.2m;2L();1r(f);2n();E.M(g,\'2v\',3r);l.2l=[f.1k+10,f.1k+l.O[0]-10,f.1f+10,f.1f+l.O[1]-10]});6 3r(e){5(!e)e=H.1A;7 a=e.2B,3m=e.2m,3k=a+l.3q,3o=3m+l.3l;l.3p=(3k<l.2l[0]||3k>l.2l[1])?1:0;l.3t=(3o<l.2l[2]||3o>l.2l[3])?1:0;l.3v=a-l.4V;l.3y=3m-l.4t;l.33=(l.3v>40)?1:(l.3v<-40)?-1:0;l.36=(l.3y>40)?1:(l.3y<-40)?-1:0;5((l.33!=0||l.36!=0)&&!l.26)l.26=H.35(6(){5(l.33==0&&l.36==0){H.2g(l.26);l.26=8;B};2L();5(l.3p==1||l.3t==1)f.1e((l.33*l.3p)+"s",(l.36*l.3t)+"s",C)},45)}6 2n(){E.27(g,\'2v\',3r);5(l.26)H.2g(l.26);l.26=8;5(l.3d)H.50(l.3d);5(l.3i)H.2g(l.3i)}6 2L(){l.3q=(H.4w)?H.4w:(g.2a&&g.2a.1S)?g.2a.1S:0;l.3l=(H.4B)?H.4B:(g.2a&&g.2a.1Q)?g.2a.1Q:0}f.1E=6(a){5(G.N[1]()===0||G.N[0]()===0)B;m.A.J=\'5a\';7 b=l.X[0],4i=l.X[1],3c=G.2x,2u=G.2T,39,34,2o=[];G.A.T=f.1d-3Z+\'F\';G.A.1w=f.R-3R+\'F\';2o[0]=l.O[0];2o[1]=l.O[1];l.X[0]=l.3a()>l.O[0];l.X[1]=l.2N()>l.O[1];7 c=(b!=l.X[0]||4i!=l.X[1]||2o[0]!=l.O[0]||2o[1]!=l.O[1])?C:8;3c.1c.3s(l.X[1]);2u.1c.3s(l.X[0]);39=(l.X[1]||l.1W[1]);34=(l.X[0]||l.1W[0]);l.3a();l.2N();l.3F();l.3D();5(!l.X[0]||!l.X[1]||l.1l[0]||l.1l[1])2u.2j.1x();1j 2u.2j.2i();5(39)2J(3c,(34&&!l.1l[0])?l.1H[1]:0);1j m.A.11="0";5(34)2J(2u,(39&&!l.1l[1])?l.1H[0]:0);1j m.A.Y="0";5(c&&!a)f.1E(C);m.A.J=\'15\';l.1q[0]=l.1q[1]=8};f.5A=f.1e=6(a,b,c){7 d=[[8,8],[8,8]],P;5((a||a===0)&&l.V[0]){a=3w(a,0);P=G.2T.4;P.1b=(c)?12.1M(12.1R(P.1C,P.1b-a),0):-a;P.3g();d[0]=[-P.1b-P.1L,-P.1C]}5((b||b===0)&&l.V[1]){b=3w(b,1);P=G.2x.4;P.1b=(c)?12.1M(12.1R(P.1C,P.1b-b),0):-b;P.3g();d[1]=[-P.1b-P.1L,-P.1C]}5(!c)l.1q[0]=l.1q[1]=8;B d};f.30=6(a){5(a==14||!4l(a))B;7 b=4k(a);f.1e(b[0]+l.W[2],b[1]+l.W[0],8);f.1e(0,0,C)};2c(19,f,\'15\',[\'1t-Y-T\',\'1t-1Y-T\',\'1t-11-T\',\'1t-1O-T\']);f.4E(19);f.1Q=0;f.1S=0;f.2Y=C;2X(f,\'6H\',8);f.1E();f.1e(4N,s,C);5(t.U(3C)){f.30(g.23(t.U(3C)[1]))}G.2i();l.6E=H.35(6(){7 n=1i.R;5(n!=l.3L){f.1E();l.3L=n}},6I);6 3w(v,i){7 a=v.6K();v=6P(a);B 18((a.U(/p$/))?v*l.O[i]*0.9:(a.U(/s$/))?v*l.O[i]*0.1:v)}6 41(a){7 a=a.6N(\'-\'),47=a[0],i;1o(i=1;42=a[i];i++){47+=42.6J(0).6M()+42.6L(1)}B 47}6 L(a,b){5(H.4m)B H.4m(a,14).6A(b);5(a.4o)B a.4o[41(b)];B 8};6 2c(a,b,c,d){7 e=2E 3I();1o(7 i=0;i<d.5b;i++){e[i]=41(d[i]);b.1a[e[i]]=L(a,d[i],e[i]);5(c)a.1a[e[i]]=c}};6 Z(b,c){7 d=g.4X(\'4p\');d.1Z=k+\'25\'+b;d.1u=(c)?b:b+\' 6y\';d.N=[6(){B d.1d},6(){B d.R}];d.2q=[6(a){d.A.T=a},6(a){d.A.1w=a}];d.4q=[6(){B L(d,"Y")},6(){B L(d,"11")}];d.16=[6(a){d.A.Y=a},6(a){d.A.11=a}];d.1x=6(){d.A.2z="2F"};d.2i=6(a){d.A.2z=(a)?L(a,\'2z\'):"6m"};d.A=d.1a;B d};6 2t(a,b){a.1c=Z(b+\'6l\');a.2A=Z(b+\'6f\');a.20=Z(b+\'6h\');a.4=Z(b+\'6n\');a.1X=Z(b+\'6o\');a.1v=Z(b+\'6w\');G.13(a.1c);a.1c.13(a.4);a.1c.13(a.2A);a.1c.13(a.20);a.4.13(a.1X);a.4.13(a.1v)};6 44(b,c){7 d=b.1c,4=b.4,i=4.2f;4.1V=b.2p[0];4.37=d;4.D=D;4.4c=m;4.1L=0;2J(b,c,C);4.3J=6(){4.K=(12.1M(12.1R(4.K,0),4.29));4.1b=18((4.K/4.32)*4.1C);4.1L=(4.K==0)?0:(4.K==4.29)?0:4.1L;4.16[i](4.K+4.1V+"F");m.16[i](4.1b+4.1L+"F")};4.3g=6(){4.K=18((4.1b*4.32)/4.1C);4.1L=4.1b-18((4.K/4.32)*4.1C);4.K=(12.1M(12.1R(4.K,0),4.29));4.16[i](4.K+4.1V+"F");4.16[i](4.K+4.1V+"F");m.16[i](4.1b+"F")};l.2k=L(4,\'z-4a\');4.A.3B=(l.2k=="6p"||l.2k=="0"||l.2k==\'6s\')?2:l.2k;D.A.3B=L(4,\'z-4a\');4.3T=6(){4.2W=C;l.24=4;4.2S=8;4.2e=8;E.M(g,\'3X\',2w);E.M(g,\'2v\',2G);E.M(g,\'2M\',2C);B 8};4.6r=2n;d.3T=d.5C=6(e){5(!e){7 e=H.1A}5(e.1F&&(e.1F==b.1X||e.1F==b.1v||e.1F==b.4))B;5(e.1g&&(e.1g==b.1X||e.1g==b.1v||e.1g==b.4))B;7 a,1U=[];2L();l.28();1r(4);a=(4.2R)?e.2m+l.3l-4.1f:e.2B+l.3q-4.1k;1U[4.2f]=(a<0)?l.3n[0]:l.3n[1];1U[1-4.2f]=0;f.1e(1U[0],1U[1],C);5(e.5o!="5z"){2n();l.3d=H.49(6(){l.3i=H.35(6(){f.1e(1U[0],1U[1],C)},4b)},5c)}B 8};d.3s=6(r){5(r){d.2i(f);l.1l[i]=(L(d,"2z")=="2F")?C:8;5(!l.1l[i])4.2i(f);1j 4.1x();l.V[i]=C;2X(d,"","4n")}1j{d.1x();4.1x();l.1W[i]=(L(d,"2z")!="2F")?C:8;l.V[i]=8;4.K=0;m.16[i](\'15\');2X(d,"4n","")}D.16[1-i]((l.3E[i]&&(r||l.1W[i])&&!l.1l[i])?l.1H[1-i]-l.W[i*2]+"F":"-"+l.W[i*2]+"F")};d.5e=2w};6 2J(a,b,c){7 d=a.1c,4=a.4,2A=a.2A,1X=a.1X,20=a.20,1v=a.1v,i=4.2f;d.2q[i](G.N[i]()-b+\'F\');d.16[1-i](G.N[1-i]()-d.N[1-i]()+\'F\');l.3E[i]=(18(d.4q[1-i]())===0)?C:8;a.43=a.2p[0]+a.2p[1];a.3M=18((d.N[i]()-a.43)*0.5d);4.4g=12.1M(12.1R(12.1M(18(l.O[i]/l.1T[i]*d.N[i]()),a.3M),45),a.3M);4.2q[i](4.4g+\'F\');4.29=d.N[i]()-4.N[i]()-a.43;4.K=12.1M(12.1R(0,4.K),4.29);4.16[i](4.K+4.1V+\'F\');4.1C=D.N[i]()-l.1T[i];4.32=4.29;2A.2q[i](d.N[i]()-20.N[i]()+\'F\');1X.2q[i](4.N[i]()-1v.N[i]()+\'F\');1v.16[i](4.N[i]()-1v.N[i]()+\'F\');20.16[i](d.N[i]()-20.N[i]()+\'F\');5(!c)4.3J();l.4K()};l.28=6(){D.1Q=0;D.1S=0;f.1Q=0;f.1S=0};Q.M(H,\'4T\',6(){5(f.2Y)f.1E()});Q.M(H,\'5i\',6(){5(f.3N)H.50(f.3N);f.3N=H.49(6(){5(f.2Y)f.1E()},4b)});1o(7 j=0,3O;3O=u[j];j++){7 z=f.2O(3O);1o(7 i=0,31;31=z[i];i++){E.M(31,\'5k\',6(){f.2Z=C});E.M(31,\'5s\',5v=6(){f.2Z=8})}};6 2w(){B 8};6 2G(e){5(!e){7 e=H.1A};7 a=l.24,I,46,5y,5h;5(a==14)B;5(!E.4f&&!e.5t)2C();46=(a.2S)?2:1;1o(7 i=0;i<46;i++){I=(i==1)?a.4c.4J:a;5(a.2W){5(!I.2e){l.28();1r(I);1r(I.37);I.4j=e.2m-I.1f;I.4h=e.2B-I.1k;I.4e=I.K;I.2e=C};I.K=(I.2R)?e.2m-I.4j-I.37.1f-I.1V:e.2B-I.4h-I.37.1k-I.1V;5(a.2S)I.K=I.K+(I.K-I.4e);I.3J()}1j I.2e=8}};6 2C(){5(l.24!=14){l.24.2W=8}l.24=14;E.27(g,\'3X\',2w);E.27(g,\'2v\',2G);E.27(g,\'2M\',2C)};6 2b(e){5(!e)e=H.1A;5(!Q.2Y)B;7 a=Q,2V,3h,1K=8,1h=0,1D;l.28();3z=(e.1F)?e.1F:(e.1g)?e.1g:Q;5(3z.1Z&&3z.1Z.U(/5l/))1K=C;5(e.4r)1h=-e.4r;5(e.48)1h=e.48;1h=(1h<0)?-1:+1;1D=(1h<0)?0:1;l.1q[1-1D]=8;5((l.1q[1D]&&!1K)||(!l.V[0]&&!l.V[1]))B;5(l.V[1]&&!1K)1I=f.1e(8,l.3e[1D],C);2V=!l.V[1]||1K||(l.V[1]&&((1I[1][0]==1I[1][1]&&1h>0)||(1I[1][0]==0&&1h<0)));5(l.V[0]&&(!l.V[1]||1K))1I=f.1e(l.3e[1D],8,C);3h=!l.V[0]||(l.V[0]&&l.V[1]&&2V&&!1K)||(l.V[0]&&((1I[0][0]==1I[0][1]&&1h>0)||(1I[0][0]==0&&1h<0)));5(2V&&3h&&!1K)l.1q[1D]=C;1j l.1q[1D]=8;5(e.1J)e.1J();B 8};6 4l(a){1B(a.1z){a=a.1z;5(a==f)B C}B 8};6 1r(a){7 b=a,1N=1G=0;7 c="";5(b.2K){1B(b){1N+=b.4U;1G+=b.51;b=b.2K;c+=1G+" "}}1j 5(b.x){1N+=b.x;1G+=b.y}a.1k=1N;a.1f=1G};6 4k(a){7 b=a;1N=1G=0;1B(!b.R&&b.1z&&b!=m&&L(b,\'3K\')=="5j"){b=b.1z}5(b.2K){1B(b!=m){1N+=b.4U;1G+=b.51;b=b.2K}}B[1N,1G]};6 2X(a,b,c){5(!a.1u)a.1u=\'\';7 d=a.1u;5(b&&!d.U(2I("(^|\\\\s)"+b+"($|\\\\s)")))d=d.3u(/(\\S$)/,\'$1 \')+b;5(c)d=d.3u(2I("((^|\\\\s)+"+c+")+($|\\\\s)","g"),\'$2\').3u(/\\s$/,\'\');a.1u=d}},56:6(){5(E.2P)1m.2g(E.2P);7 d=/#([^#.]*)$/,2y=/(.*)#.*$/,5p,i,1y,54=17.2O("a"),2h=17.3G.1n;5(2h.U(2y))2h=2h.U(2y)[1];1o(i=0;1y=54[i];i++){5(1y.1n&&1y.1n.U(d)&&1y.1n.U(2y)&&2h===1y.1n.U(2y)[1]){1y.3j=C;E.M(1y,\'5q\',6(e){5(!e)e=1m.1A;7 a=(e.1g)?e.1g:Q;1B(!a.3j&&a.1z){a=a.1z};5(!a.3j)B;7 b=17.23(a.1n.U(d)[1]),2U=8;5(b==14)b=(b=17.5w(a.1n.U(d)[1])[0])?b:14;5(b!=14){7 c=b;1B(c.1z){c=c.1z;5(c.30){c.30(b);2U=c}};5(2U){5(e.1J)e.1J();17.3G.1n="#"+a.1n.U(d)[1];2U.3f.28();B 8}}})}};E.3V();5(1m.4A)1m.4A()},3V:6(){5(E.4y)B;E.4y=C;7 a=E.4x(17.2O("5u")[0],"4p",\'4L\');1o(7 i=0,3H;3H=a[i];i++)E.3x(3H)},4x:6(a,b,c){5(3A(a)==\'4u\')a=17.23(a);5(a==14)B 8;7 d=2E 2I("(^|\\\\s)"+c+"($|\\\\s)"),5r,3Q=[],3P=0;7 e=a.2O(b);1o(7 i=0,2r;2r=e[i];i++){5(2r.1u&&2r.1u.U(d)){3Q[3P]=2r;3P++}}B 3Q},2P:1m.35(6(){7 a=17.23(\'4L-5g\');5(a!=14){E.3V();1m.2g(E.2P)}},4M),M:6(a,b,c){5(!E.2d(a,b,c)&&a.4I){a.4I(\'4P\'+b,c)}},2d:6(a,b,c){5(a.3U){a.3U(b,c,8);E.4f=C;1m.3U("5f",6(){E.27(a,b,c)},8);B C}1j B 8},27:6(a,b,c){5(!E.53(a,b,c)&&a.52)a.52(\'4P\'+b,c)},53:6(a,b,c){5(a.4W){a.4W(b,c,8);B C}1j B 8}};6 6Q(a){E.3x(a)};E.4Q();',62,425,'||||sBr|if|function|var|false||||||||||||||||||||||||||||sY|return|true|mDv|fleXenv|px|tDv|wD|movBr|padding|curPos|getStyle|addTrggr|getSize|cntRSize|Bar|this|offsetHeight||width|match|scroller|paddings|reqS|left|createDiv||top|Math|appendChild|null|0px|setPos|document|parseInt|pDv|style|trgtScrll|sDv|offsetWidth|contentScroll|yPos|srcElement|delta|fDv|else|xPos|forcedHide|window|href|for||edge|findPos||border|className|sSBr|height|fHide|anchoR|parentNode|event|while|mxScroll|iNDx|scrollUpdate|target|curtop|barSpace|scrollState|preventDefault|hoverH|targetSkew|min|curleft|bottom|nV|scrollTop|max|scrollLeft|cntSize|mV|minPos|forcedBar|sFBr|right|id|sSDv|keyAct|position|getElementById|goScroll|_|tSelectFunc|remTrggr|mDPosFix|maxPos|documentElement|mWheelProc|copyStyles|addChckTrggr|moved|indx|clearInterval|urlBase|fShow|jBox|barZ|mTBox|clientY|intClear|cPSize|barPadding|setSize|pusher||createScrollBars|hBr|mousemove|retFalse|vrt|urlExt|visibility|sFDv|clientX|mMouseUp|indexOf|new|hidden|mMoveBar|userAgent|RegExp|updateScroll|offsetParent|pageScrolled|mouseup|getContentHeight|getElementsByTagName|catchFastInit|stdMode|vertical|scrollBoth|hrz|eScroll|vEdge|clicked|classChange|fleXcroll|focusProtect|scrollToElement|formItem|sRange|sXdir|hUpReq|setInterval|sYdir|ofstParent|relative|vUpReq|getContentWidth|maxCWidth|vBr|barClickRetard|wheelAct|fleXdata|contentScrollPos|hEdge|barClickScroll|fleXanchor|mdX|yScrld|mY|baseAct|mdY|mOnXEdge|xScrld|tSelectMouse|setVisibility|mOnYEdge|replace|xAw|calcCScrollVal|fleXcrollMain|yAw|hElem|typeof|zIndex|uReg|setWidth|forcedPos|setHeight|location|tgDiv|Array|doScrollPos|display|zTHeight|baseProp|refreshTimeout|inputName|key|retArray|brdHeightLoss|padHeightComp|onmousedown|addEventListener|initByClass|mHeight|selectstart|absolute|brdWidthLoss||camelConv|parT|padLoss|prepareScroll||maxx|reT|detail|setTimeout|index|80|scrlTrgt|HTMLElement|inCurPos|w3events|aSize|pointerOffsetX|reqV|pointerOffsetY|findRCpos|isddvChild|getComputedStyle|flexinactive|currentStyle|div|getPos|wheelDelta|textAlign|inMposY|string|paddingTop|pageXOffset|getByClassName|initialized|opera|onfleXcrollRun|pageYOffset|1em|firstChild|removeChild|brdWidth|paddingLeft|DOMMouseScroll|attachEvent|vBar|fixIEDispBug|flexcroll|100|oScrollX|intlWidth|on|fleXcrollInit|mousewheel|100px|load|offsetLeft|inMposX|removeEventListener|createElement|postHeight|100p|clearTimeout|offsetTop|detachEvent|remChckTrggr|anchorList|overflow|globalInit|keyCode|pkeY|solid|1px|length|425|75|onmouseclick|unload|init|yScroll|resize|inline|focus|_hscroller|OmniWeb|navigator|type|matcH|click|clsnm|blur|button|body|onblur|getElementsByName|AppleWebKit|xScroll|dblclick|commitScroll|tabIndex|ondblclick|blue|keydown|setAttribute|keypress|onmousewheel|fontSize|zoomdetectdiv|keyup|mcontentwrapper|domfixdiv|contentwrapper|bscrollgeneric|scrollwrapper|999|copyholder|mousedown|12px|scrollerjogbox|black|hBar|contentSize|borderBottomWidth|2px|childNodes|borderBottom|text|containerSize|compPad|block|select|hscroller|vscroller|none|_36|textarea|input|_35|_34|basebeg|_33|baseend|platform|Mac|KDE|base|visible|bar|barbeg|auto|vendor|onmouseover|normal|undefined|flex__|prototype|barend|MSIE|scrollgeneric|_38|getPropertyValue|Object|_37|align|sizeChangeDetect|_39|_40|flexcrollactive|2500|charAt|toString|substr|toUpperCase|split|Safari|parseFloat|CSBfleXcroll'.split('|'),0,{}))
this.sitemapstyler=function(){var sitemap=document.getElementById("sitemap")
if(sitemap){this.listItem=function(li){if(li.getElementsByTagName("ul").length>0){var ul=li.getElementsByTagName("ul")[0];ul.style.display="none";var span=document.createElement("span");span.className="collapsed";span.onclick=function(){ul.style.display=(ul.style.display=="none")?"block":"none";this.className=(ul.style.display=="none")?"collapsed":"expanded";};li.appendChild(span);};};var items=sitemap.getElementsByTagName("li");for(var i=0;i<items.length;i++){listItem(items[i]);};};};window.onload=sitemapstyler;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(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!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 n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.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 axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return"";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=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(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var Zapatec={};Zapatec.Utils={};Zapatec.Utils.getAbsolutePos=function(el){var SL=0,ST=0;var is_div=/^div$/i.test(el.tagName);if(is_div&&el.scrollLeft)
SL=el.scrollLeft;if(is_div&&el.scrollTop)
ST=el.scrollTop;var r={x:el.offsetLeft-SL,y:el.offsetTop-ST};if(el.offsetParent){var tmp=this.getAbsolutePos(el.offsetParent);r.x+=tmp.x;r.y+=tmp.y;}
return r;};Zapatec.Utils.fixBoxPosition=function(box){if(box.x<0)
box.x=0;if(box.y<0)
box.y=0;var cp=Zapatec.Utils.createElement("div");var s=cp.style;s.position="absolute";s.right=s.bottom=s.width=s.height="0px";window.document.body.appendChild(cp);var br=Zapatec.Utils.getAbsolutePos(cp);window.document.body.removeChild(cp);if(Zapatec.is_ie){br.y+=window.document.body.scrollTop;br.x+=window.document.body.scrollLeft;}else{br.y+=window.scrollY;br.x+=window.scrollX;}
var tmp=box.x+box.width-br.x;if(tmp>0)box.x-=tmp;tmp=box.y+box.height-br.y;if(tmp>0)box.y-=tmp;};Zapatec.Utils.isRelated=function(el,evt){evt||(evt=window.event);var related=evt.relatedTarget;if(!related){var type=evt.type;if(type=="mouseover"){related=evt.fromElement;}else if(type=="mouseout"){related=evt.toElement;}}
try{while(related){if(related==el){return true;}
related=related.parentNode;}}catch(e){};return false;};Zapatec.Utils.removeClass=function(el,className){if(!(el&&el.className)){return;}
var cls=el.className.split(" ");var ar=[];for(var i=cls.length;i>0;){if(cls[--i]!=className){ar[ar.length]=cls[i];}}
el.className=ar.join(" ");};Zapatec.Utils.addClass=function(el,className){Zapatec.Utils.removeClass(el,className);el.className+=" "+className;};Zapatec.Utils.getElement=function(ev){if(Zapatec.is_ie){return window.event.srcElement;}else{return ev.currentTarget;}};Zapatec.Utils.getTargetElement=function(ev){if(Zapatec.is_ie){return window.event.srcElement;}else{return ev.target;}};Zapatec.Utils.stopEvent=function(ev){ev||(ev=window.event);if(Zapatec.is_ie){ev.cancelBubble=true;ev.returnValue=false;}else{ev.preventDefault();ev.stopPropagation();}
return false;};Zapatec.Utils.addEvent=function(el,evname,func){if(el.attachEvent){el.attachEvent("on"+evname,func);}else if(el.addEventListener){el.addEventListener(evname,func,true);}else{el["on"+evname]=func;}};Zapatec.Utils.removeEvent=function(el,evname,func){if(el.detachEvent){el.detachEvent("on"+evname,func);}else if(el.removeEventListener){el.removeEventListener(evname,func,true);}else{el["on"+evname]=null;}};Zapatec.Utils.createElement=function(type,parent){var el=null;if(window.self.document.createElementNS)
el=window.self.document.createElementNS("http://www.w3.org/1999/xhtml",type);else
el=window.self.document.createElement(type);if(typeof parent!="undefined")
parent.appendChild(el);if(Zapatec.is_ie)
el.setAttribute("unselectable",true);if(Zapatec.is_gecko)
el.style.setProperty("-moz-user-select","none","");return el;};Zapatec.Utils.writeCookie=function(name,value,domain,path,exp_days){value=escape(value);var ck=name+"="+value,exp;if(domain)
ck+=";domain="+domain;if(path)
ck+=";path="+path;if(exp_days){exp=new Date();exp.setTime(exp_days*86400000+exp.getTime());ck+=";expires="+exp.toGMTString();}
document.cookie=ck;};Zapatec.Utils.getCookie=function(name){var re=new RegExp("(^|;\\s*)"+name+"\\s*=(.*?)(;|$)");if(re.test(document.cookie)){var value=RegExp.$2;value=unescape(value);return(value);}
return null;};Zapatec.Utils.makePref=function(obj){function stringify(val){if(typeof val=="object"&&!val)
return"null";else if(typeof val=="number"||typeof val=="boolean")
return val;else if(typeof val=="string")
return'"'+val.replace(/\22/,"\\22")+'"';else return null;};var txt="",i;for(i in obj)
txt+=(txt?",'":"'")+i+"':"+stringify(obj[i]);return txt;};Zapatec.Utils.loadPref=function(txt){var obj=null;try{eval("obj={"+txt+"}");}catch(e){}
return obj;};Zapatec.Utils.mergeObjects=function(dest,src){for(var i in src)
dest[i]=src[i];};Zapatec.Utils.__wch_id=0;Zapatec.Utils.createWCH=function(element){var f=null;element=element||window.self.document.body;if(Zapatec.is_ie&&!Zapatec.is_ie5){var filter='filter:progid:DXImageTransform.Microsoft.alpha(style=0,opacity=0);';var id="WCH"+(++Zapatec.Utils.__wch_id);element.insertAdjacentHTML
('beforeEnd','<iframe id="'+id+'" scroll="no" frameborder="0" '+
'style="z-index:0;position:absolute;visibility:hidden;'+filter+
'border:0;top:0;left:0;width:0;height:0;" '+
'src="javascript:false;"></iframe>');f=window.self.document.getElementById(id);}
return f;};Zapatec.Utils.setupWCH_el=function(f,el,el2){if(f){var pos=Zapatec.Utils.getAbsolutePos(el),X1=pos.x,Y1=pos.y,X2=X1+el.offsetWidth,Y2=Y1+el.offsetHeight;if(el2){var p2=Zapatec.Utils.getAbsolutePos(el2),XX1=p2.x,YY1=p2.y,XX2=XX1+el2.offsetWidth,YY2=YY1+el2.offsetHeight;if(X1>XX1)
X1=XX1;if(Y1>YY1)
Y1=YY1;if(X2<XX2)
X2=XX2;if(Y2<YY2)
Y2=YY2;}
Zapatec.Utils.setupWCH(f,X1,Y1,X2-X1,Y2-Y1);}};Zapatec.Utils.setupWCH=function(f,x,y,w,h){if(f){var s=f.style;(typeof x!="undefined")&&(s.left=x+"px");(typeof y!="undefined")&&(s.top=y+"px");(typeof w!="undefined")&&(s.width=w+"px");(typeof h!="undefined")&&(s.height=h+"px");s.visibility="inherit";}};Zapatec.Utils.hideWCH=function(f){if(f)
f.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(node){Zapatec.ScrollWithWindow.list[Zapatec.ScrollWithWindow.list.length]={node:node,origTop:parseInt(node.style.top)||0};};Zapatec.ScrollWithWindow.handler=function(newScrollY){oldScrollY+=((newScrollY-oldScrollY)*this.stickiness);if(Math.abs(oldScrollY-newScrollY)<=1)oldScrollY=newScrollY;for(var count=0;count<Zapatec.ScrollWithWindow.list.length;count++){var elm=Zapatec.ScrollWithWindow.list[count];elm.node.style.top=elm.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(el){if(el&&el.parentNode)
el.parentNode.removeChild(el);};Zapatec.Utils.newCenteredWindow=function(url,windowName,width,height,scrollbars){var leftPosition=0;var topPosition=0;if(screen.width)
leftPosition=(screen.width-width)/2;if(screen.height)
topPosition=(screen.height-height)/2;var winArgs='height='+height+
',width='+width+
',top='+topPosition+
',left='+leftPosition+
',scrollbars='+scrollbars+
',resizable';var win=window.open(url,windowName,winArgs);return win;};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(el,tag){el=el.nextSibling;if(!tag)
return el;tag=tag.toLowerCase();while(el&&(el.nodeType!=1||el.tagName.toLowerCase()!=tag))
el=el.nextSibling;return el;};Zapatec.Utils.getFirstChild=function(el,tag){el=el.firstChild;if(!tag)
return el;tag=tag.toLowerCase();if(el.nodeType==1&&el.tagName.toLowerCase()==tag)
return el;return Zapatec.Utils.getNextSibling(el,tag);};Zapatec.Utils._ids={};Zapatec.Utils.generateID=function(code,id){if(typeof id=="undefined"){if(typeof this._ids[code]=="undefined")
this._ids[code]=0;id=++this._ids[code];}
return"zapatec-"+code+"-"+id;};Zapatec.Utils.addTooltip=function(target,tooltip){return new Zapatec.Tooltip(target,tooltip);};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);Zapatec.Tree=function(el,config,noInit){if(typeof config=="undefined")
config={};this._el=el;this._config=config;if(!noInit)this.initTree();}
Zapatec.Tree.prototype.initTree=function(){var el=this._el;var config=this._config;function param_default(name,value){if(typeof config[name]=="undefined")config[name]=value;};param_default('d_profile',false);param_default('hiliteSelectedNode',true);param_default('compact',false);param_default('dynamic',false);param_default('initLevel',false);if(config.dynamic)
config.initLevel=0;this.config=config;if(this.config.d_profile){var T1=new Date().getTime();profile={items:0,trees:0};}
if(typeof el=="string")
el=document.getElementById(el);this.list=el;this.items={};this.trees={};this.selectedItem=null;this.id=null;if(el)
this.id=el.id||Zapatec.Utils.generateID("tree");else
alert("Can not find Menu id=\""+this._el+"\"")
var top=this.top_parent=Zapatec.Utils.createElement("div");top.className="zpMenu zpMenu-top";if(this.config.vertical)
Zapatec.Utils.addClass(top,"zpMenu-vertical-mode");else
Zapatec.Utils.addClass(top,"zpMenu-horizontal-mode");this.createTree(el,top,0);if(el){el.parentNode.insertBefore(top,el);el.parentNode.removeChild(el);}
Zapatec.Tree.all[this.id]=this;if(this.selectedItem)
this.sync(this.selectedItem.__zp_item);if(this.config.d_profile){alert("Generated in "+(new Date().getTime()-T1)+" milliseconds\n"+
profile.items+" total tree items\n"+
profile.trees+" total (sub)trees\n");}};Zapatec.Tree.all={};Zapatec.Tree.prototype.createTree=function(list,parent,level){if(this.config.d_profile)
++profile.trees;var id;var intItem=1,bFirst=true;if(list)id=list.id;if(!id)id=Zapatec.Utils.generateID("tree.sub");var
self=this;function _makeIt(){self.creating_now=true;var
last_li=null,next_li,i=(list?list.firstChild:null),items=parent.__zp_items=[];self.trees[id]=parent;parent.__zp_level=level;parent.__zp_treeid=id;while(i){if(last_li)
last_li.className+=" zpMenu-lines-c";if(i.nodeType!=1)
i=i.nextSibling;else{next_li=Zapatec.Utils.getNextSibling(i,'li');if(i.tagName.toLowerCase()=='li'){last_li=self.createItem(i,parent,next_li,level,intItem++);if(last_li){if(bFirst)
{bFirst=false;Zapatec.Utils.addClass(last_li,"zpMenu-item-first");}
items[items.length]=last_li.__zp_item;}}
i=next_li;}}
if(last_li)Zapatec.Utils.addClass(last_li,"zpMenu-item-last");i=parent.firstChild;if(i&&!level){i.className=i.className.replace(/ zpMenu-lines-./g,"");i.className+=(i===last_li)?" zpMenu-lines-s":" zpMenu-lines-t";}
if(last_li&&(level||last_li!=i)){last_li.className=last_li.className.replace(/ zpMenu-lines-./g,"");last_li.className+=" zpMenu-lines-b";}
self.creating_now=false;};if(this.config.dynamic&&level>0)
this.trees[id]=_makeIt;else
_makeIt();return id;};Zapatec.Tree.prototype.createItem=function(li,parent,next_li,level,intItem){if(this.config.d_profile)
++profile.items;if(!li.firstChild)
return;var
id=li.id||Zapatec.Utils.generateID("tree.item"),item=this.items[id]=Zapatec.Utils.createElement("div",parent),t=Zapatec.Utils.createElement("table",item),tb=Zapatec.Utils.createElement("tbody",t),tr=Zapatec.Utils.createElement("tr",tb),td=Zapatec.Utils.createElement("td",tr),is_list,tmp,i=li.firstChild,has_icon=false;t.className="zpMenu-table";t.cellSpacing=0;t.cellPadding=0;td.className="zpMenu-label"
if(li.getAttribute('title')){td.setAttribute('title',li.getAttribute('title'));}
item.className="zpMenu-item"+(li.className?' '+li.className:'');if(level==0&&!this.config.vertical){Zapatec.Utils.addClass(item,"zpMenuVertical");}
Zapatec.Utils.addClass(item,"zpMenu-level-"+(level+1));item.__zp_item=id;item.__zp_tree=this.id;item.__zp_parent=parent.__zp_treeid;item.onmouseover=Zapatec.Menu.onItemMouseOver;item.onmouseout=Zapatec.Menu.onItemMouseOut;item.onclick=Zapatec.Menu.onItemClick;Zapatec.Utils.addClass(item,"zpMenu-item-"+(intItem%2==1?"odd":"even"));while(i){is_list=i.nodeType==1&&/^[ou]l$/i.test(i.tagName);if(i.nodeType!=1||!is_list){if(i.nodeType==3){tmp=i.data.replace(/^\s+/,'');tmp=tmp.replace(/\s+$/,'');li.removeChild(i);if(tmp){i=Zapatec.Utils.createElement("span");i.innerHTML=tmp;td.appendChild(i);}}else{if((this._menuMode)&&(i.tagName.toLowerCase()=='hr')){Zapatec.Utils.addClass(item,"zpMenu-item-hr");}
td.appendChild(i);}
i=li.firstChild;continue;}
if(is_list){this.item_addIcon(item,null);var np=Zapatec.Utils.createElement("div",item.parentNode);np.__zp_item=id;np.className="zpMenu"+(i.className?' '+i.className:'');np.onmouseover=Zapatec.Menu.onItemMouseOver;np.onmouseout=Zapatec.Menu.onItemMouseOut;if(next_li)
np.className+=" zpMenu-lined";item.__zp_subtree=this.createTree(i,np,level+1);if((this.config.initLevel!=false&&this.config.initLevel<=level)||(this.config.compact&&!/(^|\s)expanded(\s|$)/i.test(li.className))
||/(^|\s)collapsed(\s|$)/i.test(li.className)){item.className+=" zpMenu-item-collapsed";this.toggleItem(id);}else
item.className+=" zpMenu-item-expanded";if(/(^|\s)selected(\s|$)/i.test(li.className))
this.selectedItem=item;break;}}
return item;};Zapatec.Tree.prototype.item_addIcon=function(item,img){if(this.config.d_profile)
++profile.icons;var last_td=item.firstChild.firstChild.firstChild,td;last_td=img?last_td.lastChild:last_td.firstChild;if(!img||!item.__zp_icon){td=Zapatec.Utils.createElement("td");td.className="tgb "+(img?"icon":"minus");last_td.parentNode.insertBefore(td,last_td);}else{td=item.__zp_icon;img.style.display="none";}
if(!img){td.innerHTML="&nbsp;";item.className+=" zpMenu-item-more";item.__zp_state=true;item.__zp_expand=td;}else{td.appendChild(img);item.__zp_icon=td;}};Zapatec.Tree.prototype.itemClicked=function(item_id){this.selectedItem=this.toggleItem(item_id);if(this.config.hiliteSelectedNode&&this.selectedItem)
Zapatec.Utils.addClass(this.selectedItem,"zpMenu-item-selected");this.onItemSelect(item_id);};Zapatec.Tree.prototype.toggleItem=function(item_id,state){if(item_id){if(this.config.hiliteSelectedNode&&this.selectedItem)
Zapatec.Utils.removeClass(this.selectedItem,"zpMenu-item-selected");var item=this.items[item_id];if(typeof state=="undefined")
state=!item.__zp_state;if(state!=item.__zp_state){var subtree=this._getTree(item.__zp_subtree,this.creating_now);if(subtree){this.treeSetDisplay(subtree,state);Zapatec.Utils.removeClass(item,"zpMenu-item-expanded");Zapatec.Utils.removeClass(item,"zpMenu-item-collapsed");Zapatec.Utils.addClass(item,state?"zpMenu-item-expanded":"zpMenu-item-collapsed");}
var img=item.__zp_expand;if(img)
img.className="tgb "+(state?"minus":"plus");item.__zp_state=state;img=item.__zp_icon;if(img){img.firstChild.style.display="none";img.appendChild(img.firstChild);img.firstChild.style.display="block";}
if(this.config.compact&&state){var hideItems=this._getTree(item.__zp_parent).__zp_items;for(var i=hideItems.length;--i>=0;){if(hideItems[i]!=item_id&&hideItems[i].__zp_state){this.toggleItem(hideItems[i],false);if(hideItems[i].__zp_subtree){var subtree=this._getTree(hideItems[i].__zp_subtree);this.toggleItem(subtree.firstChild,false);}}}}}
return item;}
return null;};Zapatec.Tree.prototype.collapseAll=function(){for(var i in this.trees)
this.toggleItem(this._getTree(i).__zp_item,false);};Zapatec.Tree.prototype.expandAll=function(){for(var i in this.trees)
this.toggleItem(this._getTree(i).__zp_item,true);};Zapatec.Tree.prototype.toggleAll=function(){for(var i in this.trees)
this.toggleItem(this._getTree(i).__zp_item);};Zapatec.Tree.prototype.sync=function(item_id){var item=this.items[item_id];if(item){this.collapseAll();this.selectedItem=item;var a=[];while(item.__zp_parent){a[a.length]=item;var pt=this._getTree(item.__zp_parent);if(pt.__zp_item)
item=this.items[pt.__zp_item];else
break;}
for(var i=a.length;--i>=0;)
this.toggleItem(a[i].__zp_item,true);Zapatec.Utils.addClass(this.selectedItem,"zpMenu-item-selected");}};Zapatec.Tree.prototype.destroy=function(){var p=this.top_parent;p.parentNode.removeChild(p);};Zapatec.Tree.prototype._getTree=function(tree_id,dont_call){var tree=this.trees[tree_id];if(typeof tree=="function"){if(dont_call)
tree=null;else{tree();tree=this.trees[tree_id];}}
return tree;};Zapatec.Tree.prototype.onItemSelect=function(){};Zapatec.Tree.onItemToggle=function(){var item=this;var body=document.body;while(item&&item!=body&&!/zpMenu-item/.test(item.className))
item=item.parentNode;Zapatec.Tree.all[item.__zp_tree].itemClicked(item.__zp_item);};Zapatec.Menu=function(el,config_user){this._el=el;this._config={};this.setOption(this._config,'showDelay',0);this.setOption(this._config,'hideDelay',500);this.setOption(this._config,'onClick',false);this.setOption(this._config,'vertical',false);this.setOption(this._config,'scrollWithWindow',false);this.setOption(this._config,'drag',false);this.setOption(this._config,'slide',false);this.setOption(this._config,'glide',false);this.setOption(this._config,'fade',false);this.setOption(this._config,'wipe',false);this.setOption(this._config,'unfurl',false);this.setOption(this._config,'animSpeed',10);this.setOption(this._config,'compact',true);this.setOption(this._config,'initLevel',0);this.setOption(this._config,'defaultIcons',null);if(typeof config_user!="undefined")
for(var i in config_user){if(typeof this._config[i]=="undefined"){alert("Error:Menu "+this._el+" has invalid parameter --"+i+":"+config_user[i]);}else{this.setOption(this._config,i,config_user[i]);}}
this.animations=[];this._menuMode=true;this.initTree();this.openMenus=[];this.clickDone=false;if(this.config.scrollWithWindow){Zapatec.ScrollWithWindow.register(this.trees[this._el]);}
if(this.config.drag){var self=this;self.dragging=false;Zapatec.Utils.addEvent(window.document,"mousedown",function(ev){return Zapatec.Menu.dragStart(ev,self)});Zapatec.Utils.addEvent(window.document,"mousemove",function(ev){return Zapatec.Menu.dragMove(ev,self)});Zapatec.Utils.addEvent(window.document,"mouseup",function(ev){return Zapatec.Menu.dragEnd(ev,self)});}
if(this.config.scrollWithWindow||this.config.drag){if(!(/(absolute|fixed)/).test(this.trees[this._el].style.position)){this.trees[this._el].style.position='relative';}}
if(this._config.fade)
this.addAnimation('fade');if(this._config.slide)
this.addAnimation('slide');else if(this._config.glide)
this.addAnimation('glide');else if(this._config.wipe)
this.addAnimation('wipe');else if(this._config.unfurl)
this.addAnimation('unfurl');};Zapatec.Menu.prototype=new Zapatec.Tree('',null,true);Zapatec.Menu.MOUSEOUT=0;Zapatec.Menu.MOUSEOVER=1;Zapatec.Menu.CLICK=2;Zapatec.Menu.prototype.setOption=function(config,name,val){config[name]=val;};Zapatec.Menu.animations={};Zapatec.Menu.animations.fade=function(ref,counter){var f=ref.filters,done=(counter==100);if(f){if(!done&&ref.style.filter.indexOf("alpha")==-1){ref.style.filter+=' alpha(opacity='+counter+')';}
else if(f.length&&f.alpha)with(f.alpha){if(done)enabled=false;else{opacity=counter;enabled=true}}}
else{ref.style.opacity=ref.style.MozOpacity=counter/100.1;}};Zapatec.Menu.animations.slide=function(ref,counter){var cP=Math.pow(Math.sin(Math.PI*counter/200),0.75);var noClip=((window.opera||navigator.userAgent.indexOf('KHTML')>-1)?'':'rect(auto, auto, auto, auto)');if(typeof ref.__zp_origmargintop=='undefined'){ref.__zp_origmargintop=ref.style.marginTop;}
ref.style.marginTop=(counter==100)?ref.__zp_origmargintop:'-'+(ref.offsetHeight*(1-cP))+'px';ref.style.clip=(counter==100)?noClip:'rect('+(ref.offsetHeight*(1-cP))+', '+ref.offsetWidth+
'px, '+ref.offsetHeight+'px, 0)';};Zapatec.Menu.animations.glide=function(ref,counter){var cP=Math.pow(Math.sin(Math.PI*counter/200),0.75);var noClip=((window.opera||navigator.userAgent.indexOf('KHTML')>-1)?'':'rect(auto, auto, auto, auto)');ref.style.clip=(counter==100)?noClip:'rect(0, '+ref.offsetWidth+'px, '+(ref.offsetHeight*cP)+'px, 0)';};Zapatec.Menu.animations.wipe=function(ref,counter){var noClip=((window.opera||navigator.userAgent.indexOf('KHTML')>-1)?'':'rect(auto, auto, auto, auto)');ref.style.clip=(counter==100)?noClip:'rect(0, '+(ref.offsetWidth*(counter/100))+'px, '+
(ref.offsetHeight*(counter/100))+'px, 0)';};Zapatec.Menu.animations.unfurl=function(ref,counter){var noClip=((window.opera||navigator.userAgent.indexOf('KHTML')>-1)?'':'rect(auto, auto, auto, auto)');if(counter<=50){ref.style.clip='rect(0, '+(ref.offsetWidth*(counter/50))+
'px, 10px, 0)';}
else if(counter<100){ref.style.clip='rect(0, '+ref.offsetWidth+'px, '+
(ref.offsetHeight*((counter-50)/50))+'px, 0)';}
else{ref.style.clip=noClip;}};Zapatec.Menu.prototype.addAnimation=function(animation){this.animations[this.animations.length]=Zapatec.Menu.animations[animation];};Zapatec.Menu.prototype.treeSetDisplay=function(menu,show){if(!menu.__zp_initialised){menu.style.visibility='hidden';menu.__zp_initialised=true;return;}
menu.__zp_anim_timer|=0;menu.__zp_anim_counter|=0;var tree,t_id=menu.__zp_tree||menu.firstChild.__zp_tree;if(t_id)tree=Zapatec.Tree.all[t_id];if(!tree)return;clearTimeout(menu.__zp_anim_timer);if(show&&!menu.__zp_anim_counter)menu.style.visibility='inherit';var speed=!tree.animations.length?100:tree.config.animSpeed;if(speed<100){for(var a=0;a<tree.animations.length;a++){tree.animations[a](menu,menu.__zp_anim_counter);}}
menu.__zp_anim_counter+=speed*(show?1:-1);if(menu.__zp_anim_counter>100){menu.__zp_anim_counter=100;}
else if(menu.__zp_anim_counter<=0){menu.__zp_anim_counter=0;menu.style.visibility='hidden';}
else{menu.__zp_anim_timer=setTimeout(function(){tree.treeSetDisplay(menu,show);},50);}};Zapatec.Menu.onItemMouseOver=function(){var item=this,tree=null,body=document.body;while(item&&item!=body){var t_id=item.__zp_tree||item.firstChild.__zp_tree;if(t_id)tree=Zapatec.Tree.all[t_id];if(/zpMenu-item/.test(item.className)&&!/zpMenu-item-hr/.test(item.className)){tree.itemMouseHandler(item.__zp_item,Zapatec.Menu.MOUSEOVER);}
item=tree&&item.__zp_treeid?tree.items[item.__zp_item]:item.parentNode;}};Zapatec.Menu.onItemMouseOut=function(){var item=this,tree=null,body=document.body;while(item&&item!=body){var t_id=item.__zp_tree||item.firstChild.__zp_tree;if(t_id)tree=Zapatec.Tree.all[t_id];if(/zpMenu-item/.test(item.className)&&!/zpMenu-item-hr/.test(item.className)){tree.itemMouseHandler(item.__zp_item,Zapatec.Menu.MOUSEOUT);}
item=tree&&item.__zp_treeid?tree.items[item.__zp_item]:item.parentNode;}};Zapatec.Menu.onItemClick=function(e){var item=this,tree=null;body=document.body;while(item&&item!=body){if(item.nodeName&&item.nodeName.toLowerCase()=='a'){return true;}
if(/zpMenu-item/.test(item.className)){tree=Zapatec.Tree.all[item.__zp_tree];if(tree.config.onClick&&item.__zp_subtree&&(/zpMenu-top/.test(item.parentNode.className))){tree.itemMouseHandler(item.__zp_item,Zapatec.Menu.CLICK);e=e||window.event||{};if(e.preventDefault)e.preventDefault();e.returnValue=false;return false;}
var itemLink=item.getElementsByTagName('a');if(!itemLink||!itemLink.item(0))return;var href=itemLink.item(0).getAttribute('href');if(!(/javascript:/).test(href)){window.location.href=href;return;}}
item=item.parentNode;}};Zapatec.Menu.prototype.itemMouseHandler=function(item_id,type){var item=this.items[item_id];var menu=this._getTree(item.__zp_parent);if(menu&&menu.__zp_activeitem!=item_id){if(menu.__zp_activeitem){var lastItem=this.items[menu.__zp_activeitem];Zapatec.Utils.removeClass(lastItem,"zpMenu-item-selected");if(lastItem.__zp_state)this.toggleItem(lastItem.__zp_item,false);}
menu.__zp_activeitem=item_id;Zapatec.Utils.addClass(item,"zpMenu-item-selected");}
clearTimeout(item.__zp_dimtimer);if(type==Zapatec.Menu.MOUSEOUT){item.__zp_dimtimer=setTimeout(function(){Zapatec.Utils.removeClass(item,"zpMenu-item-selected");if(menu.__zp_activeitem==item_id)menu.__zp_activeitem='';},this.config.hideDelay);}
clearTimeout(item.__zp_mousetimer);if(this.config.onClick&&!this.clickDone){if(/zpMenu-top/.test(item.parentNode.className)&&(type==Zapatec.Menu.MOUSEOVER))return;if(type==Zapatec.Menu.CLICK)this.clickDone=true;}
if(!item.__zp_state&&type)
{item.__zp_mousetimer=setTimeout('Zapatec.Tree.all["'+
item.__zp_tree+'"].itemShow("'+item.__zp_item+'")',(this.config.showDelay||1));}
else if(item.__zp_state&&!type)
{item.__zp_mousetimer=setTimeout('Zapatec.Tree.all["'+
item.__zp_tree+'"].itemHide("'+item.__zp_item+'")',(this.config.hideDelay||1));}};Zapatec.Menu.prototype.itemShow=function(item_id){var item=this.items[item_id];var subMenu=this._getTree(item.__zp_subtree);var parMenu=this._getTree(item.__zp_parent);if(subMenu){if(Zapatec.is_ie&&!Zapatec.is_ie5){if(!subMenu.offsetHeight){subMenu.style.left='-9999px';subMenu.style.visibility='visible';}
if(!subMenu.__zp_wch){subMenu.__zp_wch=Zapatec.Utils.createWCH(subMenu);}
subMenu.__zp_wch.style.zIndex=-1;Zapatec.Utils.setupWCH(subMenu.__zp_wch,-1,0,subMenu.offsetWidth+2,subMenu.offsetHeight);}
var newLeft=0,newTop=0;if((/zpMenu-top/.test(item.parentNode.className))
&&(!(this.config.vertical))){newLeft=item.offsetLeft;newTop=item.offsetHeight;}
else{newLeft=item.offsetWidth;newTop=item.offsetTop;var scrollX=window.pageXOffset||document.body.scrollLeft||document.documentElement.scrollLeft||0;var scrollY=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop||0;var winW=window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth||0;var winH=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight||0;var menuPos=Zapatec.Utils.getAbsolutePos(parMenu);if(menuPos.x+newLeft+subMenu.offsetWidth>scrollX+winW){newLeft=(0-subMenu.offsetWidth);}
if(menuPos.y+newTop+subMenu.offsetHeight>scrollY+winH){newTop-=subMenu.offsetHeight;}
if(menuPos.x+newLeft<0){newLeft=0-menuPos.x;}
if(menuPos.y+newTop<0){newTop=0-menuPos.y;}}
subMenu.style.left=newLeft+'px';subMenu.style.top=newTop+'px';this.toggleItem(item_id,true);}}
Zapatec.Menu.prototype.itemHide=function(item_id){var item=this.items[item_id];var subMenu=this._getTree(item.__zp_subtree);var parMenu=this._getTree(item.__zp_parent);if(subMenu){this.toggleItem(item_id,false);parMenu.__zp_activeitem='';subMenu.__zp_activeitem='';for(var i in this.items){if(this.items[i].__zp_state)return;}
this.clickDone=false;}};Zapatec.Menu.dragStart=function(ev,menu){ev||(ev=window.event);if(menu.dragging){return true;}
var rootMenu=menu.trees[menu._el];var testElm=ev.srcElement||ev.target;while(1){if(testElm==rootMenu)break;else testElm=testElm.parentNode;if(!testElm)return true;}
menu.dragging=true;var posX=ev.pageX||ev.clientX+window.document.body.scrollLeft||0;var posY=ev.pageY||ev.clientY+window.document.body.scrollTop||0;var L=parseInt(rootMenu.style.left)||0;var T=parseInt(rootMenu.style.top)||0;menu.xOffs=(posX-L);menu.yOffs=(posY-T);};Zapatec.Menu.dragMove=function(ev,menu){ev||(ev=window.event);var rootMenu=menu.trees[menu._el];if(!(menu&&menu.dragging)){return false;}
var posX=ev.pageX||ev.clientX+window.document.body.scrollLeft||0;var posY=ev.pageY||ev.clientY+window.document.body.scrollTop||0;var st=rootMenu.style,L=posX-menu.xOffs,T=posY-menu.yOffs;st.left=L+"px";st.top=T+"px";return Zapatec.Utils.stopEvent(ev);};Zapatec.Menu.dragEnd=function(ev,menu){if(!menu){return false;}
menu.dragging=false;};
