function nn() {return(ms<0);};
function rx(){var ww=document.documentElement.clientWidth;dx=(ww-parseInt(xr.style.width))/2;i=-parseInt(xr.style.width)/2;if(dx<0){i-=dx;dx=0;};xr.style.marginLeft=i+'px';document.body.style.backgroundPosition=dx+'px 0px';pvx();};
var dx,fl,ft,fr,fb,fo;var pul=0;var xpul=0;var ms=-1;var ps=new Array();var pl=new Array();var pi=0;var rc=0;var rrl=0;var rpp=0;
function v0(o){o.style.visibility='hidden';o.style.zIndex= -1;};
function v1(o){o.innerHTML=o.innerHTML;o.style.visibility='visible';o.style.zIndex=100;};
function r0(o){var ll = o.getElementsByTagName('*');for (i=0; i<ll.length; i++){if (ll[i].style) ll[i].style.visibility = 'inherit';};v0(o);};
function bl(){rx();rrl=0;ms=0;};
function re(i){rc=0;if(ms>=0){for(;(i!=pl[pi])&&(pi>0);pi--){v0(ps[pi]);};var o = document.getElementById('xo'+rrl);r0(o);o = document.getElementById('xd'+rrl);r0(o);};};
function ix(o){if (o.style && o.style.left && o.style.top && o.style.width && o.style.height){var x=parseInt(o.style.left);var y=parseInt(o.style.top);var x1=x+parseInt(o.style.width);var y1=y+parseInt(o.style.height);return(!((x1<(fl+fr)/2 && fl>(x+x1)/2)||(x>(fl+fr)/2 && fr<(x+x1)/2)||(y1<(ft+fb)/2 && ft>(y+y1)/2)||(y>(ft+fb)/2 && fb<(y+y1)/2)));}else return(0);};
function clp(o){var ll = o.getElementsByTagName('*');for (i=0; i<ll.length; i++){if (ix(ll[i])) ll[i].style.visibility = 'visible';};var oh='';var ot='';var oa = fo.parentNode.href ? fo.parentNode : fo;if (oa.href) oh=oa.href;if (oa.target) ot=oa.target;var aa = o.getElementsByTagName('a');for (i=0; i<aa.length; i++){aa[i].href=oh;aa[i].target=ot;};o.style.zIndex=100;xr.style.visibility='hidden';xr.style.visibility='visible';};
function mm(ev){pul=xpul;if(ms>0){if(!ev)var e=window.event;else var e=ev;var x=e.pageX;var y=e.pageY;if(!(x||y)){x=e.clientX+document.documentElement.scrollLeft;y=e.clientY+document.documentElement.scrollTop;x-=2;y-=2;};x-=dx;if (x<fl||x>fr||y<ft||y>fb){var o = document.getElementById('xo'+rrl);r0(o);o = document.getElementById('xd'+rrl);r0(o);ms=0;try{tidyMenu(event)}catch(c){}finally{};};}else{if(rc++>2)re(0);};};
function md(e){if(!e) e=window.event;if (e.button<2){if(ms==1){var o = document.getElementById('xo'+rrl);r0(o);o = document.getElementById('xd'+rrl);clp(o);ms=2;};};};
function mu(e){if(!e) e=window.event;if (e.button<2){if(ms==2){var o = document.getElementById('xo'+rrl);clp(o);o = document.getElementById('xd'+rrl);r0(o);ms=1;var oo = fo.parentNode.href ? fo.parentNode : fo;try{window.open(oo.href, oo.target ? oo.target : '_self')}catch(c){}finally{};re(0);};};};
function xmc(){if(pul){v0(pul);pul=0;xpul=0;};};
function mo(o,i){if(ms==0 || ms==1){re(i);fl=o.offsetLeft;ft=o.offsetTop;var o1=o;while(o1.offsetParent&&o1.offsetParent.id!='xr'){o1=o1.offsetParent;fl+=o1.offsetLeft;ft+=o1.offsetTop;};fr=fl+o.offsetWidth;fb=ft+o.offsetHeight;fo=o;rrl=i;var o = document.getElementById('xo'+rrl);clp(o);if(!ms)o.innerHTML=o.innerHTML;ms=1;};};
function mp(i,ii){rpp=1;var o=document.getElementById('xp'+i);rc=0;if((ms==0 || ms==1)&&(ps[pi]!=o)){re(ii);ms=0;v1(o);pi++;ps[pi]=o;pl[pi]=i;};};
function mpo(o,i,ii){rpp=1;mo(o,ii);var o=document.getElementById('xp'+i);rc=0;if(ps[pi]!=o){v1(o);pi++;ps[pi]=o;pl[pi]=i;};};
function mpc(i){if(ms==0 && !rpp) re(i);rpp=0;};
function cpu(i){xmc();var o=document.getElementById('xp'+i);v1(o);xpul=o;};
document.onclick=xmc;document.onmousemove=mm;document.onmousedown=md;document.onmouseup=mu;window.onresize=rx;var img0 = '';var w0;var h0;var w9;var h9;var opc, cptn;
function pv(img,w,h,a){var o1=document.getElementById('sdi1');var o2=document.getElementById('sdi2');var o4=document.getElementById('sdi4');opc=1;if(img0==''){w0=300;h0=200;}if (img0!=img){o4.src='';o1.innerHTML=o1.innerHTML;o4=document.getElementById('sdi4');o4.style.visibility='hidden';img0=img;o4.src=img;cptn=a;o4.style.width=w+'px';o4.style.height=h+'px';o2.innerHTML=a;};w9=w;h9=h;sopc();ani();};
function ani(){if (w0!=w9 || h0!=h9){if(w0==w9){if(h0<h9){h0+=30;if(h0>h9)h0=h9;}else{h0-=30;if(h0<h9)h0=h9;};}else{if(w0<w9){w0+=30;if(w0>w9)w0=w9;}else{w0-=30;if(w0<w9)w0=w9;};}pvx();setTimeout('ani()', 10);}else{pvx();var o4=document.getElementById('sdi4');o4.style.visibility='visible';sopc();};};
function pvx(){if(img0){var o=document.getElementById('sdi');var o1=document.getElementById('sdi1');var o2=document.getElementById('sdi2');var o3=document.getElementById('sdi3');var o4=document.getElementById('sdi4');var w=w0;var h=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(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';};};
function sopc(){var o=document.getElementById('sdi');if (document.body.filters && navigator.appVersion.match(/MSIE ([\d.]+);/)[1]>=5.5){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)+')';}else{o.style.opacity = (opc);o.style.MozOpacity = (opc);o.style.KhtmlOpacity = (opc);};};
function bpc(){var o=document.getElementById('sdi');if(opc>0.2){opc-=0.15;sopc();setTimeout('bpc()', 10);}else{sopc();opc=1;o.style.display='none';img0='';};};
window.onscroll = pvx;
