1
0
mirror of https://github.com/danog/danuntu.git synced 2024-11-26 20:04:49 +01:00
danuntu/index_htm_files/roe.js
2019-12-21 11:56:18 +01:00

2 lines
19 KiB
JavaScript

function xr_nn(){return(xr_ms<1);};var xr_w,xr_h;function xr_bcvrfh(){xr_h=document.documentElement.clientHeight;xr_w=document.documentElement.clientWidth;var s=xr_xr.style.overflow;xr_xr.style.overflow = "scroll";var ph=xr_xr.scrollHeight+xr_xr.offsetTop;var pw=xr_xr.scrollWidth;xr_xr.style.overflow=s;if(ph>xr_h)xr_h=ph;if(pw>xr_w)xr_w=pw;return document.getElementById("xr_bcv");};function xr_bcvrfr(){};var xr_ie,xr_ie6,xr_ie7,xr_ie8n,xr_ie9,xr_chrome,xr_ipod,xr_dx,xr_fl,xr_ft,xr_fr,xr_fb,xr_fld,xr_ftd,xr_fo,xr_ho,xr_wx,xr_wy;var xr_bckgx=0,xr_bckgy=0;var xr_pul=0;var xr_xpul=0;var xr_trid=0;var xr_ms=-1;var xr_ps=new Array();var xr_pl=new Array();var xr_pi=0;var xr_rc=-1;var xr_rrl=0;var xr_rpp=0;var xr_mal=0;var xr_mso=1;var xr_nore=0;function xr_rx(){if (xr_trid==1){xr_wx=window.innerWidth;xr_wy=window.innerHeight;if(!xr_wx){xr_wx=document.documentElement.clientWidth;xr_wy=document.documentElement.clientHeight;};if(!xr_wx){xr_wx=document.body.clientWidth;xr_wy=document.body.clientHeight;};}else{xr_wx=document.documentElement.clientWidth;xr_wy=document.documentElement.clientHeight;};if (xr_trid==1 && top.location == location){if (xr_wy<(xr_xr.offsetHeight+xr_xr.offsetTop) || xr_wx<(xr_xr.offsetWidth+xr_xr.offsetLeft)){document.documentElement.style.overflow="auto";document.body.scroll = "auto";if(xr_wy>(xr_xr.offsetHeight+xr_xr.offsetTop)){document.documentElement.style.overflowY="hidden";}else{if(xr_ie && !xr_ie9){xr_wx+=16;}else{document.documentElement.style.overflowY="hidden";xr_wx=document.documentElement.clientWidth;};document.documentElement.style.overflowY="auto";};if(xr_wx>(xr_xr.offsetWidth+xr_xr.offsetLeft)){document.documentElement.style.overflowX="hidden";}else{document.documentElement.style.overflowX="auto";};}else{document.documentElement.style.overflow="hidden";document.body.scroll = "no";document.documentElement.style.overflowX="hidden";document.documentElement.style.overflowY="hidden";};};xr_xr.style.marginLeft="0px";xr_dx=(xr_wx-parseInt(xr_xr.style.width))/2;if(xr_dx<0){xr_dx=0;};xr_xr.style.left=xr_dx+'px';document.body.style.backgroundPosition=xr_dx+xr_bckgx+"px "+(xr_bckgy+xr_xr.offsetTop)+"px";xr_bcvrfr();xr_pvx();var bph=document.getElementById('xr_bph');if(bph){var w=parseInt(xr_xr.style.width);var h=parseInt(xr_xr.style.height)+parseInt(xr_xr.style.top);if(xr_wx<w) bph.style.width=w+'px';else bph.style.width='100%';if(xr_wy<h) bph.style.height=h+'px';else bph.style.height='100%';}};function xr_v0(o){if(o.style.visibility!='hidden'){if(o.className.indexOf("xr_pua2")!=-1 && (!xr_ie6 || o.getElementsByTagName('IMG').length)){if(xr_ie){o.style.width=xr_xr.style.width;o.style.height=xr_xr.style.height;};xr_puad2(o);}else if(o.className.indexOf("xr_prl")!=-1){var t = parseInt(o.className.substr(o.className.indexOf("xr_prl")+8,2));if(t>0 && t<100){t*=100}else{t=500};xr_qstartlb((parseInt(o.className.substr(o.className.indexOf("xr_prl")+6,1))*10)+parseInt(o.className.substr(o.className.indexOf("xr_prl")+7,1)),t,o.id);}else{xr_puad0(o);xr_v00(o);};};};function xr_v00(o){o.style.visibility='hidden';o.style.display='none';o.style.zIndex=-1;o.innerHTML=o.innerHTML;};function xr_v1(o){if(o.className.indexOf("xr_pplock")!=-1){xr_xpul=0;xr_pul=0;};if(o.className.indexOf("xr_pua1")!=-1 && (!xr_ie6 || o.getElementsByTagName('IMG').length)){if(xr_ie){o.style.width=xr_xr.style.width;o.style.height=xr_xr.style.height;};xr_puad1(o);}else if(o.className.indexOf("xr_prl")!=-1){o.innerHTML=o.innerHTML;o.style.zIndex=100;var t = parseInt(o.className.substr(o.className.indexOf("xr_prl")+8,2));if(t>0 && t<100){t*=100}else{t=500};xr_qstartl((parseInt(o.className.substr(o.className.indexOf("xr_prl")+6,1))*10)+parseInt(o.className.substr(o.className.indexOf("xr_prl")+7,1)),t,o.id);}else{xr_puad0(o);if(o.className.indexOf("xr_pua2")!=-1){if(xr_ie){o.style.width=xr_xr.style.width;o.style.height=xr_xr.style.height;};xr_sopcs(o,1);};o.innerHTML=o.innerHTML;o.style.display='block';o.style.visibility='visible';o.style.zIndex=100;};};function xr_r0(o){var ll = o.getElementsByTagName('*');for (xr_i=0;xr_i<ll.length;xr_i++){if (ll[xr_i].style) ll[xr_i].style.visibility = 'inherit';};o.style.visibility='hidden';o.style.zIndex= -1;};function xr_bl(e){xr_rx();xr_rrl=0;xr_ms=0;};function xr_re(i){if(xr_nore==0){if(xr_rc>0)xr_rc=0;if(xr_ms>=0){for(;(i!=xr_pl[xr_pi])&&(xr_pi>0);xr_pi--){xr_v0(xr_ps[xr_pi]);};var o = document.getElementById('xr_xo'+xr_rrl);xr_r0(o);o = document.getElementById('xr_xd'+xr_rrl);xr_r0(o);};};xr_nore=0;};function xr_ix(o){var x=o.offsetLeft;var y=o.offsetTop;if(o.style.marginLeft) x-=parseInt(o.style.marginLeft);if(o.style.marginTop) y-=parseInt(o.style.marginTop);var ox=o;while(ox.offsetParent&&ox.offsetParent.id!='xr_xr'){ox=ox.offsetParent;x+=ox.offsetLeft;y+=ox.offsetTop;};var x1=x+o.offsetWidth;var y1=y+o.offsetHeight;return(!((x1<(xr_fl+xr_fr)/2 && xr_fl>(x+x1)/2)||(x>(xr_fl+xr_fr)/2 && xr_fr<(x+x1)/2)||(y1<(xr_ft+xr_fb)/2 && xr_ft>(y+y1)/2)||(y>(xr_ft+xr_fb)/2 && xr_fb<(y+y1)/2)));};function xr_clp(o){if(xr_ie7)o.innerHTML=o.innerHTML;var ll=o.getElementsByTagName('*');for (xr_i=0;xr_i<ll.length;xr_i++){if (ll[xr_i].tagName!="A" && xr_ix(ll[xr_i])){ll[xr_i].style.marginLeft=xr_fld+"px";ll[xr_i].style.marginTop=xr_ftd+"px";ll[xr_i].style.visibility = 'visible';};};var oh="javascript:;";var ot="";var oa = xr_fo.parentNode.href ? xr_fo.parentNode : xr_fo;if (oa.className.indexOf("highslide")!=-1){xr_ho=oa;oh="javascript:hs.expand(xr_ho);";}else{if (oa.tagName=="A"){if (oa.href) oh=oa.href;if (oa.target) ot=oa.target;};};var aa = o.getElementsByTagName('a');for (xr_i=0;xr_i<aa.length;xr_i++){aa[xr_i].href=oh;aa[xr_i].target=ot;};o.style.zIndex=100;};function xr_mm(ev){if(xr_d_old_onmousemove) xr_d_old_onmousemove(ev);xr_pul=xr_xpul;if(xr_ms>0){xr_mso=1;if(!ev)var e=window.event;else var e=ev;var x=e.pageX;var y=e.pageY;if(!(x||y)||xr_ie){x=e.clientX+document.documentElement.scrollLeft;y=e.clientY+document.documentElement.scrollTop;if(!xr_ie8n){x-=2;y-=2;};};x-=xr_dx;y-=xr_xr.offsetTop;if (x<(xr_fl-1)||x>xr_fr||y<xr_ft||y>xr_fb){try{xr_tidyMenu1(e)}catch(xr_c){}finally{};if(!xr_mal){var o=document.getElementById('xr_xo'+xr_rrl);xr_r0(o);o=document.getElementById('xr_xd'+xr_rrl);xr_r0(o);xr_ms=0;};xr_mso=0;};}else{if(xr_rc>=0){if(xr_rc++>2){xr_re(0);xr_rc=-1;};};};};function xr_md(e){if(xr_d_old_onmousedown)xr_d_old_onmousedown(e);if(!e) e=window.event;if (e.button<2){if(xr_ms==1){var o = document.getElementById('xr_xo'+xr_rrl);xr_r0(o);o = document.getElementById('xr_xd'+xr_rrl);xr_clp(o);xr_ms=2;};};};function xr_mu(e){if(xr_d_old_onmouseup)xr_d_old_onmouseup(e);if(!e) e=window.event;if (e.button<2){if(xr_ms==2){var o = document.getElementById('xr_xo'+xr_rrl);xr_clp(o);o = document.getElementById('xr_xd'+xr_rrl);xr_r0(o);xr_ms=1;if (xr_mso){var oo = xr_fo.parentNode.href ? xr_fo.parentNode : xr_fo;if(oo.className.indexOf("highslide")!=-1){try{hs.expand(oo);}catch(xr_c){}finally{};}else{if ((oo.target=='_self' || oo.target=='') && xr_chrome){document.location=oo.href;}else try{window.open(oo.href, oo.target ? oo.target : '_self')}catch(xr_c){}finally{};};};xr_re(0);}else xr_xmc();};};function xr_xmc(){if(xr_pul){xr_v0(xr_pul);xr_pul=0;xr_xpul=0;};};function xr_mo(o,i,e,x,y){if(!e) e=window.event;xr_mmo(o,i,x,y);try{xr_closeMenus("")}catch(xr_c){}finally{};};function xr_mpo(o,i,ii,e,x,y){if(!e) e=window.event;xr_mmpo(o,i,ii,x,y);try{xr_closeMenus("")}catch(xr_c){}finally{};};function xr_mmosp(o,i,x,y){xr_re(i);xr_fl=o.offsetLeft;xr_ft=o.offsetTop;var o1=o;while(o1.offsetParent&&o1.offsetParent.id!='xr_xr'){o1=o1.offsetParent;xr_fl+=o1.offsetLeft;xr_ft+=o1.offsetTop;};if(x && y){xr_fld=xr_fl-x;xr_ftd=xr_ft-y;xr_fl=x;xr_ft=y;}else{xr_fld=0;xr_ftd=0;};xr_fr=xr_fl+o.offsetWidth;xr_fb=xr_ft+o.offsetHeight;xr_fo=o;xr_rrl=i;};function xr_mmo(o,i,x,y){if(o.parentNode.parentNode.tagName!="TD" && !xr_ipod){if(xr_ms==0 || xr_ms==1){xr_mmosp(o,i,x,y);var o = document.getElementById('xr_xo'+xr_rrl);xr_clp(o);if(!xr_ms)o.innerHTML=o.innerHTML;xr_ms=1;xr_mso=1;};};};function xr_mmo0(o,i,x,y){if(o.parentNode.parentNode.tagName!="TD"){if(xr_ms==0 || xr_ms==1){xr_mmosp(o,i,x,y);xr_ms=1;xr_mso=1;};};};function xr_mp(i,ii){xr_rpp=1;var o=document.getElementById('xr_xp'+i);xr_rc=0;if((xr_ms==0 || xr_ms==1)&&(xr_ps[xr_pi]!=o)){xr_re(ii);xr_ms=0;xr_v1(o);if(o.className.indexOf("xr_pplock")==-1){xr_pi++;xr_ps[xr_pi]=o;xr_pl[xr_pi]=i;};};};function xr_mmpo(o,i,ii,x,y){xr_rpp=1;var oo=document.getElementById('xr_xp'+i);if(xr_ps[xr_pi]==oo) xr_nore=1;xr_mmo(o,ii,x,y);xr_rc=0;if(xr_ps[xr_pi]!=oo){xr_v1(oo);xr_pi++;xr_ps[xr_pi]=oo;xr_pl[xr_pi]=i;};};function xr_mpc(i){if(xr_ms==0 && !xr_rpp) xr_re(i);xr_rpp=0;};function xr_cpu(i){xr_xmc();var o=document.getElementById('xr_xp'+i);xr_xpul=o;xr_v1(o);};function xr_pv(img,w,h,a){var o1=document.getElementById('xr_sdi1');var o2=document.getElementById('xr_sdi2');var o4=document.getElementById('xr_sdi4');xr_opc=1;if(xr_img0==''){xr_w0=300;xr_h0=200;}if (xr_img0!=img){o4.src='';o1.innerHTML=o1.innerHTML;o4=document.getElementById('xr_sdi4');o4.style.visibility='hidden';xr_img0=img;xr_cptn=a;o4.style.width=w+'px';o4.style.height=h+'px';o2.innerHTML=a;};xr_w9=w;xr_h9=h;xr_sopc();xr_ani();};var xr_to1 = 0;var xr_to2 = 0;function xr_ani(){if(!xr_to1)xr_to1=setInterval('xr_ani()',20);if(xr_w0!=xr_w9 || xr_h0!=xr_h9){if(xr_w0==xr_w9){if(xr_h0<xr_h9){xr_h0+=30;if(xr_h0>xr_h9)xr_h0=xr_h9;}else{xr_h0-=30;if(xr_h0<xr_h9)xr_h0=xr_h9;};}else{if(xr_w0<xr_w9){xr_w0+=30;if(xr_w0>xr_w9)xr_w0=xr_w9;}else{xr_w0-=30;if(xr_w0<xr_w9)xr_w0=xr_w9;};}xr_pvx();}else{if(xr_to1)clearInterval(xr_to1);xr_to1=0;xr_pvx();var o4=document.getElementById('xr_sdi4');o4.src=xr_img0;o4.style.visibility='visible';xr_sopc();};};function xr_pvx(){if(xr_img0){var o=document.getElementById('xr_sdi');var o1=document.getElementById('xr_sdi1');var o2=document.getElementById('xr_sdi2');var o3=document.getElementById('xr_sdi3');var o4=document.getElementById('xr_sdi4');var w=xr_w0;var h=xr_h0;var cw = document.documentElement.clientWidth;var ch = document.documentElement.clientHeight;var ov = 'hidden';if (w>(cw-80)){w=cw-80;if (w<200) w=200;ov='scroll';};if (h>(ch-100)){h=ch-80;if (h<100) h=100;ov='scroll';}var sx=0;var sy=0;if(typeof(window.pageXOffset)=='number'){sx=window.pageXOffset;sy=window.pageYOffset;}else if(document.body && (document.body.scrollLeft || document.body.scrollTop)){sx=document.body.scrollLeft;sy=document.body.scrollTop;}else{sx=document.documentElement.scrollLeft;sy=document.documentElement.scrollTop;};var x=sx+(cw-w-30)/2;var y=sy+(ch-h-30)/2;o.style.left=(x-15)+'px';o.style.top=(y-15)+'px';o.style.width=(w+30)+'px';if(xr_cptn!=''){o.style.height=(h+55)+'px';o2.style.visibility='visible';}else{o.style.height=(h+30)+'px';o2.style.visibility='hidden';};o1.style.width=w+'px';o1.style.height=h+'px';o1.style.overflow=ov;o2.style.width=w+'px';o2.style.top=(h+27)+'px';o3.style.left=(w-16)+'px';o3.style.top='0px';o.style.zIndex=101;o.style.display='block';};};var xr_pua1=new Array();var xr_pua2=new Array();var xr_pua1o=new Array();var xr_pua2o=new Array();var xr_pua1s=new Array();var xr_pua2s=new Array();var xr_puat = 0;var xr_pualt;function xr_puares(){var i;for (i=0;i<10;i++){xr_pua1[i]=0;xr_pua2[i]=0;xr_pua1o[i]=0;xr_pua2o[i]=0;};};xr_puares();function xr_puas(){var d=new Date();var dx = d.getTime();var dd = (dx-xr_pualt)/50;xr_pualt = dx;var i;var n=0;for (i=0;i<10;i++){if(xr_pua1[i]){xr_pua1o[i]+=xr_pua1s[i]*dd;if(xr_pua1o[i]>1) xr_pua1o[i]=1;xr_sopcs(xr_pua1[i],xr_pua1o[i]);if(xr_pua1o[i]==1){if(xr_ie){xr_pua1[i].style.width="";xr_pua1[i].style.height="";};xr_pua1[i]=0;xr_pua1o[i]=0;}else n++;};if(xr_pua2[i]){xr_pua2o[i]-=xr_pua2s[i]*dd;if(xr_pua2o[i]<0.01) xr_pua2o[i]=0;xr_sopcs(xr_pua2[i],xr_pua2o[i]);if(xr_pua2o[i]==0){xr_v00(xr_pua2[i]);xr_pua2[i]=0;xr_pua2o[i]=0;}else n++;};};if(n==0){clearInterval(xr_puat);xr_puat=0;};};function xr_puad0(o){for (i=0;i<10;i++){if(xr_pua2[i]==o){xr_pua2[i]=0;xr_pua2o[i]=0;n=1;};if(xr_pua1[i]==o){xr_pua1[i]=0;xr_pua1o[i]=0;n=1;};};};function xr_puast(){if(!xr_puat){xr_puat=setInterval('xr_puas()',50);var d=new Date();xr_pualt=d.getTime();};};function xr_puad1(o){var fo = 0;var op = 0;var m = 0;var mo = xr_pua1o[0];var i;for (i=0;i<10;i++){if(xr_pua2[i]==o){op = xr_pua2o[i];xr_pua2[i]=0;xr_pua2o[i]=0;fo=1;};if(xr_pua1[i]==o){m=i;mo=2;op = xr_pua1o[i];fo=1;}else if(xr_pua1[i]==0){if(mo<2){mo=1;m=i;};}else{if(xr_pua1o[i]>mo){mo=xr_pua1o[i];m=i;};};};if(o.style.visibility!='visible' || fo){o.innerHTML=o.innerHTML;o.style.display='block';o.style.visibility='visible';o.style.zIndex=100;if(mo<1) xr_sopcs(xr_pua1[m],1);xr_pua1[m]=o;xr_pua1o[m]=op;xr_sopcs(o,op);xr_pua1s[m]=0.2;if(o.className.indexOf("xr_pua10")!=-1)xr_pua1s[m]=0.07;if(o.className.indexOf("xr_pua11")!=-1)xr_pua1s[m]=0.1;if(o.className.indexOf("xr_pua13")!=-1)xr_pua1s[m]=0.3;if(o.className.indexOf("xr_pua14")!=-1)xr_pua1s[m]=0.5;xr_puast();};};function xr_puad2(o){var op = 1;var m = 0;var mo = xr_pua2o[0];var i;for (i=0;i<10;i++){if(xr_pua1[i]==o){op = xr_pua1o[i];xr_pua1[i]=0;xr_pua1o[i]=0;};if(xr_pua2[i]==o){op = xr_pua2o[i];m=i;mo=-1;}else if(xr_pua2[i]==0){if(mo>-1){mo=0;m=i;};}else{if (xr_pua2o[i]<mo){mo=xr_pua2o[i];m=i;};};};if(mo>0) xr_v00(xr_pua2[m]);xr_pua2[m]=o;xr_pua2o[m]=op;xr_sopcs(o,op);xr_pua2s[m]=0.2;if(o.className.indexOf("xr_pua20")!=-1)xr_pua2s[m]=0.07;if(o.className.indexOf("xr_pua21")!=-1)xr_pua2s[m]=0.1;if(o.className.indexOf("xr_pua23")!=-1)xr_pua2s[m]=0.3;if(o.className.indexOf("xr_pua24")!=-1)xr_pua2s[m]=0.5;xr_puast();};function xr_sopcshf(o,opc){var oAlpha = o.filters['DXImageTransform.Microsoft.alpha'] || o.filters.alpha;if (oAlpha) oAlpha.opacity = opc*100;else o.style.filter += 'progid:DXImageTransform.Microsoft.Alpha(opacity='+(opc*100)+')';};function xr_sopcs(o,opc){if (xr_ie && !xr_ie9){if(opc>=1){o.style.filter="";}else{xr_sopcshf(o,opc);};var jj=o.getElementsByTagName('SPAN');for (xr_j=0;xr_j<jj.length;xr_j++){if(jj[xr_j].className.indexOf("xr_t")!=-1){if(opc>=1){jj[xr_j].style.filter="";if(xr_ie6) jj[xr_j].style.visibility="visible";}else{if(xr_ie6){jj[xr_j].style.visibility="hidden";}else{xr_sopcshf(jj[xr_j],opc);};};};};jj=o.getElementsByTagName('DIV');for (xr_j=0;xr_j<jj.length;xr_j++){if(jj[xr_j].className.indexOf("xr_tb")!=-1){if(opc>=1){jj[xr_j].style.filter="";if(xr_ie6) jj[xr_j].style.visibility="visible";}else{if(xr_ie6){jj[xr_j].style.visibility="hidden";}else{xr_sopcshf(jj[xr_j],opc);};};};};jj=o.getElementsByTagName('IMG');for (xr_j=0;xr_j<jj.length;xr_j++){if (jj[xr_j].src.substring(jj[xr_j].src.length-3, jj[xr_j].src.length) == "jpg"){if(opc>=1){jj[xr_j].style.filter="";}else{xr_sopcshf(jj[xr_j],opc);};};};}else{o.style.opacity = (opc);o.style.MozOpacity = (opc);o.style.KhtmlOpacity = (opc);};};function xr_sopc(){xr_sopcs(document.getElementById('xr_sdi'),xr_opc)};function xr_bpc(){if(!xr_to2)xr_to2=setInterval('xr_bpc()',20);var o=document.getElementById('xr_sdi');if(xr_opc>0.2){xr_opc-=0.15;xr_sopc();}else{if(xr_to2)clearInterval(xr_to2);xr_to2=0;xr_sopc();xr_opc=1;o.style.display='none';xr_img0='';};};var xr_img0='';var xr_w0;var xr_h0;var xr_w9;var xr_h9;var xr_opc, xr_cptn;function xr_rx_e(e){if(xr_w_old_onresize)xr_w_old_onresize(e);xr_rx();};function xr_pvx_e(e){if(xr_w_old_onscroll)xr_w_old_onscroll(e);xr_pvx();};var xr_d_old_onmousemove=0;var xr_d_old_onmousedown=0;var xr_d_old_onmouseup=0;var xr_w_old_onresize=0;var xr_w_old_onscroll=0;function xr_aeh(){xr_d_old_onmousemove = document.onmousemove;xr_d_old_onmousedown = document.onmousedown;xr_d_old_onmouseup = document.onmouseup;xr_w_old_onresize = window.onresize;xr_w_old_onscroll = window.onscroll;document.onmousemove=xr_mm;document.onmousedown=xr_md;document.onmouseup=xr_mu;window.onresize=xr_rx_e;window.onscroll=xr_pvx_e;xr_ie=0;xr_ie7=0;xr_ie8n=0;xr_ie9=0;xr_chrome=0;xr_ipod=0;if(navigator.userAgent.match(/(iPhone|iPod|iPad)/)){xr_ipod=1;document.addEventListener('touchstart', function(event){xr_pul=xr_xpul;},false);document.addEventListener('touchend', function(event){xr_xmc();if(xr_rc>=0){if(xr_rc++>1){xr_re(0);xr_rc=-1;};};},false);};if (document.body.filters || navigator.userAgent.indexOf('MSIE')!=-1){xr_ie=1;var v= navigator.appVersion.match(/MSIE ([\d.]+);/)[1];if(v>=8){if(document.documentMode>=9) xr_ie9=1;else if(document.documentMode>7) xr_ie8n=1;else xr_ie7=1;}else if(v>=7){xr_ie7=1;};};xr_ie6 = (xr_ie && !(xr_ie7 || xr_ie8n));if (navigator.userAgent.indexOf('Chrome')!=-1) xr_chrome=1;if(xr_ie7 || xr_ie8n){var ll=document.getElementsByTagName('DIV');for (xr_i=0;xr_i<ll.length;xr_i++){if(ll[xr_i].className.indexOf("xr_pua")!=-1 || ll[xr_i].className.indexOf("xr_prl10")!=-1){var jj=ll[xr_i].getElementsByTagName('IMG');for (xr_j=0;xr_j<jj.length;xr_j++){if (jj[xr_j].src.substring(jj[xr_j].src.length-3, jj[xr_j].src.length) == "png"){jj[xr_j].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+jj[xr_j].src+",sizingMethod='scale')";};};};};};var ll=document.getElementsByTagName('IMG');for (xr_i=0;xr_i<ll.length;xr_i++){if(ll[xr_i].className.indexOf("xr_an_")==0){var o=ll[xr_i];var pp=0;var pn=o.parentNode;while(pn.id!='xr_xr'){if(pn.id.indexOf("xr_xp")==0){if(pn.style.display=="none"){pp=pn;};break;};pn=pn.parentNode;};if(pp!=0) pp.style.display="block";var a = o.className.split("_");var x=o.offsetLeft;var y=o.offsetTop;var ox=o;while(ox.offsetParent&&ox.offsetParent.id!='xr_xr'&& ox.offsetParent.id.indexOf('xr_page')!=0){ox=ox.offsetParent;x+=ox.offsetLeft;y+=ox.offsetTop;};x-=parseInt(a[3]);y-=parseInt(a[4]);var anc="xr_ax_"+a[2];if(x || y){var l1=document.getElementsByTagName('*');var i1;for (i1=0;i1<l1.length;i1++){if(l1[i1].className.indexOf(anc)!=-1){var a1=l1[i1].className.split(" ");var i2;for (i2=0;i2<a1.length;i2++){if(a1[i2]==anc){l1[i1].style.marginLeft=x+"px";l1[i1].style.marginTop=y+"px";break;};};};};};if(pp!=0){pp.style.display="none";pp.innerHTML=pp.innerHTML;};};};if(window.devicePixelRatio && window.devicePixelRatio>1){var ll=document.getElementsByTagName('*');for (xr_i=0;xr_i<ll.length;xr_i++){if(ll[xr_i].className.indexOf("xr_rn_")==0){var s = ll[xr_i].className.slice(6,ll[xr_i].className.indexOf(" "));if(ll[xr_i].tagName=='IMG'){if(s!=""){ll[xr_i].src=s;}else{var ss=ll[xr_i].src;ll[xr_i].src=ss.substr(0,ss.length-4)+"@2x"+ss.substr(ss.length-4,4);};}else if(ll[xr_i].tagName=='A'){if(s!=""){ll[xr_i].href=s;}else{var ss=ll[xr_i].href;ll[xr_i].href=ss.substr(0,ss.length-4)+"@2x"+ss.substr(ss.length-4,4);};}else{if(s!=""){ll[xr_i].style.backgroundImage="url('"+s+"')";}else{var ss=ll[xr_i].style.backgroundImage;var x=ss.lastIndexOf(".");if(x>=0){ll[xr_i].style.backgroundImage=ss.substr(0,x)+"@2x"+ss.substr(x,ss.length-x);};};};};};}else if(!xr_ie6){var ll=document.getElementsByTagName('IMG');for (xr_i=0;xr_i<ll.length;xr_i++){if (ll[xr_i].className.indexOf("xr_ap")!=-1 && ll[xr_i].parentNode.className.indexOf("highslide")!=-1){ll[xr_i].style.width = "";ll[xr_i].style.height = "";};};};if(navigator.userAgent.indexOf('Firefox')!=-1 || navigator.userAgent.indexOf('Opera')!=-1){var ll=document.getElementsByTagName('*');for (xr_i=0;xr_i<ll.length;xr_i++){if(ll[xr_i].style.boxShadow){var s=ll[xr_i].style.boxShadow.split(" ");s[2]=(parseInt(s[2])/2)+"px";ll[xr_i].style.boxShadow=s.join(" ");}else if(ll[xr_i].style.textShadow){var s=ll[xr_i].style.textShadow.split(" ");s[2]=(parseInt(s[2])/2)+"px";ll[xr_i].style.textShadow=s.join(" ");};};};xr_bl();};function xr_ppc(n){var o=document.getElementById(n);if(o)xr_v0(o);};function xr_ppo(n){var o=document.getElementById(n);if(o){while((o.id.indexOf("xr_xp") == -1) && (o.id.indexOf("xr_xri") == -1) && (o.id.indexOf("xr_page") != 0)) o=o.parentNode;if(o.id.indexOf("xr_xp") != -1) xr_v1(o);};};function xr_top(){var x=window.pageXOffset;var y=window.pageYOffset;if(xr_ie){x=document.documentElement.scrollLeft;y=document.documentElement.scrollTop;};window.scrollTo(x/2,y/2);if(x+y>4) setTimeout("xr_top()",50);};