<!--
/* Global browser variables */
var UserAgent = (navigator.userAgent.toLowerCase());
var DOM = (document.getElementById ? 1 : 0);
var NS  = (UserAgent.indexOf('mozilla') != -1) && (UserAgent.indexOf('compatible') == -1 ? 1 : 0);
var IE  = (UserAgent.indexOf('msie')    != -1 ? 1 : 0);
var OP  = (UserAgent.indexOf('opera')   != -1 ? 1 : 0);
var DOMNS = (DOM && NS ? 1 : 0);
var DOMIE = (DOM && IE ? 1 : 0);
var NS4   = (NS && !DOM && document.layers ? 1 : 0);
var IE4   = (IE && !DOM && document.all ? 1 : 0);
var IE6   = (IE && document.compatMode && document.all ? 1 : 0);
var win = null;
/* General Functions */
function StripChar(s,c,r){
  var Result = new String("");
  for (var i = 0; i < s.length; i++){
    if (s.charAt(i) == c){
      Result += r;
    }
    else {
      Result += s.charAt(i);
    }
  }
  return Result;
}
function StripSpaces(obj){
  obj.value = StripChar(obj.value," ","_");
}
function IsEmpty(s){
 if((s == null) || (s == "") || (s == " ")){
   return true;
 }
 else{
   return false;
 }
}
function Nothing(){
  return true;
}
/* Popup Functions */
function ShowPopup(Url,Name,Features,Title){
  var WindowName = new String("");
  if (!IsEmpty(Name)){
    WindowName = Name;
  }  
  win = window.open(Url,WindowName,Features);
  win.window.focus();
}
/* Layer functions */
function FindLayer(Name,d){
  var i = 0;
  var Result = null;
  if(!d)
    d = document;
  if(!(Result = d[Name]) && d.all)
    Result = d.all[Name];
  for(i = 0; !Result && d.layers && i < d.layers.length; i++)
    Result = FindLayer(Name,d.layers[i].document);
  if(!Result && document.getElementById)
    Result = document.getElementById(Name);
  return Result;
}

var MenuName = null;

function ShowLayer(){
  var i,p,v,obj,args = ShowLayer.arguments;
  for (i = 0; i < (args.length-2); i += 3){
    if ((obj = FindLayer(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 kw_crouton(dl,lt,sm,hL){
 tc=document;c=tc.cookie;m=c.indexOf("kw_crouton");dT=tc.title; dT=dT.replace(sm,"");
 iS=window.location+"*"+dT;j="";if (m!=-1){p=c.indexOf("=",m)+1;p2=c.indexOf(";",m);
 p2=(p2==-1)?c.length:p2;j=c.substring(p,p2);s=j.split("|");sL=s.length;if (s[sL-1]==iS)
 iS="";if (sL>hL) {s=s.slice(1);j=s.join("|");}}if (j!="" && iS!="")j+="|";j+=iS;
 d=new Date();d.setTime(d.getTime()+(2592000000));ep="; expires="+d.toGMTString()+"; path=/";
 tc.cookie="kw_crouton="+j+ep+";";s=j.split("|");iLn=s.length-hL;iLn=(iLn<0)?0:iLn;
 for (var i=iLn;i<s.length-1;i++) {ps=s[i].split("*");if (lt==1) 
 tc.write("<a href=\""+ps[0]+"\">"+ps[1]+"</a>"+dl);if (lt==2) 
 tc.write("<li><a href=\""+ps[0]+"\">"+ps[1]+"</a></li>");}
 if (lt==1) tc.write(dT);
}
/* Intrabar */
function showIB(){
  if (document.getElementById){
    var dropdown = document.getElementById('shadow-container');
    var image = document.getElementById('toggle');
    var rightBar = document.getElementById('itwresorts');
    image.src = 'images/ibarrowdown.gif';
    dropdown.style.visibility = 'visible';
  }
}

function hideIB(){
  if (document.getElementById){
    var obj = document.getElementById('shadow-container');
    var image = document.getElementById('toggle');
    image.src = 'images/ibarrow.gif';
    obj.style.visibility = 'hidden';
  }

}

function swapImage(x){
  if (document.getElementById){
    var obj = document.getElementById('shadow-container');
    var image = document.getElementById('toggle');
  }
  var imageSrc = image.src;
  var x;
  x = imageSrc.indexOf('d');
  if (x == -1){
    image.src = 'images/ibarrowdown.gif';
    obj.style.visibility = 'visible';
  }
  else {
    image.src = 'images/ibarrow.gif';
    obj.style.visibility = 'hidden';
  }
}

function highlight(x){
  x.style.color = 'yellow';
}

function lowlight(x){
  x.style.color = 'white';
}
// -->