// JavaScript Document

//新闻类表页
$(document).ready(function(){
  $("#newslistshow li").mouseover(function(){
  $(this).addClass("over");}).mouseout(function(){
  $(this).removeClass("over");})
  $("#newslistshow li:odd").addClass("alt");
  ////////////////////////////////////////////
  $("#navone").mousemove(function(){
								$(this).attr("src","../../images/nav/navon_03.jpg");
								}).mouseout(function(){ 
  									$(this).attr("src","../../images/nav/nav_03.jpg");
									})
$("#navtwo").mousemove(function(){
								$(this).attr("src","../../images/nav/navon_04.jpg");
								}).mouseout(function(){ 
  									$(this).attr("src","../../images/nav/nav_04.jpg");})
$("#navthree").mousemove(function(){
								$(this).attr("src","../../images/nav/navon_10.jpg");
								}).mouseout(function(){ 
  									$(this).attr("src","../../images/nav/nav_10.jpg");})
$("#navfour").mousemove(function(){
								$(this).attr("src","../../images/nav/navon_11.jpg");
								}).mouseout(function(){ 
  									$(this).attr("src","../../images/nav/nav_11.jpg");})
//////////////////////////////////////////////////////
/*$("#gncxone").mousemove(function(){
								$(this).css("background-image","url(../../images/gncxnav_01.jpg)");
								$("#gncxtwo").css("background-image","url(../../images/gncxnav_02.jpg)");
								$("#gncxtexttwo").css("display","none");
								$("#gncxtextone").css("display","block");
								})
$("#gncxtwo").mousemove(function(){
								$(this).css("background-image","url(../../images/gncxnavon_02.jpg)");
								$("#gncxone").css("background-image","url(../../images/gncxnavon_01.jpg)");
								$("#gncxtextone").css("display","none");
								$("#gncxtexttwo").css("display","block");
								})*/
/*****************TOP搜索栏变色***************************************/
$("#sousuo .sstext").mousemove(function(){
								$(this).css("background","#FFFFCC");
								}).mouseout(function(){ 
  									$(this).css("background","#FFFFFF");})
/*************最新路线选项卡********************************************/
$("#xianlunav li").mousemove(function(){	 
								$("#xianlunav ul li").css("background-image","url(../../images/xianlunavone.jpg)");
								$("#xianlunav ul li").css("color","#000000");
								$(this).css("background-image","url(../../images/xianlunavtwo.jpg)");
								$(this).css("color","#FFFFFF");
								 var xuanid = $(this).attr("id");
								 //alert(xuanid);
								 $(".xianluclass").css("display","none");
								 $("#" + xuanid + "text").css("display","block"); 
								})
/*************宾馆选择变化********************************************/
$("#bgshow ol li").mousemove(function(){
								var thisimg = $(this).children("span").html();
								$("#bgshow img").attr("src",thisimg);
								})
/**************************************************************/
$("#imgnav li img").mousemove(function(){
								var imgurl = $(this).attr("src");
								var imgalt = $(this).attr("alt");
								//alert(imgjs);
								$("#imgjs").attr("src",imgurl);
								$("#imgjs").attr("alt",imgalt);
								})
/************************/
});
///////////////////
 $(window).scroll(function() {
            var bodyTop = 0;
            if (typeof window.pageYOffset != 'undefined') {
                bodyTop = window.pageYOffset;
            } else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') {
             bodyTop = document.documentElement.scrollTop;
            }
            else if (typeof document.body != 'undefined') {
                bodyTop = document.body.scrollTop;
            }
           $("#floatdiv").css("top", 0 + bodyTop);
        }); 

///////////////
/* function scroll_news(){
    $(function(){
        var $firstNode1 = $('#newslistleft tr');                         
        $firstNode1.eq(0).fadeOut('slow',function(){                         
        $(this).clone().appendTo($(this).parent()).fadeIn('slow');
        $(this).remove();
        });
    });
    }
    setInterval('scroll_news()',2500);*/
/////////////////////////



