			//pic_area显示起始位置
			//var IntClientW=document.body.clientWidth;
//			if(IntClientW<1025)IntClientW=1025;
//			var	IntPopMenuLeft=(IntClientW-1025)/2;
//			document.getElementById("pic_area").style.left=IntPopMenuLeft;
//			document.getElementById("pageindex").style.left=IntPopMenuLeft;

			var fa_speed = 800;
			var fa_i=0;
			var fa_wh = 981;
				
                function currentpage(j){	
				 	clearInterval(interval);
					for(var fa_a=0;fa_a<fa_len;fa_a++)
					{
						document.getElementById("img"+fa_a).src=StrHost+"/images/point.jpg";
					}
					if(fa_i==j)
					{	
						document.getElementById("img"+fa_i).src=StrHost+"/images/point_on.jpg";
						return false;
					}
					else
					{
						if (!$("#fa").is(":animated")) {
							fa_i=j;
							$("#fa").animate({"left": -(fa_wh * fa_i) + "px"}, fa_speed);
							
							document.getElementById("img"+fa_i).src=StrHost+"/images/point_on.jpg";
						}
					}
				}
            
                function roll(j){		

                    if (!$("#fa").is(":animated")) {
					
                        for(var fa_a=0;fa_a<fa_len;fa_a++)
						{
							document.getElementById("img"+fa_a).src=StrHost+"/images/point.jpg";
						}
						fa_i += j;
						if (fa_i != -1 && fa_i != fa_len) {
                            $("#fa").animate({"left": -(fa_wh * fa_i) + "px"}, fa_speed);
                        }
		    			else {
                            if (fa_i == -1) {
                                fa_i = fa_len - 1;
			                    $("#fa").animate({"left": -(fa_wh * fa_i) + "px"}, fa_speed);
                            }
                            else {
                                if (fa_i == fa_len) {
                                    fa_i = 0;
                                    $("#fa").animate({"left": 0 + "px"}, fa_speed);
                                }
							}
						}
						document.getElementById("img"+fa_i).src=StrHost+"/images/point_on.jpg";
					}
				
                }		

				$(document).ready(function(){
					$("#fa").css({
						"width": fa_wh * fa_len + "px"
					});
				
				document.getElementById("img0").src=StrHost+"/images/point_on.jpg";
			
				$("#prev").css("cursor","pointer");
				$("#next").css("cursor","pointer");
					
                $("#prev").mouseover(function(){
					clearInterval(interval);
					if (fa_len!=0 && fa_len!=1) {		
					  roll(-1);
					}
                })
				
                $("#prev").click(function(){
					clearInterval(interval);
					if (fa_len!=0 && fa_len!=1) {		 
                    	roll(-1);
					}
                })
				
                $("#next").mouseover(function(){
					clearInterval(interval);
					if (fa_len!=0 && fa_len!=1) {		 
                    	roll(1);
					}
                })
				
				$("#next").click(function(){
					clearInterval(interval);
					if (fa_len!=0 && fa_len!=1) {		 
                    	roll(1);
					}
                })
				$("#prev").mouseout(function(){
					justroll();
                })
			    $("#next").mouseout(function(){
					justroll();
                })
							
            })

			//自动滚动
			function justroll()
			{
			interval = setInterval('roll(1)', 20000);
			}
				
			justroll();

				
				
				
				
				
