browserName = navigator.appName;

browserVer = parseInt(navigator.appVersion);

defURL = 'https://www.weiweitel.com/'

if ( (browserName == "Netscape" && browserVer >= 3) || (browserName== "Microsoft Internet Explorer" && browserVer > 3) ) version = "n3";

	else version = "n2";

	if (version == "n3") {
	
	
	n_loginon = new Image();
	n_loginon.src = defURL + "images/n_loginon_ch.gif";

	n_loginoff = new Image();
	n_loginoff.src = defURL + "images/n_loginoff_ch.gif";
	
	
	n_supon = new Image();
	n_supon.src = defURL + "images/n_supon_ch.gif";

	n_supoff = new Image();
	n_supoff.src = defURL + "images/n_supoff_ch.gif";
	
	
	n_logouton = new Image();
	n_logouton.src = defURL + "images/n_logouton_ch.gif";

	n_logoutoff = new Image();
	n_logoutoff.src = defURL + "images/n_logoutoff_ch.gif";
	
	
	t_chinaon = new Image();
	t_chinaon.src = defURL + "images/t_chinaon_ch.gif";

	t_chinaoff = new Image();
	t_chinaoff.src = defURL + "images/t_chinaoff_ch.gif";
	
	
	t_uson = new Image();
	t_uson.src = defURL + "images/t_uson_ch.gif";

	t_usoff = new Image();
	t_usoff.src = defURL + "images/t_usoff_ch.gif";
	
	
	b_hiwon = new Image();
	b_hiwon.src = defURL + "images/b_hiwon_ch.gif";

	b_hiwoff = new Image();
	b_hiwoff.src = defURL + "images/b_hiwoff_ch.gif";
	
	
	b_cplanson = new Image();
	b_cplanson.src = defURL + "images/b_cplanson_ch.gif";

	b_cplansoff = new Image();
	b_cplansoff.src = defURL + "images/b_cplansoff_ch.gif";
	
		
	b_sfeatureson = new Image();
	b_sfeatureson.src = defURL + "images/b_sfeatureson_ch.gif";

	b_sfeaturesoff = new Image();
	b_sfeaturesoff.src = defURL + "images/b_sfeaturesoff_ch.gif";
	
		
	b_activateon = new Image();
	b_activateon.src = defURL + "images/b_activateon_ch.gif";

	b_activateoff = new Image();
	b_activateoff.src = defURL + "images/b_activateoff_ch.gif";
	
	n_thiwon = new Image();
	n_thiwon.src = defURL + "images/n_thiwon_ch.gif";

	n_thiwoff = new Image();
	n_thiwoff.src = defURL + "images/n_thiwoff_ch.gif";
		
	n_tacton = new Image();
	n_tacton.src = defURL + "images/n_tacton_ch.gif";

	n_tactoff = new Image();
	n_tactoff.src = defURL + "images/n_tactoff_ch.gif";
		
	n_tcplanson = new Image();
	n_tcplanson.src = defURL + "images/n_tcplanson_ch.gif";

	n_tcplansoff = new Image();
	n_tcplansoff.src = defURL + "images/n_tcplansoff_ch.gif";
	
	n_tsfeatureson = new Image();
	n_tsfeatureson.src = defURL + "images/n_tsfeatureson_ch.gif";

	n_tsfeaturesoff = new Image();
	n_tsfeaturesoff.src = defURL + "images/n_tsfeaturesoff_ch.gif";
	
	t_inboxon = new Image();
	t_inboxon.src = defURL + "images/t_inboxon_ch.gif";

	t_inboxoff = new Image();
	t_inboxoff.src = defURL + "images/t_inboxoff_ch.gif";
	
	t_speedon = new Image();
	t_speedon.src = defURL + "images/t_speedon_ch.gif";

	t_speedoff = new Image();
	t_speedoff.src = defURL + "images/t_speedoff_ch.gif";
	
	t_billson = new Image();
	t_billson.src = defURL + "images/t_billson_ch.gif";

	t_billsoff = new Image();
	t_billsoff.src = defURL + "images/t_billsoff_ch.gif";
	
	t_seton = new Image();
	t_seton.src = defURL + "images/t_seton_ch.gif";

	t_setoff = new Image();
	t_setoff.src = defURL + "images/t_setoff_ch.gif";
	
}



function img_act(imgName) {

        if (version == "n3") {

        imgOn = eval(imgName + "on.src");

        document [imgName].src = imgOn;

        }

}


function img_inact(imgName) {

        if (version == "n3") {

        imgOff = eval(imgName + "off.src");

        document [imgName].src = imgOff;

        }

}
