//menu
window.onload=show;
function show(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}

// explications aide (show/hide blocks)
function show_hide(obj,bloc) {
	elt=document.getElementById(bloc);
	if (elt.style.display == 'none') {
		  elt.style.display='block';
		  obj.style.backgroundImage='url(http://impots2008.info/img/deplier.gif)';
	}
	else {
		  elt.style.display='none';
		  obj.style.backgroundImage='url(http://impots2008.info/img/plier.gif)';
	}
}




// favoris
// function AjoutFavoris(theURL, theTITLE) {
// window.external.AddFavorite(theURL, theTITLE);
// }



function AjoutFavoris() {
       if ( navigator.appName != 'Microsoft Internet Explorer' ){
           window.sidebar.addPanel("Simulation gratuite impots 2008","http://impots2008.info/","");
       }
       else {
           window.external.AddFavorite("http://impots2008.info/","Simulation gratuite impots 2008");
       }
}
