// JavaScript Document
if(typeof swfobject == "undefined"){
document.write('<script type="text/javascript" src="http://www.francescabellydance.it//js/swfobject.js"></script>');
}
Flash = function(path,div,w,h){
	this.id_div = div;
	this.width = w;
	this.height = h;
	this.idFlash='swfFlash';
	this.nomeFlash='swfFlash';
	this.swf=path;
	this.versione="10.0.0";
	this.flashvars = {};
	this.params = {menu: "true",salign: "lt",wmode: "transparent"};
	this.attributes = {id: this.idFlash,name: this.nomeFlash};
	this.display = function(){
		if(typeof swfobject == "undefined"){
			alert('Errore: manca SWFOBJECT !!');
		}else{
			swfobject.embedSWF(this.swf, this.id_div, this.width, this.height, this.versione,"http://www.francescabellydance.it//expressInstall.swf", this.flashvars, this.params, this.attributes);
		}
	},
	this.sfondoTrasparente = function(bool){
		modo=(bool)? 'transparent' : 'opaque';
		this.setParam('wmode',modo);
	},
	this.setIdObject = function(str){ this.idFlash=str; },
	this.setNomeObject = function(str){	this.nomeFlash=str; },
	this.setParam = function(nome,valore){ this.params[nome]=valore; },
	this.setVersion = function(str){ this.versione=str; },
	this.setVar = function(nome,valore){ this.flashvars[nome]=valore; }
}

