// Effets
function ejs_img_fx(img){	
	if(img && img.filters && img.filters[0]){
		img.filters[0].apply();
		img.filters[0].play();
	}
}

// BOUTONS activation
function select_click(mode,url){
	document.getElementById(search_form.mode.value).className = '';
    document.getElementById(mode).className = 'btn111select';
	search_form.mode.value=mode;
	parent.edit.location.href=url;
}

function select_over(mode){
	this_button = document.getElementById(mode);
	this_button.style.cursor='hand';
	if(search_form.mode.value!=mode){
		if(search_form.mode.value!=mode){this_button.className='btn111over';}
	}
}

function select_out(mode){
	this_button = document.getElementById(mode);
	if(search_form.mode.value!=mode){
		if(search_form.mode.value!=mode){this_button.className='';}
	}
}

// NAVIGATION
function popup(url) { 
	window.open(url,'popupImageWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=180,height=300,screenX=250,screenY=300,top=150,left=150')
}
function select_pic(im_gal){
 	document.galerie.src='images/presentation/'+im_gal+'.jpg';
} 
function image_go(){
	popup('images/presentation/big/'+document.galerie.src.slice(50));
}
function view(magasin){
	window.open('../'+magasin+'/',"BALSAN","width=650,height=700,left=30,top=20, status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes");
}
function change_agence(agence_id){
	document.location.href='http://www.balsan.fr/web/balsan_magasin.php?agence='+agence_id;
}

