// JavaScript Document
var bu_nbtn0 = new Image(); bu_nbtn0.src="/img/fuelthechange/bu_samplevideos.gif";
var bd_nbtn0 = new Image(); bd_nbtn0.src="/img/fuelthechange/bd_samplevideos.gif";
var bu_nbtn1 = new Image(); bu_nbtn1.src="/img/fuelthechange/bu_videotoolbox.gif";
var bd_nbtn1 = new Image(); bd_nbtn1.src="/img/fuelthechange/bd_videotoolbox.gif";
var bu_nbtn2 = new Image(); bu_nbtn2.src="/img/fuelthechange/bu_submityourvideo.gif";
var bd_nbtn2 = new Image(); bd_nbtn2.src="/img/fuelthechange/bd_submityourvideo.gif";
var bu_nbtn3 = new Image(); bu_nbtn3.src="/img/fuelthechange/bu_getthedetails.gif";
var bd_nbtn3 = new Image(); bd_nbtn3.src="/img/fuelthechange/bd_getthedetails.gif";
var bu_nbtn4 = new Image(); bu_nbtn4.src="/img/fuelthechange/bu_tellafriend.gif";
var bd_nbtn4 = new Image(); bd_nbtn4.src="/img/fuelthechange/bd_tellafriend.gif";
var bu_nbtn5 = new Image(); bu_nbtn5.src="/img/fuelthechange/bu_rules.gif";
var bd_nbtn5 = new Image(); bd_nbtn5.src="/img/fuelthechange/bd_rules.gif";
var bu_nbtn6 = new Image(); bu_nbtn6.src="/img/fuelthechange/bu_privacy.gif";
var bd_nbtn6 = new Image(); bd_nbtn6.src="/img/fuelthechange/bd_privacy.gif";
var bu_nbtn7 = new Image(); bu_nbtn7.src="/img/fuelthechange/bu_drivingethanol.gif";
var bd_nbtn7 = new Image(); bd_nbtn7.src="/img/fuelthechange/bd_drivingethanol.gif";
var bu_nbtn8 = new Image(); bu_nbtn8.src="/img/fuelthechange/bu_home.gif";
var bd_nbtn8 = new Image(); bd_nbtn8.src="/img/fuelthechange/bd_home.gif";
//added feedback link
var bu_nbtn9 = new Image(); bu_nbtn9.src="/img/fuelthechange/bu_feedback.gif";
var bd_nbtn9 = new Image(); bd_nbtn9.src="/img/fuelthechange/bd_feedback.gif";
function getObj(objID) {
    // Chino's Super Duper DOM addressing script (xbrowser within limits..:-)
    if(document.getElementById && document.getElementById(objID)) {
	// W3C
	return document.getElementById(objID);
    } else if (document.all && document.all(objID)) {
	// IE4
	return document.all(objID);
    } else if (document.layers && document.layers[objID]) {
	// NS4 .. note: not perfect.. this will not find nested layers
	return document.layers[objID];
    } else {
    // returning 0, will not work for anything else
	return false;
    }
}


function rollOn(id){
	if(getObj(id).className.indexOf("disabled")>=0) {return false};
	getObj(id).src=eval("bd_"+id).src;
	}
function rollOff(id){
	if(getObj(id).className.indexOf("disabled")>=0) {return false};
	getObj(id).src=eval("bu_"+id).src;
	}
function doClick(id, newloc){
	if(getObj(id).className.indexOf("disabled")>=0) {return false};
	document.location = newloc;
	}
function initpage(){
			loc = document.URL
		if(loc.indexOf("samplevideos")>=0){
			getObj("nbtn0").src=bd_nbtn0.src;
			getObj("nbtn0").className = "mainbannerbtn2_disabled";
			}

		if(loc.indexOf("videotoolbox")>=0){
			getObj("nbtn1").src=bd_nbtn1.src;
			getObj("nbtn1").className = "mainbannerbtn2_disabled";
			}
		if(loc.indexOf("signups")>=0){
			getObj("nbtn2").src=bd_nbtn2.src;
			getObj("nbtn2").className = "mainbannerbtn2_disabled";
			}
		if(loc.indexOf("getthedetails")>=0){
			getObj("nbtn3").src=bd_nbtn3.src;
			getObj("nbtn3").className = "mainbannerbtn2_disabled";
			}

		if(loc.indexOf("tellafriend")>=0){
			getObj("nbtn4").src=bd_nbtn4.src;
			getObj("nbtn4").className = "mainbannerbtn2_disabled";
			}

		if(loc.indexOf("rules")>=0){
			getObj("nbtn5").src=bd_nbtn5.src;
			getObj("nbtn5").className = "btn_disabled";
			}

		if(loc.indexOf("privacy")>=0){
			getObj("nbtn6").src=bd_nbtn6.src;
			getObj("nbtn6").className = "btn_disabled";
			}

		if(loc.indexOf("drivingethanol")>=0){
			getObj("nbtn7").src=bd_nbtn7.src;
			getObj("nbtn7").className = "btn_disabled";
			}

		if(loc.indexOf("index")>=0){
			getObj("nbtn8").src=bd_nbtn8.src;
			getObj("nbtn8").className = "mainbannerbtn2_disabled";
			}
}