var gAutoPrint = true; // Flag for whether or not to automatically call the print function
function printSpecial()
{
	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n';
		if (document.getElementsByTagName != null)
		{
			var headTags = document.getElementsByTagName("head");
			if (headTags.length > 0)
				html += headTags[0].innerHTML;
		}
		html += '\n</HE' + 'AD>\n<BODY bgcolor="#FFFFFF">\n';
		var printReadyElem = document.getElementById("printReady");
		if (printReadyElem != null)
		{
				html += printReadyElem.innerHTML;
		}
		else
		{
			alert("Could not find the printReady section in the HTML");
			return;
		}		
		html += '\n</BO' + 'DY>\n</HT' + 'ML>';
		var printWin = window.open("","printSpecial");
		printWin.document.open();
		printWin.document.write(html);
		printWin.document.close();
		printWin.print();
		printWin.close();  
	}
	else
	{
		alert("Sorry, the print ready feature is only available in modern browsers.");
	}
} 

function bookmarkme () {
  window.external.addfavorite('http://cembureau.blue.loc/default.php?p=' + window.parent.document.Pform.p.value, window.parent.document.Pform.bookdesc.value); 
}

   _menuCloseDelay=500           // The time delay for menus to remain visible on mouse out
   _menuOpenDelay=0              // The time delay before menus open on mouse over
   _followSpeed=5                // Follow scrolling speed
   _followRate=40                // Follow scrolling Rate
   _subOffsetTop=10              // Sub menu top offset
   _subOffsetLeft=50              // Sub menu left offset
   _scrollAmount=3               // Only needed for Netscape 4.x
   _scrollDelay=20    

   with(Style_Top=new mm_style()){
  //TOP MENU
    onbgcolor="#FAF286";            // Couleur de fond du menu en Highlight
    oncolor="#BD001E";              // Couleur de la font en Highlight
    offbgcolor="#ffffff";           // Couleur de fond du menu
    offcolor="#797B79";             // Couleur de la Font Inactive
    bordercolor="#000000";
    borderstyle="solid";
    borderwidth=0;
    separatorcolor="#ADACAC";
    separatorsize="1";
    padding=3;
    fontsize="10";
    fontweight="bold";
    fontfamily="Verdana, Tahoma, Arial";
    headercolor="#ffffff";
    headerbgcolor="#ffffff";
    subimage="images/arrow.gif";
    subimagepadding=0;
 }
//----------------------------------------------------------------------------------------------------------------------
//         SETTINGS DU MENU GENERAL
//----------------------------------------------------------------------------------------------------------------------
   with(BlueSys=new menuname("MyMenu")){
   style=Style_Top;
   top=0;
   left=70;
   alwaysvisible=1;
   orientation="Verticcal";
   position="relative";
       aI("text=Retour ;url=javascript:history.back();;status=Back To Previous Page;image=images/navigation/back.gif;");	   
       aI("text=Imprimer ;url=javascript:printSpecial();;status=Print this Page;image=images/navigation/print.gif;");
       aI("text=Ajouter aux Favoris ;url=javascript:bookmarkme();;status=Add to Favorites this Page;image=images/navigation/addfav.gif;");	   
	   aI("text=Infos ;url=feedback_fr.php;status=Go to Feedback;image=images/navigation/feedback.gif;");
}
//----------------------------------------------------------------------------------------------------------------------
   drawMenus();