// JavaScript Document

	var params     = {};
	var flashvars  = {};
	var attributes = {};
	
	params.loop               = "false";
	params.menu               = "true";
	params.quality            = "autohigh"; // dunno if this does anything
	params.bgcolor            = "#FFFFFF";
	params.allowfullscreen    = "true";
	params.allowscriptaccess  = "always";
	params.wmode 			  = "transparent";
	
	
	//flashvars.file             = "<%=request.QueryString("file")%>.flv";
	//flashvars.file             = file + ".flv";
	//flashvars.displaywidth     = "512";
	//flashvars.displayheight    = "384";
	//flashvars.displaywidth     = "800";
	//flashvars.displayheight    = "470";
	flashvars.autostart    = "true";
	
	/* Redeclare width & height for IE
	   Set the stage height 2px smaller
	   than (displayheight plus controller)
	   to remove that nasty bar at the bottom
	*/
	//flashvars.width            = "512"; 
	//flashvars.height           = "384";
	//flashvars.width            = "800"; 
	//flashvars.height           = "468";
	flashvars.usefullscreen    = "true";
	flashvars.screencolor      = "000000";
	flashvars.lightcolor       = "FFFFFF";
	flashvars.frontcolor       = "FFFFFF";
	flashvars.backcolor        = "000000";
	flashvars.overstretch      = "true";
	flashvars.thumbsinplaylist = "false";
	flashvars.showicons        = "false";
	flashvars.enablejs         = "true";
	flashvars.javascriptid     = "mpl";
	
function video(w, h) {
	var path = ''
	if (location.href.indexOf('server-asp') > -1) {
		path = '/www.bcm.it/'
	}
	
	swfobject.embedSWF(""+ path +"swf/player.swf", "flashcontent", w, h, "9.0.0", false, flashvars, params, attributes);
}

function checkVideo(flv) {
	if (document.getElementById("lista_filmati")) {
		if (document.getElementById(flv)) {
			document.getElementById(flv).style.textDecoration = "underline";
			document.getElementById(flv).style.fontWeight = "bold";
		}
		var others = document.getElementById("lista_filmati").getElementsByTagName("div");
		//alert(others);
		for (i=0; i<others.length; i++) {
			var other = others[i];
			//alert(flv +" | "+ other.id);
			if (other.id != flv) {
				document.getElementById(other.id).style.textDecoration = "none";
				document.getElementById(other.id).style.fontWeight = "normal";
			}
		}
	}
}
