<!--// JavaScript workaround for Microsoft/Eolas embedded Flash content issue,
// a.k.a. the "Click To Activate problem".
// *** NOTE *** This will also work for pages with multiple SWF objects!
//
// To use this .js file, be sure to include it in the HEAD tag, 
// ALSO -- insert SCRIPT tags where you want the SWF to appear,
// using this function call:
//	InsertSWF("PATH","WIDTH","HEIGHT");
// 	PATH is the relative or absolute URL to the SWF file (e.g., "/flash/main.swf")
//	WIDTH is the width of the SWF, in pixels (number only!)
//	HEIGHT is the height of the SWF, in pixels (number only!)
//
// This function will be called and write-in the appropriate Object code:
function InsertSWF(swfPath,swfWidth,swfHeight) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+swfWidth+'" height="'+swfHeight +'">');
	document.write('<param name="movie" value="'+swfPath+'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<param name="wmode" value="opaque">');
	document.write('<embed src="'+swfPath+'" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+swfWidth+'" height="'+swfHeight +'"></embed>');
	document.write('</object>');
	}
// -->
<!--
function startList(elementID) {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById(elementID);
		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= function(){
//	startList();
	// add startList2(); IF you have another dropdown menu
	// you can also add additional onLoad functions after the initial startList();
	// ex. add MM_preloadImages(); this will avoid the error of the drop down not working
// to add a second drop down menu you'll need another instance of the above funtion startList(), but you need to call it a different name, ex. funtion startList2(). You will also need to give it a unique ID, ex. navRoot = document.getElementById("navList2");
//}

window.onload= function(){
	startList("navList");
	//startList("navList2");
}
//-->
//---form checker

function CheckForm()
{
	frm = document.contact;
	
	if (frm.email.value.length <= 0)
	{
		alert("Your Email Address Is Required");
		return false;
	}
			
	if (checkEmailAddress(frm.email.value))
	{
		return true;
	}else{
		return false;
	}
	
	return true;
}

function checkEmailAddress (subject)
{
	if (subject.match(/\b[a-zA-Z0-9._%-]+@[a-zA-Z0-9._%-]+\.[a-zA-Z]{2,4}\b/)) {
		return true;
	} else {
		alert('Invalid Email Address\nPlease verify the email address');
		return false;
	}
}
//-->

