<!--
var imgy
var imgx
var centx
var offsetxpoint=15 //Customize x offset of tooltip
var offsetypoint=15 //Customize y offset of tooltip
var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
if (ie||ns6)
var tipobj=document.all? document.all["preview_div2"] : document.getElementById?
document.getElementById("preview_div2") : ""

var preview_div1lyr=document.all? document.all["preview_div1"] : document.getElementById?
document.getElementById("preview_div1") : ""

function ietruebody(){
	return (document.compatMode && document.compatMode!="BackCompat")?
	document.documentElement : document.body
}

function findPosX(obj)
  {
    var curleft = 0;
    if(obj.offsetParent)
        while(1) 
        {
          curleft += obj.offsetLeft;
          if(!obj.offsetParent)
            break;
          obj = obj.offsetParent;
        }
    else if(obj.x)
        curleft += obj.x;
    return curleft;
 }

 function findPosY(obj)
 {
   var curtop = 0;
   if(obj.offsetParent)
       while(1)
       {
         curtop += obj.offsetTop;
         if(!obj.offsetParent)
           break;
         obj = obj.offsetParent;
       }
   else if(obj.y)
       curtop += obj.y;
   return curtop;
 }

function showtip_scenes(thetext, thecolor, thewidth, theheight, theimg){
	var imgh = theimg.height
	var imgw = theimg.width
	var imgx = findPosX(theimg)
	var imgy = findPosY(theimg)
	var centx = imgx-(thewidth - imgw)/2
	var centy = imgy-(theheight - imgh)/2
	
	if (ns6||ie){
		tipobj.style.backgroundColor=thecolor
		tipobj.innerHTML=thetext
		tipobj.style.width=thewidth+"px"			
		tipobj.style.height=theheight+"px"	
		tipobj.style.top=centy+"px"
		tipobj.style.left=centx+"px"
		tipobj.style.visibility="visible"
		if(ie){
			preview_div1lyr.style.top=tipobj.style.top
			preview_div1lyr.style.display="block"
			preview_div1lyr.style.visibility="visible"
			preview_div1lyr.style.left= tipobj.style.left 
			preview_div1lyr.style.backgroundColor=thecolor
			preview_div1lyr.style.height = theheight
			preview_div1lyr.style.width= parseInt(thewidth)+0
		}
		return false
	}
}

function hidetip(){
	if (ns6||ie){
		enabletip=false
		tipobj.style.visibility="hidden"
		tipobj.style.left="-1000px"
		tipobj.style.backgroundColor=''
		tipobj.style.width=''
	}
	
	if (ie){
		preview_div1lyr.style.display="none"
		tipobj.style.visibility="hidden"
		preview_div1lyr.style.backgroundColor=''
		preview_div1lyr.style.width=''
	}
}

//-->