//Image preloader
imageSource = new Array (
	"images/spacer.gif"
);

imageList = new Array ();

for (counter in imageSource) {
    imageList[counter] = new Image();
    imageList[counter].src = imageSource[counter];
}

//Remove outline around links
function removeFocusOnAllLinks(){
for(var i=0 ; i < document.links.length ; i++)
document.links[i].onfocus=blurLink;
}

function blurLink() {
if (this.blur) this.blur();
}

window.onload=removeFocusOnAllLinks;

//Navigation rollover images with preload
nav01on = new Image();
nav01on.src = 'images/nav-01-h.gif';
nav01off = new Image();
nav01off.src = 'images/nav-01.gif';
nav02on = new Image();
nav02on.src = 'images/nav-02-h.gif';
nav02off = new Image();
nav02off.src = 'images/nav-02.gif';
nav03on = new Image();
nav03on.src = 'images/nav-03-h.gif';
nav03off = new Image();
nav03off.src = 'images/nav-03.gif';
nav04on = new Image();
nav04on.src = 'images/nav-04-h.gif';
nav04off = new Image();
nav04off.src = 'images/nav-04.gif';
nav05on = new Image();
nav05on.src = 'images/nav-05-h.gif';
nav05off = new Image();
nav05off.src = 'images/nav-05.gif';

function changeImages() {
	if (document.images) {
		for (var i = 0; i < changeImages.arguments.length; i += 2) {
			document[changeImages.arguments[i]].src = eval(changeImages.arguments[i + 1] + '.src');
		}
	}
}

//Call popup window for map
function popupThis(url, width, height, thisType) {
	leftPos = (screen.width) ? (screen.width-width)/2 : 0;
	topPos = (screen.height) ? (screen.height-height)/2 : 0;
	if (thisType == "img") {
		width = parseInt(width) + 20;
		height = parseInt(height) + 30;
	}
	window.open( url, "", "resizable=0,height="+height+",width="+width+",left="+leftPos+",top="+topPos);
}