function overMap(province){
	document.canada.src='images/map/map_'+province+'.gif';
	showLayer(province);
}
function outMap(province){
	document.canada.src='images/map/map_'+province+'.gif';
	hideLayers();
}

function Is (){
	    var agt=navigator.userAgent.toLowerCase()
	    this.major = parseInt(navigator.appVersion)	
	    this.nav  = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1)))
	    this.nav4 = (this.nav && (this.major == 4))
	    this.nav4up = this.nav && (this.major >= 4)
	    this.ie   = (agt.indexOf("msie") != -1)
	    this.ie4  = (this.ie && (this.major == 4))
	    this.ie4up  = this.ie  && (this.major >= 4)
}
var is = new Is();
var divArray = new Array("abBoard","bcBoard","mbBoard","nbBoard","nfBoard","nsBoard","ntBoard","nuBoard","onBoard","peBoard","qcBoard","skBoard","ytBoard");
function showLayer(province){
	hideLayers();
	switch (province){ 
		case ("ab"): i = 0;	break;
		case ("bc"): i = 1;	break;
		case ("mb"): i = 2;	break;
		case ("nb"): i = 3;	break;
		case ("nf"): i = 4;	break;
		case ("ns"): i = 5;	break;
		case ("nt"): i = 6;	break;
		case ("nu"): i = 7;	break;
		case ("on"): i = 8;	break;
		case ("pe"): i = 9; break;
		case ("qc"): i = 10; break;
		case ("sk"): i = 11; break;
		case ("yt"): i = 12; break;
	} 
	if (is.nav4) {
		document.layers[divArray[i]].visibility="show";
	}else if (is.nav4up) {
	 	temp = document.getElementById(divArray[i]);
		temp.style.visibility = "visible";
	}else {
		document.all[divArray[i]].style.visibility="visible";
	}
}
function hideLayers(){
	if (is.nav4) {
		for(var i=0;i<divArray.length;i++){
			document.layers[divArray[i]].visibility="hide";
		}
	}else if (is.nav4up) {
	  	for(var i=0;i<divArray.length;i++){
		 	temp = document.getElementById(divArray[i]);
			temp.style.visibility = "hidden";
		}
	}else {
	  	for(var i=0;i<divArray.length;i++){     
			document.all[divArray[i]].style.visibility="hidden";
		}
	}
}
