


// :::::::::::::::  DHTML NAVIGATION  ::::::::::::::::::::	


// :::: Refer to dhtml.js for methods  :::::::::::::::::::


// Frédéric.caron@nurun.com :::::


// copyright nurun inc 2002 ::


// :::::::::::::::::::::::::::::::::::::::::::::::::::::::



function init(inix,iniy) {

	initlayers();
	pos = 0;

	for(x=0;x<links.length; x++) {

		tmp = eval("main" + x); 
		tmp.setxy(pos,70);
		tmp.no = x;
		tmp.onmouseover = showMenu;
		tmp.onmouseout = hideMenu;

		bkg = eval("bk" + x);
		bkg.setx(pos - 20);
		bkg.no = x;
		bkg.onmouseover = showMenu;
		bkg.onmouseout = hideMenu;
		tmps = eval("s" + x);
		tmps.setx(pos - 20)

		if (links[x].length == 0) tmps.setxy(pos,70)


		tmps.no = x;
		tmps.onmouseover = showMenu;
		tmps.onmouseout = hideMenu;
		pos += tmp.getwidth();
		y = 85;


		// g.ripoll 2002/04/05 <=(ymd) modification pour empêcher pour
		//rendre le dernier lien (titre de la rubrique) non clickable
		for(z=0;z<links[x].length;z++) {

			tmps = eval("bt" + x + "t" + z);
			tmps.setbgcolor("#666666");

			if (z == (links[x].length -1)) y -= 5;

			tmps.sety(y);
			tmps.onmouseover = over;
			tmps.onmouseout = out;
			tmps.no = x;
			tmps.page = z;

			if(isns4)	{
				tmps.captureEvents(Event.MOUSEUP)

				if (x != 5) {
					if ( z != links[x].length-1) {	//g.ripoll
					tmps.onmouseup = clic;
					}
				}
				else {
					tmps.onmouseup = clic;
				}
			}
			else {
				if (x != 5) {
					if ( z != links[x].length-1 ) { //g.ripoll
						tmps.onclick = clic;
						tmps.style.cursor = "hand";
					}
				}
				else {
					tmps.onclick = clic;
					tmps.style.cursor = "hand";
				}

				/*if ( links[x][z].lenght != 1) { //g.ripoll
					tmps.onclick = clic;
					tmps.style.cursor = "hand";
				}*/
			}
			//tmps.onclick = clic;
			y -= tmps.getheight()+1;
			}


		bkg.sety(y + 20);	


		}


	main.setxy(inix,iniy);


	main.show();


	}

function showMenu()	{

	eval("main" + this.no).hide();
	eval("bk" + this.no).show();
	eval("s" + this.no).show();
	}

function hideMenu()	{

	eval("main" + this.no).show();	
	eval("bk" + this.no).hide();
	eval("s" + this.no).hide();
}	


		


function over()


	{


	this.setbgcolor("333333");


	}


function out()


	{


	this.setbgcolor("666666");


	}


function clic()	{

	// g.ripoll le parent location pose des pbs dans le cas de maporama
	// les liens vont 
	eval("delay = setTimeout(\"parent.document.location = links[" + 			this.no + "][" + this.page + "]\",10)");
	}





	






