
//***********IMAGES*************

var imagenames=new Array( defImg,
							'images/bell.jpg', 'images/txsmall_bell.png',
							'images/escon.jpg', 'images/txsmall_escon.png', 
							'images/fred.jpg', 'images/txsmall_fred.png',
							'images/mes.jpg', 'images/txsmall_mes.png',
							'images/texoma.jpg', 'images/txsmall_texoma.png',
							'images/tdm.jpg', 'images/txsmall_tdm.png',
							'images/thc.jpg', 'images/txsmall_thc.png',
							'images/thp.jpg', 'images/txsmall_thp.png');
var images=new Array();
for(n=0;n<imagenames.length;n++){
	images[n]=new Image();
	images[n].src=imagenames[n];
}

//************AREA**************

var detailsLink="default.html"

//	Called on selecting an area
function showArea(strArea){
if (strArea=='bell')	{detailsLink = 'http://tdasurvey.tamu.edu/website/txwineregions_BellMountain';}
else if(strArea=='escon'){detailsLink = 'http://tdasurvey.tamu.edu/website/txwineregions_Escondido';}
else if(strArea=='fred'){detailsLink = 'http://tdasurvey.tamu.edu/website/txwineregion_Fredericksburg';}
else if(strArea=='mes'){detailsLink = 'http://tdasurvey.tamu.edu/website/txwineregions_Mesilla';}
else if(strArea=='texoma'){detailsLink = 'http://tdasurvey.tamu.edu/website/txwineregions_Texoma';}
else if(strArea=='tdm'){detailsLink = 'http://tdasurvey.tamu.edu/website/txwineregions_Davis';}
else if(strArea=='thc'){detailsLink = 'http://tdasurvey.tamu.edu/website/txwineregion_HillCountry';}
else if(strArea=='thp'){detailsLink = 'http://tdasurvey.tamu.edu/website/txwineregions_highplains';}
else						{detailsLink = 'default.html';numAreaSel=0;}
	gisWindow = window.open(detailsLink,"GIS");
	gisWindow.focus();
return false;	//	disallow any href to take effect
}

//	Called on highlighting an area
function updArea(strArea){
document.images.imgMap.src = (strArea=='') ? images[0].src
									: (strArea=='bell') ? images[2].src
									: (strArea=='escon') ? images[4].src
									: (strArea=='fred') ? images[6].src
									: (strArea=='mes') ? images[8].src
									: (strArea=='texoma') ? images[10].src
									: (strArea=='tdm') ? images[12].src
									: (strArea=='thc') ? images[14].src
									: images[16].src;
}

function onloadHandler()	{
}
window.onload=onloadHandler
