
<!--
// by Vic Phillips http://www.vicsJavaScripts.org.uk

var Obj,TO,MObj;

function VWP_swapImage(id,x,img){
 Obj=document.getElementById(id);
 Obj.outimg=Obj.src;
 Obj.src=img;
}

function VWP_swapImgRestore(){
 Obj.src=Obj.outimg;
}

function VWP_showHideLayers(id,obj,state,mess){
 clearTimeout(TO);
 MObj=document.getElementById(id);
 if (state=='show'){
  if (mess){
   MObj.removeChild(MObj.getElementsByTagName('DIV')[0]);
   mess=document.getElementById(mess).cloneNode(true);
   mess.removeAttribute('id');
   MObj.appendChild(mess);
  }
  if (obj){
   if (document.all){ // for IE
    MObj.style.left=(zxcPos(obj)[0])+'px';
    MObj.style.top=(zxcPos(obj)[1]+30)+'px';
   }
   else { // for most other browsers
    MObj.style.left=(zxcPos(obj)[0])+'px';
    MObj.style.top=(zxcPos(obj)[1]+30)+'px';
   }
  }
  MObj.style.visibility='visible';
 }
 else {
  TO=setTimeout('MObj.style.visibility=\'hidden\';',500);
 }
}

function zxcPos(zxc){
 zxcl=zxc.offsetLeft;
 zxct=zxc.offsetTop;
 while(zxc.offsetParent!=null){
  zxcp=zxc.offsetParent;
  zxcl+=zxcp.offsetLeft;
  zxct+=zxcp.offsetTop;
  zxc=zxcp;
 }
 return [zxcl,zxct];
}

//-->

