// JavaScript Document

function handleDiv(id, mitem) {
	if( id == openbox ) { return; }
	var box = document.getElementById(id);
	var mitemhighlight = document.getElementById(mitem);
	
	//box.style.display = "none"
	box.style.display = "block";
	mitemhighlight.style.color = "#EAB649";
	
	if( openbox == "nothing" ) 
	{ 
		openbox = id;
		highlight = mitem; 
		return; 
	}
	var closebox = document.getElementById(openbox);
	var mitemold = document.getElementById(highlight);
	
	closebox.style.display = "none";
	mitemold.style.color = "#008243";
	//mitemold.removeAttribute('style');
	
	openbox = id;
	highlight = mitem;

}

function ValidateEmail(f, name) {
	if(name == "contact") {
		var o = document.getElementById('email');
		var b = document.getElementById('confirm-email');
		if(o.value!=b.value){
			alert("Your email addresses do not match.  Please re-enter your email address and confirm.");
			o.value="";
			b.value="";
			o.style.backgroundColor = "yellow";
			b.style.backgroundColor = "yellow";
			o.focus()
			return false;
		}
		else { return true; }
	}
}		

/*function getFlash() {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="186" height="140" id="FLVPlayer">\n');
	document.write('<param name="movie" value="resources/FLVPlayer_Progressive.swf" />\n');
	document.write('<param name="salign" value="lt" />\n');
	document.write('<param name="quality" value="high" />\n');	
	document.write('<param name="scale" value="noscale" />\n');
	document.write('<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=resources/Corona_Skin_2&streamName=resources/News_Video&autoPlay=false&autoRewind=false" />\n');
	document.write('<embed src="resources/FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=resources/Corona_Skin_2&streamName=resources/News_Video&autoPlay=false&autoRewind=false" quality="high" scale="noscale" width="186" height="140" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" />\n');
}*/