//makes buttons rollover
function onLoad() {
 browserName = navigator.appName;
 browserVer = parseInt(navigator.appVersion);

 userAgent = navigator.userAgent;
   start = userAgent.indexOf("(");
   end = userAgent.indexOf(";");
   platform= userAgent.substring(start +1,end);  

        if (browserName == "Netscape" && browserVer >= 3) version = "n3";
        else version = "n2";
        if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) version = "n3";
        if ((version == "n3")) { 

		bt1on = new Image();
		bt1on.src = "/newimages/3.jpg";
		bt1off = new Image();
		bt1off.src = "/newimages/3.jpg";

		bt2on = new Image();
        bt2on.src = "/newimages/4.jpg";
		bt2off = new Image();
        bt2off.src = "/newimages/4.jpg";

        bt3on = new Image(); 
        bt3on.src = "/newimages/5.jpg";
		bt3off = new Image(); 
        bt3off.src = "/newimages/5.jpg";
		
		bt4on = new Image(); 
        bt4on.src = "/newimages/on_r2_c1.png";
		bt4off = new Image(); 
        bt4off.src = "/newimages/off_r2_c1.png";
		
		bt5on = new Image(); 
        bt5on.src = "/newimages/hairflowers.jpg";
		bt5off = new Image(); 
        bt5off.src = "/newimages/hairflowers.jpg";
		
		bt6on = new Image(); 
        bt6on.src = "/newimages/bracelets.jpg";
		bt6off = new Image(); 
        bt6off.src = "/newimages/bracelets.jpg";
		
		bt7on = new Image(); 
        bt7on.src = "/newimages/basichairbows.jpg";
		bt7off = new Image(); 
        bt7off.src = "/newimages/basichairbows.jpg";
		
		bt8on = new Image(); 
        bt8on.src = "/newimages/interchangeableheadbands.jpg";
		bt8off = new Image(); 
        bt8off.src = "/newimages/interchangeableheadbands.jpg";
		
		bt9on = new Image(); 
        bt9on.src = "/newimages/on_r7_c1.png";
		bt9off = new Image(); 
        bt9off.src = "/newimages/off_r7_c1.png";
		
		
		
		bt10on = new Image(); 
        bt10on.src = "/newimages/on_r8_c1.png";
		bt10off = new Image(); 
        bt10off.src = "/newimages/off_r8_c1.png";
		
		bt11on = new Image(); 
        bt11on.src = "/newimages/on_r9_c1.png";
		bt11off = new Image(); 
        bt11off.src = "/newimages/off_r9_c1.png";
		
		bt12on = new Image(); 
        bt12on.src = "/newimages/buildabow.jpg";
		bt12off = new Image(); 
        bt12off.src = "/newimages/buildabow.jpg";
		
		bt13on = new Image(); 
        bt13on.src = "/newimages/danceandcheer.jpg";
		bt13off = new Image(); 
        bt13off.src = "/newimages/danceandcheer.jpg";
		
		bt14on = new Image(); 
        bt14on.src = "/newimages/korkers.jpg";
		bt14off = new Image(); 
        bt14off.src = "/newimages/korkers.jpg";

		}

       if (version == "n3")

        {

	bt1blurb = "About Baby Trendz";
	bt2blurb = "Contact Baby Trendz";
	bt3blurb = "";
	bt4blurb = "";
	bt5blurb = "";
	bt6blurb = "";
	bt7blurb = "";
	bt8blurb = "";
	bt9blurb = "";
	bt10blurb = "";
	bt11blurb = "";
	bt12blurb = "";
	bt13blurb = "";
	bt14blurb = "";
	    }
}

onLoad();

function img_act(imgName) {
        if ((version == "n3")) {
		imgOn = eval(imgName + "on.src");
        document [imgName].src = imgOn;
	blurbNum= eval(imgName + "blurb")
	self.status = blurbNum
        }
       else if (version=="n3")
	{
	blurbNum= eval(imgName + "blurb")
	self.status = blurbNum
	}
       else
	return;

}

function img_inact(imgName) {
        if ((version == "n3")) {
        imgOff = eval(imgName + "off.src");
        document [imgName].src = imgOff;
	self.status =" ";

        }

       else if (version=="n3")
	{
	self.status =" ";
	}
       else
	return;

}
