function getObj(name)
{
  if (document.getElementById)
  {
    return document.getElementById(name);	    
  }
  else if (document.all)
  {
    return document.all[name];	    
  }
  else if (document.layers)
  {
    return document.layers[name];   	    
  }
}
    
function setLyr(obj,lyr)
{
    var newX = findPosX(obj);
    var newY = findPosY(obj);	 	    
    lyr.style.top = (newY + findHeight(obj)) + 'px';
    lyr.style.left = newX + 'px';
}

function AddToFavorites(propID,object)
{
   
        if(addToFavoritesAjax)
        {
            s.prop22 = propID;
            s.eVar21 = propID;
            s.t();
            addToFavoritesAjax(propID);
            object.setAttribute("onclick","");
            object.style.color = "";
            object.style.cursor = "default";
            object.innerHTML = "Saved";
        }
   
}

function DoProximityChange(theControl)
{
    s.prop25 = theControl.value;
    s.t();
}

function DoSleepsChange(theControl)
{
     s.prop27 = theControl.value;
     s.t();
}

function DoPriceChange(theControl)
{
    s.prop26 = theControl.value;
    s.t();
}

function DoLogin()
{
    s.events = "event4";
    s.t();
}

function DoSwitchToMap()
{
    s.events = "event7";
    s.t();
}

function DoAmenityClick(amenityDescr,theBox)
{
    if(theBox.checked)
    {    
        s.prop24 = amenityDescr;
        s.eVar23 = s.prop24;
        s.t();
    }
}

function DoEmailToFriend(propId)
{
    s.prop23 = propId;
    s.eVar22 = s.prop23;
    s.t();
}

function findHeight(obj)
{
    var curheight = 0;
    if (obj.offsetheight)
    {
        curheight = obj.offsetheight;
    }
    else if (obj.height)
    {
        curheight = obj.height;
    }
    return curheight;
}

function findPosX(obj)
{
    var curleft = 0;
    if (obj.offsetParent)
    {
        while (obj.offsetParent)
        {
            curleft += obj.offsetLeft
            obj = obj.offsetParent;
        }
    }
    else if (obj.x)
        curleft += obj.x;
    return curleft;
}

function findPosY(obj)
{
    var curtop = 0;
    if (obj.offsetParent)
    {
        while (obj.offsetParent)
        {
            curtop += obj.offsetTop
            obj = obj.offsetParent;
        }
    }
    else if (obj.y)
        curtop += obj.y;
    return curtop;
}

/* Performs a currency format on a specified number.
 *
 * num : Number to format.
 *
 * Returns : US Currency formatted string.
 */
function formatCurrency(num) {
    num = num.toString().replace(/\$|\,/g,'');
    if(isNaN(num))
        num = "0";
    sign = (num == (num = Math.abs(num)));
    num = Math.floor(num*100+0.50000000001);
    cents = num%100;
    num = Math.floor(num/100).toString();
    if(cents<10)
        cents = "0" + cents;

    for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
        num = num.substring(0,num.length-(4*i+3))+','+num.substring(num.length-(4*i+3));

    return (((sign)?'':'-') + '$' + num + '.' + cents);
}

function formatMinutes(num) {
    num = num.toString().replace(/\$|\,/g,'');
    if(isNaN(num))
        num = "00";
    
    if(num < 10)
        num = "0" + num;
        
    return num;
}

/* Sets a cookie on the client.
 * 
 * name : Name of the cookie.
 * value : Value of the cookie.
 * [days] : The number of days until the cookie expires. (defaults to end of current session).
 */
function setCookie(name, value, days) {
    var expires = "";
    if (days) {
        var date = new Date();
        date.setTime(date.getTime()+(days * 24 * 60 * 60 * 1000));
        expires = "; expires=" + date.toGMTString();
    }
    
    document.cookie = name + "=" + value + expires;
}

/* Appends a value to an existing cookie. The cookie will be created if it does
 * not already exist.
 *
 * name : Name of the cookie.
 * value : Value to append to the cookie.
 * [separator] : Used to separate the specified value from the existing value.
 * [days] : The number of days until the cookie expires. (defaults to end of current session).
 */
function appendCookie(name, value, separator, days) {
    var currentValue = getCookie(name);
    
    if(currentValue) {
        currentValue += (separator ? separator : "") + value;
    } else {
        currentValue = value;
    }
    
    setCookie(name, currentValue, days);
}

/* Gets a cookie from the client with the specified name.
 *
 * name : Name of the desired cookie.
 *
 * Returns : String containing value of specified cookie or null if cookie does not exist.
 */
function getCookie(name) {
    var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	
	for(var i = 0;i < ca.length;++i) {
	    var c = ca[i];
	    while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return unescape(c.substring(nameEQ.length,c.length));
	}
	return null;
}

/* Delete the specified cookie.
 *
 * name : Name of the cookie.
 * [path] : Path of the cookie (must be same as path used to create cookie).
 * [domain] : Domain of the cookie (must be same as domain used to create cookie).
 */
function deleteCookie(name, path, domain) {
    if (getCookie(name)) {
        document.cookie = name + "=" +
            ((path) ? "; path=" + path : "") +
            ((domain) ? "; domain=" + domain : "") +
            "; expires=Thu, 01-Jan-70 00:00:01 GMT";
    }
}

/* Verifies that the client has support for cookies.
 * 
 * Returns : true if the client does support cookies; otherwise, false.
 */
function verifyCookie() {
    var name = "cookie-support";
    var value = "testing-your-cookie-support";
    
    setCookie(name, value);
    
    return getCookie(name) == value;
}

// Returns the source element of an event.
function getEventSource(e) {
    var targ;
	if (!e) var e = window.event;
	if (e.target) targ = e.target;
	else if (e.srcElement) targ = e.srcElement;
	
	return targ;
}

function persistOmnitureRef()
{
    if(getCookie('ZonderOmn'))
    {
        var temp = getCookie('ZonderOmn')
        if(temp)
        {
            if(temp.indexOf('&domain') != -1)
            {
                s.eVar24 = temp.substring(0,temp.indexOf('&domain'));
                s.eVar25 = temp.substring((temp.indexOf('&domain')+8),temp.length);
            }
            else
            {
            }
        }
        //s.eVar24 = s.referrer;
    }
    else
    {
        if(s.referrer)
        {        
            appendCookie('ZonderOmn',s.referrer+"&domain=www.vast.com");
            s.eVar24 = s.referrer;
            var regexp = '^(?:[^/]+://)?([^/:]+)';
            s.eVar25 = s.referrer.match(regexp)[1];
        }
        else
        {
            appendCookie('ZonderOmn',"Typed/Bookmarked&domain=Typed/Bookmarked");
        }
    }
    //getCookie('Zonder');
    
}

// Displays a loading spinner until the real content loads from a callback.
function Spinner(context, text) {
    if(text == null) text = "Loading...";
      
    context.innerHTML = "<span class=\"spinner\"><img src=\"/Images/spinner.gif\" height=\"16\" width=\"16\" align=\"middle\" /> " + text + "</span>";
}
    
function replaceString(sString, sReplaceThis, sWithThis) { 
    if (sReplaceThis != "" && sReplaceThis != sWithThis) {
        var counter = 0;
        var start = 0;
        var before = "";
        var after = "";
        while (counter<sString.length) {
            start = sString.indexOf(sReplaceThis, counter);
            if (start == -1){
                break;
            } else {
                before = sString.substr(0, start);
                after = sString.substr(start + sReplaceThis.length, sString.length);
                sString = before + sWithThis + after;
                counter = before.length + sWithThis.length;
            }
        }
    }
    return sString;
}

function trim(str) {
    // Strip leading and trailing white-space
    return str.replace(/^\s*|\s*$/g, "");
}

// Parses all text out of a number.
function ParseNumber(num) {
    if (num == null) { num = 0; }
    
    num = num.toString().replace(/\$|\,/g,'');
    if(isNaN(num))
        num = 0;
        
    return parseFloat(num);
}

/*
 * Handles multiple class assignments on an element.
 *
 * action : Defines the action to perform. A list of actions is below.
 * elem : The element to perform the action on.
 * [c1] : The name of the first class.
 * [c2] : The name of the second class.
 *
 * ACTIONS:
 * swap   : Replaces class c1 with class c2 on the element.
 * add    : Add class c1 to the element.
 * remove : Removes class c1 from the element.
 * check  : Checks to see if class c1 is already applied to the element and returns true or false.
 */
function jscss(action, elem, c1, c2){ 
    switch (action){
        case 'swap':
            elem.className = !jscss('check', elem, c1) ? elem.className.replace(c2, c1) : elem.className.replace(c1, c2);
            break;
        case 'add':
            if(!jscss('check', elem, c1)) {elem.className += elem.className ? ' ' + c1 : c1;}
            break;
        case 'remove':
            var rep = elem.className.match(' ' + c1) ? ' ' + c1 : c1;
            elem.className = elem.className.replace(rep, '');
            break;
        case 'check':
            return new RegExp('\\b'+c1+'\\b').test(elem.className)
            break;
    }
}

// Runs every time a page is loaded.
function common_init() {
    if (typeof(ValidationControlHighlight) != "undefined") {
        ValidationControlHighlight();
    }
}

function daysInMonth(month,year) {
    var dd = new Date(year, month, 0);
    return dd.getDate();
}

function overlay(id) {
	el = document.getElementById(id);
	el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible";
	
	return false;
}

function positionToParent(elemId, parentId, width)
{
    var elem = document.getElementById(elemId);
    var parent = document.getElementById(parentId);

    var x = parent.offsetLeft;
    var y = parent.offsetTop;
    
    while (parent.offsetParent)
    {
        parent = parent.offsetParent;
        x += parent.offsetLeft;
        y += parent.offsetTop;
    }
    elem.style.top = y + "px";
    elem.style.left = (x - width) + "px";
    
    return false;
}

function js_waterMark_Focus(objname, waterMarkText, waterMarkStyle, normalStyle, isPassword)
{
    obj = document.getElementById(objname);
    
    if(obj.value == waterMarkText)
    {
        obj.value = '';
    }
    
    obj.className = normalStyle;
    
    if(isPassword)
    {
        var newObj = changeInputType(obj, 'password');
        setTimeout("document.getElementById('" + newObj.id + "').focus()", 10);
    }
}
function js_waterMark_Blur(objname, waterMarkText, waterMarkStyle, normalStyle, isPassword)
{
    obj = document.getElementById(objname);
    
    if(obj.value == '')
    {
        obj.value = waterMarkText;
        obj.className = waterMarkStyle;
        if(isPassword)
        {
            changeInputType(obj, 'text');
        }
        
        //Booking process page 1 for changing rates
        if(obj.id == "ctl00_phContent_StartDatePickerTextBox2Booking")
        {
            setTimeout('__doPostBack(\'ctl00$phContent$StartDatePickerTextBox2Booking\',\'\')', 0);
        }
        else if(obj.id == "ctl00_phContent_EndDatePickerTextBox2Booking")
        {
            setTimeout('__doPostBack(\'ctl00$phContent$EndDatePickerTextBox2Booking\',\'\')', 0);
        }
    }
    else
    {
        obj.className = normalStyle;
    }

}

function changeInputType(oldObject, oType) 
{
    var newObject = document.createElement('input');
    newObject.type = oType;
    if(oldObject.size) newObject.size = oldObject.size;
    if(oldObject.value) newObject.value = oldObject.value;
    if(oldObject.name) newObject.name = oldObject.name;
    if(oldObject.id) newObject.id = oldObject.id;
    if(oldObject.className) newObject.className = oldObject.className;
    oldObject.parentNode.replaceChild(newObject, oldObject);
    return newObject;
}

var lastKeyPressed;
function clickButtonOnEnter(e, buttonid) {
      var evt = e ? e : window.event;
      var bt = document.getElementById(buttonid);
      if (bt){
          if (evt.keyCode == 13 && lastKeyPressed != 38 && lastKeyPressed != 40){
                bt.click();
                return false;
          }
          lastKeyPressed = evt.keyCode;
      }
}

/**
This is a JavaScript library that will allow you to easily add some basic DHTML
drop-down datepicker functionality to your Notes forms. This script is not as
full-featured as others you may find on the Internet, but it's free, it's easy to
understand, and it's easy to change.

You'll also want to include a stylesheet that makes the datepicker elements
look nice. An example one can be found in the database that this script was
originally released with, at:

http://www.nsftools.com/tips/NotesTips.htm#datepicker

version 1.5
December 4, 2005
Julian Robichaux -- http://www.nsftools.com
*/

var dpLastDateFieldId;

var datePickerDivID = "datepicker";
var iFrameDivID = "datepickeriframe";
var skipBookingUpdate = false;

var dayArrayShort = new Array('S', 'M', 'T', 'W', 'T', 'F', 'S');
var dayArrayMed = new Array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat');
var dayArrayLong = new Array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');
var monthArrayShort = new Array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec');
var monthArrayMed = new Array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec');
var monthArrayLong = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
 
// these variables define the date formatting we're expecting and outputting.
// If you want to use a different format by default, change the defaultDateSeparator
// and defaultDateFormat variables either here or on your HTML page.
var defaultDateSeparator = "/";        // common values would be "/" or "."
var defaultDateFormat = "mdy"    // valid values are "mdy", "dmy", and "ymd"
var dateSeparator = defaultDateSeparator;
var dateFormat = defaultDateFormat;

/**
This is the main function you'll call from the onClick event of a button.
Normally, you'll have something like this on your HTML page:
*/
function displayDatePicker(dateFieldId, displayBelowThisObject, dtFormat, dtSep)
{
  var targetDateField = document.getElementById(dateFieldId);
  
  // only want the calendar to open the first time the textbox obtains focus.
  document.detachEvent ? targetDateField.detachEvent('onfocus', textboxFocus) : targetDateField.removeEventListener('focus', textboxFocus, false);
 
  // if we weren't told what node to display the datepicker beneath, just display it
  // beneath the date field we're updating
  if (!displayBelowThisObject)
    displayBelowThisObject = targetDateField;
 
  // if a date separator character was given, update the dateSeparator variable
  if (dtSep)
    dateSeparator = dtSep;
  else
    dateSeparator = defaultDateSeparator;
 
  // if a date format was given, update the dateFormat variable
  if (dtFormat)
    dateFormat = dtFormat;
  else
    dateFormat = defaultDateFormat;
 
  var x = displayBelowThisObject.offsetLeft;
  var y = displayBelowThisObject.offsetTop + displayBelowThisObject.offsetHeight ;
 
  // deal with elements inside tables and such
  var parent = displayBelowThisObject;
  while (parent.offsetParent) {
    parent = parent.offsetParent;
    x += parent.offsetLeft;
    y += parent.offsetTop ;
  }
 
  drawDatePicker(targetDateField, x, y);
}


/**
Draw the datepicker object (which is just a table with calendar elements) at the
specified x and y coordinates, using the targetDateField object as the input tag
that will ultimately be populated with a date.

This function will normally be called by the displayDatePicker function.
*/
function drawDatePicker(targetDateField, x, y)
{
    var dt;
    if(typeof( window[ 'checkoutTextBox' ] ) != "undefined")
    {
        if(targetDateField == checkoutTextBox)
        {
            dt = getFieldDate(checkinTextBox.value);
        }
        else
        {
            dt = getFieldDate(targetDateField.value );
        }
    }
    else
    {
       dt = getFieldDate(targetDateField.value );
    }
   
  
  // the datepicker table will be drawn inside of a <div> with an ID defined by the
  // global datePickerDivID variable. If such a div doesn't yet exist on the HTML
  // document we're working with, add one.
  if (!document.getElementById(datePickerDivID)) {
    // don't use innerHTML to update the body, because it can cause global variables
    // that are currently pointing to objects on the page to have bad references
    //document.body.innerHTML += "<div id='" + datePickerDivID + "' class='dpDiv'></div>";
    var newNode = document.createElement("div");
    newNode.setAttribute("id", datePickerDivID);
    newNode.setAttribute("class", "dpDiv");
    newNode.setAttribute("style", "visibility: hidden;");
    document.body.appendChild(newNode);
  }
 
  // move the datepicker div to the proper x,y coordinate and toggle the visiblity
  var pickerDiv = document.getElementById(datePickerDivID);
  pickerDiv.style.position = "absolute";
  pickerDiv.style.left = x + "px";
  pickerDiv.style.top = y + "px";
  pickerDiv.style.visibility = (pickerDiv.style.visibility == "visible" ? "hidden" : "visible");
  pickerDiv.style.display = (pickerDiv.style.display == "block" ? "none" : "block");
  pickerDiv.style.zIndex = 50000;
 
  // draw the datepicker table
  refreshDatePicker(targetDateField.id, dt.getFullYear(), dt.getMonth(), dt.getDate());
}


/**
This is the function that actually draws the datepicker calendar.
*/
function refreshDatePicker(dateFieldId, year, month, day)
{
  // if no arguments are passed, use today's date; otherwise, month and year
  // are required (if a day is passed, it will be highlighted later)
  var thisDay = new Date();
  var selectedDay = new Date(year, month, day);
 
  if ((month >= 0) && (year > 0)) {
    thisDay = new Date(year, month, 1);
  } else {
    day = thisDay.getDate();
    thisDay.setDate(1);
  }
 
  // get the day limits allowed for selection.
  var minDay = window[dateFieldId + "MinDate"];
  var maxDay = window[dateFieldId + "MaxDate"];
  
  // make sure the date is after the minDay.
  if(minDay && minDay > selectedDay) {
    thisDay = new Date(minDay.getFullYear(), minDay.getMonth(), 1);
    day = minDay.getDate();
  }
  
  // make sure the date is before the maxDay.
  if(maxDay && maxDay < selectedDay) {
    thisDay = new Date(maxDay.getFullYear(), maxDay.getMonth(), 1);
    day = maxDay.getDate();
  }
  
  // the calendar will be drawn as a table
  // you can customize the table elements with a global CSS style sheet,
  // or by hardcoding style and formatting elements below
  var crlf = "\r\n";
  var TABLE = "<table cols='7' class='dpTable'>" + crlf;
  var xTABLE = "</table>" + crlf;
  var TR = "<tr class='dpTR'>";
  var TR_title = "<tr class='dpTitleTR'>";
  var TR_days = "<tr class='dpDayTR'>";
  var TR_todaybutton = "<tr class='dpTodayButtonTR'>";
  var xTR = "</tr>" + crlf;
  var TD = "<td class='dpTD' onMouseOut='this.className=\"dpTD\";' onMouseOver=' this.className=\"dpTDHover\";' ";    // leave this tag open, because we'll be adding an onClick event
  var TD_inactive_day = "<td class='dpTD dpInactiveTD'>";
  var TD_title = "<td colspan='5' class='dpTitleTD'>";
  var TD_buttons = "<td class='dpButtonTD'>";
  var TD_todaybutton = "<td colspan='7' class='dpTodayButtonTD'>";
  var TD_days = "<td class='dpDayTD'>";
  var TD_selected = "<td class='dpDayHighlightTD' onMouseOut='this.className=\"dpDayHighlightTD\";' onMouseOver='this.className=\"dpTDHover\";' ";    // leave this tag open, because we'll be adding an onClick event
  var xTD = "</td>" + crlf;
  var DIV_title = "<div class='dpTitleText'>";
  var DIV_selected = "<div class='dpDayHighlight'>";
  var xDIV = "</div>";
  
  // start generating the code for the calendar table
  var html = TABLE;
 
  // this is the title bar, which displays the month and the buttons to
  // go back to a previous month or forward to the next month
  html += TR_title;
  html += TD_buttons + getButtonCode(dateFieldId, thisDay, -1, "previous", minDay, maxDay) + xTD;
  html += TD_title + DIV_title + monthArrayLong[ thisDay.getMonth()] + " " + thisDay.getFullYear() + xDIV + xTD;
  html += TD_buttons + getButtonCode(dateFieldId, thisDay, 1, "next", minDay, maxDay) + xTD;
  html += xTR;
 
  // this is the row that indicates which day of the week we're on
  html += TR_days;
  for(i = 0; i < dayArrayShort.length; i++)
    html += TD_days + dayArrayShort[i] + xTD;
  html += xTR;
 
  // now we'll start populating the table with days of the month
  html += TR;
 
  // first, the leading blanks
  for (i = 0; i < thisDay.getDay(); i++)
    html += TD_inactive_day + "&nbsp;" + xTD;
 
  // now, the days of the month
  var weeks = 1;
  do {
    dayNum = thisDay.getDate();
    TD_onclick = " onclick=\"updateDateField('" + dateFieldId + "', '" + getDateString(thisDay) + "');\">";

    // determine how to show the day.
    if ((minDay && thisDay < minDay) || (maxDay && thisDay > maxDay)) {
      // if the date is outside of the specified range, inactivate it.
      html += TD_inactive_day + dayNum + xTD;
    } else if (dayNum == day) {
      // if the day is the selected day, highlight it.
      html += TD_selected + TD_onclick + DIV_selected + dayNum + xDIV + xTD;
    } else {
      html += TD + TD_onclick + dayNum + xTD;
    }
    
    // if this is a Saturday, end the row.
    if (thisDay.getDay() == 6) {
      html += xTR;

      // if this is the end of the month, don't start a new row.
      if (thisDay.getDate() < daysInMonth(thisDay.getMonth() + 1, thisDay.getFullYear())) {
        html += TR;
        ++weeks;
      }
    }
    
    // increment the day
    thisDay.setDate(thisDay.getDate() + 1);
  } while (thisDay.getDate() > 1)
  
  // fill in any trailing blanks
  if (thisDay.getDay() > 0) {
    for (i = 7; i > thisDay.getDay(); i--)
      html += TD_inactive_day + "&nbsp;" + xTD;
      
    html += xTR;
  }

  // make sure the calendar always displays 7 weeks.
  while(weeks < 6) {
    html += TR;
    for (k = 0;k < 7;++k) {
      html += TD_inactive_day + "&nbsp;" + xTD;
    }
    html += xTR;
    ++weeks;
  }
 
  // add a button to allow the user to easily return to today, or close the calendar
  var today = new Date();
  var todayString = "Today is " + dayArrayMed[today.getDay()] + ", " + monthArrayMed[ today.getMonth()] + " " + today.getDate();
  html += TR_todaybutton + TD_todaybutton;
  html += "<button class='dpTodayButton' onClick='refreshDatePicker(\"" + dateFieldId + "\");'>today</button> ";
  html += "<button class='dpTodayButton' onClick='updateDateField(\"" + dateFieldId + "\");'>close</button>";
  html += xTD + xTR;
  
  // Keep track of last opened 
  dpLastDateFieldId = dateFieldId;
  document.attachEvent ? document.attachEvent('onclick', closeLastDatePicker) : document.addEventListener('click', closeLastDatePicker, false);
 
  // and finally, close the table
  html += xTABLE;
 
  document.getElementById(datePickerDivID).innerHTML = html;
  // add an "iFrame shim" to allow the datepicker to display above selection lists
  adjustiFrame();
}

/* Closes the last opened date picker. */
function closeLastDatePicker(e)
{
  var elem = getEventSource(e);
  
  if (elem) {
    // If the click was in the date picker, ignore it.
    if(isInDatePicker(elem)) return;
    
    // If the click came from the textbox, ignore it.
    if(elem.id == dpLastDateFieldId) return;
    
    // If the click came from the date anchor, ignore it.
    if(elem.id == dpLastDateFieldId + "Anchor") return;
    
    // If the click came from the date image, ignore it.
    if(elem.id == dpLastDateFieldId + "Image") return;
  }
  
  // Close the date picker.
  skipBookingUpdate = true;
  updateDateField(dpLastDateFieldId);
  document.detachEvent ? document.detachEvent('onclick', closeLastDatePicker) : document.removeEventListener('click', closeLastDatePicker, false);
}

/* Determines if an element is in the date picker. */
function isInDatePicker(elem)
{
  // Looks at up to 10 parent nodes.
  for (i = 0;i < 10;++i) {
    elem = elem.parentNode;
    
    // If the parent node is null, return false.
    if(elem == null) return false;
    
    // If the parent node is the datepicker div, return true.
    if(elem.id == datePickerDivID) return true;
  }
}


/**
Convenience function for writing the code for the buttons that bring us back or forward
a month.
*/
function getButtonCode(dateFieldId, dateVal, adjust, label, minDay, maxDay)
{
  var newMonth = (dateVal.getMonth () + adjust) % 12;
  var newYear = dateVal.getFullYear() + parseInt((dateVal.getMonth() + adjust) / 12);
  if (newMonth < 0) {
    newMonth += 12;
    newYear += -1;
  }
  
  // Don't allow moving to next or previous month if outside of range.
  if((minDay && minDay > new Date(newYear, newMonth, daysInMonth(newMonth, newYear))) || 
     (maxDay && maxDay < new Date(newYear, newMonth, 1)))
    return "&nbsp";
  
  var href = "javascript:refreshDatePicker('" + dateFieldId + "', " + newYear + ", " + newMonth + ");";
  
  if(label == "next") {
    return "<a href=\"" + href + "\" class=\"pagination_next\" style=\"cursor: pointer;\">&nbsp;</a>";
  } else {
    return "<a href=\"" + href + "\" class=\"pagination_prev\" style=\"cursor: pointer;\">&nbsp;</a>";
  }
}


/**
Convert a JavaScript Date object to a string, based on the dateFormat and dateSeparator
variables at the beginning of this script library.
*/
function getDateString(dateVal)
{
  var dayString = "00" + dateVal.getDate();
  var monthString = "00" + (dateVal.getMonth()+1);
  dayString = dayString.substring(dayString.length - 2);
  monthString = monthString.substring(monthString.length - 2);
 
  switch (dateFormat) {
    case "dmy" :
      return dayString + dateSeparator + monthString + dateSeparator + dateVal.getFullYear();
    case "ymd" :
      return dateVal.getFullYear() + dateSeparator + monthString + dateSeparator + dayString;
    case "mdy" :
    default :
      return monthString + dateSeparator + dayString + dateSeparator + dateVal.getFullYear();
  }
}


/**
Convert a string to a JavaScript Date object.
*/
function getFieldDate(dateString)
{
  var dateVal;
  var dArray;
  var d, m, y;
 
  try {
    dArray = splitDateString(dateString);
    if (dArray) {
      switch (dateFormat) {
        case "dmy" :
          d = parseInt(dArray[0], 10);
          m = parseInt(dArray[1], 10) - 1;
          y = parseInt(dArray[2], 10);
          break;
        case "ymd" :
          d = parseInt(dArray[2], 10);
          m = parseInt(dArray[1], 10) - 1;
          y = parseInt(dArray[0], 10);
          break;
        case "mdy" :
        default :
          d = parseInt(dArray[1], 10);
          m = parseInt(dArray[0], 10) - 1;
          y = parseInt(dArray[2], 10);
          break;
      }
      dateVal = new Date(y, m, d);
    } else if (dateString && dateString.match("Check") == null) {
      dateVal = new Date(dateString);
    } else {
      dateVal = new Date();
    }
  } catch(e) {
    dateVal = new Date();
  }
 
  return dateVal;
}

/**
Try to split a date string into an array of elements, using common date separators.
If the date is split, an array is returned; otherwise, we just return false.
*/
function splitDateString(dateString)
{
  var dArray;
  if (dateString.match("Check") != null)    //checks for 'check-in' or 'check-out' date watermarks
    dArray = false;
  else if (dateString.indexOf("/") >= 0)
    dArray = dateString.split("/");
  else if (dateString.indexOf(".") >= 0)
    dArray = dateString.split(".");
  else if (dateString.indexOf("-") >= 0)
    dArray = dateString.split("-");
  else if (dateString.indexOf("\\") >= 0)
    dArray = dateString.split("\\");
  else
    dArray = false;
 
  return dArray;
}

/**
Update the field with the given dateFieldId with the dateString that has been passed,
and hide the datepicker. If no dateString is passed, just close the datepicker without
changing the field value.

Also, if the page developer has defined a function called datePickerClosed anywhere on
the page or in an imported library, we will attempt to run that function with the updated
field as a parameter. This can be used for such things as date validation, setting default
values for related fields, etc. For example, you might have a function like this to validate
a start date field:

function datePickerClosed(dateField)
{
  var dateObj = getFieldDate(dateField.value);
  var today = new Date();
  today = new Date(today.getFullYear(), today.getMonth(), today.getDate());
 
  if (dateField.name == "StartDate") {
    if (dateObj < today) {
      // if the date is before today, alert the user and display the datepicker again
      alert("Please enter a date that is today or later");
      dateField.value = "";
      document.getElementById(datePickerDivID).style.visibility = "visible";
      adjustiFrame();
    } else {
      // if the date is okay, set the EndDate field to 7 days after the StartDate
      dateObj.setTime(dateObj.getTime() + (7 * 24 * 60 * 60 * 1000));
      var endDateField = document.getElementsByName ("EndDate").item(0);
      endDateField.value = getDateString(dateObj);
    }
  }
}
*/

function updateDateField(dateFieldId, dateString)
{
  var targetDateField = document.getElementById (dateFieldId);
  if (dateString) {
    targetDateField.focus();
    targetDateField.value = dateString;
  }
 
  var pickerDiv = document.getElementById(datePickerDivID);
  pickerDiv.style.visibility = "hidden";
  pickerDiv.style.display = "none";
 
  adjustiFrame();
 
  // after the datepicker has closed, optionally run a user-defined function called
  // datePickerClosed, passing the field that was just updated as a parameter
  // (note that this will only run if the user actually selected a date from the datepicker)
  if ((dateString) && (typeof(datePickerClosed) == "function"))
    datePickerClosed(targetDateField);
    
  if(!skipBookingUpdate)
  {
    if(targetDateField.id == "ctl00_phContent_StartDatePickerTextBox2Booking")
    {
    updateValidation("ctl00_phContent_RangeValidator2");
    setTimeout('__doPostBack(\'ctl00$phContent$StartDatePickerTextBox2Booking\',\'\')', 0);
    }
    else if(targetDateField.id == "ctl00_phContent_EndDatePickerTextBox2Booking")
    {
    updateValidation("ctl00_phContent_RangeValidator1");    
    setTimeout('__doPostBack(\'ctl00$phContent$EndDatePickerTextBox2Booking\',\'\')', 0);
    }
  }
  skipBookingUpdate = false;
}

function updateValidation(validatorToUpdate)
{
    var a = $get(validatorToUpdate);
    a.isvalid = a.evaluationfunction(a);
    ValidatorUpdateDisplay(a);
}

/**
Use an "iFrame shim" to deal with problems where the datepicker shows up behind
selection list elements, if they're below the datepicker. The problem and solution are
described at:

http://dotnetjunkies.com/WebLog/jking/archive/2003/07/21/488.aspx
http://dotnetjunkies.com/WebLog/jking/archive/2003/10/30/2975.aspx
*/
function adjustiFrame(pickerDiv, iFrameDiv)
{
  // we know that Opera doesn't like something about this, so if we
  // think we're using Opera, don't even try
  var is_opera = (navigator.userAgent.toLowerCase().indexOf("opera") != -1);
  if (is_opera)
    return;
  
  // put a try/catch block around the whole thing, just in case
  try {
    if (!document.getElementById(iFrameDivID)) {
      // don't use innerHTML to update the body, because it can cause global variables
      // that are currently pointing to objects on the page to have bad references
      //document.body.innerHTML += "<iframe id='" + iFrameDivID + "' src='javascript:false;' scrolling='no' frameborder='0'>";
      var newNode = document.createElement("iFrame");
      newNode.setAttribute("id", iFrameDivID);
      newNode.setAttribute("src", "javascript:false;");
      newNode.setAttribute("scrolling", "no");
      newNode.setAttribute ("frameborder", "0");
      document.body.appendChild(newNode);
    }
    
    if (!pickerDiv)
      pickerDiv = document.getElementById(datePickerDivID);
    if (!iFrameDiv)
      iFrameDiv = document.getElementById(iFrameDivID);
    
    try {
      iFrameDiv.style.position = "absolute";
      iFrameDiv.style.width = pickerDiv.offsetWidth;
      iFrameDiv.style.height = pickerDiv.offsetHeight ;
      iFrameDiv.style.top = pickerDiv.style.top;
      iFrameDiv.style.left = pickerDiv.style.left;
      iFrameDiv.style.zIndex = pickerDiv.style.zIndex - 1;
      iFrameDiv.style.visibility = pickerDiv.style.visibility ;
      iFrameDiv.style.display = pickerDiv.style.display;
    } catch(e) {
    }
 
  } catch (ee) {
  }
}

/* fires when the textbox obtains focus the first time. */
function textboxFocus(e)
{
  var elem = getEventSource(e);

  displayDatePicker(elem.id);
}
/* SiteCatalyst code version: H.14.
Copyright 1997-2007 Omniture, Inc. More info available at
http://www.omniture.com */
/************************ ADDITIONAL FEATURES ************************
     Plugins
*/
/* Specify the Report Suite ID(s) to track here */
var s_account="zondercom"
var s=s_gi(s_account)
/************************** CONFIG SECTION **************************/
/* You may add or alter any code config here. */
/* Conversion Config */
s.currencyCode="USD"
/* Link Tracking Config */
s.trackDownloadLinks=true
s.trackExternalLinks=true
s.trackInlineStats=true
s.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,doc,pdf,xls"
s.linkInternalFilters="javascript:,zonder.com"
s.linkLeaveQueryString=false
s.linkTrackVars="None"
s.linkTrackEvents="None"
/* Plugin Config */
s.usePlugins=true
function s_doPlugins(s) {
	/* Add calls to plugins here */
	
	
	
	var temphr=s.getTimeParting('h','-7','2008'); // Set hour 
	var tempday=s.getTimeParting('d','-7','2008'); // Set day
	var tempweek=s.getTimeParting('w','-7','2008'); // Set Weekend / Weekday
		
	if(temphr)
		s.prop17=s.eVar16=temphr + " : " + tempday + " : " + tempweek;
}
s.doPlugins=s_doPlugins
/************************** PLUGINS SECTION *************************/
/* You may insert any plugins you wish to use here.                 */
/*
 * Plugin: getQueryParam 2.1 - return query string parameter(s)
 */
s.getQueryParam=new Function("p","d","u",""
+"var s=this,v='',i,t;d=d?d:'';u=u?u:(s.pageURL?s.pageURL:s.wd.locati"
+"on);if(u=='f')u=s.gtfs().location;while(p){i=p.indexOf(',');i=i<0?p"
+".length:i;t=s.p_gpv(p.substring(0,i),u+'');if(t)v+=v?d+t:t;p=p.subs"
+"tring(i==p.length?i:i+1)}return v");
s.p_gpv=new Function("k","u",""
+"var s=this,v='',i=u.indexOf('?'),q;if(k&&i>-1){q=u.substring(i+1);v"
+"=s.pt(q,'&','p_gvf',k)}return v");
s.p_gvf=new Function("t","k",""
+"if(t){var s=this,i=t.indexOf('='),p=i<0?t:t.substring(0,i),v=i<0?'T"
+"rue':t.substring(i+1);if(p.toLowerCase()==k.toLowerCase())return s."
+"epa(v)}return ''");

/*
 * Plugin: getValOnce 0.2 - get a value once per session or number of days
 */
s.getValOnce=new Function("v","c","e",""
+"var s=this,k=s.c_r(c),a=new Date;e=e?e:0;if(v){a.setTime(a.getTime("
+")+e*86400000);s.c_w(c,v,e?a:0);}return v==k?'':v");
/*
 * Plugin: getTimeParting 1.3 - Set timeparting values based on time zone
 */

s.getTimeParting=new Function("t","z","y",""
+"dc=new Date('1/1/2000');f=15;ne=8;if(dc.getDay()!=6||"
+"dc.getMonth()!=0){return'Data Not Available'}else{;z=parseInt(z);"
+"if(y=='2009'){f=8;ne=1};gmar=new Date('3/1/'+y);dsts=f-gmar.getDay("
+");gnov=new Date('11/1/'+y);dste=ne-gnov.getDay();spr=new Date('3/'"
+"+dsts+'/'+y);fl=new Date('11/'+dste+'/'+y);cd=new Date();"
+"if(cd>spr&&cd<fl){z=z+1}else{z=z};utc=cd.getTime()+(cd.getTimezoneO"
+"ffset()*60000);tz=new Date(utc + (3600000*z));thisy=tz.getFullYear("
+");var days=['Sunday','Monday','Tuesday','Wednesday','Thursday','Fr"
+"iday','Saturday'];if(thisy!=y){return'Data Not Available'}else{;thi"
+"sh=tz.getHours();thismin=tz.getMinutes();thisd=tz.getDay();var dow="
+"days[thisd];var ap='AM';var dt='Weekday';var mint='00';if(thismin>3"
+"0){mint='30'}if(thish>=12){ap='PM';thish=thish-12};if (thish==0){th"
+"ish=12};if(thisd==6||thisd==0){dt='Weekend'};var timestring=thish+'"
+":'+mint+ap;var daystring=dow;var endstring=dt;if(t=='h'){return tim"
+"estring}if(t=='d'){return daystring};if(t=='w'){return en"
+"dstring}}};"
);

/* WARNING: Changing any of the below variables will cause drastic
changes to how your visitor data is collected.  Changes should only be
made when instructed to do so by your account manager.*/
s.visitorNamespace="zonder"
s.dc=112
s.trackingServer="stats.zonder.com"
s.trackingServerSecure="sstats.zonder.com"

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code='',s_objectID;function s_gi(un,pg,ss){var d="function s_dr"
+"(x,o,n){var i=x.indexOf(o);if(i>=0&&x.split)x=(x.split(o)).join(n);"
+"else while(i>=0){x=x.substring(0,i)+n+x.substring(i+o.length);i=x.i"
+"ndexOf(o)}return x}w.s_dr=s_dr;function s_d(x) {var t='`^@$#',l='01"
+"23456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz',d,n=0"
+",b,k,w,i=x.lastIndexOf('~~');if(i>0){d=x.substring(0,i);x=x.substri"
+"ng(i+2);while(d){w=d;i=d.indexOf('~');if(i>0){w=d.substring(0,i);d="
+"d.substring(i+1)}else d='';b=parseInt(n/62);k=n-b*62;k=t.substring("
+"b,b+1)+l.substring(k,k+1);x=s_dr(x,k,w);n++}for(i=0;i<5;i++){w=t.su"
+"bstring(i,i+1);x=s_dr(x,w+' ',w)}}return x}w.s_d=s_d;",c=".substrin"
+"g(~.indexOf(~return ~=fun`K(~){`Os=^u~`t $6~;$6~.toLowerCase()~`cFu"
+"n`K('e`s`Os=s_c_il['+@i+']~};s.~.length~.toUpperCase~`cObject~s.wd~"
+"t^D~.location~')q='~dynamicAccount~link~s.apv~ction~$l$X~)$6x^X!Obj"
+"ect||!Object.prototype||!Object.prototype[x])~@G^Al)@G^Al['+@i+'].m"
+"rq(\"'+un+'\")'~var ~s.pt(~ookieDomainPeriods~,`s,'~while(~);s.~.pr"
+"otocol~){$6~visitor~=''~:'')~;@F^Vs[k],255)}~s_c2f~javaEnabled~=new"
+" ~.lastIndexOf('~tm.get~@5\"$Qs.b.addBehavior('# default# ~onclick~"
+"ternalFilters~entElement~Name~javascriptVersion~=parseFloat(~cookie"
+"~parseInt(~s.^J~Type~o^joid~browser~','~else~referrer~colorDepth~St"
+"ring~.host~s.rep(~}catch(e){~r=s.m(f)?s[f](~}$6~s.un~s.eo~s.sq~t=s."
+"ot(o)~track~j='1.~)?'Y':'N'~$dURL~^jc_i~s.ismac~lugins~=='~;for(~Sa"
+"mpling~s.rc[un]~s.b.addEventListener~Download~tfs~resolution~.get@I"
+"()~s.eh~s.isie~s.vl_l~s.vl_t~Height~t,h){t=t?t~isopera~escape(~scre"
+"en.~s.fl(~harCode~&&(~variableProvider~s.gg('objectID')~&&s.~:'';h="
+"h?h~e&&l$kSESSION'~');~f',~_'+~Date~name~home$d~.s_~s.c_r(~s.rl[u~o"
+".href~Lifetime~Width~sEnabled~'){q='~b.attachEvent~&&l$kNONE'){~Ext"
+"ernalLinks~this~charSet~onerror~currencyCode~s=s_gi(~e$SElement~;s."
+"gl(s.vl_g~.parent~Array~lnk~Opera~eval(~Math.~s.fsg~s.ns6~docum~s.o"
+"un~conne~InlineStats~Track~'0123456789~s[k]=~window~onload~Time~s.e"
+"pa(~s.c_w(~o.type~(s.ssl~n=s.oid(o)~LeaveQuery~')>=~&&t~'=')~){n=~+"
+"1))~' '+~s.t()}~\",''),~=s.oh(o);~+(y<1900?~ingServer~s_gs~true~ses"
+"s~campaign~lif~;fun~,100)~s.co(~s._in~x in ~='s_~ffset~s.c_d~'&pe~s"
+".gv(~s.qav~s.pl~=(apn~sqs',q);~Year(~=s.n.app~&&!~(''+~(\")>=~)+'/~"
+"',s~s()+':'+~){p=~():''~a):f(~){v=s.n.~channel~if(~un)~.target~o.va"
+"lue~etscape~(ns?ns:~s_')t=t~omePage~++}~')<~){x~1);~e))~'+n~height~"
+"events~trk~random~code~un,~try{~'MSIE ~.src~INPUT'~floor(~s.pg~s.nu"
+"m(~s.ape(~s.c_gd~s.dc~.inner~transa~Events~page~.set~Group,~Match,~"
+".fromC~++){~?'':~!='~='+~(\")<~?'&~+';~(f){~>=5)~&&i>~[b](~=l[n];~~"
+"fun`K `ae$p`Ox`X,s=0,e,a,b,c;`S1){e=f`1'\"@z);b=f`1'\\\\',s);c=f`1"
+"\"\\n\",s)`6e<0||(b>=0&&b<$Ie=b`6e<0||(c>=0&&c<$Ie=c`6e>=0$G+=(e>s?"
+"f`0s,e)`Y+(e==c?'\\\\n':'\\\\'+f`0e,e@T;s=e+1}`t `2x+f`0s)}`2f}w.`a"
+"e=`ae@f`K `aa$p`Os=f`1'(')+1,e=f`1')'),a`X,c;`Ss>=0&&s<e){c=f`0s,s+"
+"1)`6c==`s)a+='\",\"';`5(\"\\n\\r\\t \")`1c)<0)a+=c;s$E`2a?'\"'+a+'"
+"\"':a}w.`aa=`ae@f`K `a(cc){cc`X+cc;`Ofc='`Of`cFun`K(@z=cc`1';',cc`1"
+"'{')),e=cc`d}'),o,a,d,q,c,f,h,x;fc+=`aa(cc)+',\"`Os`C;';c=cc`0s+1,e"
+");s=c`1'fun`K^d`Ss>=0){d=1;q`X;x=0;f=c`0s);a=`aa(f);e=o=c`1'{@z);e+"
+"+;`Sd>0){h=c`0e,e+1)`6q`Vh==q@vx)q`X`6h^D\\\\')x=x?0:1;`t x=0}`t{$6"
+"h^D\"'||h==\"'\")q=h`6h^D{')d++`6h^D}')d--^1d>0)e$Ec=c`00,s)+'new F"
+"un`K('+(a?a+`s`Y+'\"'+`ae(c`0o+1,$I+'\")'+c`0e+$Hs=c`1'fun`K')}fc+="
+"`ae(c)$o`2s\");';@5fc);`2f}w.`a=`a`6pg){fun`K s_co(o){`O^y\"_\",1,$"
+"H`2@ho)}w^jco=s_co@f`K @a($7{`O^y$P1,$H`2@Vw^jgs=@a@f`K s_dc($7{`O^"
+"y$P$H`2@Vw^jdc=s_dc;}fun`K s_c($Ppg,ss`4;s._c@kc';`D=@G`6!`D^An){`D"
+"^Al`c@2;`D^An=0;}s._il=`D^Al;@i=`D^An;s._il[@i]=s;`D^An++;s.m`3m){`"
+"2@wm)`1'{$F0`9fl`3x,l){`2x?@wx)`00,l):x`9co`3o`V!o)`2o;`On`C,x^E@jo"
+")$6x`1'select$F0&&x`1'filter$F0)n[x]=o[x];`2n`9num`3x$G`X+x^E`Op=0;"
+"p<x`A;p++)$6(@E')`1x`0p,p@T<0)`20;`21`9rep`3x,o,n){`Oi=x`1o);`Sx$r="
+"0$G=x`00,i)+n+x`0i+o`A);i=x`1o,i+n`A)}`2x`9ape`3x`4,h=@EABCDEF',i,c"
+"=s.^v,n,l,e,y`X;c=c?c`B$2`6x$G`X+x`6c^DAUTO'^X'').c^WAt){for(i=0;i<"
+"x`A;i$ic=x`0i,i+$Hn=x.c^WAt(i)`6n>127){l=0;e`X;`Sn||l<4){e=h`0n%16,"
+"n%16+1)+e;n=`nn/16);l$Ey+='%u'+e}`5c^D+')y+='%2B';`t y+=^Tc)}x=y}`t"
+"{x=x?`y^T''+x),'+`s%2B'):x`6x&&c^aem==1&&x`1'%u$F0&&x`1'%U$F0){i=x`"
+"1'%^d`Si>=0){i++`6h`08)`1x`0i,i+1)`B())>=0)`2x`00,i)+'u00'+x`0i);i="
+"x`1'%',i)}}}}`2x`9epa`3x`4;`2x?un^T`y''+x,'+`s ')):x`9pt`3x,d,f,a`4"
+",t=x,z=0,y,r;`St){y=t`1d);y=y<0?t`A:y;t=t`00,y);^0t,$3t,a)`6r)`2r;z"
+"+=y+d`A;t=x`0z,x`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`D`F`x`6!m.toLowerCase)m`X+m;l=l`7;m=m`7;n=`Pl,';`sdyas^em"
+")`6n)^2=n}i=^2`1`s`Tfun=i<0?^2:^2`00,i)`9sa`3un`4;^2=un`6!@A)@A=un;"
+"`5(`s+@A+`s)`1$7<0)@A+=`s+un;^2s()`9t`3`4,$M=1,tm`c^g,sed=Math&&@6$"
+"N?@6$U@6$N()*10000000000000):`e@I(),@c='s'+@6$U`e@I()/10800000)%10+"
+"sed,y=`e@t),vt=`e^g(@y'+`eMonth(@y'@Yy+1900:y)+@U`eHour$0`eMinute$0"
+"`eSeconds()+@U`eDay()+@U`e@IzoneO@l(),^J=s.g^J(),ta`X,q`X,qs`X@0`Tu"
+"ns()`6!s.td){`Otl=^J`F,a,o,i,x`X,c`X,v`X,p`X,bw`X,bh`X,^70',k=@K's_"
+"cc`s@b',0^8,hp`X,ct`X,pn=0,ps`6`w&&`w.prototype){^71'`6j.match){^72"
+"'`6tm$eUTC^g){^73'`6^N&&^B&&`J$q^74'`6pn.toPrecision){^75';a`c@2`6a"
+".forEach){^76';i=0;o`C;@5'$Qi`cIterator(o)`z}')`6i&&i.next)^77'}}}}"
+"^1`J>=4)x=^Uwidth+'x'+^U$K`6s.isns||s.^S`V`J>=3$4`b(^8`6`J>=4){c=^U"
+"pixelDepth;bw=`D$a^o;bh=`D$a^Q}}@q=s.n.p^C}`5^N`V`J>=4$4`b(^8;c=^U`"
+"v`6`J$q{bw=s.d.@9`i.o@l^o;bh=s.d.@9`i.o@l^Q`6!^B^ab){`fh$D^dhp=s.b."
+"isH$D(tl^8`z}\");`fclientCaps^dct=s.b.@B`K`p`z}\")}}}`t r`X^1@q)`Sp"
+"n<@q`A&&pn<30){ps=^V@q[pn].^h@g$o'`6p`1ps)<0)p+=ps;pn$Es.^K=x;s.`v="
+"c;s.`k=j;s.`b=v;s.`m^p=k;s.`r^o=bw;s.`r^Q=bh;s.@B`K`p=ct;s.^i=hp;s."
+"p^C=p;s.td=1^1s.useP^C)s.doP^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
+"plorer'`Tisns@r^DN$A'`T^S@r^D@4'`Tismac=(s.u`1'Mac@P0)`6o>0)`J`ls.u"
+"`0o+6));`5ie>0){`J=`ni=v`0ie+5))`6`J>3)`J`li)}`5@8>0)`J`ls.u`0@8+10"
+"));`t `J`lv`Tem=0`6`w$h^W){i=^T`w$h^W(256))`B(`Tem=(i^D%C4%80'?2:(i"
+"^D%U0100'?1:0))}s.sa(un`Tvl_l='`WID,vmk,ppu,^v,`W`jspace,c`Q,`m^n,$"
+"d`j,^9,`u,^x';^P=^O+',^Y,$5,server,$d`p,$b`KID,purchaseID,@d,state,"
+"zip,$L,products,`I`j,`I`p'^E`On=1;n<51;n++)^P+=',prop$J+',eVar$J+',"
+"hier$J;^O2='^K,`v,`k,`b,`m^p,`r^o,`r^Q,@B`K`p,^i,p^C';^P+=`s+^O2;s."
+"vl_g=^P+',`W^F,`W^F$f`HSele`K,`HList,`H$g^6^ILinks,^6^t,^6@C,`I@O`w"
+",`I^IFile`ps,`IEx`h,`IIn`h,`I@DVars,`I@D$c,`I`js,@3';$V=pg@0)`6!ss)"
+"`Ds()}",
w=window,l=w.s_c_il,n=navigator,u=n.userAgent,v=n.appVersion,e=
v.indexOf('MSIE '),m=u.indexOf('Netscape6/'),a,i,s;if(un){un=
un.toLowerCase();if(l)for(i=0;i<l.length;i++){s=l[i];if(s._c=='s_c'){
if(s.oun==un)return s;else if(s.fs(s.oun,un)){s.sa(un);return s}}}}
eval(d);c=s_d(c);i=c.indexOf("function s_c(");eval(c.substring(0,i))
if(!un)return 0;c=c.substring(i);if(e>0){a=parseInt(i=v.substring(e
+5));if(a>3)a=parseFloat(i)}else if(m>0)a=parseFloat(u.substring(m+10)
);else a=parseFloat(v);if(a>=5&&v.indexOf('Opera')<0&&u.indexOf(
'Opera')<0){eval(c);return new s_c(un,pg,ss)}else s=s_c2f(c);return s(
un,pg,ss)}s_gi()

if(location.href.indexOf("csr.zonder.com") > 0)
{
    s.t = function(){};
}

if(location.href.indexOf("owner.zonder.com") > 0)
{
    s.t = function(){};
}

