function topmenu_show(itemname)  {
	document.getElementById(itemname+"_topmenu").style.marginLeft = "-2000px";
	document.getElementById(itemname+"_topmenu_on").style.marginLeft = "0px";
	}


function topmenu_hide(itemname)  {
	document.getElementById(itemname+"_topmenu_on").style.marginLeft = "-2000px";
	document.getElementById(itemname+"_topmenu").style.marginLeft = "0px";
	}

//function showhighlight(menuitem)   {
//	menuitem.src = "/images/" + menuitem.name + "_on.gif";
//	}

//function hidehighlight(menuitem)   {
//	menuitem.src = "/images/" + menuitem.name + "_off.gif";
//	}

function init()  {
	if (document.getElementById)
		var x = document.getElementById('header').getElementsByTagName('IMG');
	else if (document.all)
		var x = document.all['header'].all.tags('IMG');
	else return;
	var preloads = new Object();
	for (var i=0;i<x.length;i++)  {
		if (x[i].name != "")  {
			preloads["n"+x[i].name] = new Image;
			preloads["n"+x[i].name].src = "/images/new/" + x[i].name + "_off.gif";
			preloads["o"+x[i].name] = new Image;
			preloads["o"+x[i].name].src = "/images/new/" + x[i].name + "_on.gif";
			x[i].onmouseover = function () {this.src=preloads["o"+this.name].src;}
			x[i].onmouseout = function () {this.src=preloads["n"+this.name].src;}
			}
		}
	}




//var mySlider;

//function init()   {

//	mySlider = new Fx.Slide('ourexp_submenu', {duration: 150});
//	mySlider.toggle() //toggle the slider up and down.
//	mySlider.hide(); 
//	}

function checkMainTempEmail(formname)   {
	theform = document.getElementById(formname);
	
	email=theform.emailaddress.value;
	if (email==""||((email.indexOf("@") == -1)||email.indexOf(".") == -1)) { 
		alert ("Your email address is either missing or in an invalid format...\n");
		email=theform.emailaddress.focus();
		}
	else  {
		theform.action="/join-list-process.aspx";
		theform.submit();
//		return true;
		}
	}


function checkMainTempEmail1(formname)   {
	theform = document.getElementById(formname);
	
	email=theform.emailaddress.value;
	if (email==""||((email.indexOf("@") == -1)||email.indexOf(".") == -1)) { 
		alert ("Your email address is either missing or in an invalid format...\n");
		email=theform.emailaddress.focus();
		//return false;
		}
	else  {

		theform.action="/ajaxpost.aspx";		
		theform.submit();
		//return true;
		}
	}



