
//must specify strPath before calling this page.

iHome_off		= new Image();
iHome_off.src	= strPath+"images/mt_home_off.gif";
iHome_on		= new Image();
iHome_on.src	= strPath+"images/mt_home_on.gif";

iWhat_off		= new Image();
iWhat_off.src	= strPath+"images/mt_whatwedo_off.gif";
iWhat_on		= new Image();
iWhat_on.src	= strPath+"images/mt_whatwedo_on.gif";

iWho_off		= new Image();
iWho_off.src	= strPath+"images/mt_whoweare_off.gif";
iWho_on			= new Image();
iWho_on.src		= strPath+"images/mt_whoweare_on.gif";

iClients_off	= new Image();
iClients_off.src = strPath+"images/mt_clients_off.gif";
iClients_on		= new Image();
iClients_on.src = strPath+"images/mt_clients_on.gif";

iRands_off	= new Image();
iRands_off.src = strPath+"images/mt_rands_off.gif";
iRands_on		= new Image();
iRands_on.src = strPath+"images/mt_rands_on.gif";

iContact_off	= new Image();
iContact_off.src = strPath+"images/mt_contact_off.gif";
iContact_on		= new Image();
iContact_on.src = strPath+"images/mt_contact_on.gif";



function OpenInWindow(url){
	var win = window.open(url,"wName","width=505,height=490,scrollbars=1");
	if( win != null ){
		win.focus();
	}
}


function changeImage( id, status ){
	if(document.images){
		document.images[id].src = eval(id+"_"+status+".src");	
	}
}


//--------------------------------------------------------------
aRandImg = new Array()
aRandImg[0]				  = strPath+"images/context_home_1.jpg";
aRandImg[aRandImg.length] = strPath+"images/context_home_2.jpg";
aRandImg[aRandImg.length] = strPath+"images/context_home_3.jpg";
aRandImg[aRandImg.length] = strPath+"images/context_home_4.jpg";
aRandImg[aRandImg.length] = strPath+"images/context_home_5.jpg";
aRandImg[aRandImg.length] = strPath+"images/context_home_6.jpg";

function DisplayHomepageImage(){
	var r = Math.round(Math.random() * (aRandImg.length-1));
	document.write("<img src='"+aRandImg[r]+"' border='0' style='float:left' alt='' />");	
}
//--------------------------------------------------------------