/////////////////////////////////////////////
// Script for mouse over effects on tables //
/////////////////////////////////////////////


// Make some changes on mouse over
function mouseOver(tblObject,linkId,styleObj)
{
	// Set table background
    tblObject.className = styleObj;
	// Set link style
	document.getElementById(linkId).className = styleObj;
	// Change cursor icon
	if (navigator.appName.indexOf("Explorer") != -1) {
	    tblObject.style.cursor = 'hand';
	}
	else {
	    tblObject.style.cursor = 'pointer';
	}
}

// Make some changes on mouse out
function mouseOut(tblObject,linkId,styleObj)
{
	// Set table background
    tblObject.className = styleObj;
	// Set link style
	document.getElementById(linkId).className = styleObj;
}

// Open link on mouse click
function mouseClick(URL)
{
	// Forward to link
    document.location.href = URL;
}


///////////////////////////////////////
// Script for border style of tables //
///////////////////////////////////////

function getTableTag(color)
{
	var tabletag;

	// Write table tag if Netscape Browser
	if (document.layers) {
		tabletag = '<table width="350" cellspacing="0" cellpadding="10" align="left" border="1">';
	}
	// Write table tag if other Browser
	else {
		tabletag = '<table width="350" cellspacing="0" cellpadding="10" align="left" border="0" style="border:solid 2px ' + color + ';">';
	}

	return tabletag;
}

