


	
	b_1_off = new Image();
	b_1_on  = new Image();
	b_2_off = new Image();
	b_2_on  = new Image();
	b_3_off = new Image();
	b_3_on  = new Image();
	b_4_off = new Image();
	b_4_on  = new Image();
	b_5_off = new Image();
	b_5_on  = new Image();


	b_1_off.src = pathModele + "/btn_accueil_off.gif";
	b_1_on.src =  pathModele + "/btn_accueil_on.gif";
	b_2_off.src =  pathModele + "/btn_presentation_off.gif"
	b_2_on.src =  pathModele + "/btn_presentation_on.gif";
	b_3_off.src =  pathModele + "/btn_service_off.gif";
	b_3_on.src =  pathModele + "/btn_service_on.gif";
	b_4_off.src =  pathModele + "/btn_contact_off.gif";
	b_4_on.src =  pathModele + "/btn_contact_on.gif";
	b_5_off.src =  pathModele + "/btn_produits_off.gif";
	b_5_on.src =  pathModele + "/btn_produits_on.gif";

	function affiche (num){
	 if (num == "1") document.img1.src = b_1_off.src;
	else if (num == "2") document.img1.src = b_1_on.src;
	else if (num == "3") document.img2.src = b_2_off.src;
	else if (num == "4") document.img2.src = b_2_on.src;
	else if (num == "5") document.img3.src = b_3_off.src;
	else if (num == "6") document.img3.src = b_3_on.src;
	else if (num == "7") document.img4.src = b_4_off.src;
	else if (num == "8") document.img4.src = b_4_on.src;
	else if (num == "9") document.img3.src = b_5_off.src;
	else if (num == "10") document.img3.src = b_5_on.src;

}	

function movedown(){
if (window.moveupvar) clearTimeout(moveupvar)
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+50))
crossobj.style.top=parseInt(crossobj.style.top)-speed
else if (ns4&&crossobj.top>=(contentheight*(-1)+50))
crossobj.top-=speed
movedownvar=setTimeout("movedown()",50)
}

function moveup(){
if (window.movedownvar) clearTimeout(movedownvar)
if (iens6&&parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed
else if (ns4&&crossobj.top<=0)
crossobj.top+=speed
moveupvar=setTimeout("moveup()",50)
}

function stopscroll(){
if (window.moveupvar) clearTimeout(moveupvar)
if (window.movedownvar) clearTimeout(movedownvar)
}

function movetop(){
stopscroll()
if (iens6)
crossobj.style.top=0
else if (ns4)
crossobj.top=0
}

function getcontent_height(){
if (iens6)
contentheight=crossobj.offsetHeight
else if (ns4)
document.nscontainer.document.nscontent.visibility="show"
}

