

/*
 * Dropdown Menu
 */
function P7_ExpMenu()
	{
	
	 if(navigator.appVersion.indexOf("MSIE")==-1)
		{
		return;
	}
	 var i,k,g,lg,r=/\s*p7hvr/,nn='',c,cs='p7hvr',bv='menu';
	 for(i=0;
	i<10;
	i++)
		{
		//g=document.getElementById(bv+nn);
		//g = $('#menuWrap ul');
		g = findFirstDescendant('menu', 'ul')
		if(g)
			{
			 lg=g.getElementsByTagName("LI");
			if(lg)
				{
				for(k=0;
				k<lg.length;
				k++)
					{
					 lg[k].onmouseover=function()
						{
						c=this.className;
						cl=(c)?c+' '+cs:cs;
						 this.className=cl;
					};
					lg[k].onmouseout=function()
						{
						c=this.className;
						 this.className=(c)?c.replace(r,''):'';
					};
				}
			}
		}
		nn=i+1;
	}
	
}
function findFirstDescendant(parent, tagname)
{
   parent = document.getElementById(parent);
   var descendants = parent.getElementsByTagName(tagname);
   if ( descendants.length )
      return descendants[0];
   return null;
}
function focusf()
{
	node = document.getElementById("query");
	if (node.value=='Search')node.value=''
	
}
function blurf()
{
	node = document.getElementById("query");
	if (node.value==''){node.value='Search';}
}

/*
 * OnLoad Events
 */
 function start() 
	{
	 
		  P7_ExpMenu();
		  node = document.getElementById('query')
		  
		
		 if (node.attachEvent) {
		   node.attachEvent('onfocus',focusf);
		   node.attachEvent('onblur',blurf);
		 }else {
		   node.addEventListener('focus',focusf,false);
		   node.addEventListener('blur',blurf,false);
		 }
		
}

 
	 
window.onload = start;


 