
// Mouse Tip functions
// 1. JUST TXT
function showtipJUST_TXT(current,e,text)
{
   if (document.all)
   {
      thetitle=text.split('<br>')
      if (thetitle.length > 1)
      {
        thetitles=""
        for (i=0; i<thetitle.length; i++)
           thetitles += thetitle[i] + "\r\n"
        current.title = thetitles
      }
      else current.title = text
   }

   else if (document.layers)
   {
       document.tooltip.document.write( 
           '<layer bgColor="#FFFFE7" style="border:1px ' +
           'solid black; font-size:12px;color:#000000;">' + text + '</layer>')
       document.tooltip.document.close()
       document.tooltip.left=e.pageX+5
       document.tooltip.top=e.pageY+5
       document.tooltip.visibility="show"
   }
}

function hidetipJUST_TXT()
{
    if (document.layers)
        document.tooltip.visibility="hidden"
}

// 2. HTML AND IMAGES
/*
This code is from Dynamic Web Coding 
www.dyn-web.com 
Copyright 2001-2 by Sharon Paine 
Permission granted to use this code 
as long as this entire notice is included.
*/


// dw_tooltip.js contains onresize and onload handlers
// Put tooltip div and script tags for external js files at end of document

// avoid error of passing event object from link in older browsers
if (!document.getElementById && !document.all && !document.layers)
	event = "";

function hideTip() {} // avoid errors until loaded	

var tooltip;

/*
function calldoTooltip_PHOTO(evt,URL,URLDescription)
{
	var tip = '<table width="329" border="0" cellspacing="0" cellpadding="0">' +
			'<tr>' + 
				'<td colspan="3"><img src="<%=Request.ApplicationPath%>/pieces/mediapop_top.gif" width="350" height="12"></td>' +
			'</tr>' +
			'<tr>' + 
				'<td><img src="<%=Request.ApplicationPath%>/pieces/mediapop_left.gif" width="17" height="255"></td>' +
				'<td bgcolor="#000000" width="256">' + 
				'<table width="315" border="0" cellspacing="0" cellpadding="0" height="14">' +
					'<tr>' + 
					'<td>' +
						'<div align="center" style="z-index:0"><img src=' + PutBackReservedChar(URL) + ' width=315 height=250></div>' +
					'</td>' +
					'</tr>' +
				'</table>' +
				'</td>' +
				'<td><img src="<%=Request.ApplicationPath%>/pieces/mediapop_rght.gif" width="18" height="255"></td>' +
			'</tr>' +
			'<tr>' +
				'<td colspan="3"><img src="<%=Request.ApplicationPath%>/pieces/mediapop_bott.gif" width="350" height="33"></td>' +
			'</tr>' +
			'</table>' +
			'<div id="Layer1" style="position:absolute; left:79px; top:275px; width:248px; height:14px; z-index:1">' +
				'<div align="right"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><b>' + PutBackReservedChar(URLDescription) + '</b></font></div>' +
			'</div>';

	doTooltip(evt,tip);
}
*/

// See LocationExplorer.aspx.cs::ReplaceReservedChar() for details.
function PutBackReservedChar(str)
{
	str = str.replace("%26","&") ;
	str = str.replace("%27","'") ;
	
	return str ;
}

/*function calldoTooltip_VIEDO(evt,URL,URLDescription)
{
	var tip = '<table width="329" border="0" cellspacing="0" cellpadding="0">' +
			'<tr>' + 
				'<td colspan="3"><img src="<%=Request.ApplicationPath%>/pieces/mediapop_top.gif" width="350" height="12"></td>' +
			'</tr>' +
			'<tr>' + 
				'<td><img src="<%=Request.ApplicationPath%>/pieces/mediapop_left.gif" width="17" height="255"></td>' +
				'<td bgcolor="#000000" width="256">' + 
				'<table width="315" border="0" cellspacing="0" cellpadding="0" height="14">' +
					'<tr>' + 
					'<td>' +
						'<div align="center"><embed src=' + URL + ' width=315 height=225></div>' +
					'</td>' +
					'</tr>' +
				'</table>' +
				'</td>' +
				'<td><img src="<%=Request.ApplicationPath%>/pieces/mediapop_rght.gif" width="18" height="255"></td>' +
			'</tr>' +
			'<tr>' +
				'<td colspan="3"><img src="<%=Request.ApplicationPath%>/pieces/mediapop_bott.gif" width="350" height="33"></td>' +
			'</tr>' +
			'</table>' +
			'<div id="Layer1" style="position:absolute; left:79px; top:275px; width:248px; height:14px; z-index:1">' + 
				'<div align="right"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><b>' + URLDescription + '</b></font></div>' +
			'</div>';

	doTooltip(evt,tip);
}

function calldoTooltip_CAM(evt,URL,URLDescription)
{
		var tip = '<div align="left">' +
			'<table width="329" border="0" cellspacing="0" cellpadding="0">' +
				'<tr>' + 
				'<td colspan="3"><img src="<%=Request.ApplicationPath%>/pieces/mediapop_top.gif" width="350" height="12"></td>' +
				'</tr>' +
				'<tr>' + 
				'<td><img src="<%=Request.ApplicationPath%>/pieces/mediapop_left.gif" width="17" height="255"></td>' +
				'<td bgcolor="#000000" width="256">' + 
					'<table width="315" border="0" cellspacing="0" cellpadding="0" height="14">' +
					'<tr>' + 
						'<td>' + 
						'<div align="center"><img src=' + URL + ' width=315 height=225 border="0"></div>' +
						'</td>' +
					'</tr>' +
					'</table>' +
				'</td>' +
				'<td><img src="<%=Request.ApplicationPath%>/pieces/mediapop_rght.gif" width="18" height="255"></td>' +
				'</tr>' +
				'<tr>' + 
				'<td colspan="3"><img src="<%=Request.ApplicationPath%>/pieces/mediapop_bott.gif" width="350" height="33"></td>' +
				'</tr>' +
			'</table>' +
			'<div id="Layer1" style="position:absolute; left:79px; top:275px; width:248px; height:14px; z-index:1">' + 
				'<div align="right"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><b>' + URLDescription + '</b></font></div>' +
			'</div>' +
			'<map name="Map2">' +
				'<area shape="rect" coords="487,12,595,57" href="../../../../index.html">' +
			'</map>' +
		'</div>';

		doTooltip(evt,tip);
}

function calldoTooltip_360(evt,URL,URLDescription)
{
		var tip = '<table width="329" border="0" cellspacing="0" cellpadding="0">' +
			'<tr>' +
				'<td colspan="3"><img src="<%=Request.ApplicationPath%>/pieces/mediapop_top.gif" width="350" height="12"></td>' +
			'</tr>' +
			'<tr>' +
				'<td><img src="<%=Request.ApplicationPath%>/pieces/mediapop_left.gif" width="17" height="255"></td>' +
				'<td><applet code="zoompanoapplet" archive="zoompanoapplet.jar" codebase="http://zoom.maxvr.com:80/obj=delivery,1.0&amp;cmd=retrieve&amp;fif=Servercomponents/code" width=315 height=225 id="Applet1" VIEWASTEXT>' +
						'<param name="file" value=' + URL + '>' +
						'<param name="initialView" value="0.000000, 180.000005, 120.00000">' +
						'<param name="autospin" value="-60">' +
					'</applet></td>' +
				'<td><img src="<%=Request.ApplicationPath%>/pieces/mediapop_rght.gif" width="18" height="255"></td>' +
			'</tr>' +
			'<tr>' +
				'<td colspan="3"><img src="<%=Request.ApplicationPath%>/pieces/mediapop_bott.gif" width="350" height="33"></td>' +
			'</tr>' +
		'</table>' +
		'<div id="Layer1" style="position:absolute; left:79px; top:275px; width:248px; height:14px; z-index:1">' +
			'<div align="right"><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><b>' + URLDescription + '</b></font></div>' +
		'</div>' ;

		doTooltip(evt,tip);
}*/

function doTooltip(evt,txt) {
	if (!tooltip) return;
	var cntnt = wrapTip(txt);
	goTooltip(evt,cntnt);
}

// wrap tip content for formatting
function wrapTip(txt) {
	var cntnt = "";
	if (document.layers) {
		cntnt = '<table bgcolor="' + tipBorderColor + '" width="' + tipWidth + '" cellspacing="0" cellpadding="' + tipBorderWidth + '" border="0"><tr><td><table bgcolor="' + tipBgColor + '" width="100%" cellspacing="0" cellpadding="' + tipPadding + '" border="0"><tr><td><div style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + tipFontColor + ';">' + txt  + '</div></td></tr></table></td></tr></table>';
	} else cntnt = txt;
	return cntnt;
}

///////////////////////  CUSTOMIZE TOOLTIP HERE   ///////////////////////
// settings for tooltip (don't remove any of these variables!)

// Do you want tooltip to move when mouse moves over link?
var tipFollowMouse = false;	
// be sure to set tooltip width wide enough for widest image!
// take into account border and padding
var tipWidth = 262;	// width of tooltip in pixels

// how far from mouse to show tooltip
var tipOffX	= 8;	// horizontal offset
var tipOffY	= 12; // vertical offset

var tipFontFamily = "Verdana, arial, helvetica, sans-serif";
var tipFontSize	= "11px";	// string with pixels or points (px or pt)
// tooltip content line-height
var tipLineHeight	= 1.2;	// number	(recommend 1 to 1.3)
var tipFontColor = "#000000";
var tipBgColor = "#ffffff";	// tooltip background color
// background image for tooltip (leave empty string if no bg image)
var tipBgImg = "";	
// "breathing room" around tooltip content
var tipPadding = 0;	// integer (pixel value)

// leave a color in here even if you don't want a border
var tipBorderColor = "#000000"; 

// if you don't want a border, set tipBorderWidth to 0
var tipBorderWidth = 0; // integer (pixel value)

// if you don't want a border, set tipBorderStyle to "none"
// options for border style: "none", "solid", "ridge", "outset",
// "inset", "groove", "double", "dashed"
// (they won't look the same in all browsers though!)
var tipBorderStyle = "none"; 

//-->

