function virtualtour1(file){newurl='../mod_panorama/mod_panorama.php?db='+db+'&w=500&h=340&file='+file;nw=window.open(newurl,'nwi1','width=500,height=340');nw.focus();}
function virtualtour2(file){newurl='../mod_panorama/mod_panorama.php?db='+db+'&w=800&h=550&file='+file;nw=window.open(newurl,'nwi2','width=800,height=550');nw.focus();}

function divshow(div, status) {
 if (status == '') {
  if (document.getElementById(div).style.display=='none') {
   status = 'block';
  } else {
   status = 'none';
  }
 }
 document.getElementById(div).style.display=status;
}

wmtt=null;globIndex=50;document.onmousemove=updateWMTT;var xwert=50;var ywert=50;function updateWMTT(e){x=(document.all)?window.event.x+document.documentElement.scrollLeft:e.pageX;y=(document.all)?window.event.y+document.documentElement.scrollTop:e.pageY;if(wmtt!=null){xwert=x-125;ywert=y-12;wmtt.style.left=xwert+"px";wmtt.style.top=ywert+"px";}}
function startWMTT(id){wmtt=document.getElementById(id);++globIndex;wmtt.style.zIndex=globIndex;}
function stopWMTT(){wmtt=null;}
function showWMTT(id){var allPageTags=new Array();var allPageTags=document.getElementsByTagName('div');for(i=0;i<allPageTags.length;i++){if(allPageTags[i].className=='tooltip'){allPageTags[i].style.display='none';}}
wmtt=document.getElementById(id);wmtt.style.display="block";if(xwert!=""){wmtt.style.left=xwert+"px";}
if(ywert!=""){wmtt.style.top=ywert+"px";}
wmtt=null;}
function hideWMTT(id){wmtt=document.getElementById(id);wmtt.style.display="none";wmtt=null;}
function toFrontWMTT(id){wmtt=document.getElementById(id);++globIndex;wmtt.style.zIndex=globIndex;wmtt=null;}

