<!--
MM_preloadImages('../images/ecal_over.gif');
MM_preloadImages('../images/emap_over.gif');

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
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 MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}


function selectCurrentDateMonthYear(checkInDate,checkInMonth,checkInYear,checkOutDate,checkOutMonth,checkOutYear)
{
	var today=new Date();
	var nextdate=new Date();
	var thisDay = today.getDate();
	var thisMonth = today.getMonth() + 1;
	var thisYear = today.getFullYear();
	
	nextdate.setDate(thisDay+1);
	
	var nextDay = nextdate.getDate();
	var nextMonth = nextdate.getMonth() + 1;
	var nextYear = nextdate.getFullYear();
	
	for (var i = 0; i < checkInDate.length; ++i)
	{
		if (checkInDate.options[i].value==thisDay)
		{
			checkInDate.options[i].selected = true;
		}
	}
	for (var i = 0; i < checkInMonth.length; ++i)
	{
		if (checkInMonth.options[i].value == thisMonth)
		{
			checkInMonth.options[i].selected = true;
		}
	}
	for (var i = 0; i < checkInYear.length; ++i)
	{
		if (checkInYear.options[i].value == thisYear)
		{
			checkInYear.options[i].selected = true;
		}
	}

	for (var i = 0; i < checkOutDate.length; ++i)
	{
		if (checkOutDate.options[i].value== nextDay)
		{
			checkOutDate.options[i].selected = true;
		}
	}
	for (var i = 0; i < checkOutMonth.length; ++i)
	{
		if (checkOutMonth.options[i].value == nextMonth)
		{
			checkOutMonth.options[i].selected = true;
		}
	}
	for (var i = 0; i < checkOutYear.length; ++i)
	{
		if (checkOutYear.options[i].value == nextYear)
		{
			checkOutYear.options[i].selected = true;
		}
	}
	
}

function selectCheckOutDateMonthYear(checkInDate,checkInMonth,checkInYear,checkOutDate,checkOutMonth,checkOutYear)
{
	
	var d = checkInDate.value;
	var m = checkInMonth.value;
	m= m-1;
	s = new Date();
	//y = s.getFullYear();
	y = checkInYear.value;

	var nextDate = new Date(y, m, d);
	
	d = nextDate.getDate();
	
	nextDate.setDate(d+1);
	
	var nextDay = nextDate.getDate();
	var nextMonth = nextDate.getMonth() + 1;
	var nextYear = nextDate.getFullYear();
	
	for (var i = 0; i < checkOutDate.length; ++i)
	{
		if (checkOutDate.options[i].value== nextDay)
		{
			checkOutDate.options[i].selected = true;
		}
	}
	for (var i = 0; i < checkOutMonth.length; ++i)
	{
		if (checkOutMonth.options[i].value == nextMonth)
		{
			checkOutMonth.options[i].selected = true;
		}
	}
	for (var i = 0; i < checkOutYear.length; ++i)
	{
		if (checkOutYear.options[i].value == nextYear)
		{
			checkOutYear.options[i].selected = true;
		}
	}

}

function CJL_saveLink(anchorId, linkTitle, url, bookmarkText, tabText)
{
   function set(innerHTML, href)
   {
      elem = document.getElementById(anchorId);

      elem.innerHTML = innerHTML;

      elem.href = "javascript:" + href;
   }

   function quote(s)
   {
	  return "'" + s + "'";
	  
   }


   url = quote(url ? url : location.href);
   linkTitle = quote(linkTitle ? linkTitle : document.title);

   if( window.external &&  /Win/.test(navigator.userAgent) )
   {
      set(
          bookmarkText ? bookmarkText : "Bookmark Page",
          "external.AddFavorite(" + url + "," + linkTitle + ")"
         );
   }
   else if( window.sidebar && sidebar.addPanel )
   {
      set(
          tabText ? tabText : "Add to Sidebar",
          "sidebar.addPanel(" + linkTitle + "," + url + ",'')"
         );
   }
}
//]]>

//-->
