function closeWindow(divWindow){ GetId(divWindow).style.display='none'; return false; } function showWindow(divWindow){ GetId(divWindow).style.display=''; centerDivWindow(divWindow); return false; } function hideAllWindows(){ GetId('win250').style.display='none'; GetId('win300').style.display='none'; GetId('win350').style.display='none'; GetId('win400').style.display='none'; GetId('win500').style.display='none'; GetId('win600').style.display='none'; } function showSignUp(){ /* putIn('winTit500','Sign Up'); goAJAX('winCont500','engines/users/users.ajax.php','controller=showSignUp','centerDivWindow(\'win500\');'); showWindow('win500');*/ window.location = '/sign.up.php'; return false; } function trySignUp(){ goAJAX('frmSignUp','engines/users/users.ajax.php','controller=showSignUp&'+akiSfrm('frmSignUp')); return false; } function tryUpdateAccount(){ goAJAX('frmUpdateAccount','engines/users/users.ajax.php','controller=showAdminMyProfile&'+akiSfrm('frmUpdateAccount')); return false; } function loadUserbox(){ goAJAX('sUserBox','engines/users/users.ajax.php','controller=loadUserbox'); return false; } function userLogged(){ hideAllWindows(); loadUserbox(); return false; } function trySignIn(frmId){ goAJAX(frmId,'engines/users/users.ajax.php','controller=trySignIn&frmId='+ frmId + '&' + akiSfrm(frmId)); return false; } function showSignInWindow(){ hideAllWindows(); putIn('winTit250','Sign In') goAJAX('winCont250','engines/users/users.ajax.php','controller=showSignInWindow','centerDivWindow(\'win250\');'); showWindow('win250'); return false; } function showRemember(){ hideAllWindows(); putIn('winTit300','Remember my password') goAJAX('winCont300','engines/users/users.ajax.php','controller=showRemember','centerDivWindow(\'win300\');'); showWindow('win300'); return false; } function tryRemember(){ goAJAX('frmRemember','engines/users/users.ajax.php','controller=showRemember&'+akiSfrm('frmRemember')); return false; } function showAdminMyBlogs(){ hideAllWindows(); putIn('winTit700','Manage My Blog') goAJAX('winCont700','admins/My.Blogs.php','ajax=true','centerDivWindow(\'win700\');'); showWindow('win700'); return false; } function showAdminMyProfile(){ hideAllWindows(); /* putIn('winTit600','My Profile') goAJAX('winCont600','engines/users/users.ajax.php','controller=showAdminMyProfile','centerDivWindow(\'win600\');'); showWindow('win600');*/ window.location = '/my.profile.php'; return false; } function postRating(content_id,content_type,rating,divWhere){ var xP='controller=postRating'; xP = xP + '&content_id=' + content_id; xP = xP + '&content_type=' + content_type; xP = xP + '&rating=' + rating; xP = xP + '&divWhere=' + divWhere; goAJAX(divWhere+content_id,'engines/rating/rating.ajax.php',xP); } var ePath='engines/pdfimage/'; function hilight(obj) { if(!obj.hilighted) { obj.style.backgroundPosition="0px -20px"; obj.hilighted=true; }else{ obj.style.backgroundPosition="0px 0px"; obj.hilighted=false; } } function displayCategories() { catDiv = document.getElementById('categories'); dropCat = document.getElementById('dropCat'); if(catDiv.style.display!='block') { catDiv.style.display='block'; }else{ catDiv.style.display='none'; } } function filterCat(id) { document._lastCategory = id; goAJAX('catalog-container',ePath+'index.php?sec=catalog&cat=' + id); displayCategories(); } function changePage(page) { if(document._lastCategory != undefined){ id = document._lastCategory; goAJAX('catalog-container',ePath+'index.php?sec=catalog&cat=' + id + '&pag=' + page); }else{ goAJAX('catalog-container',ePath+'index.php?sec=catalog&cat=-1&pag=' + page); } } function hideMe(id){ document.getElementById(id).style.display="none"; } function openPrintCoupon(imgObj){ var iebody=(document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body var dsocleft=document.all? iebody.scrollLeft : pageXOffset var dsoctop=document.all? iebody.scrollTop : pageYOffset container=document.getElementById('imagePrint'); container.style.display="block"; document.getElementById('print_img').src=imgObj.src.replace('libs/imgtmb2.php?img=../','').replace('&a=100',''); container.style.top=(((iebody.clientHeight/2)+dsoctop)-((container.clientHeight/2)))+'px'; container.style.left=(((iebody.clientWidth/2)+dsocleft)-((container.clientWidth/2)))+'px'; } var starteffect=function(){ } function printThisCoupon(){ window.print(); } var gn=null; function submenushow(id){ if(document.getElementById(id)){ o=document.getElementById(id); container=document.getElementById('sMainLinks'); container.innerHTML=o.innerHTML; gn=container.firstChild; showSlowly(); }else{ container=document.getElementById('sMainLinks'); container.innerHTML=''; } } function showSlowly(){ //setTimeout('showObj()',80); } function showObj(){ /*if(gn!=null){ gn.style.display='inline'; gn = gn.nextSibling; if(gn.style){ showSlowly(); } }*/ } var strCargando='

loading

'; var navegador=navigator.appName; var ie=document.all; var dom=GetId; var ns4=document.layers; function GetId(Id){ return document.getElementById(Id); } function get(Id){ return document.getElementById(Id); } function putIn(id,html){ get(id).innerHTML=html; } function putInVal(id, val){ get(id).value=val; } function CrearObjetoAjax(){ try { req = new XMLHttpRequest(); } catch(err1) { try { req = new ActiveXObject("Msxml2.XMLHTTP"); } catch (err2) { try { req = new ActiveXObject("Microsoft.XMLHTTP"); } catch (err3) { req = false; } } } return req; } var ogoAJAX1=CrearObjetoAjax(); var ogoAJAX2=CrearObjetoAjax(); var ogoAJAX3=CrearObjetoAjax(); var ogoAJAX4=CrearObjetoAjax(); var ogoAJAX5=CrearObjetoAjax(); function goAJAX(xW,xF, xP,Exec,Load,replOnStart,replOnEnd){ if ((ogoAJAX1.readyState==4)||(ogoAJAX1.readyState==0)){ goAJAXx(ogoAJAX1,xW,xF, xP,Exec,Load,replOnStart,replOnEnd); }else{ if ((ogoAJAX2.readyState==4)||(ogoAJAX2.readyState==0)){ goAJAXx(ogoAJAX2,xW,xF, xP,Exec,Load,replOnStart,replOnEnd); }else{ if ((ogoAJAX3.readyState==4)||(ogoAJAX3.readyState==0)){ goAJAXx(ogoAJAX3,xW,xF, xP,Exec,Load,replOnStart,replOnEnd); }else{ if ((ogoAJAX4.readyState==4)||(ogoAJAX4.readyState==0)){ goAJAXx(ogoAJAX4,xW,xF, xP,Exec,Load,replOnStart,replOnEnd); }else{ goAJAXx(ogoAJAX5,xW,xF, xP,Exec,Load,replOnStart,replOnEnd); } } } } } function goAJAXx(ogoAJAXx,xW,xF, xP,Exec,Load,replOnStart,replOnEnd){ var L=Load; if (L==''){ L='...'; }else{ L='
'+strCargando; } ogoAJAXx.open('post',xF,true); ogoAJAXx.onreadystatechange = GestorgoogoAJAXx; ogoAJAXx.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); var http = xP; ogoAJAXx.send(http); function GestorgoogoAJAXx(){ if (ogoAJAXx.readyState == 1){ if((replOnStart=='')||(!isDefined(replOnStart))){ GetId(xW).innerHTML='
'+strCargando; } } if (ogoAJAXx.readyState == 4){ var respuesta=ogoAJAXx.responseText; if((replOnEnd=='')||(!isDefined(replOnEnd))){ GetId(xW).innerHTML=respuesta; } eval(Exec); } } } function isDefined(variable) { return (!(!( variable||false ))) } function strlen(strVar) { return(strVar.length) } function diplayOverlay(){ var objDiv = GetId("sOverlay") objDiv.style.display = ""; if (navegador=="Microsoft Internet Explorer"){ objDiv.style.height=document.documentElement.clientHeight*6; }else{ objDiv.style.height=3* window.innerHeight+'px'; } } function winajax(tit,w,h,f,p,Exec,Load){/*Function winajax and goAJAX under LGPL Licence*/ GetId('btnCerrarVtna').style.display=''; var oVtna = GetId("sVentana"); GetId("TitVna").innerHTML=tit; oVtna.style.width=w+'px'; oVtna.style.height=h+'px'; //centet top window scroll_top=((ie)? truebody().scrollTop : window.pageYOffset)+100; if (navegador=="Microsoft Internet Explorer"){ oVtna.style.top=scroll_top; oVtna.style.left=(document.body.offsetWidth/2)-(w/2); }else{ oVtna.style.top=scroll_top+'px'; oVtna.style.left='30%'; } diplayOverlay(); oVtna.style.display = ""; goAJAX('ContentVentana',f,p,Exec,Load); } function truebody(){ return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body; } function OcultarVtna(){ var objDiv = GetId("sOverlay"); objDiv.style.display = "none"; var objDiv = GetId("sVentana"); objDiv.style.display = "none"; } /*fin TEMP!!!!!*/ function getForm(frm){ goAJAX('sectionFields','engines/sectionSearch/search.php?form='+frm); } function showMenu(n){ if(n){ get('menu-container1').style.display="block"; get('flechita0').style.display="block"; get('flechita1').style.display="none"; get('menu-container0').style.display="none"; }else{ get('menu-container1').style.display="none"; get('menu-container0').style.display="block"; get('flechita1').style.display="block"; get('flechita0').style.display="none"; } } function showHoroscope(i){ var xP = 'i=' + i; goAJAX('horoscopesContent','engines/horoscope/ajax/horoscope.php', xP); } function moveHoroscope(i,op){ var xP = null; if(op=="prev"){ if (i > 1) xP = 'i='+(--i); else xP = 'i=12'; } else { if (i < 12) xP = xP = 'i='+(++i); else xP = 'i=1'; } goAJAX('horoscopesContent','engines/horoscope/ajax/horoscope.php', xP); } /****************************************************************************** Name: Highslide JS Version: 3.2.10 (October 22 2007) Author: Torstein Hønsi Support: http://vikjavev.no/highslide/forum Email: See http://vikjavev.no/megsjol Licence: Highslide JS is licensed under a Creative Commons Attribution-NonCommercial 2.5 License (http://creativecommons.org/licenses/by-nc/2.5/). You are free: * to copy, distribute, display, and perform the work * to make derivative works Under the following conditions: * Attribution. You must attribute the work in the manner specified by the author or licensor. * Noncommercial. You may not use this work for commercial purposes. * For any reuse or distribution, you must make clear to others the license terms of this work. * Any of these conditions can be waived if you get permission from the copyright holder. Your fair use and other rights are in no way affected by the above. ******************************************************************************/ eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}('k c={3z:\'11/7r/\',56:"7q.5U",6P:10,6G:5t,6F:10,6Q:5t,5V:I,6l:I,58:1,2I:1a,57:3,45:10,6O:35,6E:10,2K:35,4i:5,2Y:7s,2H:\'7t.7w\',6Y:\'7v 2h 7u 7o\',5o:\'4X 2h 4R 1S, 7n 5J 7h 2h 3o. 7g 7f 7i Q 3l 5J 5S.\',6j:\'4X 2h 7j 2h 7m\',6L:\'7l...\',60:\'4X 2h 7k\',6K:0.75,4Z:I,6e:\'7x 2q 5E 5F\',6r:\'7y://7L.7K/11/\',6q:\'7J 2h 7M 5E 5F 7N\',61:I,2J:\'2z\',4r:\'2z\',4k:K,4g:K,2R:K,3I:K,3D:K,3m:30,2B:5I,2V:5I,3U:I,1c:\'7Q-7P\',4l:K,3e:[],4B:I,4h:0,z:[],2M:[\'2J\',\'4r\',\'4k\',\'4g\',\'1c\',\'2I\',\'3m\',\'4l\',\'2B\',\'2V\',\'2R\',\'3I\',\'3U\',\'3D\'],1m:[],32:{},4E:{},46:[],1i:(V.7O&&!1F.5a),4c:4f.7I.7H("7B")!=-1,3b:1a,$:r(1o){u V.7e(1o)},4G:r(2c,5H){2c[2c.19]=5H},17:r(5A,2G,2b,55,5s){k m=V.17(5A);f(2G)c.5y(m,2G);f(5s)c.1C(m,{7z:0,7C:\'3M\',6h:0});f(2b)c.1C(m,2b);f(55)55.2y(m);u m},5y:r(m,2G){Q(k x 5x 2G){m[x]=2G[x]}},1C:r(m,2b){Q(k x 5x 2b){O{f(c.1i&&x==\'1g\'){m.q.5Y=2b[x]==1?\'3M\':\'7D(1g=\'+(2b[x]*2a)+\')\'}G m.q[x]=2b[x]}P(e){}}},2m:r(){2c=4f.7G.3G("7F");u 5N(2c[1])},6I:r(){k 3t=V.5e&&V.5e!="6y"?V.5Z:V.4t;b.R=c.1i?3t.7E:5w.7R;b.H=c.1i?3t.70:5w.7c;b.3H=c.1i?3t.3H:77;b.4b=c.1i?3t.4b:79},U:r(m){k p={x:m.5X,y:m.5W};41(m.5G){m=m.5G;p.x+=m.5X;p.y+=m.5W;f(m!=V.4t&&m!=V.5Z){p.x-=m.3H;p.y-=m.4b}}u p},5i:r(a,1P,3y){O{2Q M(a,1P,3y);u 1a}P(e){u I}},62:r(){k 51=0,3Q=-1;Q(i=0;i51){51=c.z[i].D.q.1v;3Q=i}}}f(3Q==-1)c.2W=-1;G c.z[3Q].2g()},74:r(1o){u c.4R(1o)},4R:r(m){O{c.3d(m).2C()}P(e){}u 1a},5h:r(C,1B){k 2O=V.49(\'A\'),4Q={},4H=-1,j=0;Q(i=0;i<2O.19;i++){f(c.3N(2O[i])&&((c.z[C].3D==c.4I(2O[i],\'3D\')))){4Q[j]=2O[i];f(c.z[C]&&2O[i]==c.z[C].a){4H=j}j++}}u 4Q[4H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m.5r(\'2Z\'+1t,1V)}P(e){m[\'2Z\'+1t]=K}}},3N:r(a){u(a.2X&&a.2X.5g().1z(/\\s/g,\' \').Z(/c.(84|e)8b/))},4z:r(i){f(c.4B&&c.3e[i]&&c.3e[i]!=\'3T\'){k 12=V.17(\'12\');12.4e=r(){c.4z(i+1)};12.1l=c.3e[i]}},6b:r(36){f(36&&1M 36!=\'8c\')c.4i=36;k a,2x,j=0;k 4O=V.49(\'A\');Q(i=0;i<4O.19;i++){a=4O[i];2x=c.3N(a);f(2x&&2x[0]==\'c.5i\'){f(j4s))u;f(i==K)i=c.46.19;f(1M(m.i)!=\'3T\'&&m.i!=i){7X(c.46[m.i]);o=m.5M}m.i=i;m.5M=o;m.q.S=(o<=0)?\'T\':\'1j\';c.1C(m,{1g:o});c.46[i]=2k(r(){c.3r(m,1y.1D((o+0.1*2S)*2a)/2a,4s,2S,i)},25)}};2t=r(1c,1K){b.1K=1K;b.1c=1c;k v=c.2m(),43;b.3i=c.1i&&v>=5.5&&v<7;b.5R=!c.1i||(c.1i&&v>=7);f(!1c||(!b.3i&&!b.5R)){f(1K)1K();u}c.4m();b.1k=c.17(\'1k\',{8i:0},{S:\'T\',U:\'23\',1v:c.2Y++,8p:\'81\'},c.2u,I);b.4q=c.17(\'4q\',K,K,b.1k,1);b.1d=[];Q(k i=0;i<=8;i++){f(i%3==0)43=c.17(\'43\',K,{H:\'2z\'},b.4q,I);b.1d[i]=c.17(\'1d\',K,K,43,I);k q=i!=4?{89:0,8a:0}:{U:\'4o\'};c.1C(b.1d[i],q)}b.1d[4].14=1c;b.5D()};2t.L.5D=r(){k 1l=c.3z+"7U/"+b.1c+".7T";k 5B=c.4c?c.2u:K;b.22=c.17(\'12\',K,{U:\'23\',Y:\'-5C\',15:\'-5C\'},5B,I);k 2E=b;b.22.4e=r(){2E.63()};b.22.1l=1l};2t.L.63=r(){k o=b.1p=b.22.R/4,1R=[[0,0],[0,-4],[-2,0],[0,-8],0,[-2,-8],[0,-2],[0,-6],[-2,-2]],3E={H:(2*o)+\'N\',R:(2*o)+\'N\'};Q(k i=0;i<=8;i++){f(1R[i]){f(b.3i){k w=(i==1||i==7)?\'2a%\':b.22.R+\'N\';k 29=c.17(\'29\',K,{R:\'2a%\',H:\'2a%\',U:\'4o\',6v:\'T\'},b.1d[i],I);c.17(\'29\',K,{5Y:"80:7Z.8w.8t(8z=8A, 1l=\'"+b.22.1l+"\')",U:\'23\',R:w,H:b.22.H+\'N\',Y:(1R[i][0]*o)+\'N\',15:(1R[i][1]*o)+\'N\'},29,I)}G{c.1C(b.1d[i],{6A:\'52(\'+b.22.1l+\') \'+(1R[i][0]*o)+\'N \'+(1R[i][1]*o)+\'N\'})}c.1C(b.1d[i],3E)}}c.32[b.1c]=b;f(b.1K)b.1K()};2t.L.4K=r(){c.2A(b.1k);O{b.1k.1x.3c(b.1k)}P(e){}};M=r(a,1P,3y,1E){c.4B=1a;b.3y=3y;Q(i=0;ip.24+p.1Z-p.21){f(4A&&2D)p.B=p.1Z-p.1A-p.21;G f(p.B26){ k 85=x.B;x.B=y.B*26;f(x.B<26){ k 88=y.B;y.B=x.B/26;4a=I}f(4a){x.E=1f(b.2i)-b.1N+b.2F;x.1I=x.B;b.x=b.16(x);y.E=1f(b.2f)-b.1G+b.3B;y.1I=y.B;b.y=b.16(y)}};M.L.4N=r(2S,3f,3k,3h,3g,4u,4v,4y,4x,6a,1L,3n,4w){k 67=(4y-3h)/1L,66=(4x-3g)/1L,68=(4u-3f)/1L,69=(4v-3k)/1L,65=(4w-3n)/1L,t,1n="c.z["+b.C+"]";Q(i=1;i<=1L;i++){3h+=67;3g+=66;3f+=68;3k+=69;3n+=65;t=1y.1D(i*(6a/1L));k s="O {";f(i==1){s+=1n+".F.q.S = \'1j\';"+"f ("+1n+".2p.3j == \'6k\' && c.6l) "+1n+".2p.q.S = \'T\';"}f(i==1L){3h=4y;3g=4x;3f=4u;3k=4v;3n=4w}s+=1n+"."+b.1E+"8e("+1y.1D(3h)+", "+1y.1D(3g)+", "+1y.1D(3f)+", "+1y.1D(3k)+", "+1y.1D(3n);s+=");} P (e) {}";2k(s,t)}f(2S==1){2k(\'O { \'+1n+\'.X.1k.q.S = "1j"; } P (e){}\',t);2k(\'O { \'+1n+\'.6x(); } P(e){}\',t+50)}G 2k(\'O { \'+1n+\'.4P(); } P(e){}\',t)};M.L.87=r(w,h,x,y,1p){O{b.F.R=w;b.F.H=h;f(b.X&&b.2I){k o=b.X.1p-1p;b.3w(x+o,y+o,w-2*o,h-2*o,1)}c.1C(b.D,{\'S\':\'1j\',\'Y\':x+\'N\',\'15\':y+\'N\'})}P(e){1F.4S.2r=c.2L(b.a)}};M.L.3w=r(x,y,w,h,6w){f(!b.X)u;k o=b.X;f(6w)o.1k.q.S=\'1j\';o.1k.q.Y=(x-o.1p)+\'N\';o.1k.q.15=(y-o.1p)+\'N\';o.1k.q.R=(w+2*(b.1N+o.1p))+\'N\';w+=2*(b.1N-o.1p);h+=+2*(b.1G-o.1p);o.1d[4].q.R=w>=0?w+\'N\':0;o.1d[4].q.H=h>=0?h+\'N\':0;f(o.3i)o.1d[3].q.H=o.1d[5].q.H=o.1d[4].q.H};M.L.6x=r(){b.6z=I;b.2g();f(b.3s&&b.8d==\'83\')b.7W();b.4T();f(c.4Z)b.4Y();f(b.J)b.6s();f(b.3W>b.x.B)b.6S();f(!b.J)b.5c()};M.L.5c=r(){k C=b.C;k 1c=b.1c;2Q 2t(1c,r(){O{c.z[C].6p()}P(e){}})};M.L.6p=r(){k 3l=c.5h(b.C,1);f(3l.2X.5g().Z(/c\\.5i/))k 12=c.17(\'12\',{1l:c.2L(3l)})};M.L.5j=r(){b.a.q.1H=b.5k;f(b.1b)c.1b.q.S=\'T\';c.z[b.C]=K};M.L.4Y=r(){k 5f=c.17(\'a\',{2r:c.6r,14:\'11-5f\',1w:c.6e,2N:c.6q});b.3R(5f,\'15 Y\')};M.L.6o=r(){f(!b.2R&&b.3Y)b.2R=\'J-Q-\'+b.3Y;f(b.2R){b.J=c.3K(b.2R)}f(b.3I){k s=(b.J)?b.J.1w:\'\';b.J=c.3K(b.3I);f(b.J)b.J.1w=b.J.1w.1z(/\\s/g,\' \').1z(\'{J}\',s)}f(b.J)b.2K+=b.3m};M.L.6s=r(){O{b.D.q.R=b.D.1T+\'N\';b.J.q.S=\'T\';b.J.14+=\' 11-3A-3L\';k H;f(c.1i&&(c.2m()<6||V.5e==\'6y\')){H=b.J.1u}G{k 6u=c.17(\'29\',{1w:b.J.1w},K,K,I);b.J.1w=\'\';b.J.2y(6u);H=b.J.1X[0].1u;b.J.1w=b.J.1X[0].1w}c.1C(b.J,{6v:\'T\',H:0,1v:2});f(c.58){2l=1y.1D(H/50);f(2l==0)2l=1;2l=2l*c.58}G{b.5b(H,1);u}k t=0;Q(k h=H%2l;h<=H;h+=2l,t+=10){k 3S=(h==H)?1:0;k 5m="O { "+"c.z["+b.C+"].5b("+h+", "+3S+");"+"} P (e) {}";2k(5m,t)}}P(e){}};M.L.5b=r(H,3S){f(!b.J)u;b.J.q.H=H+\'N\';b.J.q.S=\'1j\';b.y.B=b.D.1u-2*b.1G;k o=b.X;f(o){o.1d[4].q.H=(b.D.1u-2*b.X.1p)+\'N\';f(o.3i)o.1d[3].q.H=o.1d[5].q.H=o.1d[4].q.H}f(3S)b.5c()};M.L.2d=r(3j,S,1r){k 18=V.49(3j);f(18){Q(i=0;i<18.19;i++){f(18[i].8f==3j){k 1q=18[i].3v(\'T-2q\');f(S==\'1j\'&&1q){1q=1q.1z(\'[\'+b.C+\']\',\'\');18[i].2w(\'T-2q\',1q);f(!1q)18[i].q.S=\'1j\'}G f(S==\'T\'){k 1J=c.U(18[i]);1J.w=18[i].1T;1J.h=18[i].1u;k 6d=(1J.x+1J.w<1r.x||1J.x>1r.x+1r.w);k 6i=(1J.y+1J.h<1r.y||1J.y>1r.y+1r.h);k 5n=c.5l(18[i]);f(!6d&&!6i&&5n!=b.C){f(!18[i].5p||(18[i].5p&&18[i].5p[\'S\']!=\'T\')){f(!1q){18[i].2w(\'T-2q\',\'[\'+b.C+\']\')}G f(!1q.Z(\'[\'+b.C+\']\')){18[i].2w(\'T-2q\',1q+\'[\'+b.C+\']\')}18[i].q.S=\'T\'}}G f(1q==\'[\'+b.C+\']\'||c.2W==5n){18[i].2w(\'T-2q\',\'\');18[i].q.S=\'1j\'}G f(1q&&1q.Z(\'[\'+b.C+\']\')){18[i].2w(\'T-2q\',1q.1z(\'[\'+b.C+\']\',\'\'))}}}}}};M.L.2g=r(){Q(i=0;i<6)c.3p=\'6g\';b.F.q.1H=c.3p}c.2W=b.C;c.2s(V,\'4C\',c.42)};M.L.6f=r(){b.2C()};M.L.2C=r(){c.3u(V,\'4C\',c.42);O{b.8u=I;k x=1f(b.D.q.Y);k y=1f(b.D.q.15);k w=(b.1W)?b.F.R:1f(b.F.q.R);k h=(b.1W)?b.F.H:1f(b.F.q.H);f(b.X){f(b.2I)b.3w(x,y,w,h);G f(b.6M)b.X.1k.q.S=\'T\';G b.X.4K()}k n=b.D.1X.19;Q(i=n-1;i>=0;i--){k 6U=b.D.1X[i];f(6U!=b.F){c.2A(b.D.1X[i]);b.D.3c(b.D.1X[i])}}f(b.3s)b.8y();b.D.q.R=\'2z\';b.F.q.1H=\'7S\';k 3F=b.X?b.X.1p:0;b.4N(-1,x,y,w,h,b.2i-b.1N+b.2F,b.2f-b.1G+b.3B,b.1U,b.1O,c.6Q,c.6F,3F,c.57)}P(e){b.4P()}};M.L.4P=r(){b.2p.q.S=\'1j\';f(c.3O)b.2d(\'4U\',\'1j\');f(c.3P)b.2d(\'4V\',\'1j\');f(b.3s&&b.6M)b.71();G{f(b.X&&b.2I)b.X.4K();c.2A(b.D);f(c.1i&&c.2m()<5.5)b.D.1w=\'\';G b.D.1x.3c(b.D)}f(c.6J)c.6J.q.3A=\'3M\';c.z[b.C]=K;c.6C()};M.L.3R=r(m,U,2P,1g){f(1M m==\'4J\')m=c.3K(m);f(!m||1M m==\'4J\'||!b.1W)u;k 1s=c.17(\'29\',K,{\'Y\':0,\'15\':0,\'U\':\'23\',\'1v\':3,\'S\':\'T\'},b.D,I);f(1g)c.1C(m,{\'1g\':1g});m.14+=\' 11-3A-3L\';1s.2y(m);k Y=b.1N;k 4F=b.F.R-1s.1T;k 15=b.1G;k 4D=b.F.H-1s.1u;f(!U)U=\'1Q 1Q\';f(U.Z(/^53/))15+=4D;f(U.Z(/^1Q/))15+=4D/2;f(U.Z(/54$/))Y+=4F;f(U.Z(/1Q$/))Y+=4F/2;1s.q.Y=Y+\'N\';1s.q.15=15+\'N\';f(2P)1s.2w(\'2P\',I);f(!1g)1g=1;1s.2w(\'1g\',1g);c.3r(1s,0,1g,1);c.4G(b.1m,1s)};M.L.4T=r(){Q(i=0;i35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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.1A=20;7.1K=G;7.19=\'1O\';7.1X=G;7.1N=G;7.r(7.H,\'1j\');7.r(7.H,\'1A\');7.r(7.H,\'1K\');7.r(7.H,\'Y\');7.r(7.H,\'24\');7.r(7.H,\'1S\');7.r(7.H,\'19\');7.r(7.H,\'B\');7.r(7.H,\'1X\');7.r(7.H,\'1N\');7.1F=[];7.10=[];7.W=[];7.1b=7.V(\'1q\',v,{2R:\'30\',2O:\'31 3e 39\'},v,G);7.2h=f(a,1D,2i){8(!7.$(1D.1j)&&!7.33[1D.1j])R G;1I(d i=0;i<7.W.1G;i++){8(7.W[i]&&7.W[i].a==a){7.W[i].2D();7.W[i]=v;R 20}}D{7.32=G;P q(a,1D,2i,\'2f\');R 20}C(e){R G}};7.1h=f(16,I){1I(i=0;i<16.21.1G;i++){8(16.21[i].I==I){R 16.21[i]}}};7.2v=f(e){d 1Y=1i.38(\'A\');d a,1z;1I(i=0;i<1Y.1G;i++){a=1Y[i];1z=7.35(a);8(1z&&1z[0]==\'7.2h\'&&7.1T(a,\'Y\')==\'J\'&&7.1T(a,\'1X\')){7.r(7.1F,a)}}7.1V(0)};7.1V=f(i){8(!7.1F[i])R;d a=7.1F[i];d 1U=7.2g(7.1T(a,\'1j\'));d J=P 1a(a,1U);J.2b=f(){};J.1f=f(){7.r(7.10,[a,1U]);7.1V(i+1)};J.28()};7.29=f(a){1I(i=0;i<7.10.1G;i++){8(7.10[i][0]==a){d c=7.10[i][1];7.10[i][1]=c.3i(1);R c}}};q.m.2X=f(){6.1P=7.V(\'1q\',v,{2M:\'0 \'+7.2N+\'9 0 \'+7.2Q+\'9\',X:\'1Z\',18:0,1e:0},1i.T);6.b=7.29(6.a);8(!6.b)6.b=7.2g(6.1j);6.26(6.b);6.1P.1c(6.b);7.E(6.b,{X:\'1E\',1v:\'1k\'});6.b.I+=\' M-1r-2E\';6.L=7.V(\'1q\',{I:\'M-2f\'},{X:\'1E\',25:3,1d:\'1k\',l:6.2L+\'9\',p:6.2P+\'9\'});8(6.Y==\'J\'&&!7.29(6.a)){d J=P 1a(6.a,6.b);d Q=6;J.1f=f(){Q.1f()};J.2b=f(){2c.2q=7.1y(6.a)};J.28()}1u 6.1f()};q.m.2Z=f(){6.b.1c(7.1b);6.22=6.b.11;6.1n=6.b.F;6.b.1s(7.1b);8(7.2F&&6.1n>1J(6.b.2j.p)){6.1n=1J(6.b.2j.p)}};q.m.26=f(16,Z){8(6.B||6.Y==\'j\'){d c=7.1h(16,\'M-T\');c.u.l=6.B?6.B.2k.l+\'9\':6.24+\'9\';c.u.p=6.B?6.B.2k.p+\'9\':6.1S+\'9\'}};q.m.2e=f(){8(6.2o)R;6.K=7.1h(6.b,\'M-T\');8(6.Y==\'j\'){d 12=6.12;6.K.1g=\'\';6.j=7.V(\'j\',{2U:0},{l:6.24+\'9\',p:6.1S+\'9\'},6.K);8(7.2m)6.j.O=v;6.j.O=7.1y(6.a);8(6.19==\'2w\')6.1M()}1u 8(6.B){6.K.N=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18:\'-3w\'},7.27);D{6.1C()}C(e){d Q=6;2H(f(){Q.1C()},1)}};1a.m.1C=f(){d s=6.S.37;8(!7.2F||7.3a()>=5.5){s=s.1p(/\\s/g,\' \');8(6.j){s=s.1p(P 1Q(\'<3p[^>]*>\',\'2x\'),\'\');s=s.1p(P 1Q(\'<2y[^>]*>.*?\',\'2x\'),\'\');d 1o=6.j.3l||6.j.3u.1i;1o.2r();1o.2u(s);1o.3x();D{s=1o.2I(6.N).1g}C(e){D{s=6.j.1i.2I(6.N).1g}C(e){}}7.27.1s(6.j)}1u{s=s.1p(P 1Q(\'^.*?]*>(.*?).*?$\',\'i\'),\'$1\')}}7.1h(6.L,\'M-T\').1g=s;6.1f()};7.2Y(23,\'2W\',7.2v);',62,234,'||||||this|hs|if|px||innerContent||var||function||||iframe|span|width|prototype|node||height|HsExpander|push||scrollerDiv|style|null||||||swfObject|catch|try|setStyles|offsetHeight|true|overrides|className|ajax|objContainer|content|highslide|id|src|new|pThis|return|xmlHttp|body|min|createElement|sleeping|position|objectType|auto|cacheBindings|offsetWidth|key|scrollingContent|cNode|wDiff|parent||left|objectLoadTime|HsAjax|clearing|appendChild|overflow|top|onLoad|innerHTML|identifyContainer|document|contentId|hidden|objOutline|wrapper|newHeight|doc|replace|div|display|removeChild|none|else|visibility|table|hDiff|getSrc|re|allowWidthReduction|mediumContent|loadHTML|params|relative|preloadTheseAjax|length|kdeBugCorr|for|parseInt|allowHeightReduction|offset|correctIframeSize|preserveContent|before|tempContainer|RegExp|expanders|objectHeight|getParam|cache|preloadAjaxElement|arr|cacheAjax|aTags|absolute|false|childNodes|newWidth|window|objectWidth|zIndex|setObjContainerSize|container|run|getCacheBinding|mask|onError|location|size|writeExtendedContent|html|getNode|htmlExpand|custom|currentStyle|attributes|parentNode|safari|positionOutline|hasExtendedContent|visible|href|open|destroyObject|getElementContent|write|preloadAjax|after|gi|script|focusKey|outlineWhileAnimating|ActiveXObject|XMLHTTP|awake|block|ie|navigator|setTimeout|getElementById|attribs|Microsoft|thumbWidth|padding|marginRight|borderTop|thumbHeight|marginLeft|clear|XMLHttpRequest|show|frameBorder|Msxml2|load|htmlCreate|addEventListener|htmlGetSize|both|1px|hasHtmlexpanders|clones|send|isHsAnchor|genContainer|responseText|getElementsByTagName|white|ieVersion|split|match|opera|solid|onreadystatechange|GET|readyState|cloneNode|htmlSizeOperations|sleep|contentDocument|KDE|vendor|allowMultipleInstances|link|reflow|StopPlay|expandDuration|htmlSetSize|contentWindow|getAttribute|9999px|close|end|insertBefore|test|userAgent|htmlOnClose|Macintosh|flash|Gecko|doClose|zIndexCounter|border|nodeName|thumbTop|thumbLeft'.split('|'),0,{})) hs.graphicsDir = 'engines/highslide/graphics/'; hs.creditsText=''; hs.creditsHref=''; hs.creditsTitle=''; hs.outlineType = 'rounded-white'; hs.outlineWhileAnimating = true; // JavaScript Document function calendarChangeMonth(sDay){ var nextURL = 'index.php?sDay='+ sDay +'&sMonth=' + GetId('CalendarioX1').sMonth.value + '&sYear='+ GetId('CalendarioX1').sYear.value; goAJAX('CalendarioX1',ENGINES_FOLDER+'/calendar/calendar.com.ajax.php','sDay='+ sDay +'&sMonth=' + GetId('CalendarioX1').sMonth.value + '&sYear='+ GetId('CalendarioX1').sYear.value); //location.href=nextURL; } function calendarViewEvents(theDate){ var xP='theDate=' + theDate; goAJAX('CalContent',ENGINES_FOLDER+'/calendar/calendar.com.ajax.php',xP); GetId('CalContent').style.display=''; } /* Simple AJAX Code-Kit (SACK) v1.6.1 */ /* ©2005 Gregory Wild-Smith */ /* www.twilightuniverse.com */ /* Software licenced under a modified X11 licence, see documentation or authors website for more details */ function sack(file) { this.xmlhttp = null; this.resetData = function() { this.method = "POST"; this.queryStringSeparator = "?"; this.argumentSeparator = "&"; this.URLString = ""; this.encodeURIString = true; this.execute = false; this.element = null; this.elementObj = null; this.requestFile = file; this.vars = new Object(); this.responseStatus = new Array(2); }; this.resetFunctions = function() { this.onLoading = function() { }; this.onLoaded = function() { }; this.onInteractive = function() { }; this.onCompletion = function() { }; this.onError = function() { }; this.onFail = function() { }; }; this.reset = function() { this.resetFunctions(); this.resetData(); }; this.createAJAX = function() { try { this.xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e1) { try { this.xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e2) { this.xmlhttp = null; } } if (! this.xmlhttp) { if (typeof XMLHttpRequest != "undefined") { this.xmlhttp = new XMLHttpRequest(); } else { this.failed = true; } } }; this.setVar = function(name, value){ this.vars[name] = Array(value, false); }; this.encVar = function(name, value, returnvars) { if (true == returnvars) { return Array(encodeURIComponent(name), encodeURIComponent(value)); } else { this.vars[encodeURIComponent(name)] = Array(encodeURIComponent(value), true); } } this.processURLString = function(string, encode) { encoded = encodeURIComponent(this.argumentSeparator); regexp = new RegExp(this.argumentSeparator + "|" + encoded); varArray = string.split(regexp); for (i = 0; i < varArray.length; i++){ urlVars = varArray[i].split("="); if (true == encode){ this.encVar(urlVars[0], urlVars[1]); } else { this.setVar(urlVars[0], urlVars[1]); } } } this.createURLString = function(urlstring) { if (this.encodeURIString && this.URLString.length) { this.processURLString(this.URLString, true); } if (urlstring) { if (this.URLString.length) { this.URLString += this.argumentSeparator + urlstring; } else { this.URLString = urlstring; } } // prevents caching of URLString this.setVar("rndval", new Date().getTime()); urlstringtemp = new Array(); for (key in this.vars) { if (false == this.vars[key][1] && true == this.encodeURIString) { encoded = this.encVar(key, this.vars[key][0], true); delete this.vars[key]; this.vars[encoded[0]] = Array(encoded[1], true); key = encoded[0]; } urlstringtemp[urlstringtemp.length] = key + "=" + this.vars[key][0]; } if (urlstring){ this.URLString += this.argumentSeparator + urlstringtemp.join(this.argumentSeparator); } else { this.URLString += urlstringtemp.join(this.argumentSeparator); } } this.runResponse = function() { eval(this.response); } this.runAJAX = function(urlstring) { if (this.failed) { this.onFail(); } else { this.createURLString(urlstring); if (this.element) { this.elementObj = document.getElementById(this.element); } if (this.xmlhttp) { var self = this; if (this.method == "GET") { totalurlstring = this.requestFile + this.queryStringSeparator + this.URLString; this.xmlhttp.open(this.method, totalurlstring, true); } else { this.xmlhttp.open(this.method, this.requestFile, true); try { this.xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded") } catch (e) { } } this.xmlhttp.onreadystatechange = function() { switch (self.xmlhttp.readyState) { case 1: self.onLoading(); break; case 2: self.onLoaded(); break; case 3: self.onInteractive(); break; case 4: self.response = self.xmlhttp.responseText; self.responseXML = self.xmlhttp.responseXML; self.responseStatus[0] = self.xmlhttp.status; self.responseStatus[1] = self.xmlhttp.statusText; if (self.execute) { self.runResponse(); } if (self.elementObj) { elemNodeName = self.elementObj.nodeName; elemNodeName.toLowerCase(); if (elemNodeName == "input" || elemNodeName == "select" || elemNodeName == "option" || elemNodeName == "textarea") { self.elementObj.value = self.response; } else { self.elementObj.innerHTML = self.response; } } if (self.responseStatus[0] == "200") { self.onCompletion(); } else { self.onError(); } self.URLString = ""; break; } }; this.xmlhttp.send(this.URLString); } } }; this.reset(); this.createAJAX(); } /************************************************************************************************************ Ajax poller Copyright (C) 2006 DTHMLGoodies.com, Alf Magne Kalleland This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Dhtmlgoodies.com., hereby disclaims all copyright interest in this script written by Alf Magne Kalleland. Alf Magne Kalleland, 2006 Owner of DHTMLgoodies.com ************************************************************************************************************/ var serverSideFile = 'engines/polls/ajax-poller-cast-vote-php.php'; var voteLeftImage = 'engines/polls/images/graph_left_1.gif'; var voteRightImage = 'engines/polls/images/graph_right_1.gif'; var voteCenterImage = 'engines/polls/images/graph_middle_1.gif'; var graphMaxWidth = 130; // It will actually be a little wider than this because of the rounded image at the left and right var graphMinWidth = 25; // Minimum size of graph var pollScrollSpeed = 1; // Lower = faster var useCookiesToRememberCastedVotes = false; // Use cookie to remember casted votes var txt_totalVotes = 'Total number of votes: '; var ajaxObjects = new Array(); var pollVotes = new Array(); var pollVoteCounted = new Array(); var totalVotes = new Array(); /* Preload images */ var preloadedImages = new Array(); preloadedImages[0] = new Image(); preloadedImages[0].src = voteLeftImage; preloadedImages[1] = new Image(); preloadedImages[1].src = voteRightImage; preloadedImages[2] = new Image(); preloadedImages[2].src = voteCenterImage; /* These cookie functions are downloaded from http://www.mach5.com/support/analyzer/manual/html/General/CookiesJavaScript.htm */ function Poller_Get_Cookie(name) { var start = document.cookie.indexOf(name+"="); var len = start+name.length+1; if ((!start) && (name != document.cookie.substring(0,name.length))) return null; if (start == -1) return null; var end = document.cookie.indexOf(";",len); if (end == -1) end = document.cookie.length; return unescape(document.cookie.substring(len,end)); } // This function has been slightly modified function Poller_Set_Cookie(name,value,expires,path,domain,secure) { expires = expires * 60*60*24*1000; var today = new Date(); var expires_date = new Date( today.getTime() + (expires) ); var cookieString = name + "=" +escape(value) + ( (expires) ? ";expires=" + expires_date.toGMTString() : "") + ( (path) ? ";path=" + path : "") + ( (domain) ? ";domain=" + domain : "") + ( (secure) ? ";secure" : ""); document.cookie = cookieString; } function showVoteResults(pollId,ajaxIndex) { document.getElementById('poller_waitMessage' + pollId).style.display='none'; var xml = ajaxObjects[ajaxIndex].response; xml = xml.replace(/\n/gi,''); var reg = new RegExp("^.*?(.*?)<.*$","gi"); var pollerTitle = xml.replace(reg,'$1'); var resultDiv = document.getElementById('poller_results' + pollId); var titleP = document.createElement('P'); titleP.className='result_pollerTitle'; titleP.innerHTML = pollerTitle; resultDiv.appendChild(titleP); var options = xml.split(/