function detectPage(cl,d){
	var i,k,ob,tA,h=document.location.href;
	
	//var query = location.search.substring(1);
	//var pos = query.indexOf('=');
	//var tab = query.substring(pos+1,query.length);
	//document.write(tab)
	//tab=document.location.URL; //+ "?tab=" + tab;
	//document.write(tab + '<br>');
	//document.write(tab);
	
	function delineate(str)
	{
		theleft = str.indexOf("=") + 1;
		theright = str.lastIndexOf("&");
		return(str.substring(theleft, theright));
	}

	var tab=delineate(h);
	//document.write(tab);
	
	if(document.getElementById){
	ob=(d)?document.getElementById(d):document;
	if(ob){
	tA=ob.getElementsByTagName('A');
	for(i=0;i<tA.length;i++){
	//if(tA[i].name=='our_services') {
	//		k=i;
	//		}
	if(tA[i].href==h) {
	//if(tA[i].href==h || tA[i].href==tab){
	//	document.write(h);
	//	document.write(tab)
	tA[i].className=cl;
	}
	}
	
	if(tab=='our_services') {
		tA[2].className=cl;
	}}}}