//--------------------------
// Shows or hides a div by setting the display style
//--------------------------
function showHide(id, action) {
	if (document.getElementById) {
		document.getElementById(id).style.display = action;
	} else if (document.all) {
		document.all[id].style.display = action;
	} else if (document.layers) {
		document.layers[id].style.display = action;
	}
}


//--------------------------
// Called when the 'Search Contacts' or 'Hide Search' links are clicked
//--------------------------


function whichLocation() {
	if (location.search){
			var ary=window.location.search.substr(1).split("&");
			for (i=0;i<ary.length;i++) {
					ary[i]=ary[i].split("=");
					}
			var qStr=new Array();
			for (i=0;i<ary.length;i++) {
					ary[i][0]=ary[i][0].replace(/\+/g," ");
					ary[i][0]=unescape(ary[i][0]);
					ary[i][1]=ary[i][1].replace(/\+/g," ");
					ary[i][1]=unescape(ary[i][1]);
					qStr[ary[i][0]]=ary[i][1];
					}
			}
			var locToGo = qStr["mapToShow"];
			if (locToGo == undefined){
				locToGo = 5;
			}
			
	for ( var j=1; j < 20; j++){
		if (j!= locToGo){
			blockToHide = "bigtrack" + j;
			showHide(blockToHide, "none");
		}else if (j= locToGo) {
			simpleToShow = "bigtrack" + j;
			showHide(simpleToShow, "block");
		}
	}
}


//-->
