/*****************

  (c) 2006 Q42 B.V.

  The contents of this file, partially or in whole, may not be reproduced
  without prior written permission by Q42 B.V.

*****************/

function VacanceSelect()
{
	Spif.DOMEvents.attach(window, "load", this.doLoad);
}
VacanceSelect.prototype =
{
	doLoad : function()
	{
	  vs.blurMainMenuButtonsOnFocus();
	},
	
	blurMainMenuButtonsOnFocus: function()
	{
	  var mainmenu = document.getElementById('mainmenu');
	  if (mainmenu && mainmenu.childNodes)
	  {
	    for (var i = 0; i < mainmenu.childNodes.length; i++)
	    {
	      var item = mainmenu.childNodes[i];
	      if (item.nodeName == "LI" && item.parentNode == mainmenu)
	        Spif.DOMEvents.attach(item, "focus", function(){this.blur()});
	    }
	  }
	}
}
var vs = new VacanceSelect();

try {
  document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}
