// Copyright © 1999 Doug Popeney
// Created by Doug Popeney (easyjava@easyjavascipt.com)
// JavaScript Made Easy!! - http://www.easyjavascript.com
// Modified by Justin Hannum for http://www.businesscomputersystem.com

// Script #1 for service page changing text
var sid="mitnamdliw_wildmantim";
//Array function compatible with Netscape 2.0x and 3.0x
function MakeArray(n) {                 
   this.length = n;
   for (var i = 1; i <= n; i++) { 
     this[i] = 0 }
     return this
     }
//create an array to store tips
//each button in the graphic requires an entry here
var ToolTips = new MakeArray(1);
        ToolTips[0] = 1; //number of tips
        ToolTips[1] = "Check out our Monthly Computer Specials!";
        ToolTips[2] = "Affordable and Backed by Our 90 Day Warranty.";
        ToolTips[3] = "Tired of Running that old 486? Contact Us for an Upgrade Price!";
        ToolTips[4] = "Printers, Scanners, and All Computer Related Add-Ons.";
        ToolTips[5] = "BCS Has a Long History of Recovering Data When the Others Fail.";
        ToolTips[6] = "Regular Cleanings Keep Equipment Looking and Working Like New.";
        ToolTips[7] = "New Installations and Diagnostic Help for All Your Networking Needs.";
        ToolTips[8] = "";

function writeTip(imgIndex ){        
      document.tooltipsform.tips.value=(ToolTips[imgIndex]);
}

// Script #2 for random trivia tag
	var imagenumber = 4 ;
	var randomnumber = Math.random() ;
	var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
	images = new Array
	images[1] = "../images/tb-blitz.gif"
	images[2] = "../images/tb-classic.gif"
	images[3] = "../images/tb-ent.gif"
	images[4] = "../images/tb-sports.gif"
	var image = images[rand1]

	links = new Array
	links[1] = "trivia-please.htm"
	links[2] = "trivia-classic.htm"
	links[3] = "trivia-entertainment.htm"
	links[4] = "trivia-sports.htm"
	var link = links[rand1]

// Script #3 for image changing buttons (all but main page)
   var NN3 = false;
   img = new Array
    
   // Main Menu
   image4 = new Image();
   image4.src = "../images/mm-home-off.gif";
   image4on = new Image();
   image4on.src = "../images/mm-home-on.gif";

   image5 = new Image();
   image5.src = "../images/mm-products-off.gif";
   image5on = new Image();
   image5on.src = "../images/mm-products-on.gif";

   image6 = new Image();
   image6.src = "../images/mm-services-off.gif";
   image6on = new Image();
   image6on.src = "../images/mm-services-on.gif";

   image7 = new Image();
   image7.src = "../images/mm-classifieds-off.gif";
   image7on = new Image();
   image7on.src = "../images/mm-classifieds-on.gif";

   image8 = new Image();
   image8.src = "../images/mm-feedback-off.gif";
   image8on = new Image();
   image8on.src = "../images/mm-feedback-on.gif";

   image9 = new Image();
   image9.src = "../images/mm-about_us-off.gif";
   image9on = new Image();
	image9on.src = "../images/mm-about_us-on.gif";

   // Contest
   imageA = new Image();
   imageA.src = "../images/mm-bnb-off.gif";
   imageAon = new Image();
   imageAon.src = "../images/mm-bnb-on.gif";

   // Contest
   imageB = new Image();
   imageB.src = "../images/mm-contest-off.gif";
   imageBon = new Image();
   imageBon.src = "../images/mm-contest-on.gif";
      
   // Coupon
   imageC = new Image();
   imageC.src = "../images/mm-coupons-off.gif";
   imageCon = new Image();
   imageCon.src = "../images/mm-coupons-on.gif";

   // Games
   imageD = new Image();
   imageD.src = "../images/mm-games-off.gif";
   imageDon = new Image();
   imageDon.src = "../images/mm-games-on.gif";
      
   function on3(name)
   {
   document[name].src = eval(name + "on.src");
   }

   function off3(name)
   {
   document[name].src = eval(name + ".src");
   }

   NN3 = true;

   function on(name)
   {
   if (NN3) on3(name);
   }

   function off(name)
   {
   if (NN3) off3(name);
   }
