function shadow_corp(target){
	Shadowbox.open({
			content:    target,
			player:     "iframe",
			title:      "Informations",
			height:     400,
			width:      450
		});
} 

function police_plus(id_cible) {
	var taille_police = (parseInt(document.getElementById(id_cible).style.fontSize)-3);
	if(isNaN(taille_police) == true){
		taille_police = 12-3;
	}
	var haut_ligne = taille_police+4;
	document.getElementById(id_cible).style.fontSize = taille_police+'px';
	document.getElementById(id_cible).style.lineHeight = haut_ligne+'px';
	$(function()
			{
				$('#pane_zone_txt').jScrollPane({showArrows:true, scrollbarWidth: 23, arrowSize: 20, scrollbarMargin: 10, dragMinHeight: 56, dragMaxHeight: 56});
	});
}

function police_norm(id_cible){
	document.getElementById(id_cible).style.fontSize ='15px';
	document.getElementById(id_cible).style.lineHeight = '15px';
	$(function()
			{
				$('#pane_zone_txt').jScrollPane({showArrows:true, scrollbarWidth: 23, arrowSize: 20, scrollbarMargin: 10, dragMinHeight: 56, dragMaxHeight: 56});
	});
}

function police_moins(id_cible){
	var taille_police = (parseInt(document.getElementById(id_cible).style.fontSize)+3);
	if(isNaN(taille_police) == true){
		taille_police =12+3;
	}
	var haut_ligne = taille_police+4;
	document.getElementById(id_cible).style.fontSize = taille_police+'px';
	document.getElementById(id_cible).style.lineHeight = haut_ligne+'px';
	$(function()
			{
				$('#pane_zone_txt').jScrollPane({showArrows:true, scrollbarWidth: 23, arrowSize: 20, scrollbarMargin: 10, dragMinHeight: 56, dragMaxHeight: 56});
	});
}

function printPartOfPage(elementId){
 var printContent = document.getElementById(elementId);
 var windowUrl = 'about:blank';
 var uniqueName = new Date();
 var windowName = 'Print' + uniqueName.getTime();
 var printWindow = window.open(windowUrl, windowName, 'left=50000,top=50000,width=0,height=0');

 printWindow.document.write("<style>@font-face {font-family:MyriadPro-Regular; src:url(.templates/pyramides/fonts/MyriadPro-Regular.otf),url(./templates/pyramides/fonts/MyriadPro-Regular.otf);} a img{border: none;} .corps {font-size:13px; line-height:14px; font-family:MyriadPro-Regular, Helvetica, sans-serif; width:480px; margin-left: auto; margin-right: auto;} h1 {margin:0; font-size:13px; text-transform:uppercase; font-weight:bold; text-align:left; padding:0px;} h4{padding:0px 0 10px 0;margin:0;font-size:18px;text-transform:uppercase;font-weight:bold;text-align:left;} h5{margin:15px 0 15px 0;font-size:13px;text-align:right;} h6{margin:10px 0 10px 0;font-size:16px;color:#504835;font-style:italic;text-align:left;} h7{line-height:13px;text-align: justify;color:#646058;font-size:13px;text-decoration:underline;}</style><div class=\"corps\">"+printContent.innerHTML+"</div>");
 printWindow.document.close();
 printWindow.focus();
 printWindow.print();
 printWindow.close();
}

function AjouterFavoris() { // On crée la fonction AjouterFavoris()
var currentLocation =  document.location.href;
var currentTitle =  document.title;

if ( navigator.appName != 'Microsoft Internet Explorer' ) { // Si le navigateur est Internet Explorer
window.sidebar.addPanel(currentTitle, currentLocation, ""); // Alors on utilise la fonction window.sidebar.addPanel("Nom utilisé pour enregistrer le site", "Adresse du site web", "")
}

else { // Sinon, si le navigateur n'est pas Internet Explorer
window.external.AddFavorite(currentLocation, currentTitle); // Alors on utilise la fonction window.external.AddFavorite("Nom utilisé pour enregistrer le site", "Adresse du site web")
}

}
