$(document).ready(function () {
//	$('#i-mycart').hover(function() {
//        $('#mycart-list').stop().fadeTo(600, 1)
//    },
//    function() {
//        $('#mycart-list').stop().fadeTo(600, 0,function() {$('#mycart-list').css('display', 'none')})
//    });
//    $('#mycart-list').hover(function() {
//        $('#mycart-list').stop().fadeTo(600, 1)
//    },
//    function() {
//        $('#mycart-list').stop().fadeTo(600, 0,function() {$('#mycart-list').css('display', 'none')})
//    });
     	//$('input:text').attr("autocomplete", "off");
		$('.top_help').hover(function(){
			$('.top_help').addClass('top_help_hover');
	    },function(){
			$('.top_help').removeClass('top_help_hover');
		});
		
//	$('#MyQQ').scrollFollow({
//        speed: 700,
//        offset: 100
//    });
//    $('.right_qq_01').hover(function() {
//        qq_over()
//    },function() {
//        qq_out()
//    });
//    $('.right_qq_02').hover(function() {
//        qq_over()
//    }, function() {
//        qq_out()
//    });
//	$('#lianxiwomen').scrollFollow({
//        speed: 700,
//        offset: 312
//    });
//    
//	$('.lianxiwomen_01').hover(function() {
//        lianxiwomen_over()
//    },function() {
//        lianxiwomen_out()
//    });
//    $('.lianxiwomen_02').hover(function() {
//        lianxiwomen_over()
//    },function() {
//        lianxiwomen_out()
//    });
    shedingarea();
});
function setHomepage(url) {
        if (document.all) {
            document.body.style.behavior = 'url(#default#homepage)';
            document.body.setHomePage(url);
        } else if (window.sidebar) {
            if (window.netscape) {
                try {
                    netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
                } catch (e) {//火狐浏览器
                    alert("该操作被浏览器拒绝，如果想启用该功能，请在地址栏内输入 about:config, 然后将项 signed.applets.codebase_principal_support 值该为true");
                }
            }
            var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
            prefs.setCharPref('browser.startup.homepage', document.URL);
        }
    }
function shedingarea(){
        $('.tuan-area').hover(function () {
            $(this).find('.tuan-con').addClass('tuan-con-hover');
            $(this).find('.con-bg').show();
            
        }, function () {
            $(this).find('.tuan-con').removeClass('tuan-con-hover');
            $(this).find('.con-bg').hide();
        });
    }
	function qq_over() {
        $('#MyQQ').css('width','184px');
        $('.right_qq_02').stop().fadeTo(600, 1)
    }
function qq_out() {
     $('.right_qq_02').stop().fadeTo(600, 0, function() {
        $('#MyQQ').css('width','37px')
	})
}
function lianxiwomen_over() {
        $('#lianxiwomen').css('width','184px');
        $('.lianxiwomen_02').stop().fadeTo(600, 1)
    }
function lianxiwomen_out() {
     $('.lianxiwomen_02').stop().fadeTo(600, 0, function() {
        $('#lianxiwomen').css('width','37px')
	})
}
