function openPopupWindow(image){
	var attributes = "scrollbars=yes,status=no";
	window.open('/file?q=PICT&i=' + image, '', attributes);
}

function openPopupWindow(image, width, height){
	var w = 480, h = 340;
	if (document.all || document.layers) {
	  w = screen.availWidth;
	  h = screen.availHeight;
	}
	var leftPos = (w-(width+15))/2, topPos = (h-(height+15))/2;
	
	var attributes = "scrollbars=no,status=no,width=" +(width+15)+ ",height=" +(height+15)+",left="+leftPos+",top="+topPos;
	window.open('/file?q=PICT&i=' + image, '', attributes);
}


function openPopupWindowLink(url, width, height){
	var w = 480, h = 340;
	if (document.all || document.layers) {
	  w = screen.availWidth;
	  h = screen.availHeight;
	}
	var leftPos = (w-(width+15))/2, topPos = (h-(height+15))/2;
	
	var attributes = "scrollbars=no,status=no,width=" +(width+15)+ ",height=" +(height+15)+",left="+leftPos+",top="+topPos;
	window.open(url, '', attributes);
}

function closePopupWindowWebo(weboserver,webosite,webozone,webopage,webotime,url){
	weboscope(weboserver,webosite,webozone,webopage,webotime, 0, 0, 0, 0);
	var newWin = window.open(url);
	newWin.focus();
	window.close();
}
function closePopupWindow(url){
	var newWin = window.open(url);
	newWin.focus();
	window.close();
}

var clickDiv=false;

function clearBody(el)
{		
	if(el=='div'){
		clickDiv=true;
	}
	if (clickDiv==false){
		document.getElementById('Search').style.display='none';
		document.getElementById('Career').style.display='none';
		document.getElementById('imgSearch').src = '/file?q=BCC&i=ico-loupe.gif';
		document.getElementById('imgCareer').src = '/file?q=BCC&i=ico-exclam.gif';
		document.getElementById('imgWebsites').src = '/file?q=BCC&i=ico-etoile.gif';
		//document.getElementById('imgNewsLetter').src = '/file?q=BCC&i=ico-newsletter.gif';
		document.getElementById('aWebsites').className='grisF11foot';
		document.getElementById('aCareer').className='grisF11foot';
		document.getElementById('aSearch').className='grisF11foot';	
		//document.getElementById('aNewsLetter').className='grisF11foot';								
		document.getElementById('spanSearch').className='whitespan2';									
		document.getElementById('spanCareer').className='whitespan2';									
		document.getElementById('spanWebsites').className='whitespan2';
		//document.getElementById('spanNewsLetter').className='whitespan2';									
	}
	if(el!='div'){
		clickDiv=false;				
	}
}
//V8.2 evo:ModalBox/MHK
function modifDiv(elDiv,imgName)
{
	document.getElementById('imgSearch').src = '/file?q=BCC&i=ico-loupe.gif';
	document.getElementById('imgCareer').src = '/file?q=BCC&i=ico-exclam.gif';
	document.getElementById('imgWebsites').src = '/file?q=BCC&i=ico-etoile.gif';
	//document.getElementById('imgNewsLetter').src = '/file?q=BCC&i=ico-newsletter.gif';
	document.getElementById('Search').style.display='none';
	document.getElementById('Career').style.display='none';
	document.getElementById('aWebsites').className='grisC11foot';
	document.getElementById('aCareer').className='grisC11foot';
	document.getElementById('aSearch').className='grisC11foot';
	//document.getElementById('aNewsLetter').className='grisC11foot';
	document.getElementById('spanWebsites').className='grisspan2';
	document.getElementById('spanCareer').className='grisspan2';
	document.getElementById('spanSearch').className='grisspan2';
	//document.getElementById('spanNewsLetter').className='grisspan2';						
	document.getElementById('img'+elDiv).src = '/file?q=BCC&i=ico-'+imgName+'_bleu.gif';
	document.getElementById('a'+elDiv).className='black11foot';			
	document.getElementById(elDiv).style.display='block';
}
