// This file contains the rollover script for the icon navigation + the search box clear function// Begin Preload Scriptif (document.images) {off_harlequin_home=new Image();off_harlequin_home.src="/includes/site_images/punch/harlequin_logo.gif";on_harlequin_home=new Image();on_harlequin_home.src="/includes/site_images/punch/harlequin_logo_over.gif";off_punch_home=new Image();off_punch_home.src="/includes/site_images/punch/punch_logo.gif";on_punch_home=new Image();on_punch_home.src="/includes/site_images/punch/punch_logo_over.gif";off_home=new Image();off_home.src="/includes/site_images/punch/icon_home.gif";on_home=new Image();on_home.src="/includes/site_images/punch/icon_home_over.gif";off_search=new Image();off_search.src="/includes/site_images/punch/icon_search.gif";on_search=new Image();on_search.src="/includes/site_images/punch/icon_search_over.gif";off_contact=new Image();off_contact.src="/includes/site_images/punch/icon_contact.gif";on_contact=new Image();on_contact.src="/includes/site_images/punch/icon_contact_over.gif";off_sitemap=new Image();off_sitemap.src="/includes/site_images/punch/icon_sitemap.gif";on_sitemap=new Image();on_sitemap.src="/includes/site_images/punch/icon_sitemap_over.gif";}function LightUp(imageID,objectName,text){	if (document.images) 	{		document.images[imageID].src = eval(objectName + ".src");   	}   	  	window.status = text;   		return true;}		function LightOff(imageID,objectName){	if (document.images) 	{		document.images[imageID].src = eval(objectName + ".src");  	}	   		}// End Preload Script// Search Box Clear Function ===========================function clearDefault(el) {  if (el.defaultValue==el.value) el.value = ""}// Random pairs on solutions homepage ==================<!-- Hide from old browsers// Random Image page c.collinge(c)1997 - updated by Jag to include random pairs.// GLOBAL VARS:var Number=4;function random(){index = (Math.round((Math.random() * Number )));return index;}function GetImage(array,index){// Set up array of images. Use the name of the files you want displayed. var imgNames1 = new Array("a00.gif","a01.gif","a02.gif","a03.gif","a04.gif","a05.gif","a00.gif","a01.gif","a02.gif","a03.gif","a04.gif","a05.gif");var imgNames2 = new Array("b00.gif","b01.gif","b02.gif","b03.gif","b04.gif","b05.gif","b00.gif","b01.gif","b02.gif","b03.gif","b04.gif","b05.gif");// Set up the path name to find the images.var imgPath = "/includes/site_images/homepage/random_img/";if (document.images) {// This is a random generator. Use the number variable to change the value of random images// that you would like to produce. i.e Number=10 for 11 images. NB - the Index starts from 0.// Code for ALT tags.var altstring;         switch(array)			{			case 1:altstring="Training Services";			imgRand = imgPath + imgNames1[index];			break;			case 2:altstring="Web Development";			imgRand = imgPath + imgNames2[index];			break;			}			var imgTag = "<IMG src=" + imgRand + " name='swapImg' width='262' height='71' alt='" + altstring + "' border='0'>";        // end 				 }// Stop hiding from old browsers -->return imgTag}// Code for window popping. ============================function openwinMatrix(pagename){var remote=window.open(pagename,'Matrix','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width=550,height=200');remote.focus();}