// JavaScript Document
$("a").bind("focus",function(){ 
if(this.blur){  
this.blur(); 
} 
});
//left tab
var indextabname = new Array("tab_dt_box","tab_gg_box","tab_jb_box");
var indextabmenus = new Array("#tab_dt h4","#tab_gg h4","#tab_jb h4");
function indextab(n){
	document.getElementById(indextabname[n]).style.display = "block";
	if (n==0){$(indextabmenus[n]).css({ background:"url(/images/tech/index_tab.gif) left top no-repeat"});}
	else if (n==1) {$(indextabmenus[n]).css({ background:"url(/images/tech/index_tab.gif) -80px top no-repeat"});}
	else {$(indextabmenus[n]).css({ background:"url(/images/tech/index_tab.gif) right top no-repeat"});}
	for (i=0; i<indextabname.length; i++){
		if (i==n){continue}
		document.getElementById(indextabname[i]).style.display = "none";
		if (n==0){
			$(indextabmenus[1]).css({ background:"url(/images/tech/index_tab.gif) -80px bottom no-repeat"});
			$(indextabmenus[2]).css({ background:"url(/images/tech/index_tab.gif) right bottom no-repeat"});
		}
		else if (n==1){
			$(indextabmenus[0]).css({ background:"url(/images/tech/index_tab.gif) left bottom no-repeat"});
			$(indextabmenus[2]).css({ background:"url(/images/tech/index_tab.gif) right bottom no-repeat"});
		}
		else {
			$(indextabmenus[0]).css({ background:"url(/images/tech/index_tab.gif) left bottom no-repeat"});
			$(indextabmenus[1]).css({ background:"url(/images/tech/index_tab.gif) -80px bottom no-repeat"});
		}
	}
}
//ÖÐ¼äÍ¼Æ¬ÇÐ»»js
var index_qiemenu = new Array("#index_qie_0","#index_qie_1","#index_qie_2","#index_qie_3");
var index_qiemenucoloir = new Array("url(/images/tech/qie_gun_w.gif) 1px 1px no-repeat","url(/images/tech/qie_gun_w.gif) -57px 1px no-repeat","url(/images/tech/qie_gun_w.gif) -117px 1px no-repeat","url(/images/tech/qie_gun_w.gif) -175px 1px no-repeat");
var index_qiemenu_ml = new Array("1px","59px","119px","177px");
var qieint = 0;
function index_qie(n){
	publicqh(n);
	qieint = n;
}
var index_qie_atuo = self.setInterval("indexqiehuan()",3500);
function indexqiehuan(){
	qieint++;
	if (qieint == index_qiemenu.length){qieint = 0}
	publicqh(qieint);
}
function publicqh(n){
	$("#index_qie_imgbox").animate({"margin-left": -(295*n)+"px"}, 300);
	$(".index_qie_blue").animate({"margin-left": index_qiemenu_ml[n]}, 300);
	$(index_qiemenu[n]).css({ background: index_qiemenucoloir[n] });
	for (i=0; i<index_qiemenu.length; i++){
		if (i==n){continue}
		$(index_qiemenu[i]).css({ background: "none" });
	}
	return;
}
//ÓÒ²à²ãÇÐ»»js
var indextabright = new Array(".itabr_0_s",".itabr_1_s",".itabr_2_s",".itabr_3_s");
var indextabrightmenu = new Array(".itabr_0",".itabr_1",".itabr_2",".itabr_3");
var tempindextabright = indextabright[0];
var tempindextabrightmenu = indextabrightmenu[0];
function righttab(n){
	if (tempindextabright != indextabright[n]){
		$(indextabright[n]).animate({height: "83px"}, 300);
		$(indextabrightmenu[n]).css({filter:"alpha(opacity=100)",opacity: "1","-moz-opacity":"1","-khtml-opacity":"1"});
		if (tempindextabright != null){
			$(tempindextabright).animate({height: "2px"}, 300);
			$(tempindextabrightmenu).css({filter:"alpha(opacity=50)",opacity: "0.5","-moz-opacity":"0.5","-khtml-opacity":"0.5"});
		}
		tempindextabright = indextabright[n];
		tempindextabrightmenu = indextabrightmenu[n];
	}
}
//nav js
var navmenu = new Array(".nav0",".nav1",".nav2",".nav3",".nav4",".nav5",".nav6",".nav7");
var navmenusm = new Array(".nav2_0",".nav2_1",".nav2_2",".nav2_3",".nav2_4",".nav2_5",".nav2_6",".nav2_7");
var tempnavmenu = navmenu[0];
var tempnavmenusm = navmenusm[0];
function navfn(n){
	if (tempnavmenu != navmenu[n]){
		$(navmenu[n]).animate({filter:"alpha(opacity=100)",opacity: "1","-moz-opacity":"1","-khtml-opacity":"1"},300);
		$(navmenusm[n]).fadeIn(300);
		if (tempnavmenu != null){
			$(tempnavmenu).animate({filter:"alpha(opacity=0)",opacity: "0","-moz-opacity":"0","-khtml-opacity":"0"},300);
			$(tempnavmenusm).fadeOut(300);
		}
		tempnavmenu = navmenu[n];
		tempnavmenusm = navmenusm[n];
	}
}
