// image aléatoire de la Home
son = new Array();
son[0] = 'http://www.club-sandwich.net/images/index2/couple-sandwich.jpg';
son[1] = 'http://www.club-sandwich.net/images/index2/big-snack.jpg';
son[2] = 'http://www.club-sandwich.net/images/index2/burger-chic.jpg';
son[3] = 'http://www.club-sandwich.net/images/index2/sandwich-etages.jpg';
var nbre = son.length;
n = Math.floor(Math.random()* +nbre);

// ouverture popup
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//ss menus de la nav
window.onload=function (){
window['lksNav'] =  document.getElementById('menu').getElementsByTagName('li');
for(var i in window['lksNav']){
window['lksNav'][i].onmouseover = function(){
if(typeof(window['ssNavOn']) != 'undefined') window['ssNavOn'].style.display = 'none';
var ssNav = this.getElementsByTagName('ul');
if(typeof(ssNav[0]) != 'undefined'){
window['ssNavOn'] = ssNav[0];
window['ssNavOn'].style.display = 'inline';
this.className = "sel";
this.onmouseout = function(){
window['ssNavOn'].style.display = 'none';
this.className = "";
}
}
}
}
}
//

/* textZoom */
var zoomIs = 0;
var maxZoom = 11;
var minZoom = 0;
function initTextZoom()
{
	$('.textZoomIn').click(function(){
		if(zoomIs<=maxZoom-1){	
			zoomIs++;	
			if(zoomIs>0)
			{
				$('.article').removeClass('zoomIs_'+(zoomIs-1));
			}
			$('.article').addClass('zoomIs_'+zoomIs);
		}
		return false;
	});
	
	$('.textZoomOut').click(function(){
		if(zoomIs>minZoom){
			zoomIs--;
			if(zoomIs<maxZoom)
			{
				$('.article').removeClass('zoomIs_'+(zoomIs+1));
			}
			$('.article').addClass('zoomIs_'+zoomIs);
		}
		return false;
	});
	
}
