// 04/11/08 fixed: links were using agentweb default directory, now use AndavoTravel

function NewWindow(url,hgt,wth)
{
  win = window.open(url, null,
    'height=' + hgt + ',width=' + wth + ',titlebar=no,toolbar=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes');
}

// name - name of the cookie
// value - value of the cookie
// [expires] - expiration date of the cookie (defaults to end of current session)
// [path] - path for which the cookie is valid (defaults to path of calling document)
// [domain] - domain for which the cookie is valid (defaults to domain of calling document)
// [secure] - Boolean value indicating if the cookie transmission requires a secure transmission
// * an argument defaults when it is assigned null as a placeholder
// * a null placeholder is not required for trailing omitted arguments
function setCookie(name, value, expires, path, domain, secure) 
{
//  alert ('js:setCookie=' + value);
  var curCookie = name + "=" + escape(value) +
      ((expires) ? "; expires=" + expires.toGMTString() : "") +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      ((secure) ? "; secure" : "");
  document.cookie = curCookie;
}

// name - name of the desired cookie
// * return string containing value of specified cookie or null if cookie does not exist
function getCookie(name) 
{
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  if (begin == -1) {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
  } else
    begin += 2;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
    end = dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
}

function top()
{
  document.write('<div id="wrapper"><div id="logo"><a href="http://www.andavovacations.com/AndavoTravel/">');
  document.write('<img alt="" src="http://www.andavovacations.com/agentweb/images/design_elements/main_andavo_logo.jpg" width="380" height="130" border="0"></a>');
  document.write('<br>We Travel With You</div>');
  document.write('<div id="topnav"><img alt="home" src="http://www.andavovacations.com/agentweb/images/buttons/icon-home.jpg" width="16" height="15">&nbsp;<a href="http://www.andavovacations.com/default.asp">Home</a>&nbsp;&nbsp;"');
  document.write('<img alt="contact" src="http://www.andavovacations.com/agentweb/images/buttons/icon-contact.jpg" width="16" height="11">');
  document.write('<a href="http://www.andavovacations.com/agentweb/contactus.asp?WebSiteName=AndavoTravel">Contact Us</a>&nbsp;&nbsp;');
  document.write('<img alt="policies" src="http://www.andavovacations.com/agentweb/images/buttons/icon-policies.jpg" width="15" height="15">');
  document.write('<a href="http://www.andavovacations.com/agentweb/privacy.asp?WebSiteName=AndavoTravel">Policies</a>&nbsp;</div>');
  document.write('<div id="mainimage"><img alt="" src="http://www.andavoelite.com/agentweb/images/MainImages/main_Passport.jpg"></div>');
  document.write('<div id="mainnavigation"><a href="http://www.andavovacations.com/default.asp">Home</a> | ');
  document.write('<a href="http://vacations.goandavo.com/c/15/15083/1495666_15083.htm">Cruise Vacations</a> | ');
  document.write('<a href="http://vacations.goandavo.com/c/15/15083/1495673_15083.htm">Land Vacations &amp; Tours</a> | ');
  document.write('<a href="http://vacations.goandavo.com/c/15/15083/1495680_15083.htm">Vacation Packages</a> | ');
  document.write('<a href="http://www.andavovacations.com/links.asp">Favorite Links</a></div></div>');

}
