	<!------
	
function loadWindow(URL,w,h,name) {
  var width= w;
  var height=h;
  if (navigator.appName == "Microsoft Internet Explorer")
        {
                if (navigator.userAgent.indexOf("Mozilla\/4") != -1)
                {
                height = height +2
                }
        }
  else if (navigator.appName == "Netscape")
        {
                height = height +4
        }
  var newWin = open(URL,name,'width='+width+',height='+height+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
  if (navigator.userAgent.indexOf("Mozilla/2") != -1) {
    if ((navigator.userAgent.indexOf("Mac") != -1) || (navigator.userAgent.indexOf("X11") != -1)) {
      newWin = window.open(URL, name)
    }
  }
}
	
	
	function MM_reloadPage(init) {
		//reloads the window if Nav4 resized
  		if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    		document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  		else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
	}

	MM_reloadPage(true);
	
	
	function doImagePreload(path_to_images){
		//alert(path_to_images);
		//document.write("<img src=\""+path_to_images+"_images/homepage/hp_ban_main_logo_w_off_mv.gif\">");
		var the_images = new Array(
		

		
		path_to_images+'_images/common/footer/foot_contact_on.gif',
		path_to_images+'_images/common/footer/foot_directions_on.gif',
		path_to_images+'_images/common/footer/foot_gen_info_on.gif',		
		path_to_images+'_images/common/footer/foot_links_on.gif',
		path_to_images+'_images/common/footer/foot_privacy_pol_on.gif',
		
		path_to_images+'_images/common/buttons/button_home_on.gif',
	   	path_to_images+'_images/common/buttons/button_season_on.gif',
	   	path_to_images+'_images/common/buttons/button_buytickets_on.gif', 
		path_to_images+'_images/common/buttons/button_gallery_on.gif',
		path_to_images+'_images/common/buttons/button_rental_on.gif', 
		path_to_images+'_images/common/buttons/button_getinvolved_on.gif', 
		path_to_images+'_images/common/buttons/button_calendar_on.gif',
		path_to_images+'_images/common/buttons/button_guestreg_on.gif',
		path_to_images+'_images/common/buttons/button_bravo_on.gif',
		path_to_images+'_images/common/buttons/button_video_on.gif', 
		path_to_images+'_images/common/buttons/button_press_on.gif',	   

		path_to_images+'_images/common/buttons/button_portplaza_on.gif'	 
	   );	
   		preloadImages(the_images);
	}
	
	function preloadImages(the_images_array) {

   		for(var loop = 0; loop < the_images_array.length; loop++){
  		var an_image = new Image();
 		an_image.src = the_images_array[loop];
		//if(loop==1){
		//	alert(the_images_array[loop]);
		//	}
   		}
	}	
	
	
function check_length(formName,elementName,elementLimit){
	var field_length;
	var field_value;

	field_length = document.forms[formName].elements[elementName].value.length;
	if(field_length > elementLimit){
		field_value = document.forms[formName].elements[elementName].value;
		
		field_value = field_value.substring(0,elementLimit)
		
		document.forms[formName].elements[elementName].value = field_value;
		alert("This field cannot be more than "+elementLimit+" characters long. Some truncation of text may occur");
		return false
	}	
}


function limit_length(formName,elementName,elementLimit){
	var field_length;	
	field_length = document.forms[formName].elements[elementName].value.length;

	if(field_length >= elementLimit){	
		return false				
	}
}	
	
	

var slideShowSpeed = 3000                  // Set slideShowSpeed (milliseconds)
var crossFadeDuration = 2                  // Duration of crossfade (seconds)

var Pic = new Array()                      // Specify the image files
Pic[0] = '../_images/slideshow/01.jpg'
Pic[1] = '../_images/slideshow/02.jpg'
Pic[2] = '../_images/slideshow/03.jpg'
Pic[3] = '../_images/slideshow/04.jpg'
Pic[4] = '../_images/slideshow/05.jpg'
Pic[5] = '../_images/slideshow/06.jpg'
Pic[6] = '../_images/slideshow/07.jpg'
Pic[7] = '../_images/slideshow/08.jpg'
Pic[8] = '../_images/slideshow/09.jpg'
Pic[9] = '../_images/slideshow/10.jpg'
Pic[10] = '../_images/slideshow/11.jpg'
Pic[11] = '../_images/slideshow/12.jpg'
Pic[12] = '../_images/slideshow/13.jpg'
Pic[13] = '../_images/slideshow/14.jpg'
Pic[14] = '../_images/slideshow/15.jpg'
Pic[15] = '../_images/slideshow/16.jpg'
Pic[16] = '../_images/slideshow/17.jpg'
Pic[17] = '../_images/slideshow/18.jpg'

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}
