<!-- //Hide from JavaScript-Impaired Browsers
function write_before_content(){
document.write('<LINK REL="stylesheet" HREF="/mycss.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">');
document.write('<link rel="icon" type="image/ico" href="http://graphics.fansonly.com/schools/unc/graphics/favicon.ico">');
document.write('<link rel="shortcut icon" type="image/ico" href="http://graphics.fansonly.com/schools/unc/graphics/favicon.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 fnSetStyle(){
  var styleStr = "<STYLE TYPE='text/css'><!--"
   + "#shaded {" + "background-color:" + gSColor + ";}"
   + "#unshaded {" + "background-color:" + gUColor + ";}"
   + "--></STYLE>";
  document.write(styleStr);
}
function fnShadeRow(){
  var iColor;
  var iLen = document.getElementById('oTbl').rows.length-1;
  for(var i=0;i<=iLen;i++){
    var oRow   = document.getElementById('oTbl').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 1st 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 iColor;
  var iWhite="'#FFFFFF'";
  var iLen=oTbl.rows.length-1;
  for(var i=0;i<=iLen;i++){
    var oRow=oTbl.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 1st row after hdr is shaded
        iColor = iWhite;
        continue;
    }
    if ( iColor == gColor ){
      iColor = iWhite;
    }
    else {
      iColor = gColor;
    }
    oRow.style.setExpression("background",iColor,"javascript");
  }
}
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_nav_left(){
var sqlStr=''
sqlStr+='<div id="nav_left">'
sqlStr+='<table border="0" width="105px">'
sqlStr+='  <tbody>'
sqlStr+='    <tr>'
sqlStr+='      <td valign="middle" align="center"><img src="image_heart.gif" width="13px" height="11px" border="0"></td>'
sqlStr+='      <td height="30px" valign="middle" width="99px"><a href="map.htm">Map</a></td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td><img src="image_spade.gif" width="12px" height="12px" border="0"></td>'
sqlStr+='      <td height="30px" valign="middle" width="99px"><a href="schedule.htm">Schedule</a></td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td><img src="image_diamond.gif" width="13px" height="11px" border="0"></td>'
sqlStr+='      <td height="30px" valign="middle" width="99px"><a href="Results.htm">Results</a></td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td><img src="image_club.gif" width="12px" height="12px" border="0"></td>'
sqlStr+='      <td height="30px" valign="middle" width="99px"><a href="calendar.htm">Calendar</a></td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td><img src="image_heart.gif" width="13px" height="11px" border="0"></td>'
sqlStr+='      <td height="30px" valign="middle" width="99px"><a href="newsletter.htm">Newsletter</a></td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td><img src="image_spade.gif" width="12px" height="12px" border="0"></td>'
sqlStr+='      <td height="30px" valign="middle" width="99px"><a href="links.htm">Links</a></td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td><img src="image_diamond.gif" width="13px" height="11px" border="0"></td>'
sqlStr+='      <td height="30px" valign="middle" width="99px">Puzzles/Games</td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td><img src="image_club.gif" width="12px" height="12px" border="0"></td>'
sqlStr+='      <td height="30px" valign="middle" width="99px">Special Events</td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td><img src="image_heart.gif" width="13px" height="11px" border="0"></td>'
sqlStr+='      <td height="30px" valign="middle" width="99px">Photos</td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td><img src="image_spade.gif" width="12px" height="12px" border="0"></td>'
sqlStr+='      <td height="30px" valign="middle" width="99px">ACBL News</td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td><img src="image_diamond.gif" width="13px" height="11px" border="0"></td>'
sqlStr+='      <td height="30px" valign="middle" width="99px">Club Info</td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td><img src="image_club.gif" width="12px" height="12px" border="0"></td>'
sqlStr+='      <td height="30px" valign="middle" width="99px">Masterpoint Races</td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td><img src="image_heart.gif" width="13px" height="11px" border="0"></td>'
sqlStr+='      <td height="30px" valign="middle" width="99px">Email Sign up</td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td><img src="image_spade.gif" width="12px" height="12px" border="0"></td>'
sqlStr+='      <td height="30px" valign="middle" width="99px">Contact Us</td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td><img src="image_diamond.gif" width="13px" height="11px" border="0"></td>'
sqlStr+='      <td height="30px" valign="middle" width="99px">Education/Player Development</td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td colspan="2" align="center"><a href="http://www.acbl.org/"><img src="acbl_sm.gif" alt="ACBL Logo" border="0"></a></td>'
sqlStr+='    </tr>'
sqlStr+='  </tbody>'
sqlStr+='</table>'
sqlStr+='</div>'
document.write(sqlStr);}


function write_nav_left2(){
var sqlStr=''
sqlStr+='<div id="nav_left">'
sqlStr+='<table border="1" width="103px">'
sqlStr+='  <tbody>'
sqlStr+='    <tr>'
sqlStr+='      <td height="24px" valign="middle" width="108px" BgColor="#2c3795" Color="#ffffff"><a href="map.htm">Map</a></td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td height="24px" valign="middle" width="108px"><a href="schedule.htm">Schedule</a></td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td height="24px" valign="middle" width="108px"><a href="Results.htm">Results</a></td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td height="24px" valign="middle" width="108px"><a href="calendar.htm">Calendar</a></td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td height="24px" valign="middle" width="108px"><a href="newsletter.htm">Newsletter</a></td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td height="24px" valign="middle" width="108px"><a href="links.htm">Links</a></td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td height="24px" valign="middle" width="108px">Puzzles/Games</td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td height="24px" valign="middle" width="108px">Special Events</td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td height="24px" valign="middle" width="108px">Photos</td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td height="24px" valign="middle" width="108px">ACBL News</td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td height="24px" valign="middle" width="108px">Club Info</td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td height="24px" valign="middle" width="108px">Masterpoint Races</td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td height="24px" valign="middle" width="108px">Email Sign up</td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td height="24px" valign="middle" width="108px">Contact Us</td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td height="24px" valign="middle" width="108px">Education/Player Development</td>'
sqlStr+='    </tr>'
sqlStr+='    <tr>'
sqlStr+='      <td colspan="2" align="center"><a href="http://www.acbl.org/"><img src="acbl_sm.gif" alt="ACBL Logo" border="0"></a></td>'
sqlStr+='    </tr>'
sqlStr+='  </tbody>'
sqlStr+='</table>'
sqlStr+='</div>'
document.write(sqlStr);}

function write_hdr(){
var sqlStr=''
sqlStr+='<table border="0" height="55px" width="99%" cellspacing="0"><tbody><tr>'
sqlStr+='<td width="108px" align="center" valign="top" id="HdrID"><table border="0" width="100%" cellspacing="0"><tbody><tr><td>&nbsp;</td></tr></tbody></table></td>'
sqlStr+='<td width="84%" align="center" valign="top">'
sqlStr+='<hr style="background-color: #2c3795;" size="8"><strong><font color="#ffffff" face="Britannic Bold,Times New Roman" size="7">Sandhills Bridge Studio</font></strong>'
sqlStr+='<hr style="background-color: #2c3795;" size="8"></td></tr></tbody></table>'
document.write(sqlStr);}
// End Hiding -->
