// Google Internal Site Search script- By JavaScriptKit.com (http://www.javascriptkit.com)
// For this and over 400+ free scripts, visit JavaScript Kit- http://www.javascriptkit.com/
// This notice must stay intact for use

//Enter domain of site to search.
var domainroot="www.westvanintl.ca"

function Gsitesearch(curobj){
curobj.q.value="site:"+domainroot+" "+curobj.search.value
}

// QuickLinks functionality

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

// highlight link to current page (side navigation)

function highlightNavigation () {
	if (!document.getElementById || !document.getElementsByTagName) {
		return false;
	}
	var navigation, nav_links;
	if (navigation = document.getElementById("nav-sub")) {
		nav_links = navigation.getElementsByTagName("a");
		for (var i=0; i<nav_links.length; i++) {
			if (document.location.href.indexOf(nav_links[i].href)!=-1) {
			   nav_links[i].className = "active";
			}
		}
	}
}

window.onload = highlightNavigation;