

////
// Mouseover stuff
////

if (document.images) {

	var moarray = ['about', 'picture', 'services', 'business', 'privat', 'facilities', 'qualite','charte','warehouses', 'containers', 'location', 'contact', 'info', 'index', ]; 
	
	for(count=0 ; count < moarray.length ; count++) {
		
		eval(moarray[count] + '_1 = new Image()');
		eval(moarray[count] + '_1.src = "../img/navi/' + lang + '_' + moarray[count] + '_1.gif"');
		eval(moarray[count] + '_0 = new Image()');
		eval(moarray[count] + '_0.src = "../img/navi/' + lang + '_' +  moarray[count] + '_0.gif"');
	}

}

function img_on(Img) { if (document.images) { document [Img].src = eval(Img + "_1.src");  } }

function img_off(Img) { if (document.images) { document [Img].src = eval(Img + "_0.src"); } }


////
// Open window function
////

function openImgPopup(whatURL,width,height){

	// set default window size if we do not have inputs for both width and height
	if  ( !((width > 0) && (height > 0)) ) {
		width = 660;
		height = 500;
	}

	// open window
	features = 'status=no,toolbar=no,location=no,menu=no,resizable=yes,scrollbars=yes,width=' + width + ',height=' + height;
	secstorWindow = window.open(whatURL, 'secstorWindow', features);

	if (navigator.appName == "Netscape") {
		// focus
		if (window.focus) secstorWindow.focus();
	} else {
		// resize (neeeded in MSIE if Window was already open)
		if (window.resizeTo) secstorWindow.resizeTo(width,height);
		// focus (delay needed for MSIE)
		if (window.focus) setTimeout('secstorWindow.focus()',1000);
	}

}
