<!-- Author Roger Blask  | McCullough Creative Group | 12/07/2004 -->
	var bname = navigator.appName;
	var bversion = parseFloat(navigator.appVersion); 
	var roll = false;
	var brwsr_type;
	
	if(document.getElementById){brwsr_type = 'DOM'}
	else if(document.all){brwsr_type = 'IE4'}
	else if(document.layers){brwsr_type = 'NS4'}
	else {brwsr_type = false}

	if ((bname == "Netscape" && bversion >= 3.0) || (bname == "Microsoft Internet Explorer" && bversion >= 3.0)) {roll = 'true'; }

	function msover1(img1,ref1) { 
		if (roll == 'true'){document.images[img1].src = ref1}
	}
	function msout1(img1,ref1) { 
		if (roll == 'true'){ document.images[img1].src = ref1} 
	}

	function msover2(img1,ref1,img2,ref2) {
		if (roll == 'true'){document.images[img1].src = ref1; document.images[img2].src = ref2}
	}
	function msout2(img1,ref1,img2,ref2) {
		if (roll == 'true') { document.images[img1].src = ref1; document.images[img2].src = ref2} 
	}


	if (document.images)
	{
		var the_images = new Array(
			'images/general/bottom_middle.jpg',
			'images/general/top_left.jpg',
			'images/general/top_middle.jpg',
			'images/general/top_right.jpg',
			'images/general/about_off.gif',
			'images/general/destinations_off.gif',
			'images/general/book_off.gif',
			'images/general/contact_off.gif',
			'images/general/links_off.gif',
			'images/general/about_on.gif',
			'images/general/destinations_on.gif',
			'images/general/book_on.gif',
			'images/general/contact_on.gif',
			'images/general/links_on.gif',
			'images/general/spacer.gif'
		);
	}

	function preloadImages(the_images_array)
 	{
		if (document.preloadArray==null) {document.preloadArray = new Array()}
		var i = document.preloadArray.length;
 
		for(var loop = 0; loop < the_images_array.length; loop++)
		{
			if (eval(document.preloadArray[i]))
			{
				document.preloadArray[i] = new Image;
				document.preloadArray[i++].src = the_images_array[loop];
			}
		}
	}

	//preloadImages(the_images);
	
	function positionPage(when,start_width,start_height)
	{
		if (xGetElementById('bannerTable') && xGetElementById('ContentDiv') && xGetElementById('ContentTable'))
		{
			document.body.scroll = "no";
			var setY = xClientHeight() - xHeight('bannerTable')-2;
			var setX = 800;
			
			if ((xHeight('bannerTable','')+xHeight('bodyTable','')) <= xClientHeight())
			{
				xHeight('ContentTable',setY);
				xOverflow('ContentDiv','');
				xHeight('ContentDiv',setY);
				xWidth('ContentTable',xWidth('ContentDiv',''));
			}
			else
			{
				xHeight('ContentTable',setY);
				if (xHeight('ContentTable') > xClientHeight() - xHeight('bannerTable'))
				{
					xHeight('ContentDiv',setY);
					xOverflow('ContentDiv','auto');
					xWidth('ContentTable',xWidth('ContentDiv','')-17);
				}
				else
				{
					xOverflow('ContentDiv','');
					xHeight('ContentDiv',start_height);
				}
			}
		}
	}

