/*
object_button_box	标题框
object_content_box	内容框
current_css 				当前样式
*/
(function($){
    switchContents = function(object_button_a_box,object_button_b_box,object_content_box,current_css){
        var objTop = object_button_a_box;
		var objLef  = object_button_b_box;
		var obj_left_postion;
		var obj_top_postion;
		this.switchs = function(){
			$(objLef + " li").mouseover(function(){
				$(this).siblings().removeClass(current_css);
				$(this).addClass(current_css);
				obj_left_postion=$(this).index()+$(objTop+">li").length;
				obj_top_postion=$(objTop+">li.thison").index();
				$(object_content_box+">li:eq("+obj_left_postion+")").siblings().removeClass(current_css);
				$(object_content_box+">li:eq("+obj_left_postion+")").addClass(current_css);
				$(object_content_box+">li:eq("+obj_left_postion+")").show().siblings().hide();
			});

			$(objTop + " li").mouseover(function(){
				$(this).siblings().removeClass(current_css);
				$(this).addClass(current_css);

				obj_left_postion=$(objLef+">li.thison").index();
				obj_top_postion=$(this).index();
				
				$(object_content_box+">li:eq("+obj_top_postion+")").siblings().removeClass(current_css);
				$(object_content_box+">li:eq("+obj_top_postion+")").addClass(current_css);
				$(object_content_box+">li:eq("+obj_top_postion+")").show().siblings().hide();	

            });
        }
	this.switchs();
    }
})(jQuery)

