//Global objects
var sKeywords = [];
sKeywords["Domain"] = "A domain name is like a piece of real estate on the Internet.<br>It is your own bit of land upon which you can build a website,<br>receive emails and much more. Once a domain is registered it<br>remains under your ownership for the duration of the lease<br>period and can be renewed on a yearly (or more) basis.";
sKeywords["Dual port SMTP server"] = "Dual port SMTP servers come in handy when you are travelling or when your ISP has blocked port 25, which is common these days. With this you can bypass ISP limitations on sending mail.";
sKeywords["Internap"] = "Internap is a highly regarded premium bandwidth service featuring an intelligent BGP4 system which routes traffic over an optimal and uncongested (fastest) path. The result is a website that loads at blazing fast speeds. <u>Click the link to download the PDF whitepapers on this service</u>.";
sKeywords["Additional domains for $2 / month"] = "Each additional domain you want to host can be hosted for just $2 per month, and this will add an additional 2 GB storage to your account and 20 GB of transfer.";
sKeywords["1:10 contention ratio"] = "You will be 1 of 10 users on the server.";
sKeywords["1:8 contention ratio"] = "You will be 1 of 8 users on the server.";
sKeywords["1:6 contention ratio"] = "You will be 1 of 6 users on the server.";
sKeywords["1:4 contention ratio"] = "You will be 1 of 4 users on the server.";
sKeywords["No domain needed"] = "You don't need your own domain name to host on this plan. We will assign you a subdomain from our network, or if you do have  a domain you can use that too.";
sKeywords["Contact the management"] = "To get in touch with the executive management team of Reyox Communications, simply email management@reyox.com.";
sKeywords["Contact marketing"] = "To get in touch with the marketing team of Reyox Communications, simply email marketing@reyox.com.";
sKeywords["Contact the abuse department"] = "To get in touch with the abuse management team of Reyox Communications, simply email abuse.management@reyox.com.";





//Window creation functions

function showHelpFloatWindow(windowID, obj, horizPadding, vertPadding, goRight)
{
	var w = document.getElementById(windowID);
	if (w != null)
	{	
		w.style.display = 'block';
		w.style.visibility = 'visible';
		
		w.style.top = getAscendingTops(obj) + vertPadding;
		
		if (getAscendingTops(obj) + vertPadding < 0) w.style.top = 0;
		
		if (goRight == true)
			w.style.left = getAscendingLefts(obj) + obj.offsetWidth + horizPadding;
		else
		{
			w.style.left = getAscendingLefts(obj) - horizPadding;
			if ((getAscendingLefts(obj) - horizPadding) < 0) w.style.left = getAscendingLefts(obj) + obj.offsetWidth + horizPadding;
		}
	}
}


function hideHelpFloatWindow(windowID)
{
	var w = document.getElementById(windowID);
	if (w != null)
	{
		w.style.display = 'none';
		w.style.visibility = 'hidden';
		
		w.top = -999;
		w.left = -999;
	}
}

function getAscendingLefts(elem){
	if (elem==null)
		return 0;
	else
		return elem.offsetLeft+getAscendingLefts(elem.offsetParent);
}

function getAscendingTops(elem){
	if (elem==null)
		return 0;
	else
		return elem.offsetTop+getAscendingTops(elem.offsetParent);
}

function keyword(keyword, link, bold, styleClass)
{
	document.write("<a " + (styleClass != "" ? "class=\"" + styleClass + "\"" : "") + " href=\"" + (link != "" ? link : "#") + "\" onmouseover=\"showHelpFloatWindow('" + keyword + "', this, 10, 20, true);MM_displayStatusMsg('Click here');return true;\">" + (bold == 1 ? "<b>" : "") + keyword + (bold == 1 ? "</b>" : "") + "</a>");

}

function tooltip(keyword, link, bold, styleClass)
{
	document.write("<a " + (styleClass != "" ? "class=\"" + styleClass + "\"" : "") + " href=\"" + (link != "" ? link : "#") + "\" onmouseover=\"showHelpFloatWindow('t_" + keyword + "', this, 10, 20, true);MM_displayStatusMsg('Click here');return true;\" onmouseout=\"hideHelpFloatWindow('t_" + keyword + "');\">" + (bold == 1 ? "<b>" : "") + keyword + (bold == 1 ? "</b>" : "") + "</a>");

}

function itooltip(keyword, link, src, width, height)
{
	document.write("<a href=\"" + (link != "" ? link : "#") + "\" onmouseover=\"showHelpFloatWindow('t_" + keyword + "', this, 10, 20, true);MM_displayStatusMsg('Click here');return true;\" onmouseout=\"hideHelpFloatWindow('t_" + keyword + "');\"><img src=\"" + src + "\" width=\"" + width + "\" height=\"" + height + "\" border=0></a>");

}


//Write out the style sheet
document.write('<style>.HelpWindow{z-index: 999;position: absolute;top: -999px;left: -999px;display: none;visibility: hidden;background-color: lightyellow;border: dashed 1px black;}</style>');

//Write out the keyword windows
for(i in sKeywords)
{
	document.writeln(' <div id="' + i + '" class="HelpWindow"><table cellpadding=5><td bgcolor="#efefef"><table width=100%><td width=95%><b><u>' + i + '</u></b></td><td><a style="color:#000000;text-decoration:none" href="#"  onclick="hideHelpFloatWindow(\'' + i + '\');"><b>x</b></a></td></table></td><tr><td>' + sKeywords[i] + '</td></table></div>');
}

//Write out the tooltip windows
for(i in sKeywords)
{
	document.writeln(' <div id="t_' + i + '" class="HelpWindow"><table cellpadding=5><td>' + sKeywords[i] + '</td></table></div>');
}

