<!--//
var agt = navigator.userAgent.toLowerCase();  
var is_major = parseInt(navigator.appVersion);  
var is_minor = parseFloat(navigator.appVersion);  
var is_ie = (agt.indexOf("msie") != -1); 
var is_ie4up = (is_ie  && (is_major >= 4)); 
if (is_ie4up) { document.write("<STYLE TYPE='text/css'> A:hover {color:#FFBD26} </STYLE>"); } 

if (document.images) {            // Active Images
	img1on = new Image();      
	img1on.src = "img/btn_candle_on.jpg"; 
	img2on = new Image(); 
	img2on.src = "img/btn_soap_on.jpg";  
	img3on = new Image();
	img3on.src = "img/btn_oils_on.jpg";
	img4on = new Image();
	img4on.src = "img/btn_exfoliates_on.jpg";
	img5on = new Image();      
	img5on.src = "img/btn_misc_on.jpg";
	img6on = new Image();
	img6on.src = "img/btn_bases_on.jpg";
	img7on = new Image();
	img7on.src = "img/btn_recipes_on.jpg";
	img8on = new Image();
	img8on.src = "img/btn_contact_on.jpg";
	img9on = new Image();
	img9on.src = "img/btn_lyecalc_on.jpg";
	img10on = new Image();    
	img10on.src = "img/btnhdr_candle_on.jpg"; 
	img11on = new Image(); 
	img11on.src = "img/btnhdr_soap_on.jpg";  
	img12on = new Image();
	img12on.src = "img/btnhdr_oils_on.jpg";
	img13on = new Image();
	img13on.src = "img/btnhdr_exfoliates_on.jpg";
	img14on = new Image();      
	img14on.src = "img/btnhdr_misc_on.jpg";
	img15on = new Image();
	img15on.src = "img/btnhdr_bases_on.jpg";
	img16on = new Image();
	img16on.src = "img/btnhdr_recipes_on.jpg";
	img17on = new Image();
	img17on.src = "img/btnhdr_contact_on.jpg";
	img18on = new Image();
	img18on.src = "img/btnhdr_lyecalc_on.jpg";
	img19on = new Image();
	img19on.src = "img/btnhdr_home_on.jpg";
}

// Function to 'activate' images.
// Image naming must include '_on' or '_off'
function imgOn(imgName) { 
	if (document.images) {
		document[imgName].src = document[imgName].src.replace(/_off/, "_on");
	// this line changes the bottom graphic
		document["bottom_bar"].src = "img/roll_" + imgName + ".jpg";
	}
}

// Function to 'deactivate' images.
function imgOff(imgName) {
	if (document.images) {
		document[imgName].src = document[imgName].src.replace(/_on/, "_off");
		document["bottom_bar"].src = "img/roll_default.jpg";
	}
}

/*
// array to swap images
		if (document.images) {
     	var imgNames = new Array('roll_candle','roll_soap','roll_misc','roll_contact','roll_recipe');
      	for (i=0; i<imgNames.length; i++) {
         	var roll_default = new Image();
         	roll_default.src = "img/roll_default.jpg";
         	eval('var ' + imgNames[i] + ' = new Image()');
         	eval(imgNames[i] + '.src = "img/' + imgNames[i] + '.jpg"'); 
		}
}
		
// Function to 'swap' images.
		function swapImage(iName) {
      	if (document.images) {
         	eval('document.swapPic.src = ' + iName + '.src'); 
		}
}
*/
// -->
