function flashEmbed(fpath,fwidth,fheight,fremove) {
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 nav() {
document.write("<a href='index.html'>HOME</a> | <a href='event.html'>FESTIVAL</a> | <a href='mini_series_westerns.html'>MINI-SERIES</a> | <a href='gala.html'>GALA</a> | <a href='sponsors.html'>SPONSORS</a> | <a href='contact.html'>CONTACT US</a>");
}

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 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=\'close\'><a href=\'JavaScript:removePlayer()\' onclick=\'toggleVisibility(document.getElementById(\"vidwindow\"))\'><img src=\'img/x.gif\' width=\'10\' height=\'9\' border=\'0\'></a></div><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 = " ";	
}



