<!--
 

//Break-out-of-frames script
//if not in frames
/*
if (parent.frames.length==0)
//CHANGE "index.htm" to the URL of your main frame page
window.location.replace("index.htm")
*/
// /Break-out-of-frames script

// required for 360 deg Tour
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
// /required for 360 deg Tour

// Break-out-of-frames script
if (window!= top)
top.location.href=location.href
//  /Break out frame window

//  Pop-up Window Function
function openWin( windowURL, windowName, windowFeatures ) { 
	return window.open( windowURL, windowName, windowFeatures ); 
} 
//  /Pop-up Window Function

//Print Date Script
function printDate(){

currentDate = new Date();

weekday = currentDate.getDay();

month = currentDate.getMonth();

date = currentDate.getDate();

year = currentDate.getYear();

weekdayName = "";

switch(weekday)
{
case 0 :{
weekdayName = "Sunday";
break;}
case 1 :{
weekdayName = "Monday";
break;}
case 2 :{
weekdayName = "Tuesday";
break;}
case 3 :{
weekdayName = "Wednesday";
break;}
case 4 :{
weekdayName = "Thursday";
break;}
case 5 :{
weekdayName = "Friday";
break;}
case 6 :{
weekdayName = "Saturday";
break;}
}

monthName = "";

switch(month)
{
case 0 :{
monthName = "Jan";
break;}
case 1 :{
monthName = "Feb";
break;}
case 2 :{
monthName = "March";
break;}
case 3 :{
monthName = "April";
break;}
case 4 :{
monthName = "May";
break;}
case 5 :{
monthName = "June";
break;}
case 6 :{
monthName = "July";
break;}
case 7 :{
monthName = "Aug";
break;}
case 8 :{
monthName = "Sept";
break;}
case 9 :{
monthName = "Oct";
break;}
case 10 :{
monthName = "Nov";
break;}
case 11 :{
monthName = "Dec";
break;}
}

   document.write(weekdayName +", "+  date+" "+ monthName +" "+ year);
}

/*
function MakeArrayday(size) {
this.length = size;
for(var i = 1; i <= size; i++) {
this[i] = "";
}
return this;
}
function MakeArraymonth(size) {
this.length = size;
for(var i = 1; i <= size; i++) {
this[i] = "";
}
return this;
}
function funClock() {
if (!document.layers && !document.all)
return;
var runTime = new Date();
var hours = runTime.getHours();
var minutes = runTime.getMinutes();
var seconds = runTime.getSeconds();
var dn = "AM";
if (hours > 12) {
dn = "PM";
hours = hours - 12;
}
if (hours == 0) {
hours = 12;
}
if (minutes <= 9) {
minutes = "0" + minutes;
}
if (seconds <= 9) {
seconds = "0" + seconds;
}
movingtime = "<b>"+ hours + ":" + minutes + ":" + seconds + " " + dn + "</b>";
if (document.layers) {
document.layers.clock.document.write(movingtime);
document.layers.clock.document.close();
}
else if (document.all) {
clock.innerHTML = movingtime;
}
setTimeout("funClock()", 1000)
}
window.onload = funClock;
// /Print Date Script




//Fair well window launcher script
function openpopup(){
//configure "seeyou.htm and the window dimensions as desired
//add onunload="openpopup" to the body tag of the page
window.open("seeyou.htm","","width=300,height=338")
}

function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function loadpopup(){
if (get_cookie('popped')==''){
openpopup()
document.cookie="popped=yes"
}
}
// /Fair well window launcher script

//Pop-under window for Advertisements

//specify page to pop-under
var popunder="http://www.gatehotel.com"

//specify popunder window features
//set 1 to enable a particular feature, 0 to disable
var winfeatures="width=800,height=510,scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0"

//Pop-under only once per browser session? (0=no, 1=yes)
//Specifying 0 will cause popunder to load every time page is loaded
var once_per_session=1

///No editing beyond here required/////

function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function loadornot(){
if (get_cookie('popunder')==''){
loadpopunder()
document.cookie="popunder=yes"
}
}

function loadpopunder(){
win2=window.open(popunder,"",winfeatures)
win2.blur()
window.focus()
}

if (once_per_session==0)
loadpopunder()
else
loadornot()
// /Pop-under window for Advertisements
*/
-->

function printDate1(){

var monthNames = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
var monthNums = new Array("01","02","03","04","05","06","07","08","09","10","11","12");
var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thrusday","Friday","Saturday");
var now = new Date();
// Display date in format Day, DD Month YYYY
document.write(dayNames[now.getDay()] + ", " + now.getDate() + " " + monthNames[now.getMonth()] + " " + now.getFullYear());
}

