function runradar(img){
	var x;var y; 
	switch (img) {
	case 'imgr1':
		MM_swapImage('imgmetier1','','images/b_metier1_on.png',img,'','images/b_reseau_on.png',1);
		x='128px'; y='106px';
	break;
	case 'imgr2':
		MM_swapImage('imgmetier2','','images/b_metier2_on.png',img,'','images/b_reseau_on.png',1);
		 x='296px'; y='74px';
	break;
	case 'imgr3':
		MM_swapImage('imgmetier3','','images/b_metier3_on.png',img,'','images/b_reseau_on.png',1);
		x='376px'; y='136px';
	break;
	case 'imgr4':
		MM_swapImage('imgmetier4','','images/b_metier4_on.png',img,'','images/b_reseau_on.png',1);
		x='472px'; y='77px';
	break;
	case 'imgr5':
		MM_swapImage('imgmetier5','','images/b_metier5_on.png',img,'','images/b_reseau_on.png',1);
		x='566px'; y='136px';
	break;
	default: 
		x='128px'; y='106px';
	break;
	}		
	document.getElementById("cercleradar").style.left=x;
	document.getElementById("cercleradar").style.top=y;
	$("#cercleradar").show();
}
		
function stopradar(){
	MM_swapImgRestore();
	MM_swapImgRestore();
	$("#cercleradar").hide();
}



function animationback(){
	document.getElementById("wo").value="false";
	$("#poigner_fermetur_win").hide();
	$("#poigner_fermetur_win2").hide();
	$("#newwindow").animate({ left: "460px", width: "10px" }, 500).queue(function(){
		$("#newwindow").animate({ top: "190px", height: "10px" }, 500).queue(function(){
			$("#smallactu").hide().queue(function(){
				$("#fullactu").show().queue(function(){
					$("#newwindow").hide().queue(function(){
						document.getElementById('newwindow').innerHTML = "";
						$(this).animate({ left: "25px", top: "300px" }).queue(function(){
							change_banniere2();
							$("#blocInfos").animate({ width: "260px", height: "340px", left: "763px", top: "400px" }, 1000);
							$("#animation").animate({ height: "257px" }, 1000 );
							$("#content").animate({ width: "820px", height: "349px", left: "-113px", top: "389px" }, 1000 );
							$(this).dequeue();
						});
						$("#newwindow").dequeue();
					});
					$("#fullactu").dequeue();
				});
				$("#smallactu").dequeue();
			});
			$("#newwindow").dequeue();
		});
		$("#newwindow").dequeue();
	});
}



function animation(nwLeft, nwTop, url){
	document.getElementById("wo").value="true";
	$("#animation").animate({ height: "177px" }, 1000 );
	$("#content").animate({ width: "927px", height: "419px", left: "24px", top: "318px" }, 1000 );
	$("#blocInfos").animate({ width: "80px", height: "395px", left: "950px", top: "342px" }, 1000);
	$("#blocInfos").queue(function(){
		$("#fullactu").hide().queue(function(){
			$("#smallactu").show().queue(function(){
				$("#newwindow").animate({ left: nwLeft, top: nwTop }).queue(function(){
					$(this).show().queue(function(){
						$(this).animate({ top: "0px", height: "415px" }, 500);
						$(this).animate({ left: "0px", width: "925px" }, 500).queue(function(){
							//document.getElementById("modaliframe").src=url;
							$("#poigner_fermetur_win").show();
							$("#poigner_fermetur_win2").show();
							ajax_animation(url);
							$("#modaliframe").fadeIn();
							$(this).dequeue();
						});
						$(this).dequeue();
					});
					$(this).dequeue();
				});
				$(this).dequeue();
			});
			$(this).dequeue();
		});
		$(this).dequeue();
	});	
}




window.onload = (function(){try{
	var wo = false;

	
	MM_preloadImages('images/b_agence_roll.png',
									 'images/b_nos-metiers_off.png', 
									 'images/b_contact_off.png', 
									 'images/b_newsletter_off.png', 
									 'images/b_recrutement_off.png', 
									 'images/b_espace-client_off.png',
									 'image/b_reseau_on.png', 
									 'images/b_metier1_on.png', 
									 'images/b_metier2_on.png', 
									 'images/b_metier3_on.png', 
									 'images/b_metier4_on.png', 
									 'images/b_metier5_on.png'
									);

	$("#imgr1").click(function(){change_banniere();animation("212px","190px","plan_actions_marketing.php"); return(false);});
	$("#imgr2").click(function(){change_banniere();animation("381px","158px","marketing_direct.php"); return(false);});
	$("#imgr3").click(function(){change_banniere();animation("461px","220px","strategie_production_catalogues.php"); return(false);});
	$("#imgr4").click(function(){change_banniere();animation("558px","161px","web_marketing.php"); return(false);});
	$("#imgr5").click(function(){change_banniere();animation("652px","221px","gestion_contenu_multicanal.php"); return(false);});
	$("#imgr1").mouseover(function(){runradar("imgr1")});
	$("#imgr2").mouseover(function(){runradar("imgr2")});
	$("#imgr3").mouseover(function(){runradar("imgr3")});
	$("#imgr4").mouseover(function(){runradar("imgr4")});
	$("#imgr5").mouseover(function(){runradar("imgr5")});
	$("#imgr1").mouseout(function(){stopradar()});
	$("#imgr2").mouseout(function(){stopradar()});
	$("#imgr3").mouseout(function(){stopradar()});
	$("#imgr4").mouseout(function(){stopradar()});
	$("#imgr5").mouseout(function(){stopradar()});
	
	$("#bmetiers").mouseover(function(){MM_swapImage('bmetiers','','images/b_nos-metiers_off.png',1)});
	$("#bmetier2").mouseover(function(){MM_swapImage('bmetier2','','images/metiers/metier2_on.png',1)});
	$("#bmetier3").mouseover(function(){MM_swapImage('bmetier3','','images/metiers/metier3_on.png',1)});
	$("#bmetier4").mouseover(function(){MM_swapImage('bmetier4','','images/metiers/metier4_on.png',1)});
	$("#bmetier5").mouseover(function(){MM_swapImage('bmetier5','','images/metiers/metier5_on.png',1)});
	$("#bmetier1").mouseout(function(){MM_swapImgRestore()});
	$("#bmetier2").mouseout(function(){MM_swapImgRestore()});
	$("#bmetier3").mouseout(function(){MM_swapImgRestore()});
	$("#bmetier4").mouseout(function(){MM_swapImgRestore()});
	$("#bmetier5").mouseout(function(){MM_swapImgRestore()});

	$("#agence").click(function(){
		change_banniere();
		$(this).hide(); $("#agence_on").show();
		$("#metiers_on").hide();$("#metiers").show();
		$("#contact_on").hide();$("#contact").show();
		$("#newsletter_on").hide();$("#newsletter").show();
		$("#recrutement_on").hide();$("#recrutement").show();
		$("#client_on").hide();$("#client").show();
		if (document.getElementById("wo").value == "false") {
			animation("460px","190px","agence_presentation.php"); return(false);
		} else {
			ajax_animation('agence_presentation.php');
		}
	});
	
	$("#metiers").click(function(){
		change_banniere();
		$("#agence_on").hide(); $("#agence").show();
		$(this).hide();$("#metiers_on").show();
		$("#contact_on").hide();$("#contact").show();
		$("#newsletter_on").hide();$("#newsletter").show();
		$("#recrutement_on").hide();$("#recrutement").show();
		$("#client_on").hide();$("#client").show();
		if (document.getElementById("wo").value == "false") {
			animation("212px","190px","plan_actions_marketing.php"); return(false);
		} else {
			ajax_animation('plan_actions_marketing.php');
		}
	});
	$("#contact").click(function(){
		change_banniere();
		$("#agence_on").hide(); $("#agence").show();
		$("#metiers_on").hide();$("#metiers").show();
		$(this).hide();$("#contact_on").show();
		$("#newsletter_on").hide();$("#newsletter").show();
		$("#recrutement_on").hide();$("#recrutement").show();
		$("#client_on").hide();$("#client").show();
		if (document.getElementById("wo").value == "false") {
			animation("460px","190px","contact.php"); return(false);
		} else {
			ajax_animation('contact.php');
		}
	});
	$("#newsletter").click(function(){
		change_banniere();
		$("#agence_on").hide(); $("#agence").show();
		$("#metiers_on").hide();$("#metiers").show();
		$("#contact_on").hide();$("#contact").show();
		$(this).hide();$("#newsletter_on").show();
		$("#recrutement_on").hide();$("#recrutement").show();
		$("#client_on").hide();$("#client").show();
		if (document.getElementById("wo").value == "false") {
			animation("460px","190px","newsletter.php"); return(false);
		} else {
			ajax_animation('newsletter.php');
		}
	});
	$("#recrutement").click(function(){
		change_banniere();
		$("#agence_on").hide(); $("#agence").show();
		$("#metiers_on").hide();$("#metiers").show();
		$("#contact_on").hide();$("#contact").show();
		$("#newsletter_on").hide();$("#newsletter").show();
		$(this).hide();$("#recrutement_on").show();
		$("#client_on").hide();$("#client").show();
		if (document.getElementById("wo").value == "false") {
			animation("460px","190px","recrutement.php"); return(false);
		} else {
			ajax_animation('recrutement.php');
		}
	});
	$("#client").click(function(){
		change_banniere();
		$("#agence_on").hide(); $("#agence").show();
		$("#metiers_on").hide();$("#metiers").show();
		$("#contact_on").hide();$("#contact").show();
		$("#newsletter_on").hide();$("#newsletter").show();
		$("#recrutement_on").hide();$("#recrutement").show();
		$(this).hide();$("#client_on").show();
		if (document.getElementById("wo").value == "false") {
			animation("460px","190px","espace_client.php"); return(false);
		} else {
			ajax_animation('espace_client.php');
		}
	});
	$("#actu_savoir_plus").click(function(){ 
		change_banniere();
		$("#agence_on").hide(); $("#agence").show();
		$("#metiers_on").hide();$("#metiers").show();
		$("#contact_on").hide();$("#contact").show();
		$("#newsletter_on").hide();$("#newsletter").show();
		$("#recrutement_on").hide();$("#recrutement").show();
		animation("460px","190px","actualite.php"); return(false);	
	});
	$(".actu").click(function(){ 
		change_banniere();
		$("#agence_on").hide(); $("#agence").show();
		$("#metiers_on").hide();$("#metiers").show();
		$("#contact_on").hide();$("#contact").show();
		$("#newsletter_on").hide();$("#newsletter").show();
		$("#recrutement_on").hide();$("#recrutement").show();
		animation("460px","190px","actualite.php"); return(false);	
	});
	$("#actu_picto").click(function(){ 
		change_banniere();
		$("#agence_on").hide(); $("#agence").show();
		$("#metiers_on").hide();$("#metiers").show();
		$("#contact_on").hide();$("#contact").show();
		$("#newsletter_on").hide();$("#newsletter").show();
		$("#recrutement_on").hide();$("#recrutement").show();
		ajax_animation('actualite.php'); return(false);	
	});
	$("#promo_savoir_plus").click(function(){ 
		change_banniere();
		$("#agence_on").hide(); $("#agence").show();
		$("#metiers_on").hide();$("#metiers").show();
		$("#contact_on").hide();$("#contact").show();
		$("#newsletter_on").hide();$("#newsletter").show();
		$("#recrutement_on").hide();$("#recrutement").show();
		animation("460px","190px","a_decouvrir.php"); return(false);	
	});
	$(".promo").click(function(){ 
		change_banniere();
		$("#agence_on").hide(); $("#agence").show();
		$("#metiers_on").hide();$("#metiers").show();
		$("#contact_on").hide();$("#contact").show();
		$("#newsletter_on").hide();$("#newsletter").show();
		$("#recrutement_on").hide();$("#recrutement").show();
		animation("460px","190px","a_decouvrir.php"); return(false);	
	});
	$("#promo_picto").click(function(){ 
		change_banniere();
		$("#agence_on").hide(); $("#agence").show();
		$("#metiers_on").hide();$("#metiers").show();
		$("#contact_on").hide();$("#contact").show();
		$("#newsletter_on").hide();$("#newsletter").show();
		$("#recrutement_on").hide();$("#recrutement").show();
		ajax_animation('a_decouvrir.php'); return(false);	
	});
	$("#mentions").click(function(){
		$("#agence_on").hide(); $("#agence").show();
		$("#metiers_on").hide();$("#metiers").show();
		$("#contact_on").hide();$("#contact").show();
		$("#newsletter_on").hide();$("#newsletter").show();
		$("#recrutement_on").hide();$("#recrutement").show();
		if (document.getElementById("wo").value == "false") {
			animation("460px","190px","mentions_legales.php"); return(false);
		} else {
			ajax_animation('mentions_legales.php');
		}
	});
	$("#sitemap").click(function(){
		$("#agence_on").hide(); $("#agence").show();
		$("#metiers_on").hide();$("#metiers").show();
		$("#contact_on").hide();$("#contact").show();
		$("#newsletter_on").hide();$("#newsletter").show();
		$("#recrutement_on").hide();$("#recrutement").show();
		if (document.getElementById("wo").value == "false") {
			animation("460px","190px","plan_site.php"); return(false);
		} else {
			ajax_animation('plan_site.php');
		}
	});
	$("#lienutiles").click(function(){
		$("#agence_on").hide(); $("#agence").show();
		$("#metiers_on").hide();$("#metiers").show();
		$("#contact_on").hide();$("#contact").show();
		$("#newsletter_on").hide();$("#newsletter").show();
		$("#recrutement_on").hide();$("#recrutement").show();
		if (document.getElementById("wo").value == "false") {
			animation("460px","190px","liens_utiles.php"); return(false);
		} else {
			ajax_animation('liens_utiles.php');
		}
	});
	$("#references").click(function(){
		$("#agence_on").show(); $("#agence").hide();
		$("#metiers_on").hide();$("#metiers").show();
		$("#contact_on").hide();$("#contact").show();
		$("#newsletter_on").hide();$("#newsletter").show();
		$("#recrutement_on").hide();$("#recrutement").show();
		if (document.getElementById("wo").value == "false") {
			animation("460px","190px","agence_clients.php"); return(false);
		} else {
			ajax_animation('agence_clients.php');
		}
	});
	/* cercleradar
	*******************************************************************************/	
	$("#cercleradar").flash({
		src:"cercle.swf",
		wmode:"transparent",
		width:180,
		height:180
	},{
	version:8
	});


		
}catch(e){}}); 
