window.onload = PimpIt;

function PimpIt() {

	if (!document.getElementsByTagName) return false;
	if (!document.getElementById) return false;
	
    var links = document.getElementsByTagName("a");
    for (var i=0; i< links.length; i++) {

       if (links[i].className.match("show")) {
          
		  
		  
		  links[i].onmouseover = function() {
		     var prod = document.getElementById('featured');
	         prod.style.display = "none";
		     var divId = this.getAttribute("rel");
	         var e = document.getElementById(divId);
             e.style.display = 'block';
	         }
			 
		  links[i].onmouseout = function() {
		     var divId = this.getAttribute("rel");
	         var e = document.getElementById(divId);
             e.style.display = 'none';
			 var prod = document.getElementById('featured');
	         prod.style.display = "block";
	         } 	 
       }
    }

	var search = document.forms['search'].submit;
	var q = document.forms['search'].q;
	
	search.onclick = function() {
	   if (q.value == "") {  
	   alert('Please enter one or more words to search for'); 
	   q.focus();
	   return false; 
	   }
	}


}

defaultStatus='Pico Technology PC oscilloscopes and data acquisition products';
