$(document).ready(function(){
	//定义动画仿真自然运动
    jQuery.easing.def="easeOutCubic";
    
    $("#flash_ishift").colorbox({href:"flash_ishift.html"});
    $("#flash_ishootball").colorbox({href:"flash_ishootball.html"});
    $("#flash_itangram").colorbox({href:"flash_itangram.html"});

    $("a.show1").click(function(){
        $(this).addClass("activetab");
	$("a.show3, a.show2, a.show4, a.show5").removeClass("activetab");
	$(".wide").animate({
            marginLeft:"0px"
        },900);
	$("#navindicator").fadeOut("slow");
	return false
    	});

    $("a.show2").click(function(){
        $(this).addClass("activetab");
	$("a.show1, a.show3, a.show4, a.show5").removeClass("activetab");
	$(".wide").animate({
            marginLeft:"-880px"
        },1100);
	$("#navindicator").fadeOut("slow");
	return false
    }
    );$("a.show3").click(function(){
        $(this).addClass("activetab");
	$("a.show1, a.show2, a.show4, a.show5").removeClass("activetab");
	$(".wide").animate({
            marginLeft:"-1760px"
        }
        ,1100);
	$("#navindicator").fadeOut("slow");
	return false
    }
    );$("a.show4").click(function(){
        $(this).addClass("activetab");
	$("a.show1, a.show2, a.show3, a.show5").removeClass("activetab");
	$(".wide").animate({
            marginLeft:"-2640px"
        }
        ,1100);
	$("#navindicator").fadeOut("slow");
	return false
	}
    );$("a.show5").click(function(){
        $(this).addClass("activetab");
	$("a.show1, a.show2, a.show3, a.show4").removeClass("activetab");
	$(".wide").animate({
            marginLeft:"-3520px"
        }
        ,1100);
	$("#navindicator").fadeOut("slow");
	return false
    });
});
