// JavaScript Document
function searchLine(){
	var station_start = $.trim($("#station_start_ipt").val());
	var station_end = $.trim($("#station_end_ipt").val());
	if(station_start==""){
		alert("请填入出发站！");
		return false;
	}
	if(station_end==""){
		alert("请填入到达站！");
		return false;
	}
	$("#search_form").submit();
}

function showLine(event){
	if(this.id>0){
		$("#"+this.id).attr("bgcolor","#A8DAF3");
		$(".oneline_div").css("display","none");
		$("#oneline_div"+this.id).css("display","").css("top",$("#"+this.id).offset().top+22);//-----弹出框位置
	}
}

function hideLine(event){
	$("#"+this.id).attr("bgcolor","#FFFFFF");
	$(".oneline_div").css("display","none");	
}

function loadOk(){
	//$("#busshikebiao tr:nth-child(odd)").css("background","#A8DAF3");
	$(".shikebiao_one").mouseover(showLine);
	$(".shikebiao_one").mouseout(hideLine);	
}

$(document).ready(function(){
	$(".shikebiao_one").mouseover(showLine);
	$(".shikebiao_one").mouseout(hideLine);
	$("#search_img").click(searchLine);
});