    var ScrollString="2009 Shows through 10/31/09     Last Updated: 11/17/09                           ";
    var timer = 0;
    var br = 0;
    var typ = 0;
    var theyr = 0;
    var today = new Date();
    var todayO = today.getDate();
    if (todayO < 10) { todayO = "0" + todayO };
    var year = today.getYear();
    if (year < 1000) { year += 1900 };
    var dow = today.getDay();
    var monthArray = new Array(" January", "February", "March",
                   "April", "May", "June", "July", "August",
                   "September", "October", "November", "December");
    var dowArray = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
    var mon = monthArray[today.getMonth()];
    var theDate= (mon + " " +  todayO + ", " + year);
    var bTranState = 0;

 function Scrollon() {
    document.box.boxtext.value = ScrollString;
    ScrollString=ScrollString.substring(1,ScrollString.length)
                 + ScrollString.charAt(0);
    // decrease timeout value (50) to speed up, increase to slow down
    timer = setTimeout("Scrollon()",150) ;   }

 function clock(){
    var time = new Date();
    var hr = time.getHours();
    var min = time.getMinutes();
    var sec = time.getSeconds();
    var ampm = "PM";
    if (hr < 12) { ampm = "AM" };
    if (hr > 12) { hr -= 12 };
    if (hr < 10) { hr = "0" + hr };
    if (min < 10) { min = "0" + min };
    if (sec < 10) { sec = "0" + sec };
    BrowserName = navigator.appName;
    if (BrowserName != "Netscape") { document.localTime.style.position = "absolute"; document.localTime.style.left = "0"; document.localTime.style.top = "6"; }
    if (BrowserName == "Netscape") { document.localTime.style.position = "absolute"; document.localTime.style.left = "0"; document.localTime.style.top = "6"; }
    document.localTime.digits.value = "  " + dowArray[today.getDay()];
    document.localTime.digits2.value = "  " + theDate;
    document.localTime.digits3.value = "  " + hr + ":" + min + ":" + sec + ampm;
    setTimeout("clock()", 1000);  }

 function headline(varArray){
//  varArray is:   1 = Current html page;  2 = BreedArray element;  3 = TypeArray element;  4 = StatYearArray element;
    var BreedArray = new Array("Dog &nbsp;&nbsp;Show &nbsp;&nbsp;Statistics", "Working Group", "Great Pyrenees", "Kuvaszok", "Newfoundland", "Tibetan Mastiff");
    var TypeArray= new Array("First", "Contacts", "Links", "Results", "All Breed Results", "Breed Results", "New Title Holders", "Top Dogs");
    var StatYearArray= new Array("All Time", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010", "2011", "2012", "2013");
    BrowserName = navigator.appName;
    var br = varArray[1];
    var typ = varArray[2];
    var theyr = varArray[3];
    var HeaderLine = "<H1><br><b><font face='Arial' size='6' color='#008080'>" +StatYearArray[theyr]+ " " +BreedArray[br-1]+ " " +TypeArray[typ-1]+ " </font></b></H1>";
    if (br == 1) {HeaderLine = "<font size='4'><br></font><H1><br><b><font face='Arial' size='6' color='#008080'>" +BreedArray[br-1]+ "</font></b></H1>"};
    if (br == 1) { document.write("<img src='index_files/horiline.gif' style='position:absolute; left: 50; top:10;' align='middle' vspace='8' width='780' height='10' alt='Horizontal Line'>") };
    document.write("<br>" +HeaderLine);
    if (br == 1) { document.write("<img src='index_files/horiline.gif' style='position:absolute; left: 50; top:62;' align='middle' vspace='8' width='780' height='10' alt='Horizontal Line'>") };
    var topat = 32;
    var adjtop = 0;
    var leftat = 650;
    BrowserName = navigator.appName;
    if (BrowserName == "Netscape") { adjtop = 2 };
    document.box.style.position = "absolute";
    document.box.style.left = leftat + "px";
    document.box.style.top = topat + adjtop + "px";
    if (br != 1) { document.box.style.visibility = "hidden"; }
    viewbreed = BreedArray[br-1];
    viewtype = TypeArray[typ-1];
    viewyear = StatYearArray[theyr];
    var vb = ""
    var vt = ""
    var vy = ""
    var theHTMkey = ""
    if (viewbreed=="Working Group") {vb = "grp"};
    if (viewbreed=="Great Pyrenees") {vb = "pyr"};
    if (viewbreed=="Kuvaszok") {vb = "kuv"};
    if (viewbreed=="Newfoundland") {vb = "newf"};
    if (viewbreed=="Tibetan Mastiff") {vb = "tib"};
    if (viewtype=="All Breed Results") {vt = "all"};
    if (viewtype=="Breed Results") {vt = ""};
    if (viewtype=="Results") {vt = ""};
    if (viewtype=="New Title Holders") {vt = "titl"};
    if (viewtype=="Top Dogs") {vt = "top"};
    if (viewyear=="All Time") {vy = "all"}
    if ((viewyear>="1998")&&(viewyear<="2013")) {vy = viewyear.substring(4,2)}
    if (viewtype=="First") {vb="first"; vt = "all"; vy = ""};
    if (viewtype=="Contacts") {vb="contact"; vt = "all"; vy = ""};
    if (viewtype=="Links") {vb="link"; vt = "all"; vy = ""};
    theHTMkey = (vb + vt + vy + ".rs");
    x = ""
    myfunction = eval(vb + vt + vy);
    x = myfunction()   }

 function making_move(varArray){
    var varArray = new Array(4);
    var val = location.href.split('?');
    var val = val[val.length-1];
    var locLength = val.length-1;
    if (val > "a") { var varArray = new Array(0,1,1,1); }
       else { var varArray = val.split(','); }
    if (varArray[1]<=1) {varArray[1] = 1};
    if (varArray[1]>6) {varArray[1] = 1};
    if (varArray[2]<=1) {varArray[2] = 1};
    if (varArray[2]>=9) {varArray[2] = 1};
    if (varArray[3]<=0) {varArray[3] = 0};
    if (varArray[3]>=24) {varArray[3] = 1};
    var BreedArray = new Array("Dog &nbsp;&nbsp;Show &nbsp;&nbsp;Statistics", "Working Group", "Great Pyrenees", "Kuvaszok", "Newfoundland", "Tibetan Mastiff");
    var TypeArray= new Array("First", "Contacts", "Links", "Results", "All Breed Results", "Breed Results", "New Title Holders", "Top Dogs");
    var StatYearArray= new Array("All Time", "1991", "1992", "1993", "1994", "1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010", "2011", "2012", "2013");
    headline(varArray);   }

 function length_of_document(){
    var ahha = 0;
    var divArray = document.all.tags("TR");
    var ahha = divArray.length;
    if (ahha>=100) {ahha = ahha + 12};
    while (ahha > 1) {document.write("<font size='3pt' color='#008080'>.</font><BR>"); ahha = ahha - 1; }
  }

 function doGif(){
    var varArray = new Array(5);
    var val = location.href.split('?');
    var val = val[val.length-1];
    var locLength = val.length-1;
    if (val > "a") { var varArray = new Array(0,1,1,1); }
       else { var varArray = val.split(','); }
    document.body.background='index_files/wgroup.jpg'
    if (varArray[1] == 3) { document.body.background='index_files/pyrback.jpg'};
    if (varArray[1] == 4) { document.body.background='index_files/kuvback.jpg'};
    if (varArray[1] == 5) { document.body.background='index_files/newfback.jpg'};
    if (varArray[1] == 6) { document.body.background='index_files/tibback.jpg'};  }

 function result_writer(tw1,tw2,tw3,tw4){
//  tw1 = 1 for "All Breed" or 2 for "Breed"
//  tw2 = the month (written as "January" through "December"
//  tw3 = the number of shows
//  tw4 = the year (written as "2009"
    if (tw2 == "February") {    tw2 = "February 28th"   }
    if (tw2 == "February 28th" & tw4 == "1998") {    tw2 = "February 29th"   }
    if (tw2 == "February 28th" & tw4 == "2002") {    tw2 = "February 29th"   }
    if (tw2 == "February 28th" & tw4 == "2004") {    tw2 = "February 29th"   }
    if (tw2 == "February 28th" & tw4 == "2008") {    tw2 = "February 29th"   }
    if (tw2 == "February 28th" & tw4 == "2012") {    tw2 = "February 29th"   }
    if (tw2 == "April") {    tw2 = tw2 + " 30th"   }
    if (tw2 == "June") {    tw2 = tw2 + " 30th"   }
    if (tw2 == "September") {    tw2 = tw2 + " 30th"   }
    if (tw2 == "November") {    tw2 = tw2 + " 30th"   }
    var tomatch = /th/;
    var is_a_match = tomatch.test(tw2);
    if (is_a_match == 0) {  tw2 = tw2 + " 31st"   }
    if (tw1 == 1) {
      document.write("<H2><center>January 1st through " + tw2 + "</center></H2>");
      document.write("<H3><center>" + tw3 + " Shows</center></H3>");
      document.write("<img src='index_files/horiline.gif' style='position:absolute; left: 50; top:85;' align='middle' vspace='8' width='780' height='10' alt='Horizontal Line'>");
      document.write("<TABLE scrolling='auto' cellSpacing=0 border=2 bordercolor='#36C1CD' rules='all' ");
      document.write("style='position:absolute;left:70;top:170; width:800; color: black; font-weight: bold; font-size: 8pt;");
      document.write("font-family: Verdana, Arial, Helvetica, sans-serif; text-align: center; line-height: 12pt;'>");
      document.write("<TR><TD colspan=12><P class=note>Note:&nbsp;&nbsp; For the column &nbsp;<u>\"Total Dogs Defeated\"</u>&nbsp; the number of defeats includes ALL Best of Breed wins.<br>");
      document.write("&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; For the column &nbsp;<u>\"Dogs Defeated in Group\"</u>&nbsp; the number of defeats excludes Best of Breed wins<br>");
      document.write("unless the dog also received a Group Placement.</P></td></tr><td colspan=3> &nbsp; </td>");
      document.write("<td colspan=9>G r o u p &nbsp;&nbsp;&nbsp;&nbsp;P l a c e m e n t s</td></tr><tr><td width='5%'>Rank</td><td width='6%'>Total Dogs Defeated</td>");
      document.write("<td align>AKC Registered Name</td><td width='4%'>B<br>I<br>S</td><td width='4%'>1st</td><td width='4%'>2nd</td><td width='4%'>3rd</td><td width='4%'>4th</td>");
      document.write("<td width='7%'>Total Group Wins</td><td width='8%'>Dogs Defeated in Group</td><td width='5%'>Rank</td><td width='5%'>Work Group Rank</td></tr>");
       }
    else {
      document.write("<H2><center>January 1st through " + tw2 + "</center></H2>");
      document.write("<H3><center>" + tw3 + " Shows</center></H3>");
      document.write("<img src='index_files/horiline.gif' style='position:absolute; left: 50; top:85;' align='middle' vspace='8' width='780' height='10' alt='Horizontal Line'>");
      document.write("<TABLE scrolling='auto' cellSpacing=0 border=2 bordercolor='#36C1CD' rules='all' ");
      document.write("style='position:absolute;left:70;top:170; width:800; color: black; font-weight: bold; font-size: 8pt;");
      document.write("font-family: Verdana, Arial, Helvetica, sans-serif; text-align: center; line-height: 12pt;'>");
      document.write("<TR><TD colspan=5 valign=top><P class=note>Note:&nbsp;&nbsp; For the column &nbsp;<u>\"Breed Dogs Defeated\"</u>&nbsp; the number ");
      document.write("of defeats includes all <br>dogs defeated in a show only when the dog places BOB (or above).</P></td></tr>");
      document.write("<tr><td width='7%'>Rank</td><td width='12%'>Breed Dogs Defeated</td><td>AKC Registered Name</td><td width='15%'>Number of Best of Breed Wins</td><td width='15%'>Number of 'Specials' Defeated</td></tr>");
       }
  }

 function copyright_writer(tc1,tc2){
//  tc1 = 1 for "All Breed" or 2 for "Breed"
//  tc2 = the year (written as "1998" through "2013"
    if (tc1 == 1) {
      document.write("<tr><td align=left colspan=12> </td></tr><tr><td align=left colspan=12> </td></tr><tr><td align=left colspan=12> </td></tr><tr><td align=left colspan=4><i>Source:  American Kennel Club AWARDS</i></td>");
      document.write("<td align=right colspan=8><B>ALL &nbsp;&nbsp;RIGHTS&nbsp;&nbsp;RESERVED&nbsp;&nbsp;&nbsp;(c) " + tc2 + "</B></td></tr><tr><td align=left colspan=12><B><I> &nbsp;&nbsp;&nbsp;");
      document.write("&nbsp;&nbsp;&nbsp;&nbsp;No part of this page may be reproduced or used without written permission from the author.</I></B></td></tr></table><br><br>");
       }
    else {
      document.write("<tr><td colspan=5 align=left><p class=explain>Breed rankings are based on the highest number of defeats in the fewest shows. &nbsp;The number of BOB's doesn't matter unless ");
      document.write("two (or more) dogs have the same number of defeats. &nbsp;Then the dog with the <u>fewest</u> BOB's will rank higher because he got his defeats in fewer shows. &nbsp;");
      document.write("If there is still a tie the dog defeating the most Specials (other champions) will have a higher ranking.</p></td></tr>");
      document.write("<tr><td align=left colspan=3><i>Source:  American Kennel Club AWARDS</i></td><td align=right colspan=2><B>ALL &nbsp;&nbsp;RIGHTS&nbsp;&nbsp;RESERVED&nbsp;&nbsp;&nbsp;(c) " + tc2 + "</B></td></tr>");
      document.write("<tr><td align=left colspan=1> </td><td align=left colspan=4><B><I> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No part of this page may be reproduced or used without written permission from the author.</I></B></td></tr></table><br><br>");
       }
  }

 function thstart_writer(){
  document.write("<center><P style='color:#2D5959; font-weight:bold; font-style:italic; font-size:9pt; font-family:Verdana, Arial, Helvetica, sans-serif; text-align:center;'>");
  document.write("To display all titles earned by a dog, click on it's name</P></center>");
  document.write("<img src='index_files/horiline.gif' style='position:absolute; left: 50; top:85;' align='middle' vspace='8' width='780' height='10' alt='Horizontal Line'>");
  document.write("<TABLE scrolling='auto' cellSpacing=0 border=2 bordercolor='#36C1CD' style='position:absolute;left:70;top:170; width:800; color: black; font-weight: bold; font-size: 8pt;");
  document.write("font-family: Verdana, Arial, Helvetica, sans-serif; text-align: left; line-height: 12pt;'>");
  document.write("<tr class='vari2'><td colspan=5> <br></td></tr>");
  }

 function thend_writer(tt){
//  tt = the year (written as "1998" through "2013"
  document.write("<tr><td colspan=5><font color=#000000><HR size=2 width=100% noshade></HR></font></td></tr>");
  document.write("<tr class='variTL'><td colspan=5> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;** Unofficial.  Not published as a Champion by the AKC as of this printing<br><br></td></tr><br>");
  document.write("<tr class='variTL'><td colspan=2> &nbsp;Source:  American Kennel Club AWARDS</i></td><td align=right colspan=3><B>ALL &nbsp;&nbsp;RIGHTS&nbsp;&nbsp;RESERVED&nbsp;&nbsp;&nbsp;(c) " + tt + " &nbsp;</td></tr>");
  document.write("<tr class='variTL'><td colspan=5> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;No part of this page may be reproduced or used without written permission from the author.</td></tr></table><br><br>");
  }

