function getStyleObject(objectId)
		{
			if (document.getElementById && document.getElementById(objectId)) {
				return document.getElementById(objectId).style;
			} else if (document.all && document.all(objectId)) {
				return document.all(objectId).style;
			} else {
				return false;
			}
		}
	
function flashInstalled(){
	var flashinstalled = false;
	if (navigator.plugins && navigator.plugins.length){
		x = navigator.plugins["Shockwave Flash"];
		if (x){
			flashinstalled = true;
		}
		else
			flashinstalled = false;
		if (navigator.plugins["Shockwave Flash 2.0"]){	
			flashinstalled = true;
		}
	}
	else if (navigator.mimeTypes && navigator.mimeTypes.length)
	{
		x = navigator.mimeTypes['application/x-shockwave-flash'];
		if (x && x.enabledPlugin)
			flashinstalled = true;
		else
			flashinstalled = false;
	}
	else {
		for(var i=10; i>0; i--){
			try{
				var flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i);		
				flashinstalled = true;
			}
			catch(e){
			}
		}	
	}
		return  flashinstalled;
}

function flashBanner(idFlash,idImg){
	if (!flashInstalled()){
		getStyleObject(idFlash).display = "none";
		getStyleObject(idImg).display = "block";
	}
}

