// JavaScript Document

function $(idstr){
	return document.getElementById(idstr);
	}


function banner_over(obj){
	if(!obj) return false;
	obj.style.backgroundColor = '#FFFFFF';	
	var obj_a = obj.getElementsByTagName('a');
	obj_a[0].style.color = '#054b95';
	var btStrArray = new Array('about','news','travelNews','zjy','car');
	for(i=0;i<btStrArray.length;i++){
			document.getElementById('banner_'+btStrArray[i]+'_content').style.display = 'none';
		}
	if(document.getElementById(obj.id+'_content')){
		document.getElementById(obj.id+'_content').style.display = '';
	}
	
	//alert(window.event.srcElement.id)
}

function banner_out(obj){
	obj.style.backgroundColor = '';	
	var obj_a = obj.getElementsByTagName('a');
	obj_a[0].style.color = '#FFFFFF';
		
}

function newsChange1(flag){
	//alert(flag);
	$('newsTd').className = 'bar_two';	
	$('travelNewsTd').className = 'bar_two';
	$(flag+'Td').className = 'bar_one';
	$('newsDiv').style.display = 'none';	
	$('travelNewsDiv').style.display = 'none';
	$(flag+'Div').style.display = '';
	$('newsA').href="/news/?type="+flag;
}

function newsChange2(flag){
	var tableArray = $('carNewsTd').getElementsByTagName('table');
	for(i=0;i<tableArray.length;i++){
		tableArray[i].style.display = 'none';
		}
	$(flag+'NewsTable')	.style.display = '';
}
function newsChange3(flag){
	var tableArray = $('zjyNewsDiv').getElementsByTagName('table');
	for(i=0;i<tableArray.length;i++){
		tableArray[i].style.display = 'none';
		}
	$(flag+'NewsTable')	.style.display = '';
}

function newsChange4(flag){
	$('hotel'+'Table')	.style.display = 'none';
	$('hotelOrder'+'Table')	.style.display = 'none';
	$('hotelTd').className = 'bar_two';	
	$('hotelOrderTd').className = 'bar_two';
	$(flag+'Td').className = 'bar_one';
	$(flag+'Table')	.style.display = '';
	
}

function newsChange5(flag){
	$('car'+'Table')	.style.display = 'none';
	$('carOrder'+'Table')	.style.display = 'none';
	$('carTd').className = 'bar_two';	
	$('carOrderTd').className = 'bar_two';
	$(flag+'Td').className = 'bar_one';
	$(flag+'Table')	.style.display = '';
	
}
