// Effet menu //

var pas = 6
var htphrase=12
var ch = ""
var ch1 = ""


// Créa chaines
function creach() {
	ch = ""
	for (var i=0;i<tab_liens.length;i+=2) {
		if (i!=0) ch += " | "
		ch += tab_liens[(i+1)]
	}
}

function creach1() {
	ch1 = ""
	for (var i=0;i<tab_liens.length;i+=2) {
		if (i!=0) ch1 += " | "
		if (i==((npg-1)*2)) ch1 += "<font class='mnusel_"+rub+"'>"+tab_liens[(i+1)]+"</font>"
		else ch1 += "<a href='"+tab_liens[i]+"' class='mnufin_"+rub+"' id='link"+i+"'>"+tab_liens[(i+1)]+"</a>"
	}
}

// Créa DIV
function creadiv() {
	creach()
	creach1()
	document.write('<div id=phrase style="margin-left:'+(780-lgmnu)+'px;position:relative;overflow:hidden;height:'+(htphrase+1)+'px;width:'+lgmnu+'px;text-align:left">')
	for (var i=0;i<ch.length;i++) {
		document.write('<'+'div id=let'+i+' class="mnufin_'+rub+'" style="position:absolute;top:'+htphrase+'px;left:-10px">'+((ch.charAt(i)==" ")?"&nbsp;":ch.charAt(i))+'</div>')
	}
	document.write('<div id=letf class="mnufin_'+rub+'" style="position:absolute;top:'+htphrase+'px;left:0px">'+ch1+'</div></div>')
}


// Fct globales //

function getOb(ob) {
	return (document.all)?eval('document.all.'+ob):(document.getElementById)?eval('document.getElementById("'+ob+'")'):null
}

function get1b(ob) {
	return (document.all)?eval('document.all.'+ob):(document.getElementById)?eval('document.getElementById("'+ob+'")'):null
}
function get2(ob) {
	return (document.all)?eval('document.all.'+ob):(document.getElementById)?eval('document.getElementById("'+ob+'")'):null
}
function get3(ob) {
	return (document.all)?eval('document.all.'+ob):(document.getElementById)?eval('document.getElementById("'+ob+'")'):null
}
function get4(ob) {
	return (document.all)?eval('document.all.'+ob):(document.getElementById)?eval('document.getElementById("'+ob+'")'):null
}
function get5(ob) {
	return (document.all)?eval('document.all.'+ob):(document.getElementById)?eval('document.getElementById("'+ob+'")'):null
}
function getLg(ob) {
	return ob.offsetWidth
}
function eny(ob,px) {
	if (document.all) ob.style.pixelTop = px
	else ob.style.top = px
}
function enx(ob,px) {
	if (document.all) ob.style.pixelLeft = px
	else ob.style.left = px
}
function gety(ob) {
	return (document.all)?ob.style.pixelTop:ob.style.top
}

function show(ob) {
	ob.style.visibility = "visible"
}

function hide(ob) {
	ob.style.visibility = "hidden"
}


