<!-- //Hide from JavaScript-Impaired Browsers
function write_before_content(){
document.write('<LINK REL="stylesheet" HREF="/mabc.css" TYPE="text/css">');
document.write('<LINK REL="icon" HREF="/favicon.ico" TYPE="image/ico">');
document.write('<LINK REL="shortcut icon" HREF="/favicon.ico" TYPE="image/ico">');
}

// Begin Install CSS link
write_before_content()
// Endof Install CSS link

function MABCparser(sAddress){
  var sName=sAddress.substring(0,sAddress.indexOf("MABC"))+sAddress.substring(sAddress.indexOf("@"),sAddress.length);
  var new_window=window.open('mailto:'+sName,'new_Window','')
}

function EMailWrite(sId, sHost, sSubj, sContact) {
  document.write("<a href=" + "mail" + "to:" + sId + "@" + sHost + "?Subject=" + sSubj + ">email " + sContact + "</" + "a>");
}

function EMailparser(sId, sHost, sSubj){
  if (sSubj > ''){
    var sName=sId+'@'+sHost+'?subject='+sSubj;
    }
  else {
    var sName=sId+'@'+sHost;
    }
  var new_window=window.open('mailto:'+sName,'new_Window','')
}

function fnStyleElement(el,css){
    if (window.attachEvent) el.style.setAttribute('cssText',css);
    else el.setAttribute('style',css);
}

function fnSetStyle(){
  var styleStr = "<STYLE TYPE='text/css'><!--"
   + "#shaded {" + "background-color:" + gSColor + ";}"
   + "#unshaded {" + "background-color:" + gUColor + ";}"
   + "--></STYLE>";
  document.write(styleStr);
}

function fnShadeRow(){
  var dTbl=document.getElementById('oTbl');
  if ( dTbl == null ) { return; };
  var iColor;
  var iLen = dTbl.rows.length-1;
  for(var i=0;i<=iLen;i++){
    var oRow   = dTbl.rows[i];
    var oCells = oRow.cells;
    var iLen2  = oCells.length-1;
    if ( oCells[0].nodeName == 'TH' ){
        // ignore TH (hdr rows), set color to unshaded so first row after hdr is shaded
        iColor = gUColor;
        continue;
    }
    if ( iColor == gSColor ){
      iColor = gUColor;
    }
    else {
      iColor = gSColor;
    }
    if ( oRow.nodeName == 'TR' ){
      if ( iColor == gSColor ){
        oRow.id = "shaded";
      }
      else {
        oRow.id = "unshaded";
      }
    }
  }
}

function fnRowShade(){
  var dTbl = document.getElementById('oTbl');
  if ( dTbl == null ) { return; };
  var iColor;
  var iWhite = "#FFFFFF";
  var iLen   = dTbl.rows.length-1;
  for(var i=0;i<=iLen;i++){
    var oRow   = dTbl.rows[i];
    var oCells = oRow.cells;
    var iLen2  = oCells.length-1;
    if ( oCells[0].nodeName == 'TH' ){
        // ignore TH (hdr rows), set color to white so first row after hdr is shaded
        iColor = iWhite;
        continue;
    }
    if ( oRow.nodeName == 'TR' ){
      if ( iColor == gColor ){
        iColor = iWhite;
        }
      else {
        iColor = gColor;
      }
      fnStyleElement(oRow,"background-color:" + iColor);
    }
  }
}

function getFullYear(d) { // d is a date object
// fixes a Netscape 2 and 3 bug
 yr = d.getYear();
 if (yr < 1000)
  yr+=1900;
 return yr;
}

function initArray() {
 for(i=0;i<initArray.arguments.length; i++)
  this[i] = initArray.arguments[i];
}

function showDate() {
var isnMonths=new initArray("January","February","March","April","May","June","July","August","September","October","November","December");
var isnDays= new initArray("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday");
//X=document.lastModified;
//lastModified= new String(X);
//i=lastModified.indexOf(":");
//if ( i >= 0 ) {
//  lastModified=lastModified.substr(0,i-3);
//}
today=new Date();
hrs=today.getHours();
min=today.getMinutes();
sec=today.getSeconds();
clckh=""+((hrs>12)?hrs-12:hrs);
clckm=((min<10)?"0":"")+min;
clcks=((sec<10)?"0":"")+sec;
clck=(hrs>=12)?"p.m.":"a.m.";
var stnr="";
var ns="0123456789";
var a="";
document.write("It is "+isnDays[today.getDay()]+", "+isnMonths[today.getMonth()]+" "+today.getDate()+", "+getFullYear(today));
}

function write_picture_area(pict1,pictlabel1,pict2,pictlabel2,pict3,pictlabel3,pict4,pictlabel4,pict5,pictlabel5,pict6,pictlabel6){
var str = '';
str = str + '<table border="5" cellpadding="2" width="100%" style="table-layout:fixed;width:100%">';
str = str + '<tbody>';
str = str + '  <tr>';
str = str + '    <td width="100%" colspan="6">';
str = str + '    <p align="center">Click on photo for larger picture<br>';
str = str + '    Use back arrow to return</p>';
str = str + '    </td>';
str = str + '  </tr>';
str = str + '  <tr>';
if ( pict1 == '' )
str = str + '    <td width="17%" align="center">&nbsp;</td>';
else
str = str + '    <td width="17%" align="center"><a href="'+pict1+'"><img src="'+pict1+'" width="100" height="66" border="0" alt="'
+pictlabel1+'"></a></td>';
if ( pict2 == '' )
str = str + '    <td width="17%" align="center">&nbsp;</td>';
else
str = str + '    <td width="17%" align="center"><a href="'+pict2+'"><img src="'+pict2+'" width="100" height="66" border="0" alt="'
+pictlabel2+'"></a></td>';
if ( pict3 == '' )
str = str + '    <td width="17%" align="center">&nbsp;</td>';
else
str = str + '    <td width="17%" align="center"><a href="'+pict3+'"><img src="'+pict3+'" width="100" height="66" border="0" alt="'
+pictlabel3+'"></a></td>';
if ( pict4 == '' )
str = str + '    <td width="17%" align="center">&nbsp;</td>';
else
str = str + '    <td width="17%" align="center"><a href="'+pict4+'"><img src="'+pict4+'" width="100" height="66" border="0" alt="'
+pictlabel4+'"></a></td>';
if ( pict5 == '' )
str = str + '    <td width="17%" align="center">&nbsp;</td>';
else
str = str + '    <td width="17%" align="center"><a href="'+pict5+'"><img src="'+pict5+'" width="100" height="66" border="0" alt="'
+pictlabel5+'"></a></td>';
if ( pict6 == '' )
str = str + '    <td width="17%" align="center">&nbsp;</td>';
else
str = str + '    <td width="17%" align="center"><a href="'+pict6+'"><img src="'+pict6+'" width="100" height="66" border="0" alt="'
+pictlabel6+'"></a></td>';
str = str + '  </tr>';
str = str + '  <tr>';
if ( pict1 == '' )
str = str + '    <td width="17%" align="center">&nbsp;</td>';
else
str = str + '    <td width="17%" align="center">'+pictlabel1+'</td>';
if ( pict2 == '' )
str = str + '    <td width="17%" align="center">&nbsp;</td>';
else
str = str + '    <td width="17%" align="center">'+pictlabel2+'</td>';
if ( pict3 == '' )
str = str + '    <td width="17%" align="center">&nbsp;</td>';
else
str = str + '    <td width="17%" align="center">'+pictlabel3+'</td>';
if ( pict4 == '' )
str = str + '    <td width="17%" align="center">&nbsp;</td>';
else
str = str + '    <td width="17%" align="center">'+pictlabel4+'</td>';
if ( pict5 == '' )
str = str + '    <td width="17%" align="center">&nbsp;</td>';
else
str = str + '    <td width="17%" align="center">'+pictlabel5+'</td>';
if ( pict6 == '' )
str = str + '    <td width="17%" align="center">&nbsp;</td>';
else
str = str + '    <td width="17%" align="center">'+pictlabel6+'</td>';
str = str + '  </tr>';
str = str + '</tbody>';
str = str + '</table>';
document.write(str);
}

function gMapload(lat, lng) {
  if (GBrowserIsCompatible()) {
        icon0 = new GIcon();
        icon0.image = "/images/marker_hotel.png";
        icon0.shadow = "/images/shadow_hotel.png";
        icon0.iconSize = new GSize(70, 61);
        icon0.shadowSize = new GSize(70, 61);
        icon0.iconAnchor = new GPoint(10, 56);
        icon0.infoWindowAnchor = new GPoint(20, 10);
        icon0.infoShadowAnchor = new GPoint(20, 10);
        // 
        var map = new GMap2(document.getElementById("map"));
        map.addControl(new GLargeMapControl());
        map.addControl(new GMapTypeControl());
        map.addControl(new GScaleControl());
        map.addControl(new GOverviewMapControl());
        map.setCenter(new GLatLng(lat, lng), 15);
        //
        var point = new GLatLng(lat, lng);
        map.addOverlay(new GMarker(point, icon0));
  }
}

// End Hiding -->
