var fieldstocheck = new Array();
    fieldnames = new Array();

function checkform() {
   document.subscribeform.elements["emailconfirm"].value = document.subscribeform.elements["email"].value;
  for (i=0;i<fieldstocheck.length;i++) {
    if (eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].value") == "") {
      alert("Please enter your "+fieldnames[i]);
      eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].focus()");
     
    }
  }
 document.subscribeform.submit();
 }

sfHover = function() {
	if (!document.getElementsByTagName) return false;
	
	var sfEls = document.getElementById("nav").getElementsByTagName("li");
	//var sfEls1 = document.getElementById("secnav").getElementsByTagName("li");
	// if you only have one main menu - delete the line above 
	
	
	//
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
	// if you only have one main menu - delete the "for" loop below //
	/*
	for (var i=0; i<sfEls1.length; i++) {
		sfEls1[i].onmouseover=function() {
			this.className+=" sfhover1";
		}
		sfEls1[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover1\\b"), "");
		}
	}
	*/
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

/*
sfHover = function() 
{
	var sfEls = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) 
	{
		sfEls[i].onmouseover=function() 
		{
			if (this.className == 'x') this.firstChild.style.color = "black";
			if (this.className == 'x') this.firstChild.style.backgroundColor = "white";

			
			//this.style.color = "#FFFFFF";			
			//this.style.backgroundColor = "#472e73";
			
			this.className += " sfhover";			
		}
		
		sfEls[i].onmouseout=function() 
		{
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			if (this.className == 'x') this.firstChild.style.color = "";
			if (this.className == 'x') this.firstChild.style.backgroundColor = "";
			
			
			
			//this.style.backgroundColor = "";			
		}
	}
}


if (window.attachEvent) window.attachEvent("onload", sfHover);




var menu_stuff =
{
	'#nav li' : function(element)
	{
		element.onmouseover = function()
		{
			//this.style.backgroundColor 	= "#472e73";	
			//this.firstChild.style.color	= "white";		
		};
				
		element.onmouseout = function()
		{
			//this.style.backgroundColor 	= "";			
			//this.firstChild.style.color	= "black";	

		};
	},
			
	'li.x' : function(element)
	{
		element.onmouseover = function()
		{
			this.style.backgroundColor 	= "rgb(255,255,255)";
			this.firstChild.style.color	= "black";						
		};
				
		element.onmouseout = function()
		{
			this.style.backgroundColor 	= "";
			this.firstChild.style.color	= "white";			
		};
		
	}
	
};


/*
function theFunction(e)
{  
	var tg = (e) ? e.target : window.event.srcElement;  
	if (tg.nodeType == 3)    
	tg = tg.parentNode;
}
*/
/*
Behaviour.register(menu_stuff);
//Behaviour.apply();
*/