<!--
if (self!=top)  {
  alert("Framing of this site is not permitted.");
  parent.top.document.location.href="http://www.boatingevents.com";
}
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if((browserName == "Netscape" && browserVer >= 4) || (browserName == "Microsoft Internet Explorer" && browserVer >= 4))
  version = 4;
else
  if((browserName == "Netscape" && browserVer >= 3) || (browserName == "Microsoft Internet Explorer" && browserVer >= 3))
    version = 3;
  else version = 2;
if (version >= 3) {
  iXLogoOn = new Image();
  iXLogoOn.src = "/images/ixlogoon.gif";
  iXLogoOff = new Image();
  iXLogoOff.src = "/images/ixlogooff.gif";
  GoOn = new Image();
  GoOn.src = "/images/greengo.gif";
  GoOff = new Image();
  GoOff.src = "/images/bluego.gif";
  NextMonthOff = new Image();
  NextMonthOff.src = "/images/20x22nextoff.gif";
  NextMonthOn = new Image();
  NextMonthOn.src = "/images/20x22nexton.gif";
  LastMonthOff = new Image();
  LastMonthOff.src = "/images/20x22backoff.gif";
  LastMonthOn = new Image();
  LastMonthOn.src = "/images/20x22backon.gif";
  NextOff = new Image();
  NextOff.src = "/images/nextoff.gif";
  NextOn = new Image();
  NextOn.src = "/images/nexton.gif";
  BackOff = new Image();
  BackOff.src = "/images/backoff.gif";
  BackOn = new Image();
  BackOn.src = "/images/backon.gif";
}
function ImgOn(imgName,imgSrc) {
if (version >= 3) {
    document.images[imgName].src=eval(imgSrc+".src");
  }
}
function ImgOff(imgName,imgSrc) {
if (version >= 3) {
    document.images[imgName].src=eval(imgSrc+".src");
  }
}
var ppcDF = "m/d/Y";
var ppcMN = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
var ppcWN = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var ppcER = new Array(4);
var ppcUC = false;
var ppcUX = 4;
var ppcUY = 4;
var ppcIE=(navigator.appName == "Microsoft Internet Explorer");
var ppcNN=((navigator.appName == "Netscape")&&(document.layers));
var ppcTT="<table width=\"100%\" cellspacing=\"1\" cellpadding=\"2\" border=\"1\" bordercolorlight=\"#000000\" bordercolordark=\"#000000\">\n";
var ppcTT="";
var ppcCD=ppcTT;
var ppcFT="<font face=\"MS Sans Serif, sans-serif\" size=\"1\" color=\"#000000\">";
var ppcFC=true;
var ppcTI=false;var ppcSV=null;var ppcRL=null;var ppcXC=null;var ppcYC=null;
var ppcML=new Array(31,28,31,30,31,30,31,31,30,31,30,31);
var ppcWE=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var ppcNow=new Date();
var ppcPtr=new Date();

function setCalendar(year,month) {
 if (month == 1) {ppcML[1]  = (isLeap(year)) ? 29 : 28;}
 ppcPtr.setYear(year);
 ppcPtr.setMonth(month);
 ppcPtr.setDate(1);
 generateContent();
}

function getFullYear(obj) {
 if (ppcNN) {return obj.getYear() + 1900;}
 else {return obj.getYear();}}

function isLeap(year) {
 if ((year%400==0)||((year%4==0)&&(year%100!=0))) {return true;}
 else {return false;}}

function generateContent() {
 var year  = getFullYear(ppcPtr);
 var month = ppcPtr.getMonth();
 var date  = 1;
 var day   = ppcPtr.getDay();
 var len   = ppcML[month];
 var bgr,cnt,tmp = "";
 var j,i = 0;
 for (j = 0; j < 7; ++j) {
  if (date > len) {break;}
  for (i = 0; i < 7; ++i) {
   bgr = ((i == 0)||(i == 6)) ? "#FFFFCC" : "#FFFFFF";
   if (((j == 0)&&(i < day))||(date > len)) {tmp  += makeCell(bgr,year,month,0);}
   else {tmp  += makeCell(bgr,year,month,date);++date;}}
  ppcCD += "<tr align=\"center\">\n" + tmp + "</tr>\n";tmp = "";}
}
function makeCell(bgr,year,month,date) {
  var td1 = "<td width=\"20\" bgcolor=\""+bgr+"\" ";
  var td2 = (ppcIE) ? "</font></span></td>\n" : "</font></a></td>\n";
  var evt = "onMouseOver=\"this.style.backgroundColor=\'#FF0000\'\" onMouseOut=\"this.style.backgroundColor=\'"+bgr+"\'\" onMouseUp=\"swSelectDay(600,1,"+date+")\" ";
  var ext = "<span Style=\"cursor: hand\">";
  var lck = "<span Style=\"cursor: default\">";
  var lnk = "<a href=\"javascript:swSelectDay(600,1,"+date+")\" onMouseOver=\"window.status=\' \';return true;\">";
  var cellValue = (date != 0) ? date+"" : "&nbsp;";
  if ((ppcNow.getDate() == date)&&(ppcNow.getMonth() == month)&&(getFullYear(ppcNow) == year)) {
    cellValue = "<b>"+cellValue+"</b>";}
  var cellCode = "";
  if (date == 0) {
    if (ppcIE) {cellCode = td1+"Style=\"cursor: default\">"+lck+ppcFT+cellValue+td2;}
      else {cellCode = td1+">"+ppcFT+cellValue+td2;}}
  else {
  if (ppcIE) {cellCode = td1+evt+"Style=\"cursor: hand\">"+ext+ppcFT+cellValue+td2;}
  else {
   if (date < 10) {cellValue = "&nbsp;" + cellValue + "&nbsp;";}
   cellCode = td1+">"+lnk+ppcFT+cellValue+td2;}}
  return cellCode;
}
function swMoveMonth(OP,PG,MI) {
  document.fForm.OP.value=OP;
  document.fForm.PG.value=PG;
  if(document.fForm.lLocations.selectedIndex>0)
    document.fForm.OP.value=document.fForm.OP.value|1;
  if(document.fForm.lCategories.selectedIndex>0)
    document.fForm.OP.value=document.fForm.OP.value|2;
  document.fForm.hMonth.value=MI;
  document.fForm.submit();
}
function swSelectDay(OP,PG,ipDay) {
  document.eForm.OP.value=OP;
  document.eForm.PG.value=PG;
  document.eForm.hLocations.value=document.fForm.lLocations.options[document.fForm.lLocations.selectedIndex].value;
  document.eForm.hCategories.value=document.fForm.lLocations.options[document.fForm.lCategories.selectedIndex].value;
  if(document.fForm.lLocations.selectedIndex>0)
    document.eForm.OP.value=document.eForm.OP.value|1;
  if(document.fForm.lCategories.selectedIndex>0)
    document.eForm.OP.value=document.eForm.OP.value|2;
  document.eForm.hDay.value=ipDay;
  document.eForm.hMonth.value=MonthIndex;
  document.eForm.submit();
}
function swSelectMonth(OP,PG) {
  document.fForm.OP.value=OP;
  document.fForm.PG.value=PG;
  if(document.fForm.lLocations.selectedIndex>0)
    document.fForm.OP.value=document.fForm.OP.value|1;
  if(document.fForm.lCategories.selectedIndex>0)
    document.fForm.OP.value=document.fForm.OP.value|2;
  document.fForm.hMonth.value=document.fForm.lMonths.selectedIndex;
  document.fForm.submit();
}
function ShowDetail(OP,ID) {
  document.dForm.hLocations.value=0;
  document.dForm.hCategories.value=0;
  document.dForm.OP.value=OP;
  document.dForm.ID.value=ID;
  document.dForm.submit();
}
function ShowMsgBoard(OP,EID) {
  document.cForm.hLocations.value=0;
  document.cForm.hCategories.value=0;
  document.cForm.OP.value=OP;
  document.cForm.EID.value=EID;
  document.cForm.submit();
}
function swOpenEventSite(Loc) {
  var win1 = window.open("http://"+Loc, "Event", "status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes,width=560,height=300,top=120,left=120")
}
//-->