// 

$(function(){$('.proList .img').each(function(index){var img_w=$(this).width();var img_h=$(this).find('img').height();var spanHtml='<span style="position: absolute; top:0px; left:0px; width:'+img_w+'px; height: '+img_h+'px; cursor: pointer;" class="imageMask" title="点击查看详情"></span>';$(spanHtml).hover(function(){$(this).addClass('imageOver');},function(){$(this).removeClass('imageOver');}).appendTo($(this).find('a'));$(this).find('img').load(function(){var img_w=$(this).parent().parent().width();var img_h=$(this).height();var $span=$(this).parent().find("span");var $style='position: absolute; top: 0px; left:0px; width:'+img_w+'px; height: '+img_h+'px; cursor: pointer;';$span.attr("style",$style);});});})
$(function(){var page=1;var i=4;var len=$('.prolist_content > ul > li').length;var page_count=Math.ceil(len/i);$('.prolist_content').css('width',len*167);var display_width=668;var $prolist=$('.prolist_content');$('.goRight').click(function(){if(!$prolist.is(':animated')){if(page==page_count){page=1;$('.prolist_content').animate({left:'0px'},1000);}
else{page++;$('.prolist_content').animate({left:"-="+display_width+'px'},1000);}}});$('.goLeft').click(function(){if(!$prolist.is(':animated')){if(page==1){page=page_count;$('.prolist_content').animate({left:'-'+(page_count-1)*display_width+'px'},1000);}
else{page--;$('.prolist_content').animate({left:"+="+display_width+'px'},1000);}}});})