<!--
/*MM_preloadImages (' images/home-over.gif ');
MM_preloadImages (' images/thingstodo-over.gif ');
MM_preloadImages (' images/mapsearch-over.gif ');
MM_preloadImages (' images/special-over.gif ');
MM_preloadImages (' images/meetingandevent-over.gif ');
MM_preloadImages (' images/franchis-over.gif ');*/
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 + ",'')"
         );
   }
}
/*photo gallery*/
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_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

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();
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
MM_reloadPage(true);

function selectCheckOutDateMonthYear(checkInDate,checkInMonth,checkInYear,checkOutDate,checkOutMonth,checkOutYear)
{
	
var strMonthArray = new Array(12);
	strMonthArray[0] = "JAN";
	strMonthArray[1] = "FEB";
	strMonthArray[2] = "MAR";
	strMonthArray[3] = "APR";
	strMonthArray[4] = "MAY";
	strMonthArray[5] = "JUN";
	strMonthArray[6] = "JUL";
	strMonthArray[7] = "AUG";
	strMonthArray[8] = "SEP";
	strMonthArray[9] = "OCT";
	strMonthArray[10] = "NOV";
	strMonthArray[11] = "DEC";
	

	var d = checkInDate.value;
	var m;
	for(i=0;i<12;i++)
	{
		if(i==checkInMonth.value)
		{
			m=i;
		}
		
	}
	//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();
	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 selectCurrentDateMonthYear(checkdate,checkInDate,checkInMonth,checkInYear,checkOutDate,checkOutMonth,checkOutYear)
{
    if(checkdate.value!="true")
    {
	    var today=new Date();
	    var nextdate=new Date();
	    var thisDay = today.getDate();
	    var thisMonth = today.getMonth();
	    var thisYear = today.getFullYear();
    	
	    nextdate.setDate(thisDay+1);
    	
	    var nextDay = nextdate.getDate();
	    var nextMonth = nextdate.getMonth();
	    var nextYear = nextdate.getFullYear();

        var strMonthArray = new Array(12);
	    strMonthArray[0] = "JAN";
	    strMonthArray[1] = "FEB";
	    strMonthArray[2] = "MAR";
	    strMonthArray[3] = "APR";
	    strMonthArray[4] = "MAY";
	    strMonthArray[5] = "JUN";
	    strMonthArray[6] = "JUL";
	    strMonthArray[7] = "AUG";
	    strMonthArray[8] = "SEP";
	    strMonthArray[9] = "OCT";
	    strMonthArray[10] = "NOV";
	    strMonthArray[11] = "DEC";
    	
	    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+1)
		    {
			    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+1)
		    {
			    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 validateFMenu()
{            
      
    var checkindate = document.getElementById("FastMenu1_CheckInMonth").value + "/" + document.getElementById("FastMenu1_CheckInDate").value + "/" + document.getElementById("FastMenu1_CheckInYear").value;
    var checkoutdate = document.getElementById("FastMenu1_CheckOutMonth").value + "/" + document.getElementById("FastMenu1_CheckOutDate").value + "/" + document.getElementById("FastMenu1_CheckOutYear").value;
    
    dt1=getDateObject(checkindate,"/"); //CheckIn Date
    dt2=getDateObject(checkoutdate,"/");//checkout date
    
   // return false;
    if(dt1>dt2)
    {
	    alert("Checkin date must be less than Checkout date.")
	    return false;
    }
    
//    if(document.getElementById("FastMenu1_cmbState"))
//    {
//        if(document.getElementById("FastMenu1_cmbState").value=="")
//        {
//        alert("Please Select Region.");
//        return false;
//        }
//    }
   
    if(document.getElementById("FastMenu1_cmbCity1"))
    {
        if(document.getElementById("FastMenu1_cmbCity1").value=="")
        {
        alert("Please Select City.");
        return false;
        }
    }    
     
////    if(document.getElementById("FastMenu1_cmbCity"))
////    {
////        if(document.getElementById("FastMenu1_cmbCity").value=="")
////        {
////            alert("Please Select City.");
////            return false;
////        }
////    }  
    document.getElementById("FastMenu1_hidflag").value=1;
  
    cityid = document.getElementById("FastMenu1_cmbCity1").value;
    //RegionId= document.getElementById("FastMenu1_cmbState").value;
    cid = document.getElementById("FastMenu1_CheckInDate").value;
    cim = document.getElementById("FastMenu1_CheckInMonth").value;
    ciy = document.getElementById("FastMenu1_CheckInYear").value;
    cod = document.getElementById("FastMenu1_CheckOutDate").value;
    com = document.getElementById("FastMenu1_CheckOutMonth").value;
    coy = document.getElementById("FastMenu1_CheckOutYear").value;               
//    adult = document.getElementById("FastMenu1_adults").value;
//    rooms = document.getElementById("FastMenu1_rooms").value; 
    //window.location.href = "/Search1.aspx?cityid=" + cityid + "&RegionId=" + RegionId + "&cim=" + cim + "&cid=" + cid + "&ciy=" + ciy + "&com=" + com + "&cod=" + cod + "&coy=" + coy; //+ "&adults=" + adults + "&rooms=" + rooms;
    //window.open("/Search1.aspx?cityid=" + cityid + "&RegionId=" + RegionId + "&cim=" + cim + "&cid=" + cid + "&ciy=" + ciy + "&com=" + com + "&cod=" + cod + "&coy=" + coy);
    window.open(SearchPath+"?cityid=" + cityid + "&cim=" + cim + "&cid=" + cid + "&ciy=" + ciy + "&com=" + com + "&cod=" + cod + "&coy=" + coy);
    //window.location.href = "/Search.aspx";
    return false;   
}
('../../images/home-over.gif');

// Ajax code for Integrated Menu

function getDateObject(dateString,dateSeperator) //  [mm/dd/yyyy]
{
	//This function return a date object after accepting 
	//a date string and dateseparator as arguments
	var curValue=dateString;
	var sepChar=dateSeperator;
	var curPos=0;
	var cDate,cMonth,cYear;

	//extract day portion
	curPos=dateString.indexOf(sepChar);
	//cMonth=parseInt(dateString.substring(0,curPos));
	cMonth=dateString.substring(0,curPos);
	
	//extract month portion				
	endPos=dateString.indexOf(sepChar,curPos+1);			
	//cDate=parseInt(dateString.substring(curPos+1,endPos));
	cDate=dateString.substring(curPos+1,endPos);
       
	//extract year portion				
	curPos=endPos;
	endPos=curPos+5;			
	//cYear=parseInt(curValue.substring(curPos+1,endPos));
	cYear=curValue.substring(curPos+1,endPos);
		
	//Create Date Object
	dtObject=new Date(cYear,cMonth,cDate);	
	return dtObject;
}



//-->


