// fonction pour imprimer la page principale

function imprimer() {
window.print();
 }

// fonctions modifiant les images

function change_home(){
window.document.images.home.src="../images/home2.jpg";
}
function reload_home(){
window.document.images.home.src="../images/home.jpg";
}

function change_loupe(){
window.document.images.loupe.src="../images/loupe2.jpg";
}
function reload_loupe(){
window.document.images.loupe.src="../images/loupe1.jpg";
}

function change_actu(){
window.document.images.actu.src="../images/actu2.jpg";
}
function reload_actu(){
window.document.images.actu.src="../images/actu1.jpg";
}


function change_print(){
window.document.images.print.src="../images/print2.jpg";
}
function reload_print(){
window.document.images.print.src="../images/print.jpg";
}


// affectation des images

var img_home="<img name='home' src='../images/home.jpg' width='13' height='15'> "
var img_loupe="<img name='loupe' src='../images/loupe1.jpg' width='15' height='15'> "
var img_actu=" <img name='actu' src='../images/actu1.jpg' width='15' height='15'>"
var img_print=" <img name='print' src='../images/print.jpg' width='14' height='15'>"



// couleur arriere plan out

var bgColor="#47538F"

// couleur texte out 

var textColor="#FFFCD6"

var textFont="Trebuchet MS, arial, arial black, courier new, verdana"

// onMouseOver couleur arriere plan

var onMouseOverbgColor="#FFFCD6"

//The onMouseOver Text Color

var onMouseOvertextColor="#47538F"


// Hauteur de tableau
var NavigatorHeight="20"

// Largeur de du Navigator
var NavigatorWidth="500"

// Position du Navigator de la gauche de l ecran
var NavigatorLeft="0"

// Position du Navigator du haut de l ecran
var NavigatorTop="0"

// separateur
var rond_fin1="<td width='28' align='center'><img name='rond2' src='../images/rond.jpg' width='6' height='6'></td>"
var rond_fin2="<td width='28' align='center'><img name='rond3' src='../images/rond.jpg' width='6' height='6'></td>"
var rond_fin3="<td width='28' align='center'><img name='rond4' src='../images/rond.jpg' width='6' height='6'></td>"
var debut="<td width='28' align='center'><img name='rond1' src='../images/rond.jpg' width='6' height='6'></td>"
var fin="<td width='28' align='center'><img name='rond5' src='../images/rond.jpg' width='6' height='6'></td>"

// place des menus de navigation

var msg = new Array()
msg[1]="Accueil"
msg[2]="Recherche d\'actions"
msg[3]="Nos activités"
msg[4]="Imprimer"



function L(which){

// place des liens

var link = new Array()
link[1]="../bas.php"
link[2]="../1actions.htm"
link[3]="../agenda.php"
link[4]="javascript:imprimer()"

location.href=link[which]

}


function navigate(){

var style="style='cursor:hand;'"
var a="<div id='a'>"
var b="<div id='b'>"
var c="<div id='c'>"
var d="<div id='d'>"


var aE="</div>"
var t1="<table align='center' border=0 cellpadding='0' cellspacing='0'><tr>"+ debut +"<a href='ip_adresse.shtml'><td onMouseOver='ona();change_home()' onMouseOut='onOut();reload_home()' " + style + ">"
var t2="<a href='1actions.php'><td onMouseOver='onb();change_loupe()' onMouseOut='onOut();reload_loupe()'  " + style + ">"
var t3="<a href='agenda.php'><td onMouseOver='onc();change_actu()' onMouseOut='onOut();reload_actu()'  " + style + ">"
var t4="<td valign='center' onClick='imprimer()' onMouseOver='ond();change_print()' onMouseOut='onOut();reload_print()'  " + style + ">"

var tEnd="</td></a>"
var tUnd="</td>"
var tEnd2="</td></tr></table>"
var naver=t1 + a + img_home + msg[1] + aE + tEnd + rond_fin1
naver+=t2 + b + img_loupe + msg[2] + aE + tEnd + rond_fin2
naver+=t3 + c + msg[3] + img_actu + aE + tEnd + rond_fin3
naver+=t4 + d + msg[4] + img_print + fin + aE + tUnd + tEnd2


var tablerN=naver

// Effets speciaux
document.all.fontFace="impact"
document.all.navigator.style.height=NavigatorHeight
document.all.navigator.style.width=NavigatorWidth
document.all.navigator.style.backgroundColor=bgColor
document.all.navigator.style.color=textColor
document.all.topNav.innerHTML=tablerN
document.all.topNav.style.fontWeight="bold"
document.all.topNav.style.fontSize="0"
document.all.navigator.style.pixelLeft=NavigatorLeft
document.all.navigator.style.pixelTop=NavigatorTop


document.all.a.style.backgroundColor=bgColor
document.all.a.style.color=textColor
document.all.a.style.fontWeight="bold"
document.all.a.style.fontSize="12"
document.all.a.style.fontFamily=textFont

document.all.b.style.backgroundColor=bgColor
document.all.b.style.color=textColor
document.all.b.style.fontWeight="bold"
document.all.b.style.fontSize="12"
document.all.b.style.fontFamily=textFont

document.all.c.style.backgroundColor=bgColor
document.all.c.style.color=textColor
document.all.c.style.fontWeight="bold"
document.all.c.style.fontSize="12"
document.all.c.style.fontFamily=textFont

document.all.d.style.backgroundColor=bgColor
document.all.d.style.color=textColor
document.all.d.style.fontWeight="bold"
document.all.d.style.fontSize="12"
document.all.d.style.fontFamily=textFont


}
function homePage(){
location.href=YourPagesURL
}
function ona(){
document.all.a.style.backgroundColor=onMouseOverbgColor
document.all.a.style.color=onMouseOvertextColor
document.images.rond1.src="../images/fleche_rond.jpg"
document.all.rond1.align='right'
document.images.rond2.src="../images/fleche_rond2.jpg"
document.all.rond2.align='left'
}
function onb(){
document.all.b.style.backgroundColor=onMouseOverbgColor
document.all.b.style.color=onMouseOvertextColor
document.images.rond2.src="../images/fleche_rond.jpg"
document.all.rond2.align='right'
document.images.rond3.src="../images/fleche_rond2.jpg"
document.all.rond3.align='left'

}
function onc(){
document.all.c.style.backgroundColor=onMouseOverbgColor
document.all.c.style.color=onMouseOvertextColor
document.images.rond3.src="../images/fleche_rond.jpg"
document.all.rond3.align='right'
document.images.rond4.src="../images/fleche_rond2.jpg"
document.all.rond4.align='left'
}
function ond(){
document.all.d.style.backgroundColor=onMouseOverbgColor
document.all.d.style.color=onMouseOvertextColor
document.images.rond4.src="../images/fleche_rond.jpg"
document.all.rond4.align='right'
document.images.rond5.src="../images/fleche_rond2.jpg"
document.all.rond5.align='left'
}


function onOut(){
document.all.a.style.backgroundColor=bgColor
document.all.a.style.color=textColor
document.all.b.style.backgroundColor=bgColor
document.all.b.style.color=textColor
document.all.c.style.backgroundColor=bgColor
document.all.c.style.color=textColor
document.all.d.style.backgroundColor=bgColor
document.all.d.style.color=textColor

document.images.rond1.src="../images/rond.jpg"
document.images.rond2.src="../images/rond.jpg"
document.images.rond3.src="../images/rond.jpg"
document.images.rond4.src="../images/rond.jpg"
document.images.rond5.src="../images/rond.jpg"
document.all.rond1.align='center'
document.all.rond2.align='center'
document.all.rond3.align='center'
document.all.rond4.align='center'
document.all.rond5.align='center'



}
window.onload=navigate