jQuery.noConflict();
jQuery(document).ready(function(){	
//headmenu
var order = 1;
var loc = document.location+"";

var menuTable = [
['action-category-catid-103',3],
['action-category-catid-97',3],
['action-category-catid-98',3],
['action-category-catid-99',3],
['action-category-catid-100',3],
['action-category-catid-101',3],
['action-category-catid-102',3],
['action-category-catid-107',7],
['action-category-catid-108',7],
['action-category-catid-109',7],
['action-category-catid-110',7],
['action-category-catid-111',7],
['action-category-catid-113',7],
['action-goods',6],
['uhome',2]
];

for(var i=0; i<menuTable.length; i++)
{
	if( loc.indexOf(menuTable[i][0]) != -1 )
	{
			order = menuTable[i][1];
			break;
	}
}

jQuery('.headerlink_'+order).addClass('current');

//headnavs						   
	jQuery(".nav > li").hover(function(){
		jQuery("div", this).fadeIn("slow");},function(){
		jQuery("div", this).fadeOut("fast");});
	
	jQuery(".nav>li>div>div>a").hover(function(){
		jQuery(this).parent().parent().siblings("a").addClass("upNav");},function(){
		jQuery(this).parent().parent().siblings("a").removeClass("upNav");});
//tabScript	
	jQuery(function () {
			var tabContainers = jQuery('div.tabs > div');
			tabContainers.hide().filter(':first').show();
			
			/*jQuery('div.tabs ul.tabNav1 a').click(function () {
				tabContainers.hide();
				tabContainers.filter(this.hash).show();
				jQuery('div.tabs ul.tabNav1 a').removeClass('selected');
				jQuery(this).addClass('selected');
				return false;
			}).filter(':first').click();*/
		});
		
		jQuery(function () {
			var tabContainers = jQuery('div.tabs2 > div');
			tabContainers.hide().filter(':first').show();
			
			jQuery('div.tabs2 ul.tabNav2 a').click(function () {
				tabContainers.hide();
				tabContainers.filter(this.hash).show();
				jQuery('div.tabs2 ul.tabNav2 a').removeClass('selected');
				jQuery(this).addClass('selected');
				return false;
			}).filter(':first').click();
		});
		
//scrollScript
(function($){
$.fn.extend({
        Scroll:function(opt,callback){
                if(!opt) var opt={};
                var _this=this.eq(0).find("ul:first");
                var        lineH=_this.find("li:first").height(), 
                        line=opt.line?parseInt(opt.line,10):parseInt(this.height()/lineH,2), 
                        speed=opt.speed?parseInt(opt.speed,10):500, 
                        timer=opt.timer?parseInt(opt.timer,10):3000; 
                if(line==0) line=1;
                var upHeight=0-line*lineH;
                scrollUp=function(){
                        _this.animate({
                                marginTop:upHeight
                        },speed,function(){
                                for(i=1;i<=line;i++){
                                        _this.find("li:first").appendTo(_this);
                                }
                                _this.css({marginTop:0});
                        });
                }
                _this.hover(function(){
                        clearInterval(timerID);
                },function(){
                        timerID=setInterval("scrollUp()",timer);
                }).mouseout();
        }        
})
})(jQuery);

jQuery(document).ready(function(){
        jQuery(".scrollDiv").Scroll({line:2,speed:500,timer:2000});
});

//Exp show
jQuery(document).ready(function(){
	jQuery(".inshow").hide();
	jQuery(".exshow").click(function(){
	jQuery(".sllori>ul").animate({height:"260"}, 600);
	jQuery(".inshow").show();
	jQuery(".exshow").hide();
	});
	
	jQuery(".inshow").click(function(){
	jQuery(".sllori>ul").animate({height:"104"}, 500);
	jQuery(".exshow").show();
	jQuery(".inshow").hide();
	});
});


});													

