function fl(i, n, w, h, p)
{	
	if (checkPlugin()) {
		document.getElementById(i).innerHTML = 
			'<object type="application/x-shockwave-flash" data="/pics/'+n+'.swf" width="'+w+'" height="'+h+'">'+
			'<param name="movie" value="pics/'+n+'.swf" />'+
			'<param name="flashvars" value="imgSrc='+p+'" />'+
			'<embed src="pics/'+n+'.swf" width="'+w+'" height="'+h+'" name="Venere Azzurra Banner" />'+
			'</object>';
	}
}

function flExt(i, n, w, h)
{	
	if (checkPlugin()) {
		document.getElementById(i).innerHTML = 
			'<object type="application/x-shockwave-flash" data="../images/banners/'+n+'.swf" width="'+w+'" height="'+h+'">'+
			'<param name="movie" value="../images/banners/'+n+'.swf" />'+
			'<embed src="../images/banners/'+n+'.swf" width="'+w+'" height="'+h+'" name="Venere Azzurra Banner" />'+
			'</object>';
	}
}

function checkPlugin()
{
	
	if(navigator.plugins["Shockwave Flash"])
		return true;
	else
	{
		var isInstalled = false;
		var version = null;
		if (window.ActiveXObject) {
			var control = null;
			try {
				control = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
			} catch (e) {
				return false;
			}
			if (control) {
				isInstalled = true;
				version = control.GetVariable('$version').substring(4);
				version = version.split(',');
				version = parseFloat(version[0] + '.' + version[1]);
				return true;
			}
		} else {
			return false;
		}	
	}
}
