function setClass(obj,n){obj.className=n}
var imageArray = new Array();
function doKBSearch() {
	document.location.href='&q='+escape(document.servicequery.q.value);
}
function populate() {
if (document.servicequery.q.value=="") {
	document.servicequery.q.value="type your question here";
	document.servicequery.q.select();
}
document.servicequery.q.focus();document.title="Grail Networks: "+document.title;
setHilight(document.getElementById('support'),'support');
}
function preloadImages()
{
  if(document.images)
  {
    if(!document.imageArray) document.imageArray = new Array();
    var i,j = document.imageArray.length, args = preloadImages.arguments;
    
    for(i=0; i<args.length; i++)
    {
      if (args[i].indexOf("#")!=0)
      {
        document.imageArray[j] = new Image;
        document.imageArray[j++].src = args[i];
      }
    }
  }
}

preloadImages("/corp/en/heading/images/homeh.gif","/corp/en/heading/images/loginh.gif","/corp/en/heading/images/productsh.gif","/corp/en/heading/images/purchaseh.gif","/corp/en/heading/images/partnersh.gif","/corp/en/heading/images/supporth.gif","/corp/en/heading/images/contacth.gif","/corp/en/heading/images/aboutush.gif");

function setHilight(object, which) {
	imageArray[which] = object.src;
	object.src = "/corp/en/heading/images/"+which+"h.gif";
}

function setNormal(object, which) {
	object.src = imageArray[which];
}