
function XECurrencyConverter() {
 CurrencyWindow = window.open ('', 'CurrencyWindow', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,height=135,width=550');
 CurrencyWindow.focus();
 CurrencyWindow.location.href = "http://www.xe.com/pca/input.cgi";
}
function gotoPage(newPage){
  document.frmSearchResults.PAGE.value = newPage;
  document.frmSearchResults.POSTBACK.value = true;
  document.frmSearchResults.submit();
}
function goBack() {
  document.frmSearchResults.STEP.value = 1;
  document.frmSearchResults.POSTBACK.value = true;
  document.frmSearchResults.submit();
}
function gotoProperty(propertyID,page) {
  var page = (page == null) ? false : page;
  document.frmSearchResults.action = "http://whistler-bc-specials.alluradirect.com/" + propertyID + "/index.cfm";
  if(page != false ) {
    document.frmSearchResults.action = document.frmSearchResults.action + '?contentID=' + page;
  }
  document.frmSearchResults.POSTBACK.value = true;
  document.frmSearchResults.submit();
}

function PreviewExistImg(PropertyID) {
  document.frmSearchResults.action = "http://whistler-bc-specials.alluradirect.com/" + PropertyID + "/index.cfm?contentID=PhotoGallery";
  document.frmSearchResults.POSTBACK.value = true;
  document.frmSearchResults.submit();
}
function FastInquiry() {
  document.frmFastInquiry.submit();
}
function QuickSearch() {
  document.frmQuickSearch.submit();
}
function AssistanceEmail() {
  document.frmAssistanceEmail.submit();
}
// EXPAND AND COLAPSE CONTENT TEXT

function getByID (n) {
    var d = window.document;
    if (d.getElementById)
    return d.getElementById(n);
    else if (d.all)
    return d.all[n];
  }
  function showHide (item) {
    var obj = getByID('show_hide_' + item);
    var lnk_obj = getByID('show_hide_link_' + item);
    if (obj && lnk_obj)
    if (obj.style.display == 'none') {
    obj.style.display = 'block';
    //lnk_obj.style.backgroundImage = 'url(/ad_content/images/css/arrow_down.gif)';
    }
    else if (obj.style.display == 'block') {
    obj.style.display = 'none';
    //lnk_obj.style.backgroundImage = 'url(/ad_content/images/css/arrow_right.gif)';
    }
  }
