function OuvrePopUp(largeur,hauteur,titre,contenu)
{
	Window2=open('','','scrollbars=yes,width='+largeur+',height='+hauteur);
	Window2.document.open();
	Window2.document.write("<HEAD><TITLE>"+titre+"</TITLE></HEAD>");
	Window2.document.write("<BODY OnLoad='compt=setTimeout(\"self.close();\",500)'><FONT COLOR='#445176'>"+contenu+"</FONT></BODY>");
}

function OuvrePopUpHTML(largeur, hauteur, page)
{
	Window2=window.open(page,'','scrollbars=yes,width='+largeur+',height='+hauteur);
}

function MetABlanc(ASupprimer)
{
	if(document.upload.commentaire.value==ASupprimer)
		document.upload.commentaire.value='';
}


function addbookmark()
{
	browserName = navigator.appName;
	browserVer = parseInt(navigator.appVersion);
	if (browserName == "Microsoft Internet Explorer" && browserVer >= 4)
	{
    window.external.AddFavorite(location.href, document.title);
  }
}


function HomePage(obj)
{
	obj.style.behavior='url(#default#homepage)';
	obj.setHomePage('http://www.la-peche.net');
}



//effet DHTML
var navi = (navigator.appname == "netscape" && parseint(navigator.appversion) >= 4);
var hidden = (navi) ? 'hide' : 'hidden';
var visible = (navi) ? 'show' : 'visible';

function affichobjet(objet)
{
	objet.visibility = visible;
}

function cachobjet(objet)
{
	objet.visibility = hidden;
}
//fin effet DHTML


//titre
var i = 0, j = 0;
var text, text2, mot, mot2;
var droite = "", gauche ="";
var titre = "";
text = window.document.URL;
mot = text.split(/\./);  // Ces mots sont séparés par des points
i=mot.length;
text2 = mot[i-2];
mot2 = text2.split(/\//);
j=mot2.length;
titre = mot2[j-1];
gauche = titre.slice(0,1);                                // a
gauche = gauche.toUpperCase();                        // A
droite = titre.slice(1,titre.length);        // blette
window.document.title = "www.La-Peche.net: tous sur les poissons et les techniques de peche - " + gauche + droite;        // ... + Ablette
//fin titre

//css adapte resolution
var nb_px = screen.availWidth;
var coef_resol = nb_px / 1185;
var res = 0;
var milieux = 0;
res= Math.ceil((nb_px - 5 * 205 * coef_resol) / 2);
milieux = (nb_px / 2);
var size_menu = Math.ceil(199 * coef_resol);

window.document.write('<style type="text/css">');
window.document.write('	 .texte {font-family: arial;TEXT-ALIGN: justify;color : #445176;}');
window.document.write('  .texteimprimer {font-family: arial;color : #000000;}');

window.document.write('  .soustitre {font-family: arial;color : #445176;}');
window.document.write('  .soustitreimprimer {font-family: arial;color : #000000;}');

window.document.write('  A:link {text-decoration: none}');
window.document.write('  A:visited {text-decoration: none}');
window.document.write('  A:active {text-decoration: none}');
//window.document.write('BODY {scrollbar-face-color: #FFFFFF; scrollbar-shadow-color: #404851; scrollbar-highlight-color: #FFFFFF; scrollbar-3dlight-color: #000000; scrollbar-darkshadow-color: #000000; scrollbar-track-color: #FFFFFF; scrollbar-arrow-color: #F36D4B;}');
window.document.write('</style>');
//fin css adapte resolution

//expression couramment utilisé
var e= "&#160;&#160;&#160;&#160;";
var tab = "<table align=\"center\" bgcolor=\"white\" border=\"0\" height=\"" + Math.ceil(10 * coef_resol) + "\" width=\"" + Math.ceil(835 * coef_resol) + "\"><td valign=\"top\"><tr>";
var fin = "</tr></td></table></div>";
var bouton = '<div align="right"><a Href="javascript:addbookmark()" OnMouseOut="isimgact( \'menu1\',0)"  OnMouseOver="isimgact( \'menu1\',1)"><Img Src="images/book.jpg" Height="47" Width="79" Name="menu1" Alt="Ajoutez cette page aux favoris"></a><A HREF="#" onClick="HomePage(this);return(false);" OnMouseOut="isimgact( \'menu5\',0)"  OnMouseOver="isimgact( \'menu5\',1)"><Img Src="images/start.jpg" Height="47" Width="79" Name="menu5" Alt="Mettre cette page comme page d\'accueil"></a><a Href="mailto:?subject=adresse internet sur la pêche&BODY=Je te conseil ce site : www.la-peche.net" OnMouseOut="isimgact( \'menu2\',0)"  OnMouseOver="isimgact( \'menu2\',1)"><Img Src="images/courrier.jpg" height="47" width="79" Name="menu2" Alt="Envoyer cette page à un ami"></a><a Href="mailto:contact@la-peche.net?subject=Remarque sur ton site&BODY=Salut Rodolphe," OnMouseOut="isimgact( \'menu4\',0)"  OnMouseOver="isimgact( \'menu4\',1)"><Img Src="images/web.jpg" height="47" width="79" Name="menu4" Alt="Me contacter"></a>';


// effet DHTML
function CommentaireSouris(objet)
{
	//objet.left=event.x+document.body.scrollLeft+10;
	//objet.top=event.y+document.body.scrollTop+10;
	objet.left=Math.ceil(360 * coef_resol);
	objet.top=Math.ceil(30 * coef_resol + document.body.scrollTop);
	affichobjet(objet);
}