function favtoggle(id) {
  eval("var divPId = id+'Panel';");
  eval("var h1Id = id+'H1';");
  ['veille','source','document'].each(function(n){eval("var panelId = n+'Panel';");eval("var nh1Id = n+'H1';");Element.hide(panelId);$(nh1Id).className="selection";});
  $(divPId).style.display='block';
  $(h1Id).className="selection bb";  
}
function proptoggle(id) {
  eval("var divPId = id+'Panel';");
  eval("var divHId = id+'Header';");
  eval("var h1Id = id+'H1';");
  ['myevent','myapplication','myequipement','myactualite','myoffre'].each(function(n){eval("var panelId = n+'Panel';");eval("var headerId = n+'Header';");eval("var nh1Id = n+'H1';");Element.hide(panelId);Element.hide(headerId);$(nh1Id).className="selection";});
  $(divPId).style.display='block';
  $(divHId).style.display='block';
  $(h1Id).className="selection bb";
}
function wopen(url, name, w, h) {
  // Fudge factors for window decoration space.
  // In my tests these work well on all platforms & browsers.
  w += 32+32;
  h += 96;
  wleft = (screen.width - w) / 2;
  wtop = (screen.height - h) / 2;
  // IE5 and other old browsers might allow a window that is
  // partially offscreen or wider than the screen. Fix that.
  // (Newer browsers fix this for us, but let's be thorough.)
  if (wleft < 0) {
    w = screen.width;
    wleft = 0;
  }
  if (wtop < 0) {
    h = screen.height;
    wtop = 0;
  }
  var win = window.open(url,
    name,
    'width=' + w + ', height=' + h + ', ' +
    'left=' + wleft + ', top=' + wtop + ', ' +
    'location=no, menubar=no, ' +
    'status=no, toolbar=no, scrollbars=yes, resizable=yes');
  // Just in case width and height are ignored
  win.resizeTo(w, h);
  // Just in case left and top are ignored
  win.moveTo(wleft, wtop);
  win.focus();
}

var myrules = {
	'a' : function(el){
/*		el.onmouseover = function(){
			window.status = '';
			return true;
		};
*/
		el.onfocus = function(){
			this.blur();
			return true;
		}
	}
/*
	'body' : function(el){
		el.onmouseout = function(){
			closeMenus();
			return true;
		};
	}
*/
}

Behaviour.register(myrules);

