// include_bot.js

// Written by Jay Herder
// April, 2009
// For Dr. DeHoff's web site at http://LouisburgAnimalClinic.com

debug = 0;

var myString = document.URL; 
if ( debug) {
  document.write("myString: " + myString + "<br>\n");
}

var isFile = myString.indexOf("file:");
if ( debug) {
  document.write("isFile: " + isFile + "<br>\n");
}

indexsave = 0;
if ( isFile > -1 ) {
  var index = myString.indexOf("\\");
  while (index != -1) {
    if ( debug ) {
       alert(index);
    }
    indexsave = index;
    index = myString.indexOf("\\", index + 1); // start search after last match found
  }
  if ( indexsave == 0 ) {
    var index = myString.indexOf("/");
    while (index != -1) {
      if ( debug ) {
         alert(index);
      }
      indexsave = index;
      index = myString.indexOf("/", index + 1); // start search after last match found
    }
  }
  indexsave += 1;

} else {

  var index = myString.indexOf("/");
  while (index != -1) {
    if ( debug) {
       alert(index);
    }
    indexsave = index;
    index = myString.indexOf("/", index + 1); // start search after last match found
  }
  indexsave += 1;
}

if ( debug) {
   document.write("indexsave: " + indexsave + "<P>\n");
}

myName = myString.substring(indexsave);
if ( debug) {
   document.write("myName   : " + myName + "<P>\n");
}

//-----------------------------------------------------------

var d = new Date();
if ( d.getYear() < 999 ) {
   year = 1900 + d.getYear();
} else {
   year = d.getYear();
}
//-----------------------------------------------------------

// document.write("<P>\n");
document.write("<font size=-1><em>\n");
document.write("<I>\n");

document.write("<p style='font-size: 80%;'>Copyright &copy; " + year + " Louisburg Animal Clinic. All Rights Reserved<br>\n");

document.write("Web pages by <A href='mailto:jdherder@yahoo.com?Subject=Louisburg%20Animal%20Clinic%20Web%20Pages' style='text-decoration:none; color:#000'>Josh Herder</A> and <A href='mailto:jherder@yahoo.com?Subject=Louisburg%20Animal%20Clinic%20Web%20Pages' style='text-decoration:none; color:#000'>Jay Herder</A>\n");

document.write("</I></em></font><br>\n");

//end

