
function flash(id,what,w,h)
{

	var swf='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=6,0,40,0" width='+w+' height='+h+'>';
	swf='<param name="movie" value="'+what+'" />';
	swf+='<PARAM NAME=quality VALUE=high />';
	swf+='<param name="menu" value="0" />'; 
	swf+='<param name="flashvars" value="loc=it_IT" />';
	swf+='<embed src="'+what+'" quality=high pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" flashvars="loc=it_IT" menu="0" width='+w+' height='+h+'></embed>';
	swf+="</object>";
	
	var md = document;
	var d = md.getElementById(id);
	d.innerHTML = swf;
}

function flash2(id,what,w,h)
{


	var swf='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=6,0,40,0" width='+w+' height='+h+'>';
	swf='<param name="movie" value="'+what+document.location.search+'" />';
	swf+='<PARAM NAME=quality VALUE=high />';
	swf+='<param name="menu" value="0" />'; 
	swf+='<param name="wmode" value="transparent" />';
	swf+='<param name="flashvars" value="loc=it_IT" />';
	swf+='<embed src="'+what+document.location.search+'" quality=high pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" flashvars="loc=it_IT" wmode="transparent" menu="0" width='+w+' height='+h+'></embed>';
	swf+="</object>";
	
	var md = document;
	var d = md.getElementById(id);
	d.innerHTML = swf;
}

function swfnocache(id,what,w,h)
{


	var swf='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=6,0,40,0" width='+w+' height='+h+'>';
	swf='<param name="movie" value="'+what+'?'+new Date().getTime()+'" />';
	swf+='<PARAM NAME=quality VALUE=high />';
	swf+='<param name="menu" value="0" />'; 
	swf+='<param name="wmode" value="transparent" />';
	swf+='<param name="flashvars" value="loc=it_IT" />';
	swf+='<embed src="'+what+'?'+new Date().getTime()+ '" loop="true" quality=high pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" flashvars="loc=it_IT" wmode="transparent" menu="0" width='+w+' height='+h+'></embed>';
	swf+="</object>";
	
	var md = document;
	var d = md.getElementById(id);
	d.innerHTML = swf;
}
function Replay(id,url){
document.getElementById(id).src=url;
}

function popup(src, w, h, name) {
	if (w == null) w = 450;
	if (h == null) h = 500;
	winl = (screen.width - w) / 2;
	wint = (screen.height - h) / 2;
	
	newPopup = window.open(src, name, 'toolbar=no,resizable=no,scrollbars=no,menubar=no,location=no,width='+w+',height='+h+', top='+ wint +',left='+ winl);
	newPopup.focus();
}


