<!--
function getIEVersionNumber() {
    var ua = navigator.userAgent;
    var MSIEOffset = ua.indexOf("MSIE ");
    
    if (MSIEOffset == -1) {
        return 0;
    } else {
        return parseFloat(ua.substring(MSIEOffset + 5, ua.indexOf(";", MSIEOffset)));
    }
}
function getWindowWidth()
{
	var w;
	if (self.innerHeight) {	// all except Explorer
		w = self.innerWidth;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		w = document.documentElement.clientWidth;
	} else if (document.body) { // other Explorers
		w = document.body.clientWidth;
	}
	return w;
}

function getWindowHeight()
{
	var h;
	if (self.innerHeight) {	// all except Explorer
		h = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		h = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		h = document.body.clientHeight;
	}
	return h;
}

function IndexPicResize()
{
	var windowWidth;
	var windowHeight;
	var width;
	var ypos;
	var indexpic = document.getElementById("indexpic");
	var bannerHeight=165;								// 137 for the banner, 20 for the menu, 8 padding
	var buffer;

	if(indexpic == null) return;
	windowWidth = getWindowWidth();
	windowHeight = getWindowHeight();
	width = parseInt(indexpic.getAttribute('width'),10);

	/* minimum width: contentbox has padding-left: 12
                                    padding-right:  8
                                       img border:  2
                                 sponsorbox width:228
                                                  250 + picture width <= windowWidth 
       smallest image is 400w, so absolute minimum windowWidth should be 652. */

	buffer = 250;
	if (self.innerHeight) {	// all except Explorer
		buffer += 12;
	}
	if(windowWidth > 1280+buffer) {
		if(width != 1280) {
			indexpic.src = "images/belizeintro_big.jpg";
			indexpic.width = 1280;
			indexpic.height = 960;
			document.getElementById("area1").coords = "261,303,317,707";
			document.getElementById("area2").coords = "320,290,390,710";
			document.getElementById("area3").coords = "392,295,459,706";
			document.getElementById("area4").coords = "461,305,531,700";
			document.getElementById("area5").coords = "533,331,597,693";
			document.getElementById("area6").coords = "599,323,665,684";
			document.getElementById("area7").coords = "667,351,729,681";
			document.getElementById("area8").coords = "731,363,790,675";
			document.getElementById("area9").coords = "792,375,834,671";
			document.getElementById("area10").coords = "835,382,882,669";
			document.getElementById("area11").coords = "133,189,189,604";
			document.getElementById("area12").coords = "815,264,869,551";
		}
		ypos = (windowHeight - bannerHeight - 960)/2;
	} else if(windowWidth > 960+buffer) {
		if(width != 960) {
			indexpic.src = "images/belizeintro_med.jpg";
			indexpic.width = 960;
			indexpic.height = 720;
			document.getElementById("area1").coords = "191,194,242,596";
			document.getElementById("area2").coords = "246,179,322,592";
			document.getElementById("area3").coords = "325,181,387,587";
			document.getElementById("area4").coords = "390,193,462,583";
			document.getElementById("area5").coords = "465,219,530,578";
			document.getElementById("area6").coords = "534,209,596,564";
			document.getElementById("area7").coords = "600,235,658,563";
			document.getElementById("area8").coords = "663,251,719,557";
			document.getElementById("area9").coords = "721,261,769,555";
			document.getElementById("area10").coords = "770,268,814,551";
			document.getElementById("area11").coords = "133,189,189,604";
			document.getElementById("area12").coords = "815,264,869,551";
		}
		ypos = (windowHeight - bannerHeight - 720)/2;
	} else if(windowWidth > 640+buffer) {
		if(width != 640) {
			indexpic.src = "images/belizeintro.jpg";
			indexpic.width = 640;
			indexpic.height = 480;
			document.getElementById("area1").coords = "127,129,161,397";
			document.getElementById("area2").coords = "164,119,215,395";
			document.getElementById("area3").coords = "217,121,258,391";
			document.getElementById("area4").coords = "260,129,308,389";
			document.getElementById("area5").coords = "310,146,353,385";
			document.getElementById("area6").coords = "356,139,397,376";
			document.getElementById("area7").coords = "400,157,439,375";
			document.getElementById("area8").coords = "442,167,479,371";
			document.getElementById("area9").coords = "481,174,513,370";
			document.getElementById("area10").coords = "513,179,543,367";
			document.getElementById("area11").coords = "88,128,122,403";
			document.getElementById("area12").coords = "544,176,579,369";
		}
		ypos = (windowHeight - bannerHeight - 480)/2;
	} else {
		if(width != 400) {
			indexpic.src = "images/belizeintro_sml.jpg";
			indexpic.width = 400;
			indexpic.height = 300;
			document.getElementById("area1").coords = "80,81,101,248";
			document.getElementById("area2").coords = "102,75,134,247";
			document.getElementById("area3").coords = "135,75,161,245";
			document.getElementById("area4").coords = "162,80,192,243";
			document.getElementById("area5").coords = "194,91,221,241";
			document.getElementById("area6").coords = "222,87,248,235";
			document.getElementById("area7").coords = "250,98,274,235";
			document.getElementById("area8").coords = "276,105,300,232";
			document.getElementById("area9").coords = "300,109,320,231";
			document.getElementById("area10").coords = "321,112,339,230";
			document.getElementById("area11").coords = "53,79,77,253";
			document.getElementById("area12").coords = "340,111,363,209";
		}
		ypos = (windowHeight - bannerHeight - 300)/2;
	}
	ypos = Math.floor(ypos);
	if(ypos < 0) ypos = 0;
	indexpic.style.marginTop = String(ypos) + "px";
}
function TeamPicResize()
{
	var windowWidth;
	var pic = document.getElementById("teampic");
	var	tdl = document.getElementById("teampictd");
	var tdr = document.getElementById("teamlist");
  	var table = document.getElementById("teamtable");
	var width;
	var height;
	var w_image = 638;
	var h_image = 700;
	var w_resize;

	windowWidth = getWindowWidth();
	width = parseInt(pic.getAttribute('width'),10);

	// Need 200px for the list of members, 230px for the sponsors, 20 for contentbox padding, possibly 16 for vertical scrollbar = 466px

	if(windowWidth > w_image + 466) {
		if(width != w_image) {
			pic.width = w_image;
			pic.height = h_image;
			tdl.style.width = w_image + 4;
  			table.style.width = windowWidth - 266;
			tdr.style.width = (windowWidth - 266)-(w_image+4);
		}
	} else {
		if(windowWidth > 666) {
			w_resize = windowWidth - 470;		// added 4 pixels slop for Firefox
			if(width != w_resize) {
				pic.width = w_resize;
				pic.height = (w_resize*h_image)/w_image;
				tdl.style.width = w_resize + 4;
  				table.style.width = windowWidth - 270;
				tdr.style.width = (windowWidth - 270)-(w_resize+4);
			}
		}
		else {
			pic.width = 200;
			pic.height = (200*h_image)/w_image;
			tdl.style.width = 204;
  			tdr.style.width = 200;
			table.style.width = 404;
		}
	}
}
function TeamPicResizeNew()
{
	var windowWidth;
	var pic = document.getElementById("teampic");
	var td = document.getElementById("teampictd");
	var width;
	var height;
	var w_image = 638;
	var h_image = 700;
	var w_resize;

	windowWidth = getWindowWidth();
	width = parseInt(pic.getAttribute('width'),10);

	// Need 200px for the list of members, 230px for the sponsors, 20 for contentbox padding, possibly 16 for vertical scrollbar = 466px

	if(windowWidth > w_image + 466) {
		if(width != w_image) {
			pic.width = td.style.width = w_image;
			pic.height = h_image;
		}
	} else if(windowWidth > 666) {
		w_resize = windowWidth - 470;		// added 4 pixels slop for Firefox
		if(width != w_resize) {
			pic.width = td.style.width = w_resize;
			pic.height = (w_resize*h_image)/w_image;
		}
	} else {
		pic.width = td.style.width = 200;
		pic.height = (200*h_image)/w_image;
	}
}

-->
