// JavaScript Document
// Internet Strategic 2005
// *****************************
// DREAMWEAVER FUNCTIONS
// *****************************
// Preload images
function MM_preloadImages()
{ //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
// *****************************
// MENU FUNCTIONS
// *****************************
// Function to change colour of cell background on mouseover
function CellOver(sCell,sSwitch)
{
	switch (sSwitch)
	{
	case "GRYB":
		document.getElementById(sCell).style.backgroundColor="#D1D2D6"; //GREY-BLUE
		break;
	case "GOLD":
		document.getElementById(sCell).style.backgroundColor="#EAE3C9"; //GOLD
		break;
	case "PBLU":
		document.getElementById(sCell).style.backgroundColor="#F0F5F8"; //PALE-BLUE
		break;
	case "GRN":
		document.getElementById(sCell).style.backgroundColor="#AFBCB3"; //GREEN
		break;
	case "YLW":
		document.getElementById(sCell).style.backgroundColor="#F5F7C8"; //YELLOW-GREEN
		break;
	}
}

// Function to change image in cell on mouseover of adjacent cell
function MenuOver(sCell,sSwitch)
{
	switch (sSwitch)
	{
	case "ON":
		document.getElementById(sCell).src="images/Menus/gold_sunspot.gif";
		break;
	case "OFF":
		document.getElementById(sCell).src="images/Menus/blank.gif";
		break;
	}
}
// *****************************
// NAVIGATION FUNCTIONS
// *****************************
// Popup Window
function popUp()
{
	window.open('popup.htm','images','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, left=220, top=80, width=620, height=380');
}
