
startList = function() {

	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("TopMenu");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;

function toggleObj(sID,sLnk){
	var obj = document.getElementById(sID);
	var objLnk = document.getElementById(sLnk);
	if (obj.style.display=='none' || obj.style.display==''){
		obj.style.display='inline';
		objLnk.innerHTML = ' <img src="/images/ArrowUpRed.gif" border=0 align=absmiddle>';
	}else{
		obj.style.display='none';
		objLnk.innerHTML = 'more <img src="/images/ArrowDownRed.gif" border=0 align=absmiddle>';
	}
	objLnk.blur();
}


var currentState;

function getUpdate(typ,pr1,pr2,pid) {
	if(pid != "null") {
		if(typ == "state"){
			if (pr1 == '0') {
				currentState = 'playing';
			}else{
				currentState = 'stopped';
			}
		}
	}
}
	
function toggleHeader(sImg){
	var oImg = document.getElementById(sImg);
	var plyer = document.getElementById('mpl');
	if (currentState == 'playing'){
		oImg.src='Images/HdN_PauseTheVideo.gif';
	}else{
		oImg.src='Images/HdN_ViewTheVideo.gif';
	}
	oImg.blur();
}


function checkNewsLetterForm(theForm){
	if (theForm.Email.value==''){
		alert('Please enter your email address');
		theForm.Email.focus();
		return false;
	}	
	if (theForm.Email.value.indexOf('@')<1){
		alert('Please enter a valid email address');
		theForm.Email.focus();
		return false;
	}
	if (theForm.First_name.value==''){
		alert('Please enter your first name');
		theForm.First_name.focus();
		return false;
	}
	if (theForm.Last_name.value==''){
		alert('Please enter your last name');
		theForm.Last_name.focus();
		return false;
	}
	return true;
}


function checkContactUsForm(theForm){
	if (theForm.fullname.value==''){
		alert('Please enter your full name');
		theForm.fullname.focus();
		return false;
	}
	if (theForm.address.value==''){
		alert('Please enter your address');
		theForm.address.focus();
		return false;
	}	
	if (theForm.email.value==''){
		alert('Please enter your email address');
		theForm.email.focus();
		return false;
	}	
	if (theForm.email.value.indexOf('@')<1){
		alert('Please enter a valid email address');
		theForm.email.focus();
		return false;
	}
	return true;
}


function checkShopButton(theForm){
	if (theForm.quantity.value=='' || theForm.quantity.value=='0'){
		alert('Please enter an quantity');
		theForm.quantity.focus();
		return false;
	}
}