/*
SCRIPT EDITE SUR L'EDITEUR JAVASCRIPT
http://www.editeurjavascript.com
*/
var monsite = "www.vers-sur-lot.fr" 
function multi(form){
                    rech = form.moteur.options[form.moteur.selectedIndex].value					
                    switch(rech){
                    case "2" :
					window.open('http://www.google.com/search?q='+form.q.value+'&btnG=Recherche+Google&hl=fr&lr=lang_fr','','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
                    break;
case "0":
	var mess="Vous n'avez pas sélectionné de moteur !"
 	alert(mess);
                    break;
case "2":
	window.open( "http://www.google.com/search?q="+form.q.value+"&btnG=Recherche+Google&hl=fr&lr=lang_fr","","toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes");
                    break;

case "1":
	window.open( "http://www.google.com/search?hl=fr&ie=UTF-8&oe=UTF-8&q="+form.q.value +"+site%3A"+monsite+"&btnG=Recherche+Google&lr=","","toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes");
                    break;					
}}
//-->
gauche5=0
haut5=1
target5 = '_self';

color51 = "#000000";
color52 = "#838383";
color53 = "#FFFF00";
color54 = "#00FF00";

menu5titre = new Array;
menu5lien = new Array;

	menu5titre[0]= 'Aqueduc'
	menu5lien[0]= '../php/aqueduc_sommaire.php'
	menu5titre[1]= 'Le château'
	menu5lien[1]= '../php/chateau.php'
	menu5titre[2]= 'L\'église'
	menu5lien[2]= '../php/eglise.php'
	menu5titre[3]= 'Notre Dame de Velles'
	menu5lien[3]= '../php/velles.php'
	menu5titre[4]= 'Colonjat'
	menu5lien[4]= '../php/colonjat.php'
	menu5titre[5]= 'Souvenirs'
	menu5lien[5]= '../php/souvenirs.php'
	menu5titre[6]= 'La météo'
	menu5lien[6]= '../meteo/meteo.php'
		
	
document.write('<STYLE TYPE="text/css">#menu5 { position:absolute;top:'+haut5+';left:'+gauche5+'; }</STYLE>');

ie4=document.all
ns6=document.getElementById&&!document.all
ns4=document.layers

function placeMenu5() {
if (ie4) {menu5.style.pixelTop=document.body.scrollTop+haut5}
else if (ns6) {document.getElementById("menu5").style.top=window.pageYOffset+haut5}
else if (ns4) {eval(document.menu5.top=eval(window.pageYOffset+haut5));}
if(ie4 || ns6 || ns4)
	setTimeout("placeMenu5()",1);
}

window.onload = placeMenu5;
document.write('<SPAN ID=menu5><table bgcolor=#000000 border=1 cellspacing=0 cellpadding=3 bordercolorlight=#000000 bordercolordark=#C0C0C0 WIDTH=170><TR><TD ALIGN=center onMouseOut="this.style.background=\''+color51+'\'" onMouseOver="this.style.background=\''+color52+'\'" STYLE="cursor:pointer" ><FONT FACE="Verdana, Arial" SIZE=3><B><A HREF="../php/presente.php" TARGET="_self" STYLE="text-decoration:none;color:'+color53+'">RETOUR ACCUEIL</A></B></FONT></TD></TR>');
document.write('<TR><TD ALIGN=center onMouseOut="this.style.background=\''+color51+'\'" onMouseOver="this.style.background=\''+color52+'\'" STYLE="cursor:pointer" ><FONT FACE="Verdana, Arial" SIZE=2><B><A HREF="../php/histoire.php" TARGET="_self" STYLE="text-decoration:none;color:'+color54+'">Histoire</A></B></FONT></TD></TR>');

for(a=0;a<menu5lien.length;a++)
	{
	document.write('<TR><TD onMouseOut="this.style.background=\''+color51+'\'" onMouseOver="this.style.background=\''+color52+'\'" STYLE="cursor:pointer" onClick="window.open(\''+menu5lien[a]+'\',\''+target5+'\')"><FONT FACE="Verdana, Arial" SIZE=2><B><A HREF="'+menu5lien[a]+'" TARGET="'+target5+'" STYLE="text-decoration:none;color:'+color53+'">'+menu5titre[a]+'</A></B></FONT></TD></TR>');
	
	}
document.write('<TR><TD onMouseOut="this.style.background=\''+color51+'\'" onMouseOver="this.style.background=\''+color52+'\'" STYLE="cursor:pointer" ><FONT FACE="Verdana, Arial" SIZE=2><B><A HREF="../photo/imgcol.php" TARGET="_blank" STYLE="text-decoration:none;color:'+color53+'">Photos</A></B></FONT></TD></TR>');
	
document.write('<TR><TD onMouseOut="this.style.background=\''+color51+'\'" onMouseOver="this.style.background=\''+color52+'\'" STYLE="cursor:pointer" ><FONT FACE="Verdana, Arial" SIZE=2><B><A HREF="http://www.ferrari.vers-sur-lot.fr/index.php" TARGET="_blank" STYLE="text-decoration:none;color:'+color53+'">Ma passion: FERRARI</A></B></FONT></TD></TR>');

document.write('<form method="post" action="miseBDD.php"><div align="center"> '+
    '<table border="0" cellpadding="1" cellspacing="0" bgcolor="#000000" width="170">'+
    '<tr><td bgcolor="#000000" height="2" colspan="2"></td><td bgcolor="#000000" height="2"></td><td bgcolor="#000000" height="2"></td>'+
    '</tr><tr align="center" valign="middle"><td colspan="2" nowrap><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#FFFF00"><strong>Rechercher :</strong></font></td></tr>'+
    '<tr align="center"><td><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><input type="text" name="q" size="17"></font></td>'+
    '</tr><tr align="center" valign="middle"><td colspan="2"><div align="center"> '+
    '<font face="Verdana, Arial, Helvetica, sans-serif" size="2">');
document.write('<select name="moteur">'+
                          '<option selected value="0">Choisissez'+
                          '<option value="0"> '+
						  '<option value="1">Sur ce site'+
                          '<option value="2">Sur le Web'+
                        '</select>');

document.write('</font><div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"> '+
    '<input onClick=multi(this.form) type=submit value="Rechercher" name=button></font></div></td></tr><tr align="center"> '+
    '<td bgcolor="#000000" height="2" colspan="2"></td>'+
    '<td bgcolor="#000000" height="2"></td>'+
    '<td bgcolor="#000000" height="2"></td>'+
    '</tr></div></form><TR>'+
'<TR><TD> <object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="160" height="367"><param name="movie" value="../Flash/Photos.swf"><param name="quality" value="High"><embed src="../Flash/Photos.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="160" height="367" quality="High"></object></TD></TR>')

document.write('</TR></TABLE></SPAN>')


