var SearchTimer = null;


// Detect if the browser is IE or not.
// If it is not IE, we assume that the browser is NS.
var IE = document.all?true:false

// If NS -- that is, !IE -- then set up for mouse capture
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;
// Temporary variables to hold mouse x-y pos.s
var tempX = 0
var tempY = 0

// Main function to retrieve mouse x-y pos.s

function getMouseXY(e) {
if (IE) { // grab the x-y pos.s if browser is IE
tempX = event.clientX + document.body.scrollLeft;
tempY = event.clientY + document.body.scrollTop;
} else { // grab the x-y pos.s if browser is NS
tempX = e.pageX;
tempY = e.pageY;
}
// catch possible negative values in NS4
if (tempX < 0){tempX = 0}
if (tempY < 0){tempY = 0}

}

function displayPopup(id)
{
	/*
	if(!$("helpPopup"+id))
	{
		img = "<img src='images/vote1.gif' width='15' height='15' align='left'>";
		createDiv("helpPopup1",220,20,img+ " - Click here to make this your 1st choice");
		img = "<img src='images/vote2.gif' width='15' height='15' align='left'>";
		createDiv("helpPopup2",220,20,img+" - Click here to make this your 2nd choice");	
		img = "<img src='images/vote3.gif' width='15' height='15' align='left'>";
		createDiv("helpPopup3",220,20,img+" - Click here to make this your 3rd choice");
	}

	$('helpPopup'+id).style.left = tempX+20+"px";
	$('helpPopup'+id).style.top = tempY+"px";
	$('helpPopup'+id).style.display = "block";
        */
        
}

function hidePopup(id)
{
        Swc.ClosePopup();
	if($("helpPopup"+id))
	{
	$('helpPopup'+id).style.display = "none";
	}

}


function createDiv(id, width, height,text)
{
   newdiv = document.createElement('div');
   newdiv.setAttribute('id', id);
   newdiv.style.padding = "2px";
   newdiv.style.height = height+"px";
   newdiv.style.position = "relative";	
   newdiv.style.display = "none";
   newdiv.style.background = "ivory";
   newdiv.style.border = "1px solid #000";
   newdiv.style.padding = "8px;";
  // newdiv.style.fontSize = "xx-small;";
   newdiv.innerHTML = text; 
   document.body.appendChild(newdiv);
}

