function swapimage(navImagePath,image, state) {
	var imPath = navImagePath;
	if (document.images) {
		switch (state) {
			case 'preload':
				image = new Image();
				image.src = imPath + image + ".gif";
				break;
			case '_hi':
				document.getElementById(image).src = imPath + image + "_hi.gif";
				break;
			case '':
				document.getElementById(image).src = imPath + image + ".gif";
				break;
		}		
	}
}

function showimage(width,height,src){
	im = document.getElementById("big_image");
	im.width = width;
	im.height = height;
	im.src = src;
//	alert(width + "," +  height);
}

var rooturl;

function init (r_url){
	rooturl = r_url;
	swapimage(rooturl,'images/nav/home_hi.gif',"preload");
	swapimage(rooturl,'images/nav/about_us_hi.gif',"preload");
	swapimage(rooturl,'images/nav/accommodation_hi.gif',"preload");
	swapimage(rooturl,'images/nav/gallery_hi.gif',"preload");
	swapimage(rooturl,'images/nav/fishing_hi.gif',"preload");
	swapimage(rooturl,'images/nav/other_attractions_hi.gif',"preload");
	swapimage(rooturl,'images/nav/webcam_hi.gif',"preload");
	swapimage(rooturl,'images/nav/home.gif',"preload");
	swapimage(rooturl,'images/nav/about_us.gif',"preload");
	swapimage(rooturl,'images/nav/accommodation.gif',"preload");
	swapimage(rooturl,'images/nav/gallery.gif',"preload");
	swapimage(rooturl,'images/nav/fishing.gif',"preload");
	swapimage(rooturl,'images/nav/other_attractions.gif',"preload");
	swapimage(rooturl,'images/nav/webcam.gif',"preload"	 );
	swapimage(rooturl,'images/nav/reservations.gif',"preload"	 );
}

function popupPageImage(template,imName){
	var pop = window.open(rooturl+"images/page_images/" + template + "/large/" + imName, "imPop", "width=720,height=206,status=no,resizable=no");
}

function txtAlter(size){
	//theid = document.getElementById("txtHolder");
	//thep = theid.getElementsByTagName("p");
	//thestyle = thep.setStyle("font-size", size);
	//document.body.style.fontSize = size;
	document.getElementById("txtHolder").style.fontSize = size;
}