/*VISIBLE FILE*/

var descriptions = new Array();

descriptions["dect"] = "<ul><li><span class=\"redbold\">New </span><span class=\"blackbold\">DECT 6.0 Technology</span><br>-Interference Free Communication<br>-Increased Clarity / Enhanced Security<br>-Wider Range / Network Friendly<li><span class=\"frequency\">1.9GHz </span>Cordless Phone<span class=\"bluebold\"><br>-Frequency Dedicated for Cordless Phones by the FCC</span><br>-30% Battery Life Increase Over 5.8GHz</ul><br>DECT (Digital Enhanced Cordless Telecommunications) is a digital wireless telephone technology created strictly for telecommunication use, allowing clear sound, no interference and longer range. They are ideal for home and office system use and have 30% more battery life expectancy over 5.8GHz and 2.4GHz phones. The new DECT phone has the unique quality and the practical features you are looking for. </div>";
descriptions["PAN-Document-Management"] = "<div style=\"padding-bottom: 2px;\"><img src=\"/content/images/101phones/logos/logo-Panasonic-Ideas.jpg\"><br><br><span class=\"blackbold\">Document Management</span><br><br>When used with the optional KX-FA102 LAN board, each user can choose which output bin printouts will exit from. This can allow each workgroup to customize the document management to suit their needs. ";
descriptions["PAN-Quick-Scan"] = "<div style=\"padding-bottom: 2px;\"><img src=\"/content/images/101phones/logos/logo-Panasonic-Ideas.jpg\"><br><br><span class=\"blackbold\">Quick Scan</span><br><br>Spend less time waiting for your documents to scan! Models with this feature rapidly scan documents into the built-in memory, so you can quickly retrieve the pages and get back to work. Then, the document is transmitted from memory.</div>";
descriptions["PAN-Broadcasting"] = "<div style=\"padding-bottom: 2px;\"><img src=\"/content/images/101phones/logos/logo-Panasonic-Ideas.jpg\"><br><br><span class=\"blackbold\">Broadcasting</span><br><br>If you're sending the same fax to multiple locations, you can program the unit to do so automatically, eliminating the need to manually repeat the sending process for each location. Documents are stored in memory and faxed in succession to each of the locations you program.</div>";



/*****************************************************
*************TOUCH NOTHING BELOW THIS*****************
*****************************************************/

var table;


table = "\n<table cellspacing=\"0\">";
table = table +	"\n<tr>";
table = table +	"\n<td class=\"top_left\"></td>";
table = table +	"\n<td class=\"top\"></td>";
table = table +	"\n<td class=\"top_right\"></td>";
table = table +	"\n</tr>";
table = table +	"\n<tr>";
table = table +	"\n<td class=\"left\"></td>";
table = table +	"\n<td class=\"pkg_pop_content\">";
table = table +	"\n<div id=\"toolTipContent\">";
table = table +	"\n</div>";
table = table +	"\n</td>";
table = table +	"\n<td class=\"right\"></td>";
table = table +	"\n</tr>";
table = table +	"\n<tr>";
table = table +	"\n<td class=\"bottom_left\"></td>";
table = table +	"\n<td class=\"bottom\"></td>";
table = table +	"\n<td class=\"bottom_right\"></td>";
table = table +	"\n</tr>";
table = table +	"\n</table>";


function getDivContents(fID)
{
	contentDiv = document.getElementById('toolTipContent');
	contentDiv.innerHTML = descriptions[fID];

}

function setVis(id)
{
	var obj = id;
	if(obj)
	{
	obj.style.visibility = 'visible';
	}
}

function showTip(id,fID,e)
{

	var divToShow = document.getElementById(id);
	divToShow.innerHTML = table;
	getDivContents(fID);
	positionTip2(id,e);
	divToShow.style.display = 'block';
	divToShow.style.visibility = 'visible';
}


function hideTip(id)
{
	var divToHide = document.getElementById(id);
	divToHide.style.display = 'block';
	divToHide.style.visibility = 'hidden';
}


var TIPoffsetfromcursorX=10;
var TIPoffsetfromcursorY=30;

var TIPoffsetdivfrompointerX=10;
var TIPoffsetdivfrompointerY=101;

var ie=document.all;
var ns6=document.getElementById && !document.all;

var curX;
var curY;

var winheight;
var winwidth;

var leftedge;
var rightedge;

var bottomedge;
var topedge;


function ietruebody()
{
	
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
}

function positionTip2(div_id,e)
{
    
	curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
	curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop-220;

	winheight=ie&&!window.opera? ietruebody().clientHeight : window.innerHeight;
	winwidth=ie&&!window.opera? ietruebody().clientWidth : window.innerWidth+20;

	leftedge=ie&&!window.opera? event.clientX-TIPoffsetfromcursorX : e.clientX-TIPoffsetfromcursorX;
	rightedge=ie&&!window.opera? winwidth-event.clientX-TIPoffsetfromcursorX : winwidth-e.clientX-TIPoffsetfromcursorX;
	
	bottomedge=ie&&!window.opera? winheight-event.clientY-TIPoffsetfromcursorY : winheight-e.clientY-TIPoffsetfromcursorY;
	topedge=ie&&!window.opera? event.clientY+TIPoffsetfromcursorY : e.clientY+TIPoffsetfromcursorY;
	
    /*myX1.innerHTML = curX + " (" + leftedge + ")" ;
    myY1.innerHTML = curY + " (" + topedge + ")" ;
    myX.innerHTML = winwidth + " (" + winheight  + ")";
    myY.innerHTML = rightedge + " (" + bottomedge + ")"; */
                
	displaytip2(div_id);
}


function displaytip2(div_id)
{

	var tipobj = document.getElementById(div_id);
	
	showfirsttime=false;
		var nondefaultpos=false
		var nondefaultYpos=false
		
		var tiptop=0
		
		var testpos=false;
		
		var tippos=(curY+TIPoffsetfromcursorY-(tipobj.offsetHeight/3))
		
		if ((tippos>=curY-topedge-1) && (tippos+tipobj.offsetHeight-10<=curY+bottomedge))
		{testpos=true;}
		else
		{
			tippos=(curY+TIPoffsetfromcursorY-(tipobj.offsetHeight/2))
			if ((tippos>=curY-topedge-1) && (tippos+tipobj.offsetHeight-10<=curY+bottomedge))
			{testpos=true;}
			else
			{
				tippos=(curY+TIPoffsetfromcursorY-(tipobj.offsetHeight*2/4))
				if ((tippos>=curY-topedge-1) && (tippos+tipobj.offsetHeight-10<=curY+bottomedge))
				{testpos=true;}
			}
		
		}
		
		if (testpos)
		{
			tipobj.style.top=tippos+"px"
			tiptop=tippos
		}
		else
		{
			if (topedge<tipobj.offsetHeight-25)
			{
				tipobj.style.top=curY-topedge+"px"
				tiptop=curY-topedge
			}
			else
			{
				if (bottomedge<tipobj.offsetHeight-10)
				{
					tipobj.style.top=curY+bottomedge-tipobj.offsetHeight+"px"
					tiptop=curY+bottomedge-tipobj.offsetHeight
					nondefaultYpos=true
				}
				else
				{
					tippos=(curY+TIPoffsetfromcursorY-(tipobj.offsetHeight/3))
					tipobj.style.top=tippos+"px"
					tiptop=tippos
					nondefaultYpos=true
				}
			}
		}
		if ((rightedge<tipobj.offsetWidth+TIPoffsetdivfrompointerX-25) && (leftedge>=tipobj.offsetWidth+TIPoffsetdivfrompointerX+TIPoffsetfromcursorX-5))
		{
			tipobj.style.left=curX-TIPoffsetfromcursorX-TIPoffsetdivfrompointerX-tipobj.offsetWidth+10+8+"px"
			nondefaultpos=true
		}
		else
		{
			tipobj.style.left=curX+TIPoffsetfromcursorX+TIPoffsetdivfrompointerX-10+"px"
		}
}