﻿/*弹出菜单*/
var popmenuobj = null;
function checkHover() {
	if (popmenuobj) {
		$(popmenuobj).fadeOut('fast');	
	} 
}
/*弹出菜单END*/
jQuery(document).ready(function(){
	
/*设置不透明度，解决关闭后不透明的问题*/
		$('.popmenu').css({'opacity':'0.85'});
		$('.popmenu').css({'-moz-opacity':'0.85'});
		$('.popmenu').css({'filter':'alpha(opacity=85)'});

	/*弹出菜单
	$('#openPopmenu').hover(function() {
		if (popmenuobj) {
			popmenuobj.find('.popmenu').fadeOut('fast');
			popmenuobj = null;
		}
		
		$(this).find('.popmenu').fadeIn('fast');
	}, function() {
		popmenuobj = $('.popmenu');
		setTimeout("checkHover()",400);
	});
弹出菜单END*/

/*滚动文字*/
$(".service").textSlider({ line: 1, speed: 200, timer: 5000 });
/*滚动文字END*/
/*滚动文字*/
$(".rollContent").textSlider({line:1,speed:500,timer:10000});
/*滚动文字END*/
/*首页旅游线路*/
$(".tour_line .content .rolltour_line").textSlider({ line: 1, speed: 0, timer: 5000 });
/*首页旅游线路END*/
});
function PopPageW(url, width, height) {
    today = new Date();

    window.open(url, 'popwindows' + today.getSeconds().toString(), 'width=' + width + ',height=' + height + ',status=yes,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,fullscreen=no');

}

//导航菜单鼠标状态
/*
$(".navmenu").ready(function () {
    $(".navmenu a img").hover(function () {
        img = $(this).attr("src").substring(0, $(this).attr("src").lastIndexOf('.')) + "_on.png";
        if (img == "_on.png")
            return;
        $(this).attr("src", img);
    }).mouseout(function () {
        img = $(this).attr("src").substring(0, $(this).attr("src").lastIndexOf('_on')) + ".png";
        if (img == ".png")
            return;
        $(this).attr("src", img);
    });
});
*/
