var newWin = null;
var winData = '';
var winW = 336;
var winH = 350;
var windowprops = 'width='+winW+',height='+winH+',location=true,scrollbars=no,menubars=true,toolbars=true,resizable=yes';
var winAddr = document.location.href+'?w=1';
var winWe = 320;
var winHe = 500;
var windowpropsE = 'width='+winWe+',height='+winHe+',location=false,scrollbars=no,menubars=false,toolbars=false,resizable=yes';
var winAddrE = document.location.href+'?w=1';
var aryI=new Array('/free-help/assets/i/b_bookMarkNow_a.gif','/free-help/assets/i/b_setHomePage_a.gif','/free-help/assets/i/b_getReports_a.gif','/free-help/assets/i/b_enterContests_a.gif','/free-help/assets/i/b_tellAFriend_a.gif')
if (document.images) 
{
	aryL=new Array();
	for(i=0;i<aryI.length;i++)
	{
		aryL[i] = new Image(); aryL[i].src = aryI[i];
	}
}
function iLite(iId,iImg) 
{
	if (document.images) 
	{
		iId = iId.split('_')[1];
		iImg = '/free-help/assets/i/b_'+iId+'_'+iImg+'.gif';
		eval('i_'+iId+'.src=\''+iImg+'\'');
	}
}
function bookMarkNow() 
{
	if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) 
	{
		external.AddFavorite(document.location.href,document.title)
	}
	else
	{
		alert('Press "Ctrl+D" to Book Mark for an easy return.');
	}

}
function setHomePage(x) 
{
	if (document.all)
	{
		x.style.behavior='url(#default#homepage)';
		x.setHomePage(document.location.href);
	}
	else
	{
		alert('Drag the url icon from the address bar onto your "HOME" button to make this your home page.');
		return false;
		} 
	return false;
}
function checkWin() 
{
	if (newWin && newWin.open && !newWin.closed)
	{
		 writeToWin(winData);
	}
	else
	{
		 openNewWin(winData);
	}
}
function openNewWin(winData) 
{
	newWin = window.open(winAddr, 'infoWin', windowprops);
	winX=(screen.width/2)-(winW/2);
	winY=(screen.height/2)-(winH/2);
	newWin.window.moveTo(winX,winY);
}
function openWinEminder(winAddr) 
{
	eminderWin = window.open(winAddr, 'eminder', windowpropsE);
	winX=(screen.width/2)-(winWe/2);
	winY=(screen.height/2)-(winHe/2);
	eminderWin.window.moveTo(winX,winY);
}
function  writeToWin(winData) 
{
	newWin.location = winAddr;
	winX=(screen.width/2)-(winW/2);
	winY=(screen.height/2)-(winH/2);
	newWin.window.moveTo(winX,winY);
}
