var myWidth = 0, myHeight = 0;
 
dd=document;NS=(dd.layers)?1:0;IE=(dd.all)?1:0;DOM=(dd.getElementById)?1:0

function uniF(id,vsbl,xx,yy){cont=0;tx=xx;ty=yy;if(tx=='0')tx=1;if(ty=='0')ty=1
if (NS)ob=dd.layers[''+id+''];else if (IE)ob=dd.all[''+id+''];else if (DOM)ob=dd.getElementById(''+id+'')
if (!NS)obs=ob.style
if (vsbl==1){if (NS)ob.visibility='show';else obs.visibility='visible'}
else if (vsbl==0){if (NS)ob.visibility='hide';else obs.visibility='hidden'}
if (tx){if (DOM)xx=xx+'px';if (NS)ob.left=xx;else obs.left=xx}
if (ty){if (DOM)yy=yy+'px';if (NS)ob.top=yy;else obs.top=yy}
if (cont){
if (NS){obd=ob.document;obd.open();obd.write(cont);obd.close()}
else if (IE)ob.innerHTML=cont;
else if (DOM){rng=dd.createRange();rng.setStartBefore(ob);HFrg=rng.createContextualFragment(cont)
while(ob.hasChildNodes())ob.removeChild(ob.lastChild);ob.appendChild(HFrg)}}}
 
function getSize() {
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
}
