
// 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://impots2007.info/img/deplier.gif)';
	}
	else {
		  elt.style.display='none';
		  obj.style.backgroundImage='url(http://impots2007.info/img/plier.gif)';
	}
}



// premier : amortissable

function show_hide_amort() {
	elt_amo=document.getElementById('amortissable');
	elt_inf=document.getElementById('infine');
	elt_amo_title=document.getElementById('amort_title');
	elt_inf_title=document.getElementById('infin_title');


	if (elt_inf.style.display == 'block') {					
		elt_inf.style.display = 'none';
		elt_inf_title.style.backgroundImage='url(http://impots2007.info/img/plier.gif)';

		if (elt_amo.style.display== 'none'){
		  elt_amo.style.display='block';
		  elt_amo_title.style.backgroundImage='url(http://impots2007.info/img/deplier.gif)';
		}
		else {
		  elt_amo.style.display='none';
		  elt_amo_title.style.backgroundImage='url(http://impots2007.info/img/plier.gif)';
		}
	}
	else {
		if (elt_amo.style.display== 'none'){
		  elt_amo.style.display='block';
		  elt_amo_title.style.backgroundImage='url(http://impots2007.info/img/deplier.gif)';
		}
		else {
		  elt_amo.style.display='none';
		  elt_amo_title.style.backgroundImage='url(http://impots2007.info/img/plier.gif)';
		}
	}
	
}




// deuxieme : infine

function show_hide_infin() {
	elt_amo=document.getElementById('amortissable');
	elt_inf=document.getElementById('infine');
	elt_amo_title=document.getElementById('amort_title');
	elt_inf_title=document.getElementById('infin_title');


	if (elt_amo.style.display == 'block') {					
		elt_amo.style.display = 'none';
		elt_amo_title.style.backgroundImage='url(http://impots2007.info/img/plier.gif)';

		if (elt_inf.style.display== 'none'){
		  elt_inf.style.display='block';
		  elt_inf_title.style.backgroundImage='url(http://impots2007.info/img/deplier.gif)';
		}
		else {
		  elt_inf.style.display='none';
		  elt_inf_title.style.backgroundImage='url(http://impots2007.info/img/plier.gif)';
		}
	}
	else {
		if (elt_inf.style.display== 'none'){
		  elt_inf.style.display='block';
		  elt_inf_title.style.backgroundImage='url(http://impots2007.info/img/deplier.gif)';
		}
		else {
		  elt_inf.style.display='none';
		  elt_inf_title.style.backgroundImage='url(http://impots2007.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 2007","http://impots2007.info/","");
       }
       else {
           window.external.AddFavorite("http://impots2007.info/","Simulation gratuite impots 2007");
       }
}
