<!--

// The syntax for using these functions in an HTML document are as follows:
//
// <a href="#" onMouseOver="imgOn('img2')" onMouseOut="imgOff('img2')">
// <img src="file.gif" name="img2" width="60" height="60" border="0"></a>

var loaded=0;

var webSections = new Array();
		
webSections[0] = "store";
webSections[1] = "club";
webSections[2] = "wholesale";
webSections[3] = "newsletter";
webSections[4] = "about_us";
webSections[5] = "cart";


var coffeeType = new Array();
/*
coffeeType[7] = "light_roast";
coffeeType[8] = "dark_roast";
coffeeType[9] = "flavored";
coffeeType[10] = "organic";
coffeeType[11] = "blend";
coffeeType[12] = "samplers";
*/
coffeeType[7] = "all_coffees";
coffeeType[8] = "all";
coffeeType[9] = "choice";
coffeeType[10] = "blends";
coffeeType[11] = "flavored";
coffeeType[12] = "dark_roasts";
coffeeType[13] = "samplers";
coffeeType[14] = "organics";

var currentPage = '';
var currentType = '';

// loop through the section array to identify the subscript of the section we're in                
for (i=0; i < webSections.length; i++) {
                
	if (webSections[i] == section) {
		i++;
		currentPage = "img" + i;
	}
}



if ((is_nav3up) || (is_ie4up)) br = "good";

else br = "bad";


if (br == "good") {
			
			img1on = new Image(); img1on.src ="/images/order_coffee_on.gif";
	        img1off = new Image(); img1off.src ="/images/order_coffee_off.gif";
			img2on = new Image(); img2on.src ="/images/coffee_club_on.gif";
	        img2off = new Image(); img2off.src ="/images/coffee_club_off.gif";
			img3on = new Image(); img3on.src ="/images/wholesale_on.gif";
	        img3off = new Image(); img3off.src ="/images/wholesale_off.gif";
			img5on = new Image(); img5on.src ="/images/newsletter_on.gif";
	        img5off = new Image(); img5off.src ="/images/newsletter_off.gif";
			img6on = new Image(); img6on.src ="/images/about_us_on.gif";
	        img6off = new Image(); img6off.src ="/images/about_us_off.gif";
			img7on = new Image(); img7on.src ="/images/your_order_on.gif";
	        img7off = new Image(); img7off.src ="/images/your_order_off.gif";
	        
	        
	        img8on = new Image(); img8on.src ="/images/all_coffees_on.gif";
	        img8off = new Image(); img8off.src ="/images/all_coffees_off.gif";
	        img9on = new Image(); img9on.src ="/images/all_on.gif";
	        img9off = new Image(); img9off.src ="/images/all_off.gif";
	        img10on = new Image(); img10on.src ="/images/choice_on.gif";
	        img10off = new Image(); img10off.src ="/images/choice_off.gif";
	        img11on = new Image(); img11on.src ="/images/blends_on.gif";
	        img11off = new Image(); img11off.src ="/images/blends_off.gif";
	        img12on = new Image(); img12on.src ="/images/flavored_on.gif";
	        img12off = new Image(); img12off.src ="/images/flavored_off.gif";
	        img13on = new Image(); img13on.src ="/images/dark_roasts_on.gif";
	        img13off = new Image(); img13off.src ="/images/dark_roasts_off.gif";
	        img14on = new Image(); img14on.src ="/images/samplers_on.gif";
	        img14off = new Image(); img14off.src ="/images/samplers_off.gif";
	        img15on = new Image(); img15on.src ="/images/organics_on.gif";
	        img15off = new Image(); img15off.src ="/images/organics_off.gif";
	        
	        img99on = new Image(); img99on.src ="/images/home_on.gif";
	        img99off = new Image(); img99off.src ="/images/home_off.gif";
	        
     		
}



function imgOn(imgName) {
        if (br == "good") {
                document[imgName].src = eval(imgName + "on.src");
                //document.hold.src = eval(imgName + "hold.src");
                
                //window.status = eval(imgName + "copy");
       			
       }

}

function imgOff(imgName) {
        if (br == "good") {
                 
	           if (imgName == currentPage) {
                	document[imgName].src = eval(imgName + "on.src");
	            } else { 
	            	document[imgName].src = eval(imgName + "off.src");
	            }
  				     
        
        }

}


//this stops the flash movie from playing before the page is loaded
var movieName = "";

function thisMovie(movieName) {
  // IE and Netscape refer to the movie object differently.
  // This function returns the appropriate syntax depending on the browser.
  if (navigator.appName.indexOf ("Microsoft") !=-1) {
    return window[movieName]
  }     else {
    return document[movieName]
  }
}

// Checks if movie is completely loaded.
// Returns true if yes, false if no.
function movieIsLoaded (theMovie) {
  if (typeof(theMovie) != "undefined") {
    return theMovie.PercentLoaded() == 100;
  } else {
    return false;
  }
}


function playmovie(movieName) {
  if (movieIsLoaded(thisMovie(movieName))) {
    thisMovie(movieName).GotoFrame(0);
    thisMovie(movieName).Play();
  }
}

//-->