function newImg(i) { p=new Image(); p.src=i; return p;}

var focused = false;
var m_a = new Array('info','lieferung','retour');

info_b = newImg("/_i/"+SITE_LOCALE+"/bookmark-info.gif");
info_b_a = newImg("/_i/"+SITE_LOCALE+"/bookmark-info-a.gif");
lieferung_b = newImg("/_i/"+SITE_LOCALE+"/bookmark-lieferung.gif");
lieferung_b_a = newImg("/_i/"+SITE_LOCALE+"/bookmark-lieferung-a.gif");
retour_b = newImg("/_i/"+SITE_LOCALE+"/bookmark-retour.gif");
retour_b_a = newImg("/_i/"+SITE_LOCALE+"/bookmark-retour-a.gif");

function set_it(di,st) {
	if(st==1) {
		document.getElementById(di+'_b').className='active';
		img = di+'_b';
		document.getElementById(di+'_b').src = eval(img + "_a.src");
		//$('m_'+di+'_r').className='mnu_active_r'; 
		document.getElementById(di).style.display='block';
	}else { 
		document.getElementById(di+'_b').className='';
		img = di+'_b';
		document.getElementById(di+'_b').src = eval(img + ".src");
		//$('m_'+di+'_r').className=''; 
		document.getElementById(di).style.display='none';
	}
}
function up_it_now(it) {
	if(focused===it) for(var ii=0;ii<m_a.length;ii++) set_it(m_a[ii],it==m_a[ii]?1:0);
}
function up_it(it) {
	focused = it;	
	setTimeout('up_it_now("'+it+'")',300);
}
function out_it() {
	focused = false;	
}
