// horizontal navigation buttons on HTML pages
h1 = new Image(); 
h1.src = "/img/button_home.gif"; // when mouse is not over the image
h2 = new Image(); 
{h2.src = "/img/button_homeover.gif";} // when mouse is over the image
j1 = new Image(); 
j1.src = "/img/button_log.gif"; // when mouse is not over the image
j2 = new Image(); 
{j2.src = "/img/button_logover.gif";} // when mouse is over the image
k1 = new Image(); 
k1.src = "/img/button_games.gif"; // when mouse is not over the image
k2 = new Image(); 
{k2.src = "/img/button_gamesover.gif";} // when mouse is over the image
m1 = new Image(); 
m1.src = "/img/button_printables.gif"; // when mouse is not over the image
m2 = new Image(); 
{m2.src = "/img/button_printablesover.gif";} // when mouse is over the image
n1 = new Image(); 
n1.src = "/img/button_parents.gif"; // when mouse is not over the image
n2 = new Image(); 
{n2.src = "/img/button_parentsover.gif";} // when mouse is over the image
p1 = new Image(); 
p1.src = "/img/button_teachers.gif"; // when mouse is not over the image
p2 = new Image(); 
{p2.src = "/img/button_teachersover.gif";} // when mouse is over the image
q1 = new Image(); 
q1.src = "/img/button_store.gif"; // when mouse is not over the image
q2 = new Image(); 
{q2.src = "/img/button_storeover.gif";} // when mouse is over the image
r1 = new Image(); 
r1.src = "/img/button_sitemap.gif"; // when mouse is not over the image
r2 = new Image(); 
{r2.src = "/img/button_sitemapover.gif";} // when mouse is over the image
s1 = new Image(); 
s1.src = "/img/link_home.gif"; // when mouse is not over the image
s2 = new Image(); 
{s2.src = "/img/link_homeover.gif";} // when mouse is over the image
t1 = new Image(); 
t1.src = "/img/link_about.gif"; // when mouse is not over the image
t2 = new Image(); 
{t2.src = "/img/link_aboutover.gif";} // when mouse is over the image
u1 = new Image(); 
u1.src = "/img/link_privacy.gif"; // when mouse is not over the image
u2 = new Image(); 
{u2.src = "/img/link_privacyover.gif";} // when mouse is over the image
v1 = new Image(); 
v1.src = "/img/link_terms.gif"; // when mouse is not over the image
v2 = new Image(); 
{v2.src = "/img/link_termsover.gif";} // when mouse is over the image
w1 = new Image(); 
w1.src = "/img/brc_hp_games.gif"; // when mouse is not over the image
w2 = new Image(); 
{w2.src = "/img/brc_hp_gamesover.gif";} // when mouse is over the image
z1 = new Image(); 
z1.src = "/img/brc_hp_blurb_Dan.gif"; // when mouse is not over the image
y1 = new Image(); 
{y1.src = "/img/brc_hp_sunart_Dan.gif";} // when mouse is over the image 
z2 = new Image(); 
z2.src = "/img/brc_hp_blurb_Ted.gif"; // when mouse is not over the image
y2 = new Image(); 
{y2.src = "/img/brc_hp_sunart_Ted.gif";} // when mouse is over the image 
z3 = new Image(); 
z3.src = "/img/brc_hp_blurb_Mice.gif"; // when mouse is not over the image
y3 = new Image(); 
{y3.src = "/img/brc_hp_sunart_Mice.gif";} // when mouse is over the image 
z4 = new Image(); 
z4.src = "/img/brc_hp_blurb_Joe.gif"; // when mouse is not over the image
y4 = new Image(); 
{y4.src = "/img/brc_hp_sunart_Joe.gif";} // when mouse is over the image 
z5 = new Image(); 
z5.src = "/img/brc_hp_blurb_Catplr.gif"; // when mouse is not over the image
y5 = new Image(); 
{y5.src = "/img/brc_hp_sunart_Catplr.gif";} // when mouse is over the image 
z6 = new Image(); 
z6.src = "/img/brc_hp_blurb_Lan.gif"; // when mouse is not over the image
y6 = new Image(); 
{y6.src = "/img/brc_hp_sunart_Lan.gif";} // when mouse is over the image 
z7 = new Image(); 
z7.src = "/img/brc_hp_blurb_Doc.gif"; // when mouse is not over the image
y7 = new Image(); 
{y7.src = "/img/brc_hp_sunart_Doc.gif";} // when mouse is over the image 

//underline link on mouseover
function LinkChange(ImageName1,NewImage1) 
{
document.images[ImageName1].src = eval(NewImage1 + ".src");
}

function refresh()
{
    window.location.reload( false );
}

//change name color on mouseover
function NameHL(obj,NewClass) {
   			obj.className=NewClass;
  }		

//highlight character name on mouseover
function HiLight(ImageName1,NewImage1) 
{
document.images[ImageName1].src = eval(NewImage1 + ".src");
}

//change blurb and sun image on click
function PicChange(ImageName1,NewImage1,ImageName2,NewImage2)
{
document.images[ImageName1].src = eval(NewImage1 + ".src");
document.images[ImageName2].src = eval(NewImage2 + ".src");
}

//print current page
//not working for Mozilla
function printWindow(){
   bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.print()
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}
var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		homeshort_over = newImage("/img/homeshort-over.gif");
		preloadFlag = true;
    }
 }	

