/* -------------------------------------------------------------------------------- */
/* EMBED MOV */
/* -------------------------------------------------------------------------------- */
function embedQUICKTIME(fname, fwidth, fheight) {
	document.write("<OBJECT classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B'");
	document.write("width='" + fwidth + "' ");
	document.write("height='" + fheight + "' ");
	document.write("codebase='http://www.apple.com/qtactivex/qtplugin.cab'>");
	document.write("<param name='src' value='" + fname + "'>");
	document.write("<param name='autoplay' value='false'>");
	document.write("<param name='controller' value='true'>");
	document.write("<param name='loop' value='false'>");
	document.write("<EMBED ");
	document.write("src='" + fname + "' width='" + fwidth + "' height='" + fheight + "' autoplay='false'");
	document.write("controller='true' loop='false' bgcolor='#000000'");
	document.write(" pluginspage='http://www.apple.com/quicktime/download/'>");
	document.write("</EMBED>");
	document.write("</OBJECT>");
}


/* -------------------------------------------------------------------------------- */
/* EMBED WMV */
/* -------------------------------------------------------------------------------- */

function embedASF(fname, fwidth, fheight) {
	document.write("<OBJECT id='mediaPlayer' ");
	document.write("width='" + fwidth + "' ");
	document.write("height='" + fheight + "' ");
	document.write("classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'");
	document.write("codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'");
	document.write("standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>");
	document.write("<param name='fileName' value='" + fname + "'>");
	document.write("<param name='animationatStart' value='1'>");
	document.write("<param name='transparentatStart' value='1'>");
	document.write("<param name='autoStart' value='1'>");
	document.write("<param name='ShowControls' value='1'>");
	document.write("<param name='loop' value='0'>");
	document.write("<EMBED type='application/x-mplayer2' ");
	document.write("pluginspage='http://microsoft.com/windows/mediaplayer/ en/download/'");
	document.write("id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='0' ");
	document.write("bgcolor='darkblue' showcontrols='1' showtracker='1' ");
	document.write("videoborder3d='0' width='" + fwidth + "' height='" + fheight + "'");
	document.write("src='" + fname + "' autostart='1' designtimesp='5311' loop='0'>");
	document.write("</EMBED>");
	document.write("</OBJECT>");
}



/* -------------------------------------------------------------------------------- */
/* EMBED mp3 */
/* -------------------------------------------------------------------------------- */
function embedMP3(fname, fwidth, fheight) {
	document.write("<OBJECT classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B'");
	document.write("width='" + fwidth + "' ");
	document.write("height='" + fheight + "' ");
	document.write("codebase='http://www.apple.com/qtactivex/qtplugin.cab'>");
	document.write("<param name='src' value='" + fname + "'>");
	document.write("<param name='autoplay' value='false'>");
	document.write("<param name='controller' value='true'>");
	document.write("<param name='loop' value='false'>");
	document.write("<EMBED ");
	document.write("src='" + fname + "' width='" + fwidth + "' height='" + fheight + "' autoplay='false'");
	document.write("controller='true' loop='false' bgcolor='#000000'");
	document.write(" pluginspage='http://www.apple.com/quicktime/download/'>");
	document.write("</EMBED>");
	document.write("</OBJECT>");
}
/* -------------------------------------------------------------------------------- */
/* CROSS-BROSWER OBJECT DEFINER */
/* -------------------------------------------------------------------------------- */
function obj(objectId){
	if (document.getElementById && document.getElementById(objectId)) {
		return document.getElementById(objectId);
	} else if (document.all && document.all(objectId)) {
		return document.all(objectId);
	} else {
		return false;
	}
}
function toggleFlip(div) {
	
	if(obj(div).style.display == "block") {
		obj(div).style.display = "none";
	} else if(obj(div).style.display == "none"){
		obj(div).style.display = "block";
	}
	else if(obj(div).style.display == ""){
		obj(div).style.display = "block";
	}	
}

/* -------------------------------------------------------------------------------- */
function toggle(divShow, divHide){
	obj(divShow).style.display = "block";	
	obj(divHide).style.display = "none";
}
/* -------------------------------------------------------------------------------- */
function show(div){
	obj(div).style.display = "block";	
	if (divActive!=''){
		hide(divActive);
	}
	divActive = div;
}
/* -------------------------------------------------------------------------------- */
function hide(div){
	obj(div).style.display = "none";	
}
