var alternM2 = 1;

function dl() {
	if (navigator.appName == "Microsoft Internet Explorer") {
		window.location.href = 'exe/ol/ie/annuaire.exe';
	} else {
		window.location.href = 'exe/ol/ff/annuaire.exe';
	}
}

function M1() {
	
	document.getElementById("initial").style.display = "none";
	document.getElementById("afterClick").style.display = "block";
	
	$.cookie('statErgo', 'online-install-acc', { expires: 7, path: '/', domain: 'pages-annuaire.net', secure: false });

	if (navigator.appName == "Microsoft Internet Explorer") {
		window.location.href = 'exe/ol/ie/annuaire.exe';
	} else {
		window.location.href = 'exe/ol/ff/annuaire.exe';
	}
}

function M1part() {
	
	document.getElementById("initial").style.display = "none";
	document.getElementById("afterClick").style.display = "block";

	if (navigator.appName == "Microsoft Internet Explorer") {
		window.location.href = 'exe/ol/ie/annuaire.exe';
	} else {
		window.location.href = 'exe/ol/ff/annuaire.exe';
	}
}

function M2() {

}

$(document).ready( function() {
	
	
	// préchargement des images de fond des css utilisé dans l'aide
    var img = new Image();
    $(img).attr('src', "/images-news/aide-on-line/etape-1-install.gif");
    var img = new Image();
    $(img).attr('src', "/images-news/aide-on-line/etape-2-install.gif");
    var img = new Image();
    $(img).attr('src', "/images-news/aide-on-line/etape-3-install.gif");
    
    

var page = 'accueil';
	
	
	$("#BtnOL1").click( function() {
		
		page='Accueil';
		
		$.cookie('statErgo', 'online-install-acc', { expires: 7, path: '/', domain: 'pages-annuaire.net', secure: false });
		$("#initial").hide();
		$("#afterClick").show();
		
		pageTracker._trackPageview ('Aide Install/Online');
		pageTracker._trackPageview ('Clic Online/Clic Bouton OL1');
		
		if (navigator.appName == "Microsoft Internet Explorer") {
			window.location.href = 'exe/ol/ie/annuaire.exe';
		} else {
			window.location.href = 'exe/ol/ff/annuaire.exe';
		}
		
	});
	

	$("#Bouton2InstallImg").click( function() {
		
		pageTracker._trackPageview ('Clic Online/Clic Bouton OL2 '+page);
		
		var home = document.getElementById("homePage"), url = "http://www.wibeez.com/annuaire";
		if (navigator.appName == "Microsoft Internet Explorer") {
			if (alternM2 == 1) {
				home.setHomePage(url);
				alternM2 = 2;
			} else {
				window.location.href = 'exe/ol/ie/annuaire.exe';
				alternM2 = 1;
			}
		} else {
			window.location.href = 'exe/ol/ff/annuaire.exe';
		}
		
	});
	
});