function del( Obj ) {
	var label = ( Obj.title ) ? Obj.title : 'Etes vous sûr de vouloir supprimer cet élément ?';
	return confirm( label );	
}

function popup( href, name, h, l ) {
	var hauteur = Math.round( ( screen.availHeight - h ) / 2 );
	var largeur = Math.round( ( screen.availWidth - l ) / 2 );
	var popup = window.open( href, name, 'toolbar=0,location=0,directories=0,status=0, scrollbars=1,resizable=1,menubar=0,top='+hauteur+',left='+largeur+',width='+l+',height='+h);
	popup.focus();
	return false;	
}

function initMenuHori(){
	if ($('menuhori'))
	new mooMenu($('menuhori'));
}
	
function initMenuVert(){
	if($('menuvert')){
		new jAccordion($('menuvert'), '.togglers', '.elements');
		if($('menu_slideshow')){
			var slide_show = new Slideshow('menu_slideshow', data, { captions: false, width:'247px', height:'251px', controller: false, hu: 'images/illustr/produit/' });
		}
	}
	if($('chapeau-gauche')){
		var slide_show = new Slideshow('chapeau-gauche-slideshow', data, { captions: false,width:'741px',height:'196px', controller: false, duration:2000, hu: 'images/illustr/accueil/' });
	}
}

function fInitHiddenTitles(){
	new hiddenTitles($$('.hiddentitles'));
}

function fInit(){
	initMenuVert();
	fInitHiddenTitles();
	if($('astuces')){
		var myRunner = new Runner('mousemove', {area: 0, run:{active:true,mode:'V',duration:1000,period:5000}});
		myRunner.start();
	}
}

window.addEvent('domready', fInit);

