

var nrm = new Array();
var omo = new Array();
var stuff = new Array('roll-primeur','roll-vin','roll-spirit','roll-biere','roll-plaisir');
var loaded = (!(navigator.userAgent.indexOf('Netscape6')+1));
var mbloaded = false;



function openPopWindow(psURL,piWidth,piHeight){

	window.open(psURL,'popwindow','toolbar=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizeable=1,width='+piWidth+',height='+piHeight+',left=50')
	//window.open(psURL,"popwindow")

}


function popUpWindow(){

	window.open("sabb.asp","sabbwindow","toolbar=0,location=10,directories=0,status=0,menubar=0,scrollbars=0,resizeable=1,width=500,height=420")

}

function popUpWindowEnv(){

	window.open("envlien.asp","envwindow","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=1,width=500,height=420")

}

function popUpWindowAcc(){

	window.open("site/fr/sabb.asp","sabbwindow","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=1,width=500,height=420")

}

function popUpWindowEnvAcc(){

	window.open("site/fr/envlien.asp","envwindow","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=1,width=500,height=420")

}

function over(no)
{
		
		
	if (mbloaded){
        if (document.images && loaded)
        {
                document.images[getImageToChange(no)].src = omo[no].src
        }
    }
}

function getImageToChange(no){

var iImageToChange;

		switch (no){
		
		case 0 :
			iImageToChange = 5;
			break;
		case 1 :
			iImageToChange = 7;
			break;
		case 2 :
			iImageToChange = 9;
			break;
		case 3 :
			iImageToChange = 11;
			break;
		case 4 :
			iImageToChange = 13;
			break;
	
		}
		
		return iImageToChange;
}

function out(no)
{

	if (mbloaded){
        if (document.images && loaded)
        {
                document.images[getImageToChange(no)].src = nrm[no].src
        }
    }
}

function go()
{
// Pre-load part.

if (document.images)
{
        for (i=0;i<stuff.length;i++)
        {
                nrm[i] = new Image;
                nrm[i].src = base + stuff[i] + "-off.gif";
                omo[i] = new Image;
                omo[i].src = base + stuff[i] + "-on.gif";
                
				//alert(omo[i].src + ' ' + i)
        }
        
        mbloaded = true;
}
resetselect();
}

function deleteoptions(theList) {
var iNumItems

	iNumItems = theList.options.length;
	//alert(iNumItems)
	theList.selecteditem = 0;

   for (var i=iNumItems - 1; i > -1; i--) {      
		deleteAnItem(theList,i);
   	}
   	
}


function deleteAnItem(theList,itemNo) {
   theList.options[itemNo]=null;
}

function now() {
	//returns the current system date/time as a date object.
        return new Date()
}

var today = now()

if (!parent.frames[1]){
	//parent.location.href = "http://www.vinetcie.com";
}

var publibase= "";


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


