// =============================
// Developement : Coccinart SARL
// (c) 2004-2005
// =============================
//
// =============================
// Check for Flash plugin
// =============================

function CA_checkPlugin() { //v4.0
  var ok=false; plgIn='Shockwave Flash';
  with (navigator) if (appName.indexOf('Microsoft')!=-1 && appVersion.indexOf('Mac')==-1) document.write(''+
	'<scr'+'ipt language="VBScript">\nOn error resume next\n'+
	'CA_dir = IsObject(CreateObject("SWCtl.SWCtl.1"))\n'+
	'CA_flash = NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash"))\n</scr'+'ipt>');

  with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {
	ok=(plugins && plugins[plgIn]);
  } else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
    if (plgIn.indexOf("Flash")!=-1 && window.CA_flash!=null) ok=window.CA_flash;    
    else if (plgIn.indexOf("Director")!=-1 && window.CA_dir!=null) ok=window.CA_dir;}
	if (ok) return true;
	else return false;
}

function confirmation (msg, action, param) {
	if (confirm(msg)) {
		window.location.href=action+'?'+param;
	}
}
function confirmation(){
	alert();
}
