$(function(){
	/*Tooltip no flash*/		   
	$(".reglement").tooltip({ tip:"#bulle-reglement" }).dynamic({});
	
	/*Modale popup no flash*/
	$(".link-btn").colorbox({width:"600px", inline:true, href:"#login-modale"});
	
	/*affiche ou masque le lien service*/
	function affichelien(){
		var chemin = window.location.pathname;
		var testService = "service_diagnostic.html";
		var testServiceReg = new RegExp(testService);
		var testIndex = "index.html";
		var testIndexReg = new RegExp(testIndex);
		if(testServiceReg.test(chemin)){
			$('#details-service').show();
		}
		else if(testIndexReg.test(chemin)){
			$('#details').show();
		}

	}
	
	affichelien();
});


/*anim flash*/
var flashvars = {};
var params = {};
params.menu = "false";
params.quality = "best";
params.scale = "noscale";
params.wmode = "transparent";
params.allowscriptaccess = "always";
swfobject.embedSWF("swf/anim_DRMC3_733x635.swf", "DRMC", "733", "635", "9.0.0", "", flashvars, params);

/*modale popup */
function login()
{
	$.fn.colorbox({width:"600px", inline:true, href:"#login-modale"});
}

function lienDetails(){
		var chemin = window.location.pathname;
		var testService = "service_diagnostic.html";
		var testServiceReg = new RegExp(testService);
		var testIndex = "index.html";
		var testIndexReg = new RegExp(testIndex);
		if(testServiceReg.test(chemin)){
			document.location.href="service_details.html"
		}
		else if(testIndexReg.test(chemin)){
			document.location.href="details.html"
		}

	}
