function show(object) {
  if (document.layers && document.layers[object] != null){
     document.layers[object].visibility = 'show';
     }
  else if (document.all){
     document.all[object].style.visibility = 'visible';
     }
  else if(document.getElementById){
       this.object = object;
       thsObj = document.getElementById(object);
        thsObj.style.visibility = "visible";
        }
  }
  function hide(object) {
    if (document.layers && document.layers[object] != null){
      document.layers[object].visibility = 'hide';
      }
    else if (document.all && document.all[object] != null){
     document.all[object].style.visibility = 'hidden';
     }
      else if(document.getElementById){
       this.object = object;
       thsObj = document.getElementById(object);
        thsObj.style.visibility = "hidden";
        }
    }
 function reposition(object,x,y) {
  
    if (document.layers && document.layers[object] != null) {
       document.layers[object].left = x;
       document.layers[object].top = y;
       }
    else if (document.all && document.all[object] != null) {
   
       document.all[object].style.posLeft = x;
       document.all[object].style.posTop = y;
      
   }
   else if(document.getElementById){
     this.object =object;
     this.x=x; 
     this.y=y;
     thsObj = document.getElementById(object);
     thsObj.style.top= y + "px";
     thsObj.style.left= x + "px";

   }
   }
  function placePic(laer,obj,oSrc){
    this.laer = laer;
    this.obj = obj;
   if(document.layers){
   
         document.layers[laer].document[obj].src=oSrc;
    
    } else if(document.all) {
    document.all[obj].src=oSrc;
    }else if(document.getElementById){
    document.getElementById(obj).src = oSrc;
    }
 
 }

 function getWinWidth(){
if(document.all) {
windowwidth=document.body.clientWidth;
  }else{
    windowwidth=parseInt(window.innerWidth);}
return windowwidth;
  }
 function getWinHeight(){
  if(document.all) {
       windowHeight=document.body.clientHeight;
       }
    else {
    windowheight=parseInt(window.innerHeight);}
    return windowheight;
}
