function VerifFrameSetSize()
{
	//alert(parent.frames['frhaut'].frameElement.width);	
}

VerifFrameSetSize();


function accueil()
{
parent.haut.location.href='../index_haut.htm';
parent.bas.location.href='../bas0.htm';
}


<!-- Original:  Eddie Traversa (psych3@primus.com.au) -->
<!-- Web Site:  http://nirvana.media3.net -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function verScroll(dir, spd, loop)
{
loop = true;
direction = "up";
speed = 10;
scrolltimer = null;
if (document.layers)
{
var page = eval(document.contentLayer);
}
else
{
	if (document.getElementById)
	{
	var page= eval("document.getElementById('contentLayer').style");
	}
	else
	{
		if (document.all)
		{
		var page = eval(document.all.contentLayer.style);
      		}
   	}
}
direction = dir;
speed = parseInt(spd);
var y_pos = parseInt(page.top);
if (loop == true)
{
	if (direction == "dn" && y_pos > -60)
	{
	page.top = (y_pos - (speed));
	}
	else
	{
	if (direction == "up" && y_pos < 30)
	{
	page.top = (y_pos + (speed));
	}
	else
	{
		if (direction == "top")
		{
		page.top = 50;
      		}
   	}
}
scrolltimer = setTimeout("verScroll(direction,speed)", 1);
   }
}


function stopScroll()
{
loop = false;
clearTimeout(scrolltimer);
}

function verScroll2(dir, spd, loop)
{
loop = true;
direction = "up";
speed = 10;
scrolltimer = null;
if (document.layers)
{
var page = eval(document.contentLayer);
}
else
{
	if (document.getElementById)
	{
	var page= eval("document.getElementById('contentLayer').style");
	}
	else
	{
		if (document.all)
		{
		var page = eval(document.all.contentLayer.style);
      		}
   	}
}
direction = dir;
speed = parseInt(spd);
var y_pos = parseInt(page.top);
if (loop == true)
{
	if (direction == "dn" && y_pos > -1025)
	{
	page.top = (y_pos - (speed));
	}
	else
	{
	if (direction == "up" && y_pos < 105)
	{
	page.top = (y_pos + (speed));
	}
	else
	{
		if (direction == "top")
		{
		page.top = 108;
      		}
   	}
}
scrolltimer = setTimeout("verScroll2(direction,speed)", 1);
   }
}

function stopScroll2()
{
loop = false;
clearTimeout(scrolltimer);
}

function verScroll3(dir, spd, loop)
{
loop = true;
direction = "up";
speed = 10;
scrolltimer = null;
if (document.layers)
{
var page = eval(document.contentLayer2);
}
else
{
	if (document.getElementById)
	{
	var page= eval("document.getElementById('contentLayer2').style");
	}
	else
	{
		if (document.all)
		{
		var page = eval(document.all.contentLayer2.style);
      		}
   	}
}
direction = dir;
speed = parseInt(spd);
var y_pos = parseInt(page.top);
if (loop == true)
{
	if (direction == "dn" && y_pos > -1170)
	{
	page.top = (y_pos - (speed));
	}
	else
	{
	if (direction == "up" && y_pos < 105)
	{
	page.top = (y_pos + (speed));
	}
	else
	{
		if (direction == "top")
		{
		page.top = 108;
      		}
   	}
}
scrolltimer = setTimeout("verScroll3(direction,speed)", 1);
   }
}

function stopScroll3()
{
loop = false;
clearTimeout(scrolltimer);
}

function verScroll4(dir, spd, loop)
{
loop = true;
direction = "up";
speed = 10;
scrolltimer = null;
if (document.layers)
{
var page = eval(document.contentLayer3);
}
else
{
	if (document.getElementById)
	{
	var page= eval("document.getElementById('contentLayer3').style");
	}
	else
	{
		if (document.all)
		{
		var page = eval(document.all.contentLayer3.style);
      		}
   	}
}
direction = dir;
speed = parseInt(spd);
var y_pos = parseInt(page.top);
if (loop == true)
{
	if (direction == "dn" && y_pos > -680)
	{
	page.top = (y_pos - (speed));
	}
	else
	{
	if (direction == "up" && y_pos < 105)
	{
	page.top = (y_pos + (speed));
	}
	else
	{
		if (direction == "top")
		{
		page.top = 108;
      		}
   	}
}
scrolltimer = setTimeout("verScroll4(direction,speed)", 1);
   }
}

function stopScroll4()
{
loop = false;
clearTimeout(scrolltimer);
}

function verScroll5(dir, spd, loop)
{
loop = true;
direction = "up";
speed = 10;
scrolltimer = null;
if (document.layers)
{
var page = eval(document.contentLayer4);
}
else
{
	if (document.getElementById)
	{
	var page= eval("document.getElementById('contentLayer4').style");
	}
	else
	{
		if (document.all)
		{
		var page = eval(document.all.contentLayer4.style);
      		}
   	}
}
direction = dir;
speed = parseInt(spd);
var y_pos = parseInt(page.top);
if (loop == true)
{
	if (direction == "dn" && y_pos > -670)
	{
	page.top = (y_pos - (speed));
	}
	else
	{
	if (direction == "up" && y_pos < 105)
	{
	page.top = (y_pos + (speed));
	}
	else
	{
		if (direction == "top")
		{
		page.top = 108;
      		}
   	}
}
scrolltimer = setTimeout("verScroll5(direction,speed)", 1);
   }
}

function stopScroll5()
{
loop = false;
clearTimeout(scrolltimer);
}

function verScroll6(dir, spd, loop)
{
loop = true;
direction = "up";
speed = 10;
scrolltimer = null;
if (document.layers)
{
var page = eval(document.contentLayer6);
}
else
{
	if (document.getElementById)
	{
	var page= eval("document.getElementById('contentLayer6').style");
	}
	else
	{
		if (document.all)
		{
		var page = eval(document.all.contentLayer.style);
      		}
   	}
}
direction = dir;
speed = parseInt(spd);
var y_pos = parseInt(page.top);
if (loop == true)
{
	if (direction == "dn" && y_pos > -1)
	{
	page.top = (y_pos - (speed));
	}
	else
	{
	if (direction == "up" && y_pos < 105)
	{
	page.top = (y_pos + (speed));
	}
	else
	{
		if (direction == "top")
		{
		page.top = 108;
      		}
   	}
}
scrolltimer = setTimeout("verScroll6(direction,speed)", 1);
   }
}

function stopScroll6()
{
loop = false;
clearTimeout(scrolltimer);
}

function verScroll7(dir, spd, loop)
{
loop = true;
direction = "up";
speed = 10;
scrolltimer = null;
if (document.layers)
{
var page = eval(document.contentLayer7);
}
else
{
	if (document.getElementById)
	{
	var page= eval("document.getElementById('contentLayer7').style");
	}
	else
	{
		if (document.all)
		{
		var page = eval(document.all.contentLayer.style);
      		}
   	}
}
direction = dir;
speed = parseInt(spd);
var y_pos = parseInt(page.top);
if (loop == true)
{
	if (direction == "dn" && y_pos > -40)
	{
	page.top = (y_pos - (speed));
	}
	else
	{
	if (direction == "up" && y_pos < 105)
	{
	page.top = (y_pos + (speed));
	}
	else
	{
		if (direction == "top")
		{
		page.top = 108;
      		}
   	}
}
scrolltimer = setTimeout("verScroll7(direction,speed)", 1);
   }
}

function stopScroll7()
{
loop = false;
clearTimeout(scrolltimer);
}

function verScroll8(dir, spd, loop)
{
loop = true;
direction = "up";
speed = 10;
scrolltimer = null;
if (document.layers)
{
var page = eval(document.contentLayer8);
}
else
{
	if (document.getElementById)
	{
	var page= eval("document.getElementById('contentLayer8').style");
	}
	else
	{
		if (document.all)
		{
		var page = eval(document.all.contentLayer.style);
      		}
   	}
}
direction = dir;
speed = parseInt(spd);
var y_pos = parseInt(page.top);
if (loop == true)
{
	if (direction == "dn" && y_pos > 14)
	{
	page.top = (y_pos - (speed));
	}
	else
	{
	if (direction == "up" && y_pos < 105)
	{
	page.top = (y_pos + (speed));
	}
	else
	{
		if (direction == "top")
		{
		page.top = 108;
      		}
   	}
}
scrolltimer = setTimeout("verScroll8(direction,speed)", 1);
   }
}

function stopScroll8()
{
loop = false;
clearTimeout(scrolltimer);
}

var initTop = 104;
var unit = initTop;
var delai = 2;

function scrollUp()
{
	scrolltimer = null;
	var objet = 'contentLayer7';
	if(unit > -870)
	{
		document.getElementById(objet).style.top = unit;
		unit -= delai;
		scrolltimer = setTimeout("scrollUp()", 1);
	}
	else
	{
		return;
	}
}

function scrollDown()
{
	scrolltimer = null;
	var objet = 'contentLayer7';
	if(unit < 107)
	{
		document.getElementById(objet).style.top = unit;
		unit += delai;
		scrolltimer = setTimeout("scrollDown()", 1);
	}
	else
	{
		return;
	}
}

function stopScroll9()
{
loop = false;
clearTimeout(scrolltimer);
}

function verScrollTab(dir, spd, loop)
{
loop = true;
direction = "up";
speed = 10;
scrolltimer = null;
if (document.layers)
{
var page = eval(document.contentLayer);
}
else
{
	if (document.getElementById)
	{
	var page= eval("document.getElementById('contentLayer').style");
	}
	else
	{
		if (document.all)
		{
		var page = eval(document.all.contentLayer.style);
      		}
   	}
}
direction = dir;
speed = parseInt(spd);
var y_pos = parseInt(page.top);
if (loop == true)
{
	if (direction == "dn")
	{
	page.top = (y_pos - (speed));
	}
	else
	{
	if (direction == "up" && y_pos < -105)
	{
	page.top = (y_pos + (speed));
	}
	else
	{
		if (direction == "top")
		{
		page.top = 1;
      		}
   	}
}
scrolltimer = setTimeout("verScroll(direction,speed)", 1);
   }
}


function stopScrollTab()
{
loop = false;
clearTimeout(scrolltimer);
}

function hyper()
{
parent.haut.location.href='../hyper/haut.htm';
parent.bas.location.href='../noir2.htm';	
}

function illus()
{
parent.haut.location.href='../illus/haut.htm';
parent.bas.location.href='../noir2.htm';	
}

function com()
{
parent.haut.location.href='../com/haut.htm';
parent.bas.location.href='../noir2.htm';	
}

function expert()
{
parent.haut.location.href='../expert/haut.htm';
parent.bas.location.href='../noir2.htm';	
}

function rue()
{
parent.haut.location.href='../rue/haut.htm';
parent.bas.location.href='../noir2.htm';	
}

function foule()
{
parent.haut.location.href='../foule/haut.htm';
parent.bas.location.href='../noir2.htm';	
}

function chap()
{
parent.haut.location.href='../chap/haut.htm';
parent.bas.location.href='../noir2.htm';	
}

var tabLeg = new Array("", 
                       "Bons Baisers d'Australie<br>130 cm x 89 cm<br>2003", 
                       "Day's Inn<br>116 cm x 81 cm<br>2003", 
                       "Dillon 1<br>116 cm x 81 cm<br>2002", 
                       "Dillon 2<br>116 cm x 81 cm<br>2002", 
                       "Lincoln<br>116 cm x 81 cm<br>2001", 
                       "Missoula 1<br>116 cm x 81 cm<br>2002", 
                       "Missoula 2<br>116 cm x 81 cm<br>2002", 
                       "New-York 1950<br>116 cm x 81 cm<br>2003", 
                       "Port-Vendre 1<br>130 cm x 89 cm<br>2002", 
                       "Port-Vendre 2<br>130 cm x 89 cm<br>2002", 
                       "Port-Vendre 3<br>116 cm x 81 cm<br>2002");

function transfo(num)
{
	p = /<br>/gi
	var trans = tabLeg[num].replace(p, ' - ');
	return trans;
}

function loadImages()
{
	var maxImg = 12; var minImg = 1;
	var sepHor = '<td align="left"><img src="images/vide.gif" border="0" width="40" height="1" hspace="0" vspace="0"></td>';
	var sepVer = '<tr><td align="left"><img src="images/vide.gif" border="0" width="1" height="10" hspace="0" vspace="0"></td></tr>';
	var demi = Math.ceil(maxImg/2);
	var strRow = '<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td valign="top" align="left">';
	strRow += '<table border="0" cellpadding="0" cellspacing="0" width="100%">';
	for(i=1; i<demi; i++)
	{
		strRow += '<tr><td align="center" valign="top" class="textPageBas2"><img src="tableaux/' + i + '.jpg" title="' + transfo(i) + '"><br>' + tabLeg[i] + '</td></tr>' + sepVer;
	}
	strRow += '</table>';
	strRow += '</td>';
	strRow += sepHor;
	strRow += '<td valign="top" align="left">';
	strRow += '<table border="0" cellpadding="0" cellspacing="0">';
	for(j=demi; j<maxImg; j++)
	{
		strRow += '<tr><td align="center" valign="top" class="textPageBas2"><img src="tableaux/' + j + '.jpg" title="' + transfo(j) + '"><br>' + tabLeg[j] + '</td></tr>' + sepVer;
	}
	strRow += '</table>';
	strRow += '</td></tr></table>';
	document.write(strRow);
}

function switchImg(obj)
{
	document.getElementById(obj).src = 'images/'+ obj + 'O.gif';
}

function switchImgBack(obj)
{
	document.getElementById(obj).src = 'images/' + obj + '.gif';
}