function changedonor(area){
//copyright ? 2002, James Heimerl.All Rights Reserved
var obj=document.getElementById(area).childNodes[0];
obj.nodeValue=donorpicker();
setTimeout("changedonor(\'"+area+"\')",2500);
}

function donorpicker(){
//copyright ? 2007, James Heimerl.All Rights Reserved
a="*** Sheila Barr ***;*** Sheila Barr ***;*** Belgarde Enterprises ***;*** St. Louis County Rescue Squad ***;*** Wal-Mart # 2642 Apple Valley ***;*** Wal-Mart # 3513 Shakopee ***;*** Red Lake Indian Reservation ***;*** Hedberg Aggregates ***;*** Wal-Mart # 2087 Vadnais Heights ***;";
var arr1 = a.split(";");
numberOfDonors=arr1.length-1
number=Math.random()*numberOfDonors;
rnd=Math.round(number+0.5)-1;
return arr1[rnd];
}

function Donor(){
//copyright ? 2007, James Heimerl.All Rights Reserved
result=donorpicker();
document.writeln('<font size="2" color="black"><b><span id="Donor" class="Donor" STYLE="position:relative;"> '+result+'</span></b></font>');
}


function Quote(){
//copyright ? 2007, James Heimerl.All Rights Reserved
result=quotepicker();
document.writeln('<font size="3" color="#005837"><span id="Quote" class="Quote" STYLE="position:relative;"> '+result+'</span></font>');
}

function quotepicker(){
//copyright ? 2007, James Heimerl.All Rights Reserved
a="Ego and knowledge do not mix well - Donald Sterling;Ego and knowledge do not mix well - Donald Sterling;Ego and knowledge do not mix well - Donald Sterling;Appeasement is much easier than standing for truth, but always costs more in the end - Jan Bagley;Chase after truth like hell and you'll free yourself, even though you never touch its coattails - Clarance Darrow;Discipline yourself and others won't need to - John Wooden;Long live the handler who knows an assist is as important as a find! - Sharolyn Sievert;Much can be accomplished when no one is concerned about who gets the credit - John Wooden;You can do more good by being good than any other way - John Wooden;Be interested in finding the best way, not in having your own way - John Wooden;Be more concerned with your character than your reputation - John Wooden;There is a price to be paid for achieving anything - John Wooden;The smallest good deed is better than the best intention - John Wooden;What is right is more important than who is right - John Wooden;We get stronger when we test ourselves - John Wooden;Ability can get you to the top, but it takes character to keep you there - John Wooden;Respect for ourselves guides our morals. Respect for others guides our manners. - Unknown;Obstacles are those frightful things you see when you take your eyes off your goal. - Henry Ford;Do not let what you cannot do interfere with what you can do.  - John Wooden;Success in the end erases all the mistakes along the way. - Chinese Proverb;You always pass failure on the way to success. - Mickey Rooney;The quality of an individual is reflected in the standard they set for themselves. - Ray Kroc;When solving problems, dig at the roots instead of just hacking at the leaves. - Anthony J. D'Angelo;A clean conscience can only be destroyed by its owner. - Unknown;Don't work for a reputation. Do your job and a reputation either comes or it doesn't. Paraphrased by Brisco County, Jr.;";
var arr1 = a.split(";");
numberOfQuotes=arr1.length-1
number=Math.random()*numberOfQuotes;
rnd=Math.round(number+0.5)-1;
return arr1[rnd];
}

function changequote(area){
//copyright ? 2002, James Heimerl.All Rights Reserved
var obj=document.getElementById(area).childNodes[0];
obj.nodeValue=quotepicker();
setTimeout("changequote(\'"+area+"\')",6000);
}

function flipThru(z,a,a2,b,c) {
//copyright ? 2007 James Heimerl.All Rights Reserved
//flipThru('sign','/images/goblin01a.gif;/images/gryphon1.gif',0,3000);
//alert(b);
var arr = a.split(";");
var arr2 = a2.split(";");
eval('document.getElementById("'+z+'").setAttribute("src","'+arr[b]+'");');
eval('document.getElementById("'+z+'").setAttribute("alt","'+arr2[b]+'");');
eval('document.getElementById("'+z+'").setAttribute("title","'+arr2[b]+'");');
b += 1;
if (b == arr.length-1) b = 0;
eval('setTimeout("flipThru(\''+z+'\',\''+a+'\',\''+a2+'\','+b+','+c+')", '+c+');');
}

function flipRandomOnce(z,a,b) {
//copyright ? 2007 James Heimerl.All Rights Reserved
//flipRandomOnce('sign','/images/goblin01a.gif;/images/gryphon1.gif');
//alert(b);
var arr = a.split(";");
var arr2 = b.split(";");
numberOfImages=arr.length-1
number=Math.random()*numberOfImages;
lb=Math.round(number+0.5)-1;
eval('document.getElementById("'+z+'").setAttribute("src","'+arr[lb]+'");');
eval('document.getElementById("'+z+'").setAttribute("alt","'+arr2[lb]+'");');
eval('document.getElementById("'+z+'").setAttribute("title","'+arr2[lb]+'");');
}

function PopupPic2(sPicID){
//copyright ? 2007 James Heimerl.All Rights Reserved
sPicIDSRC = 
document.getElementById(sPicID).getAttribute("src").replace(/s.jpg/,".jpg");
window.open("image.htm?"+sPicIDSRC, "", "scrollbars=1,menubar=1,toolbar=1,status=1,resizable=1,HEIGHT=100,WIDTH=100");
}

function HeaderDogs(){
//copyright ? 2007 James Heimerl.All Rights Reserved
document.writeln('<DIV STYLE="position:absolute;left:670;top:2;width:95;height:130;"><A HREF=javascript:PopupPic2("c78")><IMG  src="/images/header/gandersittings.jpg" border=2 id="c78" style="border-color:#9F7025;" title="Click for larger image" alt="Click for larger image"></a>');
//alert(document.getElementById("change").getAttribute("src").replace(/s.jpg/,".jpg"));
document.writeln('</div>');

arr1="/images/header/gandersittings.jpg;/images/header/gryphonhs.jpg;/images/header/goblinh2s.jpg;/images/header/GSDs.jpg;/images/header/Pennys.jpg;/images/header/Ripleys.jpg;/images/header/Ulla1s.jpg;/images/header/kyras.jpg;";

arr2="Gander;Gryphon;Goblin;Penny;GSD;Ripley;Ulla;Kyra";

flipRandomOnce('c78',arr1,arr2);
}

function HeaderTributes(){
//copyright ? 2007 James Heimerl.All Rights Reserved
document.writeln('<DIV STYLE="position:absolute;left:670;top:2;width:95;height:130;"><A HREF=javascript:PopupPic2("ch22")><IMG src="/images/header/gandersittings.jpg" border=2 id="ch22" style="border-color:#9F7025;" title="Click for larger image" alt="Click for larger image"></a>');
//alert(document.getElementById("change").getAttribute("src").replace(/s.jpg/,".jpg"));
document.writeln('</div>');

arr1="/images/tribute/cassies.jpg;/images/tribute/brunoelly2s.jpg;/images/header/Ulla1s.jpg;/images/header/Pennys.jpg;/images/tribute/dodger1s.jpg;";

arr2="Cassie on Catwalk;Bruno;Ulla;Penny;Dodger;";

flipRandomOnce('ch22',arr1,arr2);
}


function HeaderMembers(){
//copyright ? 2007 James Heimerl.All Rights Reserved
document.writeln('<DIV STYLE="position:absolute;left:670;top:2;width:95;height:130;"><A HREF=javascript:PopupPic2("ch88")><IMG width ="92" src="/images/header/gandersittings.jpg" border=2 id="ch88" style="border-color:#9F7025;" title="Click for larger image" alt="Click for larger image"></a>');
//alert(document.getElementById("change").getAttribute("src").replace(/s.jpg/,".jpg"));
document.writeln('</div>');

arr1="/images/members/WendyKyras.jpg;/images/members/Peggys.jpg;/images/members/EmilyGoblins.jpg;/images/members/Jeannas.jpg;/images/members/TeriRebas.jpg;";

arr2="Wendy and Kyra;Peggy;Emily and Goblin;Jeana;Terry and Rheba;";

flipRandomOnce('ch88',arr1,arr2);
}


function AlbumLeftNav(){
//copyright ? 2007 James Heimerl.All Rights Reserved
document.writeln('<div STYLE="position:absolute;left:30;top:140;width:130;">');
document.writeln('<font size="2">');
document.writeln('<br><br>Link click changes page<br><br>');
document.writeln('<A HREF="/album/album.html">Album Home</A><br>');
// add 
document.writeln('<A HREF="/album/2008/camporee.html">Boy Scout Camporee</A><br>');
document.writeln('<A HREF="/album/2008/firearm.html">Firearm Safety Class</A><br>');
document.writeln('<A HREF="/album/2008/coda.html">Coda</A><br>');
document.writeln('<A HREF="/album/2008/maggie.html">Maggie</A><br>');
document.writeln('<A HREF="/album/2007/gage.html">Gage</A><br>');
document.writeln('<A HREF="/album/2007/veteranslake.html">Veterans Lake Memorial Dedication</A><br>');
document.writeln('<A HREF="/album/2007/bemidji.html">Bemidji Group 1 CAP SAREX</A><br>');
document.writeln('<A HREF="/album/2007/08062007.html">Building search after fire</A><br>');
document.writeln('<A HREF="/album/2007/building.html">Building Search</A><br>');
document.writeln('<A HREF="/album/2007/LETS.html">LETS 2007</A><br>');
document.writeln('<A HREF="/album/2007/nasdn.html">NASDN</A><br>');
document.writeln('<A HREF="/album/2007/winter.html">2007 Winter</A><br>');

document.writeln('</font></div>');
}


function papercolorfooter(color,a){
//copyright ? 2007, James Heimerl.All Rights Reserved
var browser=navigator.appName;
var b_version=navigator.appVersion;
var version=parseFloat(b_version);
brpixals = 20.5;
if (browser=="Microsoft Internet Explorer") {
brpixals = 19;
}
pixals = brpixals;
//find length of page
for (i=0;i<a;i++) 
pixals = pixals + brpixals;

//add one more line
pixals = pixals + 2*brpixals;

pixals=Math.round(pixals+0.5);

document.writeln('<DIV STYLE="position:absolute;left:0;top:0;width:768;Height:'+pixals+';background:'+color+';border-color:#BFBFBF;border-style:solid;border-width:1px;">');

for (i=0;i<a;i++) 
document.write('<br>');

document.write('<IMG SRC="/images/redpoint.png" width="768" height="2"><BR>');
document.write('<font size="2" color="#8E2218"><b><i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Supporter Spotlight:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</i></b></font>');

Donor();
setTimeout("changedonor(\'Donor\')",2500);
document.write('<IMG SRC="/images/redpoint.png" width="768" height="2"><BR>');

document.writeln('<br><font size="2" color="#005837"><center>Email: <a href="mailto:northstarsarda@yahoo.com">northstarsarda@yahoo.com</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copyright &copy; 2007 Northstar Search and Rescue Dog Association, Inc.&nbsp;&nbsp;All rights reserved.<br><A HREF="/sitemap.html" title="Site Map" Alt="Site Map" style="color:#005837;">Site Map</A></font></center></div>');
}

function footer(a){
//copyright ? 2007, James Heimerl.All Rights Reserved
for (i=0;i<a;i++)
document.write('<br>');

document.write('<IMG SRC="/images/graypoint.png" width="770" height="1"><BR>');
document.writeln('<font size="1" color="#005837">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copyright &copy; 2007 Northstar Search and Recsue Dog Association, Inc.&nbsp;&nbsp;All rights reserved.</font>');
}

function scrollmessage(count) {
   Time12 = new Date();
   Cur12Hour = Time12.getHours();
   Cur12Mins = Time12.getMinutes();
   Cur12Secs = Time12.getSeconds();
   The12Time = (Cur12Hour > 12) ? Cur12Hour - 12 : Cur12Hour;
   The12Time += ((Cur12Mins < 10) ? ':0' : ':') + Cur12Mins;
   The12Time += ((Cur12Secs < 10) ? ':0' : ':') + Cur12Secs;
   The12Time += (Cur12Hour > 12) ? ' PM': ' AM';
   TDay = new Array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');
   TMonth = new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
   TDate = new Date();
   CurYear = TDate.getYear();
   CurMonth = TDate.getMonth();
   CurDayOw = TDate.getDay();
   CurDay= TDate.getDate();
   TheDate = TDay[CurDayOw] + ', ';
   TheDate += TMonth[CurMonth] + ' ';
   TheDate += CurDay + ', ';
   TheDate += ((CurYear%1900)+1900);

var m1 = "Northstar SARDA";
var m2 = " ...To save lives and prevent suffering";
var m3 = " ..."+TheDate+" "+The12Time;
var msg=m1+m2+m3;
var out = " ";
var c = 1;

if (count > 100) {
   count--;
   cmd="scrollmessage("+seed+")";
   timerTwo=window.setTimeout(cmd,500);
   }

else if (count <= 100 && count > 0) {
   for (c=0 ; c < count ; c++) {
      out+=" ";
      }
   out+=msg;
   count--;
   window.status=out;
   cmd="scrollmessage("+count+")";
   timerTwo=window.setTimeout(cmd,500);
   }

else if (count <= 0) {
   if (-count < msg.length) {
      out+=msg.substring(-count,msg.length);
      count--;
      window.status=out;
      cmd="scrollmessage("+count+")";
      timerTwo=window.setTimeout(cmd,500);
      }
   else {
      window.status=" ";
      timerTwo=window.setTimeout("scrollmessage(100)",75);
      }
   }

}

function copyright(cyrs){
//copyright ? 2003, James Heimerl.All Rights Reserved
document.writeln('<font size="1">copyright ? '+cyrs+', James Heimerl. All Rights Reserved</font>');
}
function PopupPic(sPicURL){
window.open("image.htm?"+sPicURL, "", "scrollbars=1,menubar=1,toolbar=1,status=1,resizable=1,HEIGHT=100,WIDTH=100");
}
function PopupTextBox(pURL){
window.open(pURL, "", "scrollbars=1,menubar=0,toolbar=0,status=0,resizable=1,HEIGHT=600,WIDTH=600");
}
function header(a){
//copyright ? 2007, James Heimerl.All Rights Reserved 
document.writeln('<DIV STYLE="position:absolute;left:0;top:0;width:770;height:140;"><IMG SRC="/images/toplogo.png"alt=""></div>');
document.writeln('<DIV STYLE="position:absolute;left:45;top:119;width:693;height:20;">');
var home = "bhome.png";
var members = "bmembers.png";
var tribute = "btribute.png";
var faqs = "bfaqs.png";
var forms = "";
var library = "blibrary.png";
var glossary = "bglossary.png";
var links = "blinks.png";
var album = "balbum.png";
var searches = "bsearches.png";
//var equipment = "";
//var futureevents = "";
//var training = "";
//var guestbook = "";
var membersonly = "";
var equipment = "bequipment.png";
var futureevents = "bfutureevents.png";
var training = "btraining.png";
var tips = "btips.png";
var donate = "bdonate.png";
var guestbook = "bguestbook.png";
var memberlogin = "bmemberlogin.png";
var howtostayfound = "";
var lawenforcement = "blawenforcement.png";
if(a=="home") {
home = "ghome.png";
} else if(a=="members") {
members = "gmembers.png";
} else if(a=="tribute") {
tribute = "gtribute.png";
} else if(a=="faqs") {faqs = "gfaqs.png";}
else if(a=="library") {library = "glibrary.png";}
else if(a=="glossary") {glossary = "gglossary.png";}
else if(a=="links") {links = "glinks.png";}
else if(a=="album") {album = "galbum.png";}
else if(a=="searches") {searches = "gsearches.png";}
else if(a=="lawenforcement") {lawenforcement = "glawenforcement.png";}
else if(a=="memberlogin") {memberlogin = "gmemberlogin.png";}
else if(a=="equipment") {equipment = "gequipment.png";}
else if(a=="futureevents") {futureevents = "gfutureevents.png";}
else if(a=="training") {training = "gtraining.png";}
else if(a=="tips") {tips = "gtips.png";}
else if(a=="donate") {donate = "gdonate.png";}
else if(a=="guestbook") {guestbook = "gguestbook.png";}
//else if(a=="memberlogin" || a=="equipment" || a=="futureevents" || a=="training" || a=="guestbook") {eval(a+'= "background:Steelblue;"');}


//if(a=="home" || a=="standards" || a=="memberunits" || a=="capabilities" || a=="remembrance") {
//eval(a+'= "background:Steelblue;"');
//eval(a+'= "background:Sienna;"');
//eval(a+'= "background:#005837;"');
//}
//else {
//eval(a+'= "background:#BD3038;"');
//}

document.writeln('<A HREF="/index.shtml"><IMG SRC="/images/buttons/'+home+'" ALT="Home" title="Home" height=20 width=42 ALIGN=TOP BORDER=0 VSPACE=0 HSPACE=0></A><A HREF="/members.html"><IMG SRC="/images/buttons/'+members+'" ALT="Member Roster" title="Member Roster"  height=20 width=64 ALIGN=TOP BORDER=0 VSPACE=0 HSPACE=0></A><A HREF="/tribute.html"><IMG SRC="/images/buttons/'+tribute+'" ALT="Tribute" title="Tribute"  height=20 width=50 ALIGN=TOP BORDER=0 VSPACE=0 HSPACE=0></A><A HREF="/faqs.html"><IMG SRC="/images/buttons/'+faqs+'" ALT="FAQs" title="FAQs"  height=20 width=38 ALIGN=TOP BORDER=0 VSPACE=0 HSPACE=0></A><A HREF="/library.html"><IMG SRC="/images/buttons/'+library+'" ALT="Library" title="Library"  height=20 width=48 ALIGN=TOP BORDER=0 VSPACE=0 HSPACE=0></A><A HREF="/lawenforcement.html"><IMG SRC="/images/buttons/'+lawenforcement+'" ALT="Law Enforcement Tips" title="Law Enforcement Tips"  height=20 width=115 ALIGN=TOP BORDER=0 VSPACE=0 HSPACE=0></A><A HREF="/links.html"><IMG SRC="/images/buttons/'+links+'" ALT="Links" title="Related  Links"  height=20 width=38 ALIGN=TOP BORDER=0 VSPACE=0 HSPACE=0></A><A HREF="/album/album.html"><IMG SRC="/images/buttons/'+album+'" ALT="Album"  title="Photo Album"  height=20 width=46 ALIGN=TOP BORDER=0 VSPACE=0 HSPACE=0></A><A HREF="/searches.html"><IMG SRC="/images/buttons/'+searches+'" ALT="Searches" title="Searches"  height=20 width=64 ALIGN=TOP BORDER=0 VSPACE=0 HSPACE=0></A><A HREF="/glossary.html"><IMG SRC="/images/buttons/'+glossary+'" ALT="Glossary"  title="Glossary"  height=20 width=60 ALIGN=TOP BORDER=0 VSPACE=0 HSPACE=0></A><A HREF="/login/searches.shtml"><IMG SRC="/images/buttons/'+memberlogin+'" ALT="Members Only" title="Members Only" height=20 width=39 ALIGN=TOP BORDER=0 VSPACE=0 HSPACE=0></A></div>');

document.writeln('<DIV STYLE="position:absolute;left:576;top:2;width:74;height:120;">');
document.writeln('<A HREF="/equipment.html"><IMG SRC="/images/buttons/'+equipment+'" ALT="Equipment" title="Equipment" height=20 width=74 ALIGN=TOP BORDER=0 VSPACE=6 HSPACE=0></A><A HREF="/donate.html"><IMG SRC="/images/buttons/'+donate+'" ALT="Donate" title="Donate" height=20 width=74 ALIGN=TOP BORDER=0 VSPACE=0 HSPACE=0></A><A HREF="/tips.html"><IMG SRC="/images/buttons/'+tips+'" ALT="Tips" title="Tips" height=20 width=74 ALIGN=TOP BORDER=0 VSPACE=6 HSPACE=0></A><A HREF="/guestbook.html"><IMG SRC="/images/buttons/'+guestbook+'" ALT="Guestbook" title="Guestbook" height=20 width=74 ALIGN=TOP BORDER=0 VSPACE=0 HSPACE=0></A></div>');

//<A HREF="/futureevents.html"><IMG SRC="/images/buttons/'+futureevents+'" ALT="Future Events" title="Future Events" height=20 width=74 ALIGN=TOP BORDER=0 VSPACE=0 HSPACE=0></A><A HREF="/training.html"><IMG SRC="/images/buttons/'+training+'" ALT="Training" title="Training" height=20 width=74 ALIGN=TOP BORDER=0 VSPACE=6 HSPACE=0></A>


//
}			