normal = new Array();
normal[0] = "/kids/images/hp_my_energy_nav_off.gif";
normal[1] = "/kids/images/hp_about_renew_nav_off.gif";
normal[2] = "/kids/images/hp_games_nav_off.gif";
normal[3] = "/kids/images/ln_home_page_off.gif";
normal[4] = "/kids/images/ln_my_energy_smart_off.gif";
normal[5] = "/kids/images/ln_about_renew_off.gif";
normal[6] = "/kids/images/ln_games_off.gif";

over = new Array();
over[0] = "/kids/images/hp_my_energy_nav_on.gif";
over[1] = "/kids/images/hp_about_renew_nav_on.gif";
over[2] = "/kids/images/hp_games_nav_on.gif";
over[3] = "/kids/images/ln_home_page_on.gif";
over[4] = "/kids/images/ln_my_energy_smart_on.gif";
over[5] = "/kids/images/ln_about_renew_on.gif";
over[6] = "/kids/images/ln_games_on.gif";


function msover(num) {
	loadImage = "Image" + num;
	document.images[loadImage].src = over[num]
}

function msout(num) {
	loadImage = "Image" + num;
	document.images[loadImage].src = normal[num]
}


function init_my_energy()
{
	if (document.getElementById)
		var x = document.getElementById('mouseovers').getElementsByTagName('IMG');
	else if (document.all)
		var x = document.all['mouseovers'].all.tags('IMG');
	else return;
	var preloads = new Object();
	for (var i=0;i<x.length;i++)
	{
		preloads['n'+x[i].id] = new Image;
		preloads['n'+x[i].id].src = 'images/'+ x[i].id + '_off.gif';
		preloads['o'+x[i].id] = new Image;
		preloads['o'+x[i].id].src = 'images/'+ x[i].id + '_on.gif';
		preloads['o'+x[i].id].onerror = function () {this.src='images/default.gif'}
		x[i].onmouseover = function () {this.src=preloads['o'+this.id].src;}
		x[i].onmouseout = function () {this.src=preloads['n'+this.id].src;}
	}
}


function init_about()
{
	if (document.getElementById)
		var x = document.getElementById('mouseovers').getElementsByTagName('IMG');
	else if (document.all)
		var x = document.all['mouseovers'].all.tags('IMG');
	else return;
	var preloads = new Object();
	for (var i=0;i<x.length;i++)
	{
		preloads['r'+x[i].id] = new Image;
		preloads['r'+x[i].id].src = 'images/'+ x[i].id + '_off.gif';
		preloads['o'+x[i].id] = new Image;
		preloads['o'+x[i].id].src = 'images/'+ x[i].id + '_on.gif';
		preloads['o'+x[i].id].onerror = function () {this.src='images/default.gif'}
		x[i].onmouseover = function () {this.src=preloads['o'+this.id].src;}
		x[i].onmouseout = function () {this.src=preloads['r'+this.id].src;}
	}
}


function checkEmail(WebmasterForm) 
{
    if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(WebmasterForm.email.value)) {
    return (ture)
    }
    alert("Invalid E-mail Address! Please re-enter.")
    return (false)
}
