/*
Copyright (c) 2005 Your Events, Etcetera.
Written and designed by Gavamedia Corporation.
*/



// Prints the sidebar appropriately for either IE or Firefox.
function PrintSidebarLink(href, text)
{
	if (navigator.appName == "Microsoft Internet Explorer") document.write("<a href=\"" + href + "\" style=\"width: 100%\">" + text + "<\/a>");
	else document.write("<a style=\"margin: 3px 3px 0px 3px; padding: 3px 5px 3px 5px; font-size: 11px\" href=\"" + href + "\">" + text + "<\/a>");
}



// Prints the main table on the home page according to the user's screen resolution.
function PrintHomePage() {
	var tableWidth;
	var tdWidth;
	var resolutionWidth;

	// Choose a random picture number (1 to 3)...
	var aPicNum = (Math.floor(Math.random() * 3) + 1).toString();
	var bPicNum = (Math.floor(Math.random() * 3) + 1).toString();
	var cPicNum = (Math.floor(Math.random() * 3) + 1).toString();	

	// Determine appropriate layout size.
	tableWidth = "575";
	tdWidth = "1000";
	resolutionWidth = "1280";
	//if (screen.width >= 1280) { tableWidth = "575"; tdWidth = "1000"; resolutionWidth = "1280"; }//1280
	//else { tableWidth = "575"; tdWidth = "100"; resolutionWidth = "800"; }
	

	// Write the table.
	document.writeln("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"" + tableWidth + "px\">");
	document.writeln("	<tr>");
	document.writeln("		<td rowspan=\"2\"><img src=\"images\/home_" + resolutionWidth + "_A" + aPicNum + ".jpg\" alt=\"Event planning\" \/><\/td>");
	document.writeln("		<td><a href=\"conference_planning.html\"><img src=\"images\/home_" + resolutionWidth + "_B" + bPicNum + ".jpg\" alt=\"Conference planning made easy\" \/><\/a><\/td>");
	document.writeln("	<\/tr>");
	document.writeln("	<tr>");
	document.writeln("		<td style=\"width: " + tdWidth + "px\"><a href=\"rewards_gift_baskets.html\"><img src=\"images\/home_" + resolutionWidth + "_C" + cPicNum + ".jpg\" alt=\"Gifts for all occasions\" \/><\/a><\/td>");
	document.writeln("	<\/tr>");
	document.writeln("<\/table>");
/*
	document.writeln("<div class=\"Home\">");
	document.writeln("	Exceeding all your special occasion's...");
	document.writeln("	<br \/>");
	document.writeln("	<img src=\"images\/heading_A1.gif\" style=\"cursor: default\" onmouseover=\"this.src='images\/heading_A2.gif'\" onmouseout=\"this.src='images\/heading_A1.gif'\" alt=\"\" \/>");
	document.writeln("	<br \/>");
	document.writeln("	<img src=\"images\/heading_B1.gif\" style=\"cursor: default\" onmouseover=\"this.src='images\/heading_B2.gif'\" onmouseout=\"this.src='images\/heading_B1.gif'\" alt=\"\" \/>");
	document.writeln("	<br \/>");
	document.writeln("	<img src=\"images\/heading_C1.gif\" style=\"cursor: default\" onmouseover=\"this.src='images\/heading_C2.gif'\" onmouseout=\"this.src='images\/heading_C1.gif'\" alt=\"\" \/>");
	document.writeln("	<br \/>");
	document.writeln("	needs.");
	document.writeln("<\/div>");*/
}