function addFavorite(){

	var url = location.href;
	var title = document.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 && window.print) { // Opera Hotlist
		return true;
	}
}


	function setHome(element) {
		if (document.all){
			element.style.behavior='url(#default#homepage)';
			element.setHomePage('http://'+window.location.host+'?id=14002');
		}
		else if(window.sidebar){
			window.sidebar.addPanel( document.title, location.href, "");
		}
	}


	function addBookmark(url, title) {
		if(window.sidebar) {
			window.sidebar.addPanel(title, url, "");
		}
		else if(document.all) {
			window.external.AddFavorite(url, title);
		}
		else {
			return true;
		}
	}

	function IsEmpty(string) {
	   pop=0;

	   if ((string.length==0) || (string==null)) {
	      return true;
	   }
	   else { return false; }
	}

//BLINK - IE does not understand the blink css
var text_timer;
var text_visible = 1;
var text_tmp;

function blink(){

	if (text_visible){
		text_tmp = document.email_form.email1.value;
		document.email_form.email1.value = '';
		text_visible = false;
	}
	else{
		document.email_form.email1.value = text_tmp;
		text_visible = true;
	}
}

function start_blink(){
	if (document.email_form.email1.value=='votre em@il'){
		text_timer = setInterval('blink()', 500);
	}
}

function stop_blink(){
	if (text_timer){
		clearInterval(text_timer);
	}
}

function email_focus(){
	stop_blink();
	e = document.email_form.email1;
	if (e.value == 'votre em@il') e.value = '';
}

function email_blur(){
	e = document.email_form.email1;
	if (e.value == 'votre em@il' || e.value == ''){
		e.value = 'votre em@il';
		start_blink();
	}
}

if (window.addEventListener) window.addEventListener("load", start_blink, false);
else if (window.attachEvent) window.attachEvent("onload", start_blink);
else if (document.getElementById) window.onload=start_blink;
