/*
$().ready(function(){
		function addFavorite() {
			// add a "rel" attrib if Opera 7+
			if(window.opera) {
				if ($("a.add_favoris").attr("rel") != ""){ // N'écrase pas le favoris s'il existe déjà
					$("a.add_favoris").attr("rel","sidebar");
				}
			}
		   
			$("a.add_favoris").click(function(event){
				event.preventDefault(); // prevent the anchor tag from sending the user off to the link
				var url = this.href;
				alert(url):
				var title = this.title;
			   
				if (window.sidebar) { // Mozilla Firefox Bookmark
					window.sidebar.addPanel(title, url, "");
				} else if( window.external ) { // IE Favorite
					window.external.AddFavorite( url, title);
				} else if(window.opera) { // Opera 7+
					return false; // do nothing - the rel="sidebar" should do the trick
				} else { // for Safari, Konq etc - browsers who do not support bookmarking scripts (that i could find anyway)
					alert("Malheureusement, ce navigateur ne supporte pas la procédure d'ajout automatique de favoris, veuillez ajouter ce site à vos favoris manuellement.");
				}
			});
    	}
});
*/
function AddToFavorites () {
	if (window.sidebar) {        // Firefox
		window.sidebar.addPanel ("Aisneco", 'http://www.aisneco-com.erl/index.php/Aisneco2', '');
	} 
	else {
		if (window.external && typeof (window.external.AddFavorite) !== "undefined") {
				// Internet Explorer
				window.external.AddFavorite ('http://www.aisneco-com.erl/index.php/Aisneco2',"Aisneco");
		}
		else {  // Opera, Safari
			alert ("Votre navigateur ne supporte pas la procédure d'ajout automatique de favoris, veuillez ajouter ce site à vos favoris manuellement");
		} 
	}
}


