// JavaScript Document

jQuery(function($){
		$( '#floatBox' ).scrollFollow();
		var mainH = $('#wrapper').height();
	});
	
	
(function($){
	$.fn.extend({
		boxShow:function(){
		var i=0;
		var idName=$(this);
		var length=idName.find(".show").length;
		idName.find(".show").eq(0).show();
		idName.find(".next").click(function(){
			i=++i
			if(i==length){i=0;}
			$(this).parents(idName).find(".show")
			.eq(i).stop(true,true).fadeIn(300)
			.siblings(".show").fadeOut(300);
		})
		idName.find(".prev").click(function(){
			if(i==0){return false}
			i=--i
			$(this).parents(idName).find(".show")
			.eq(i).stop(true,true).fadeIn(300)
			.siblings(".show").fadeOut(300);
		})
		}
	})
})(jQuery)	

$(document).ready(function(){
	$("#zjtd").boxShow()
	$("#mrsb").boxShow()
	$("#hot").boxShow()
  }) 	
