function AD_Obj(n, d) { var p,i,x; if(!d) d=document; // if(parent.frames.length) // return false; if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&id.layers.length;i++) x=AD_Obj(n,d.layers[i].document); if(!x && document.getElementById) x=document.getElementById(n); return x; } function Wind_Obj() { if (window.innerHeight >= 0) { return [window.innerWidth, window.innerHeight]; } else if (document.documentElement && document.documentElement.clientWidth > 0) { return [document.documentElement.clientWidth,document.documentElement.clientHeight] } else if (document.body.clientHeight > 0) { return [document.body.clientWidth,document.body.clientHeight] } else { return [0, 0] } } function AD_Pos(b) { var a = AD_Obj(b); var w = Wind_Obj(); var wi = a['style'].width.substring(0,a['style'].width.length - 2); if(document.all && !window.opera) { var ox = document.body.scrollLeft || document.documentElement.scrollLeft; var oy = document.body.scrollTop || document.documentElement.scrollTop; } else { var ox = window.pageXOffset; var oy = window.pageYOffset; } a['style'].left = parseInt(ox+(w[0] - wi) / 2) + (window.opera?'':'px'); a['style'].top = parseInt(oy) + (window.opera?'':'px'); } function AD_Hide(b) { var a = AD_Obj(b); if(a) { a['style'].visibility = a['style'].visibility == 'hidden' ? 'visible' : 'hidden'; a['style'].display = a['style'].display == 'none' ? 'block' : 'none'; c = AD_Obj("l_"+b); c['style'].visibility = c['style'].visibility == 'hidden' ? 'visible' : 'hidden'; c['style'].display = c['style'].display == 'none' ? 'block' : 'none'; } }