function flashEmbed(fpath,fwidth,fheight) {
document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' width=\'"+fwidth+"\' height=\'"+fheight+"\' align='middle'><param name='salign' value='lt' /><param name='scale' value='noscale' /><param name='movie' value=\'"+fpath+"\' /><param name='quality' value='high' /><param name='wmode' value='transparent' /><embed src=\'"+fpath+"\' type='application/x-shockwave-flash' width=\'"+fwidth+"\' height=\'"+fheight+"\' quality='high' menu='false' scale='noscale' salign='lt' align='middle' wmode='transparent'></object>");
}

function validate_form ( )
{
    valid = true;

    if ( document.contact_form.email.value == "" )
    {
        alert ( "Please enter your email address" );
        valid = false;
    }
	    if ( document.contact_form.message.value == "" )
    {
        alert ( "Please enter your comments" );
        valid = false;
    }

    return valid;
}

function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
// if cookie exists
if (offset != -1) { 
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function toggleVisibility(me){
		if (me.style.visibility=="hidden"){
			me.style.visibility="visible";
			//alert("hidden");
			}
		else {
			me.style.visibility="hidden";
			//document.getElementById("vidwindow").style.visibility="hidden";
			//alert("visable");
			}
		}
	function changeText(vwidth,vheight,vsrc){
	document.getElementById('vidContainer').innerHTML = "<div id=\'vidwindow\'><div id=\'player\'><embed width=\'"+vwidth+"\' height=\'"+vheight+"\' src=\'"+vsrc+"\' fullscreen=\'true\'></div></div>";
	//alert("<div id=vidwindow><embed width=\'"+vwidth+"\' height=\'"+vheight+"\' src=\'"+vsrc+"\' fullscreen=\'true\'></div>");
	}
function removePlayer() {
document.getElementById('vidContainer').innerHTML = " ";	
}





