// JavaScript Document
function $$(objid){
	return document.getElementById(objid);
}

function tab1(obj){
	//alert(obj.id.length);
	var objnum = obj.id.substring(1, obj.id.length);
	//alert(objnum)
	for(var i = 1; i <= 3; i ++){
		if(objnum == i){
			$$("a" + i).className = "hover";
			$$("b" + i).style.display = "";
		}else{
			$$("a" + i).className = "";
			$$("b" + i).style.display = "none";
		}
	}
}

function tab2(obj){
	//alert(obj.id.length);
	var objnum = obj.id.substring(2, obj.id.length);
	for(var i = 1; i <= 2; i ++){
		if(objnum == i){
			$$("aa" + i).className = "hover";
			$$("bb" + i).style.display = "";
		}else{
			$$("aa" + i).className = "";
			$$("bb" + i).style.display = "none";
		}
	}
}

function tab3(obj){
	//alert(obj.id.length);
	var objnum = obj.id.substring(3, obj.id.length);
	//alert(objnum)
	for(var i = 1; i <= 2; i ++){
		if(objnum == i){
			$$("aaa" + i).className = "hover";
			$$("bbb" + i).style.display = "";
		}else{
			$$("aaa" + i).className = "";
			$$("bbb" + i).style.display = "none";
		}
	}
}

function tab4(obj){
	//alert(obj.id.length);
	var objnum = obj.id.substring(1, obj.id.length);
	//alert(objnum)
	for(var i = 1; i <= 4; i ++){
		if(objnum == i){
			$$("a" + i).className = "hover";
			$$("b" + i).style.display = "";
		}else{
			$$("a" + i).className = "";
			$$("b" + i).style.display = "none";
		}
	}
}

function tab6(obj){
	//alert(obj.id.length);
	var objnum = obj.id.substring(1, obj.id.length);
	//alert(objnum)
	for(var i = 1; i <= 5; i ++){
		if(objnum == i){
			$$("a" + i).className = "hover";
			$$("b" + i).style.display = "";
		}else{
			$$("a" + i).className = "";
			$$("b" + i).style.display = "none";
		}
	}
}

function tab5(obj){
	//alert(obj.id.length);
	var objnum = obj.id.substring(2, obj.id.length);
	//alert(objnum)
	for(var i = 1; i <= 3; i ++){
		if(objnum == i){
			$$("aa" + i).className = "hover";
			$$("bb" + i).style.display = "";
		}else{
			$$("aa" + i).className = "";
			$$("bb" + i).style.display = "none";
		}
	}
}