$(".scroller").jScrollHorizontalPane(
									 {scrollbarHeight:21,
									 scrollbarMargin:0,
									 wheelSpeed:0,
									 showArrows:true,
									 arrowSize:36,
									 animateTo:true,
									 dragMinWidth:120,
									 dragMaxWidth:99999,
									 animateInterval:100,
									 animateStep:3,
									 maintainPosition:true,
									 resize:true,
									 minimumWidth:200,
									 reset:false
									 }
									 );
$(".scroller").listen("click","a",function(a){
										   a.preventDefault();
										   a.stopPropagation();
										   krop.portfolio.select(-1,this)
										   }
										   );
$(".large_view img").click(function(b){
									var a=$(this).parents(".inner").find("li.selected");
									if(a.length==0){
										return
										}
										$nextImages=a.next("li").children("a");
										if($nextImages.length==0){
											next=$(this).parents(".section").next(".section").find(".imagelist a")[0]
										}
										else
										{
											next=$nextImages[0]
											}
											if(!(next==undefined)){
												if($(next).parents("li").hasClass("selected"))
												{
													var c=$(next).parents("div.section").offset().top;
													$("html,body").animate({scrollTop:c},250)
													}
													else
													{
														krop.portfolio.select(-1,next)
														}
														}
														}
														);
$("#featureds").listen("click","a",function(d)
											{
												d.preventDefault();d.stopPropagation();
												var c=$(this).attr("id").split("_")[2];
												var b=$(".image_"+c)[0];
												var a=$(b).parents("a")[0];
												if(!$(b).parents("li").hasClass("selected"))
												{
													krop.portfolio.select(-1,a)
													}
													else
													{
														var f=$(b).parents("div.section").offset().top;
														$("html,body").animate(
																			   {scrollTop:f},250)
														}
														}
														);
$(".open_first_image li:first-child a").each(krop.portfolio.select);