$(function () {
	var ie = (function(){
		var undef, v = 3, div = document.createElement('div');
		while (
			div.innerHTML = '<!--[if gt IE '+(++v)+']><i></i><![endif]-->',
			div.getElementsByTagName('i')[0]
		);	
		return v> 4 ? v : undef;
	}());
	timer = setInterval(function(){move()}, 4000);		
	function move(){
		clearInterval(timer);　
		$('li').each(function(i){			
			var _this = $(this);
			$(this).animate({"left":"-=950px"}, 350, function(){
					var _left = _this .offset().left;	
					if (ie == 7){
						if (_left <= -2300){	
							_this .css({"left":"3325px"});
						}						
					}else{
						if (_left <= -1900){	
							_this .css({"left":"3800px"});
						}
					}
				if(i == 7){
					timer = setInterval(function(){move()}, 4000);
				}
			});
	});
	}
});

$(function() {
    var zIndexNumber = 1000;
    $('div').each(function() {
        $(this).css('zIndex', zIndexNumber);
        zIndexNumber -= 10;
    });
});
