var defaultDiv = "prod_toggle1";  

startList = function() 
{
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;

var buttonNames = new Array();
var ImgType = new Array();
buttonNames[0] = "btn_francais";
ImgType[0] = "gif";
buttonNames[1] = "btn_sitemap";
ImgType[1] = "gif";
buttonNames[2] = "btn_contactus";
ImgType[2] = "gif";
buttonNames[3] = "btn_account";
ImgType[3] = "gif";
buttonNames[4] = "btn_send2friend";
ImgType[4] = "gif";
buttonNames[5] = "btn_printversion";
ImgType[5] = "gif";
buttonNames[6] = "btn_next";
ImgType[6] = "gif";


/* Javascript Button Rollover Function */

/* Define these in the head of the document, before the <script> statement:

    var buttonNames = new Array();
    var ImgType = new Array();
    
    // button images must conform to this standard, and image formats must match for on/off pairs
    // e.g. "button1_on.gif" / "button1_off.gif"
    //   <a href="#" onmouseover="javascript:RollOn('button1');"
    //               onmouseout="javascript:RollOff('button1');">
    //   <img name="button1" src="../images/button1_off.jpg" /></a>
    
    buttonNames[0] = "button1";
    ImgType[0] = "gif";
    buttonNames[1] = "button2";
    ImgType[1] = "jpg";
*/

// preload rollover images
for(var i=0;i<buttonNames.length;i++) {
    eval("var button_" + buttonNames[i] + "_off = new Image()");
    eval("button_" + buttonNames[i] + "_off.src = '/images/" + buttonNames[i] + "_off." + ImgType[i] + "'");
    eval("var button_" + buttonNames[i] + "_on = new Image()");
    eval("button_" + buttonNames[i] + "_on.src = '/images/" + buttonNames[i] + "_on." + ImgType[i] + "'");
}

var ready = true;

// Image Rollover
function RollOn(thisImgName) {
    if (ready) {
        eval( 'document.images[\"' + thisImgName + '\"].src = button_'+ thisImgName + '_on.src');
    }
}

function RollOff(thisImgName) {
    if (ready) {
        eval('document.images[\"' + thisImgName + '\"].src = button_' + thisImgName + '_off.src');
    }
}


