// Detect if browser is Netscape 3 + or IE 4 +.
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
    if ((bName == "Netscape" && bVer >= 3) || 
        (bName == "Microsoft Internet Explorer" && bVer >= 4)) br = "n3"; 
    else br = "n2";

// Create image objects, preload all active and inactive images.
    if (br== "n3") { 
    ten_chon = new Image();         
    ten_chon.src = "/900/images/schedules/ten_on.gif"; 
	clips_chon = new Image();
    clips_chon.src = "/900/images/schedules/clips_new_on.gif";
	xtsy_chon = new Image();
    xtsy_chon.src = "/900/images/schedules/xtsy_new_on.gif";
    ten_chon = new Image();
    ten_chon.src = "/900/images/schedules/ten_new_on.gif";
    vavoom_chon = new Image();
    vavoom_chon.src = "/900/images/schedules/vavoom_on.gif";
	sexsee_chon = new Image();
    sexsee_chon.src = "/900/images/schedules/sexsee_on.gif";
	pleasure_chon = new Image();
    pleasure_chon.src = "/900/images/schedules/pleasure_on.gif";
	plz_chon = new Image();
    plz_chon.src = "/900/images/schedules/plz_on.gif";
	homeon = new Image();
    homeon.src = "/900/images/schedules/home_on.gif";
	ondemandon = new Image();
    ondemandon.src = "/900/images/schedules/ondemand_on.gif";
	xtrason = new Image();
    xtrason.src = "/900/images/schedules/xtras_on.gif";
	channelson = new Image();
    channelson.src = "/900/images/ondemand/channels_on.gif";
	channelsHomeon = new Image();
    channelsHomeon.src = "/900/images/home/channels_on.gif";
	ondemandHomeon = new Image();
    ondemandHomeon.src = "/900/images/home/ondemand_on.gif";
	xtrasHomeon = new Image();
    xtrasHomeon.src = "/900/images/home/xtras_on.gif";
	surveyHomeon = new Image();
    surveyHomeon.src = "/900/images/home/survey_on.gif";
	enteron = new Image();
    enteron.src = "/900/images/home/new/enter_on.gif";
	channelsHomeNewon = new Image();
    channelsHomeNewon.src = "/900/images/home/channels_on_new.gif";
	ondemandHomeNewon = new Image();
    ondemandHomeNewon.src = "/900/images/home/ondemand_on_new.gif";
	xtrasHomeNewon = new Image();
    xtrasHomeNewon.src = "/900/images/home/xtras_on_new.gif";
	surveyHomeNewon = new Image();
    surveyHomeNewon.src = "/900/images/home/survey_on_new.gif";
	faqon = new Image();
    faqon.src = "/900/images/faq/faq_on.gif";
	tenReal_chon = new Image();
    tenReal_chon.src = "/900/images/schedules/real_new_on.gif";
	juicy_chon = new Image();
    juicy_chon.src = "/900/images/schedules/juicy_on.gif";
	
	

// roll off images
    ten_choff = new Image();          	 
    ten_choff.src = "/900/images/schedules/ten_off.gif";
	clips_choff = new Image();
    clips_choff.src = "/900/images/schedules/clips_new_off.gif";
	xtsy_choff = new Image();
    xtsy_choff.src = "/900/images/schedules/xtsy_new_off.gif";
    ten_choff = new Image();
    ten_choff.src = "/900/images/schedules/ten_new_off.gif";
	sexsee_choff = new Image();
    sexsee_choff.src = "/900/images/schedules/sexsee_off.gif";
	vavoom_choff = new Image();
    vavoom_choff.src = "/900/images/schedules/vavoom_off.gif";
	pleasure_choff = new Image();
    pleasure_choff.src = "/900/images/schedules/pleasure_off.gif";
	plz_choff = new Image();
    plz_choff.src = "/900/images/schedules/plz_off.gif";
	homeoff = new Image();
    homeoff.src = "/900/images/schedules/home_off.gif";
	ondemandoff = new Image();
    ondemandoff.src = "/900/images/schedules/ondemand_off.gif";
	xtrasoff = new Image();
    xtrasoff.src = "/900/images/schedules/xtras_off.gif";
	channelsoff = new Image();
    channelsoff.src = "/900/images/ondemand/channels_off.gif";
	channelsHomeoff = new Image();
    channelsHomeoff.src = "/900/images/home/channels_off.gif";
	ondemandHomeoff = new Image();
    ondemandHomeoff.src = "/900/images/home/ondemand_off.gif";
	xtrasHomeoff = new Image();
    xtrasHomeoff.src = "/900/images/home/xtras_off.gif";
	surveyHomeoff = new Image();
    surveyHomeoff.src = "/900/images/home/survey_off.gif";
	enteroff = new Image();
    enteroff.src = "/900/images/home/new/enter_off.gif";
	channelsHomeNewoff = new Image();
    channelsHomeNewoff.src = "/900/images/home/channels_off_new.gif";
	ondemandHomeNewoff = new Image();
    ondemandHomeNewoff.src = "/900/images/home/ondemand_off_new.gif";
	xtrasHomeNewoff = new Image();
    xtrasHomeNewoff.src = "/900/images/home/xtras_off_new.gif";
	surveyHomeNewoff = new Image();
    surveyHomeNewoff.src = "/900/images/home/survey_off_new.gif";
	faqoff = new Image();
    faqoff.src = "/900/images/faq/faq_off.gif";
	tenReal_choff = new Image();
    tenReal_choff.src = "/900/images/schedules/real_new_off.gif";
	juicy_choff = new Image();
    juicy_choff.src = "/900/images/schedules/juicy_off.gif";
    
    
    
}

// Function to "activate" images.
function imgAct(imgName) {
    if (br == "n3") {
    document[imgName].src = eval(imgName + "on.src");
    }
}

// Function to "deactivate" images.
function imgInact(imgName) {
    if (br == "n3") {
    document[imgName].src = eval(imgName + "off.src");
    }
}