//<!--
//javascript functions
function swapimage(image_name,this_image) {
	document.images[image_name].src=this_image;
}


function loadLeftNav() {

	//load LeftNav images
	leftNavImgNames = new Array(
	"images/nav_about_off.gif",
	"images/nav_about_over.gif",
	"images/nav_about_on.gif",
	"images/nav_clients_off.gif",
	"images/nav_clients_over.gif",
	"images/nav_clients_on.gif",
	"images/nav_contact_off.gif",
	"images/nav_contact_over.gif",
	"images/nav_contact_on.gif",
	"images/nav_whatwedo_off.gif",
	"images/nav_whatwedo_over.gif",
	"images/nav_whatwedo_on.gif"
	)
	loadLeftNavImgs = new Array()
	for(i=0; i < leftNavImgNames.length; i++) {
		loadLeftNavImgs[i] = new Image;
		loadLeftNavImgs[i].src = leftNavImgNames[i];
	}

	//load About branch
	navBranchAbout = new Array("about.htm","about_cpinto.htm","about_csmith.htm","about_rkilstock.htm","about_tsmith.htm")
	for(i=0; i < navBranchAbout.length; i++) {
		if (window.location.pathname.indexOf(navBranchAbout[i]) != -1) {
			document.images["nav_about_image"].src = "images/nav_about_on.gif";
			//document.getElementById("anchor_about").removeAttribute("href");
			document.getElementById("anchor_whatwedo").onmouseover = function(){swapimage('nav_whatwedo_image','images/nav_whatwedo_over.gif')};
			document.getElementById("anchor_whatwedo").onmouseout = function(){swapimage('nav_whatwedo_image','images/nav_whatwedo_off.gif')};
			document.getElementById("anchor_clients").onmouseover = function(){swapimage('nav_clients_image','images/nav_clients_over.gif')};
			document.getElementById("anchor_clients").onmouseout = function(){swapimage('nav_clients_image','images/nav_clients_off.gif')};
			document.getElementById("anchor_contact").onmouseover = function(){swapimage('nav_contact_image','images/nav_contact_over.gif')};
			document.getElementById("anchor_contact").onmouseout = function(){swapimage('nav_contact_image','images/nav_contact_off.gif')};
		}
	}

	//load WhatWeDo branch
	navBranchWhatwedo = new Array("whatwedo_devstudios.htm","whatwedo_licensing.htm","whatwedo_recruitment.htm","whatwedo_wireless.htm")
	for(i=0; i < navBranchWhatwedo.length; i++) {
		if (window.location.pathname.indexOf(navBranchWhatwedo[i]) != -1) {
			document.images["nav_whatwedo_image"].src = "images/nav_whatwedo_on.gif";
			document.getElementById("anchor_whatwedo").removeAttribute("href");
			document.getElementById("anchor_about").onmouseover = function(){swapimage('nav_about_image','images/nav_about_over.gif')};
			document.getElementById("anchor_about").onmouseout = function(){swapimage('nav_about_image','images/nav_about_off.gif')};
			document.getElementById("anchor_clients").onmouseover = function(){swapimage('nav_clients_image','images/nav_clients_over.gif')};
			document.getElementById("anchor_clients").onmouseout = function(){swapimage('nav_clients_image','images/nav_clients_off.gif')};
			document.getElementById("anchor_contact").onmouseover = function(){swapimage('nav_contact_image','images/nav_contact_over.gif')};
			document.getElementById("anchor_contact").onmouseout = function(){swapimage('nav_contact_image','images/nav_contact_off.gif')};
		}
	}

	//load Clients branch
	navBranchClients = new Array("clients.htm")
	for(i=0; i < navBranchClients.length; i++) {
		if (window.location.pathname.indexOf(navBranchClients[i]) != -1) {
			document.images["nav_clients_image"].src = "images/nav_clients_on.gif";
			document.getElementById("anchor_clients").removeAttribute("href");
			document.getElementById("anchor_about").onmouseover = function(){swapimage('nav_about_image','images/nav_about_over.gif')};
			document.getElementById("anchor_about").onmouseout = function(){swapimage('nav_about_image','images/nav_about_off.gif')};
			document.getElementById("anchor_whatwedo").onmouseover = function(){swapimage('nav_whatwedo_image','images/nav_whatwedo_over.gif')};
			document.getElementById("anchor_whatwedo").onmouseout = function(){swapimage('nav_whatwedo_image','images/nav_whatwedo_off.gif')};
			document.getElementById("anchor_contact").onmouseover = function(){swapimage('nav_contact_image','images/nav_contact_over.gif')};
			document.getElementById("anchor_contact").onmouseout = function(){swapimage('nav_contact_image','images/nav_contact_off.gif')};
		}
	}

	//load Contact branch
	navBranchContact = new Array("contact.htm")
	for(i=0; i < navBranchContact.length; i++) {
		if (window.location.pathname.indexOf(navBranchContact[i]) != -1) {
			document.images["nav_contact_image"].src = "images/nav_contact_on.gif";
			document.getElementById("anchor_contact").removeAttribute("href");
			document.getElementById("anchor_about").onmouseover = function(){swapimage('nav_about_image','images/nav_about_over.gif')};
			document.getElementById("anchor_about").onmouseout = function(){swapimage('nav_about_image','images/nav_about_off.gif')};
			document.getElementById("anchor_whatwedo").onmouseover = function(){swapimage('nav_whatwedo_image','images/nav_whatwedo_over.gif')};
			document.getElementById("anchor_whatwedo").onmouseout = function(){swapimage('nav_whatwedo_image','images/nav_whatwedo_off.gif')};
			document.getElementById("anchor_clients").onmouseover = function(){swapimage('nav_clients_image','images/nav_clients_over.gif')};
			document.getElementById("anchor_clients").onmouseout = function(){swapimage('nav_clients_image','images/nav_clients_off.gif')};
		}
	}
}


function loadSecondaryNavAbout() {
	//load all SecNavAbout images
	secNavAboutImgNames = new Array(
	"images/nav_about_cpinto_off.gif",
	"images/nav_about_cpinto_over.gif",
	"images/nav_about_cpinto_on.gif",
	"images/nav_about_csmith_off.gif",
	"images/nav_about_csmith_over.gif",
	"images/nav_about_csmith_on.gif",
	"images/nav_about_tsmith_off.gif",
	"images/nav_about_tsmith_over.gif",
	"images/nav_about_tsmith_on.gif",
	"images/nav_about_rkilstock_off.gif",
	"images/nav_about_rkilstock_over.gif",
	"images/nav_about_rkilstock_on.gif"
	)
	loadSecNavAboutImgs = new Array()
	for(i=0; i < secNavAboutImgNames.length; i++) {
		loadSecNavAboutImgs[i] = new Image;
		loadSecNavAboutImgs[i].src = secNavAboutImgNames[i];
	}

	//load Default branch
	navBranchAboutDefault = new Array("about.htm")
	for(i=0; i < navBranchAboutDefault.length; i++) {
		if (window.location.pathname.indexOf(navBranchAboutDefault[i]) != -1) {
			document.getElementById("anchor_about_cpinto").onmouseover = function(){swapimage('nav_about_cpinto_image','images/nav_about_cpinto_over.gif')};
			document.getElementById("anchor_about_cpinto").onmouseout = function(){swapimage('nav_about_cpinto_image','images/nav_about_cpinto_off.gif')};
			document.getElementById("anchor_about_csmith").onmouseover = function(){swapimage('nav_about_csmith_image','images/nav_about_csmith_over.gif')};
			document.getElementById("anchor_about_csmith").onmouseout = function(){swapimage('nav_about_csmith_image','images/nav_about_csmith_off.gif')};
			document.getElementById("anchor_about_tsmith").onmouseover = function(){swapimage('nav_about_tsmith_image','images/nav_about_tsmith_over.gif')};
			document.getElementById("anchor_about_tsmith").onmouseout = function(){swapimage('nav_about_tsmith_image','images/nav_about_tsmith_off.gif')};
			document.getElementById("anchor_about_rkilstock").onmouseover = function(){swapimage('nav_about_rkilstock_image','images/nav_about_rkilstock_over.gif')};
			document.getElementById("anchor_about_rkilstock").onmouseout = function(){swapimage('nav_about_rkilstock_image','images/nav_about_rkilstock_off.gif')};
		}
	}

	//load CPinto branch
	navBranchAboutCPinto = new Array("about_cpinto.htm")
	for(i=0; i < navBranchAboutCPinto.length; i++) {
		if (window.location.pathname.indexOf(navBranchAboutCPinto[i]) != -1) {
			document.images["nav_about_cpinto_image"].src = "images/nav_about_cpinto_on.gif";
			document.getElementById("anchor_about_cpinto").removeAttribute("href");
			document.getElementById("anchor_about_csmith").onmouseover = function(){swapimage('nav_about_csmith_image','images/nav_about_csmith_over.gif')};
			document.getElementById("anchor_about_csmith").onmouseout = function(){swapimage('nav_about_csmith_image','images/nav_about_csmith_off.gif')};
			document.getElementById("anchor_about_tsmith").onmouseover = function(){swapimage('nav_about_tsmith_image','images/nav_about_tsmith_over.gif')};
			document.getElementById("anchor_about_tsmith").onmouseout = function(){swapimage('nav_about_tsmith_image','images/nav_about_tsmith_off.gif')};
			document.getElementById("anchor_about_rkilstock").onmouseover = function(){swapimage('nav_about_rkilstock_image','images/nav_about_rkilstock_over.gif')};
			document.getElementById("anchor_about_rkilstock").onmouseout = function(){swapimage('nav_about_rkilstock_image','images/nav_about_rkilstock_off.gif')};
		}
	}

	//load CSmith branch
	navBranchAboutCSmith = new Array("about_csmith.htm")
	for(i=0; i < navBranchAboutCSmith.length; i++) {
		if (window.location.pathname.indexOf(navBranchAboutCSmith[i]) != -1) {
			document.images["nav_about_csmith_image"].src = "images/nav_about_csmith_on.gif";
			document.getElementById("anchor_about_csmith").removeAttribute("href");
			document.getElementById("anchor_about_cpinto").onmouseover = function(){swapimage('nav_about_cpinto_image','images/nav_about_cpinto_over.gif')};
			document.getElementById("anchor_about_cpinto").onmouseout = function(){swapimage('nav_about_cpinto_image','images/nav_about_cpinto_off.gif')};
			document.getElementById("anchor_about_tsmith").onmouseover = function(){swapimage('nav_about_tsmith_image','images/nav_about_tsmith_over.gif')};
			document.getElementById("anchor_about_tsmith").onmouseout = function(){swapimage('nav_about_tsmith_image','images/nav_about_tsmith_off.gif')};
			document.getElementById("anchor_about_rkilstock").onmouseover = function(){swapimage('nav_about_rkilstock_image','images/nav_about_rkilstock_over.gif')};
			document.getElementById("anchor_about_rkilstock").onmouseout = function(){swapimage('nav_about_rkilstock_image','images/nav_about_rkilstock_off.gif')};
		}
	}

	//load TSmith branch
	navBranchAboutTSmith = new Array("about_tsmith.htm")
	for(i=0; i < navBranchAboutTSmith.length; i++) {
		if (window.location.pathname.indexOf(navBranchAboutTSmith[i]) != -1) {
			document.images["nav_about_tsmith_image"].src = "images/nav_about_tsmith_on.gif";
			document.getElementById("anchor_about_tsmith").removeAttribute("href");
			document.getElementById("anchor_about_cpinto").onmouseover = function(){swapimage('nav_about_cpinto_image','images/nav_about_cpinto_over.gif')};
			document.getElementById("anchor_about_cpinto").onmouseout = function(){swapimage('nav_about_cpinto_image','images/nav_about_cpinto_off.gif')};
			document.getElementById("anchor_about_csmith").onmouseover = function(){swapimage('nav_about_csmith_image','images/nav_about_csmith_over.gif')};
			document.getElementById("anchor_about_csmith").onmouseout = function(){swapimage('nav_about_csmith_image','images/nav_about_csmith_off.gif')};
			document.getElementById("anchor_about_rkilstock").onmouseover = function(){swapimage('nav_about_rkilstock_image','images/nav_about_rkilstock_over.gif')};
			document.getElementById("anchor_about_rkilstock").onmouseout = function(){swapimage('nav_about_rkilstock_image','images/nav_about_rkilstock_off.gif')};
		}
	}

	//load RKilstock branch
	navBranchAboutRKilstock = new Array("about_rkilstock.htm")
	for(i=0; i < navBranchAboutRKilstock.length; i++) {
		if (window.location.pathname.indexOf(navBranchAboutRKilstock[i]) != -1) {
			document.images["nav_about_rkilstock_image"].src = "images/nav_about_rkilstock_on.gif";
			document.getElementById("anchor_about_rkilstock").removeAttribute("href");
			document.getElementById("anchor_about_cpinto").onmouseover = function(){swapimage('nav_about_cpinto_image','images/nav_about_cpinto_over.gif')};
			document.getElementById("anchor_about_cpinto").onmouseout = function(){swapimage('nav_about_cpinto_image','images/nav_about_cpinto_off.gif')};
			document.getElementById("anchor_about_csmith").onmouseover = function(){swapimage('nav_about_csmith_image','images/nav_about_csmith_over.gif')};
			document.getElementById("anchor_about_csmith").onmouseout = function(){swapimage('nav_about_csmith_image','images/nav_about_csmith_off.gif')};
			document.getElementById("anchor_about_tsmith").onmouseover = function(){swapimage('nav_about_tsmith_image','images/nav_about_tsmith_over.gif')};
			document.getElementById("anchor_about_tsmith").onmouseout = function(){swapimage('nav_about_tsmith_image','images/nav_about_tsmith_off.gif')};
		}
	}
}


function loadSecondaryNavWhatWeDo() {
	//load all SecNavWhatWeDo images
	secNavWhatWeDoImgNames = new Array(
	"images/nav_whatwedo_recruitment_off.gif",
	"images/nav_whatwedo_recruitment_over.gif",
	"images/nav_whatwedo_recruitment_on.gif",
	"images/nav_whatwedo_devstudios_off.gif",
	"images/nav_whatwedo_devstudios_over.gif",
	"images/nav_whatwedo_devstudios_on.gif",
	"images/nav_whatwedo_licensing_off.gif",
	"images/nav_whatwedo_licensing_over.gif",
	"images/nav_whatwedo_licensing_on.gif",
	"images/nav_whatwedo_wireless_off.gif",
	"images/nav_whatwedo_wireless_over.gif",
	"images/nav_whatwedo_wireless_on.gif"
	)
	loadSecNavWhatWeDoImgs = new Array()
	for(i=0; i < secNavWhatWeDoImgNames.length; i++) {
		loadSecNavWhatWeDoImgs[i] = new Image;
		loadSecNavWhatWeDoImgs[i].src = secNavWhatWeDoImgNames[i];
	}

	//load Recruitment branch
	navBranchWhatWeDoRecruitment = new Array("whatwedo_recruitment.htm")
	for(i=0; i < navBranchWhatWeDoRecruitment.length; i++) {
		if (window.location.pathname.indexOf(navBranchWhatWeDoRecruitment[i]) != -1) {
			document.images["nav_whatwedo_recruitment_image"].src = "images/nav_whatwedo_recruitment_on.gif";
			document.getElementById("anchor_whatwedo_recruitment").removeAttribute("href");
			document.getElementById("anchor_whatwedo_devstudios").onmouseover = function(){swapimage('nav_whatwedo_devstudios_image','images/nav_whatwedo_devstudios_over.gif')};
			document.getElementById("anchor_whatwedo_devstudios").onmouseout = function(){swapimage('nav_whatwedo_devstudios_image','images/nav_whatwedo_devstudios_off.gif')};
			document.getElementById("anchor_whatwedo_licensing").onmouseover = function(){swapimage('nav_whatwedo_licensing_image','images/nav_whatwedo_licensing_over.gif')};
			document.getElementById("anchor_whatwedo_licensing").onmouseout = function(){swapimage('nav_whatwedo_licensing_image','images/nav_whatwedo_licensing_off.gif')};
			document.getElementById("anchor_whatwedo_wireless").onmouseover = function(){swapimage('nav_whatwedo_wireless_image','images/nav_whatwedo_wireless_over.gif')};
			document.getElementById("anchor_whatwedo_wireless").onmouseout = function(){swapimage('nav_whatwedo_wireless_image','images/nav_whatwedo_wireless_off.gif')};
		}
	}

	//load DevStudios branch
	navBranchWhatWeDoDevStudios = new Array("whatwedo_devstudios.htm")
	for(i=0; i < navBranchWhatWeDoDevStudios.length; i++) {
		if (window.location.pathname.indexOf(navBranchWhatWeDoDevStudios[i]) != -1) {
			document.images["nav_whatwedo_devstudios_image"].src = "images/nav_whatwedo_devstudios_on.gif";
			document.getElementById("anchor_whatwedo_devstudios").removeAttribute("href");
			document.getElementById("anchor_whatwedo_recruitment").onmouseover = function(){swapimage('nav_whatwedo_recruitment_image','images/nav_whatwedo_recruitment_over.gif')};
			document.getElementById("anchor_whatwedo_recruitment").onmouseout = function(){swapimage('nav_whatwedo_recruitment_image','images/nav_whatwedo_recruitment_off.gif')};
			document.getElementById("anchor_whatwedo_licensing").onmouseover = function(){swapimage('nav_whatwedo_licensing_image','images/nav_whatwedo_licensing_over.gif')};
			document.getElementById("anchor_whatwedo_licensing").onmouseout = function(){swapimage('nav_whatwedo_licensing_image','images/nav_whatwedo_licensing_off.gif')};
			document.getElementById("anchor_whatwedo_wireless").onmouseover = function(){swapimage('nav_whatwedo_wireless_image','images/nav_whatwedo_wireless_over.gif')};
			document.getElementById("anchor_whatwedo_wireless").onmouseout = function(){swapimage('nav_whatwedo_wireless_image','images/nav_whatwedo_wireless_off.gif')};
		}
	}

	//load Licensing branch
	navBranchWhatWeDoLicensing = new Array("whatwedo_licensing.htm")
	for(i=0; i < navBranchWhatWeDoLicensing.length; i++) {
		if (window.location.pathname.indexOf(navBranchWhatWeDoLicensing[i]) != -1) {
			document.images["nav_whatwedo_licensing_image"].src = "images/nav_whatwedo_licensing_on.gif";
			document.getElementById("anchor_whatwedo_licensing").removeAttribute("href");
			document.getElementById("anchor_whatwedo_recruitment").onmouseover = function(){swapimage('nav_whatwedo_recruitment_image','images/nav_whatwedo_recruitment_over.gif')};
			document.getElementById("anchor_whatwedo_recruitment").onmouseout = function(){swapimage('nav_whatwedo_recruitment_image','images/nav_whatwedo_recruitment_off.gif')};
			document.getElementById("anchor_whatwedo_devstudios").onmouseover = function(){swapimage('nav_whatwedo_devstudios_image','images/nav_whatwedo_devstudios_over.gif')};
			document.getElementById("anchor_whatwedo_devstudios").onmouseout = function(){swapimage('nav_whatwedo_devstudios_image','images/nav_whatwedo_devstudios_off.gif')};
			document.getElementById("anchor_whatwedo_wireless").onmouseover = function(){swapimage('nav_whatwedo_wireless_image','images/nav_whatwedo_wireless_over.gif')};
			document.getElementById("anchor_whatwedo_wireless").onmouseout = function(){swapimage('nav_whatwedo_wireless_image','images/nav_whatwedo_wireless_off.gif')};
		}
	}

	//load Wireless branch
	navBranchWhatWeDoWireless = new Array("whatwedo_wireless.htm")
	for(i=0; i < navBranchWhatWeDoWireless.length; i++) {
		if (window.location.pathname.indexOf(navBranchWhatWeDoWireless[i]) != -1) {
			document.images["nav_whatwedo_wireless_image"].src = "images/nav_whatwedo_wireless_on.gif";
			document.getElementById("anchor_whatwedo_wireless").removeAttribute("href");
			document.getElementById("anchor_whatwedo_recruitment").onmouseover = function(){swapimage('nav_whatwedo_recruitment_image','images/nav_whatwedo_recruitment_over.gif')};
			document.getElementById("anchor_whatwedo_recruitment").onmouseout = function(){swapimage('nav_whatwedo_recruitment_image','images/nav_whatwedo_recruitment_off.gif')};
			document.getElementById("anchor_whatwedo_devstudios").onmouseover = function(){swapimage('nav_whatwedo_devstudios_image','images/nav_whatwedo_devstudios_over.gif')};
			document.getElementById("anchor_whatwedo_devstudios").onmouseout = function(){swapimage('nav_whatwedo_devstudios_image','images/nav_whatwedo_devstudios_off.gif')};
			document.getElementById("anchor_whatwedo_licensing").onmouseover = function(){swapimage('nav_whatwedo_licensing_image','images/nav_whatwedo_licensing_over.gif')};
			document.getElementById("anchor_whatwedo_licensing").onmouseout = function(){swapimage('nav_whatwedo_licensing_image','images/nav_whatwedo_licensing_off.gif')};
		}
	}
}

//-->
