function pluginEnabled (mimeType) {
  var mo = navigator.mimeTypes[mimeType];
  return mo && mo.enabledPlugin ? true : false;
}
	
function IE()
	{
		return (navigator.appName == 'Microsoft Internet Explorer');
	}
	
function verifieFlash(p) {
	var os = navigator.platform
	os = os.substr(0,3)
	var hasFlash
	var swf 
	if (IE()&&(os=="Win")) {
		swf = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
	}
	else {
		swf = false;
	}
	if (swf || pluginEnabled('application/x-shockwave-flash')) {                 
		hasFlash  = 1
	}	
	else {
		hasFlash = 0;
	}
	if (hasFlash==0){
		newWindow = window.open(p,'siteWin','width=400,height=200,top=0,left=0,scrollbars=yes')
		newWindow.focus()
	}	
}

