//导航
function chgBgImgOn(theOne,img){	
	img="http://image2.sina.com.cn/cj/deco/2007/0407/images/finance_in_ws_002.gif"
	theOne.style.backgroundImage="url("+img+")"
}
function chgBgImgOff(theOne,img){	
	img=""
	theOne.style.backgroundImage="url("+img+")"
}
//iAsk
function checkiask(){
	if (document._searchiask.k.value=="请输关键词" || document._searchiask.k.value=="" ){
		window.open("http://iask.com");
		return false;
	}
	return true;
}
//GetObj
function GetObj(objName){
	if(document.getElementById){
		return eval('document.getElementById("' + objName + '")');
	}else if(document.layers){
		return eval("document.layers['" + objName +"']");
	}else{
		return eval('document.all.' + objName);
	}
}
//舌签
function Menu01(index01,flag01){
	for(var i=0;i<9;i++){
		if(GetObj("con01-"+i)&&GetObj("m01-"+i)){
			GetObj("con01-"+i).style.display = 'none';
			GetObj("m01-"+i).className = "Menu01Off";
		}
	}
	if(GetObj("con01-"+index01)&&GetObj("m01-"+index01)){
		GetObj("con01-"+index01).style.display = 'block';
		GetObj("m01-"+index01).className = "Menu01On";
	}
}
function Menu02(index02,flag02){
		for(var i=0;i<9;i++){
			if(GetObj("con02-"+i)&&GetObj("m02-"+i)){
				GetObj("con02-"+i).style.display = 'none';
				GetObj("m02-"+i).className = "Menu02Off";
			}
		}
		if(GetObj("con02-"+index02)&&GetObj("m02-"+index02)){
			GetObj("con02-"+index02).style.display = 'block';
			GetObj("m02-"+index02).className = "Menu02On";
		}
	}
function Menu03(index03,flag03){
		for(var i=0;i<9;i++){
			if(GetObj("con03-"+i)&&GetObj("m03-"+i)){
				GetObj("con03-"+i).style.display = 'none';
				GetObj("m03-"+i).className = "Menu03Off";
			}
		}
		if(GetObj("con03-"+index03)&&GetObj("m03-"+index03)){
			GetObj("con03-"+index03).style.display = 'block';
			GetObj("m03-"+index03).className = "Menu03On";
		}
	}
function Menu04(index04,flag04){
		for(var i=0;i<9;i++){
			if(GetObj("con04-"+i)&&GetObj("m04-"+i)){
				GetObj("con04-"+i).style.display = 'none';
				GetObj("m04-"+i).className = "Menu04Off";
			}
		}
		if(GetObj("con04-"+index04)&&GetObj("m04-"+index04)){
			GetObj("con04-"+index04).style.display = 'block';
			GetObj("m04-"+index04).className = "Menu04On";
		}
	}
function Menu05(index05,flag05){
		for(var i=0;i<9;i++){
			if(GetObj("con05-"+i)&&GetObj("m05-"+i)){
				GetObj("con05-"+i).style.display = 'none';
				GetObj("m05-"+i).className = "Menu05Off";
			}
		}
		if(GetObj("con05-"+index05)&&GetObj("m05-"+index05)){
			GetObj("con05-"+index05).style.display = 'block';
			GetObj("m05-"+index05).className = "Menu05On";
		}
	}
function Menu06(index06,flag06){
		for(var i=0;i<9;i++){
			if(GetObj("con06-"+i)&&GetObj("m06-"+i)){
				GetObj("con06-"+i).style.display = 'none';
				GetObj("m06-"+i).className = "Menu06Off";
			}
		}
		if(GetObj("con06-"+index06)&&GetObj("m06-"+index06)){
			GetObj("con06-"+index06).style.display = 'block';
			GetObj("m06-"+index06).className = "Menu06On";
		}
	}
//纵菜单
//预先载入要用到的图片
var on = new Image(14, 14);
on.src = "http://image2.sina.com.cn/cj/deco/2007/0407/images/finance_in_ws_010.gif";
var off = new Image(14, 14);
off.src = "http://image2.sina.com.cn/cj/deco/2007/0407/images/finance_in_ws_012.gif";
function ShowItem(itemId){
	eval('document.images["tImg' + itemId + '"].src = on.src');
	GetObj('item' + itemId).style.display = 'block';
}
function HideItem(itemId){
	eval('document.images["tImg' + itemId + '"].src = off.src');
	GetObj('item' + itemId).style.display = 'none';
}
function ChangeItem(itemId){
	if (GetObj('item' + itemId).style.display == 'block'){
		HideItem(itemId);
	}else if (GetObj('item' + itemId).style.display == 'none'){
		ShowItem(itemId);
	}
}
