
var actionList={panelArr:new Array(),beltWidth:0,beltHeight:0,beltPosition:0,beltJump:2,beltDirection:"right",beltTimer:undefined,setup:function(){if(jQuery("#mod_action_list > .belt > .panel").length>0&&actionList.panelArr.length==0){jQuery("#mod_action_list > .belt > .panel").each(function(a){jQuery(this).id="actionListPanel_"+actionList.panelArr.length;jQuery(this).fadeTo("fast",1);jQuery(this).bind("mouseover",function(b){jQuery("#mod_action_list > .belt > div > .panel").stop();jQuery(this).fadeTo("fast",1);jQuery("#mod_action_list > .belt > div > .panel").not(jQuery(this)).fadeTo("normal",0.4)});jQuery(this).bind("mouseout",function(b){jQuery("#mod_action_list > .belt > div > .panel").stop();jQuery("#mod_action_list > .belt > div > .panel").fadeTo("normal",1)});jQuery(this).bind("click",function(b){jQuery(this).stop();gotoDynamicURL(jQuery(this).attr("href")+"#"+jQuery(this).attr("prodid"))});actionList.panelArr[actionList.panelArr.length]="actionListPanel_"+actionList.panelArr.length;if(actionList.beltHeight<jQuery(this).outerHeight(true)){actionList.beltHeight=jQuery(this).outerHeight(true)}actionList.beltWidth+=jQuery(this).outerWidth(true)});jQuery("#mod_action_list > .belt").wrapInner("<div></div>");jQuery("#mod_action_list > .belt > div").height(actionList.beltHeight);jQuery("#mod_action_list > .belt > div").width(actionList.beltWidth)}if((actionList.beltWidth-jQuery("#mod_action_list > .belt").innerWidth())<=10){jQuery("#mod_action_list > .slider_container > #slider").slider("option","max",actionList.beltWidth-jQuery("#mod_action_list > .belt").innerWidth())}else{jQuery("#mod_action_list > .slider_container > #slider").slider("option","max",actionList.beltWidth-jQuery("#mod_action_list > .belt").innerWidth())}jQuery("#mod_action_list > .slider_container > #slider").slider("option","step",actionList.beltJump);jQuery("#mod_action_list > .slider_container > #slider").bind("slide",function(a,b){actionList.beltPosition=b.value;actionList.updatePosition()});jQuery("#mod_action_list > .arrow_left").bind("mouseover",function(){actionList.beltDirection="left";actionList.startInterval()});jQuery("#mod_action_list > .arrow_left").bind("mouseout",actionList.stopInterval);jQuery("#mod_action_list > .arrow_right").bind("mouseover",function(){actionList.beltDirection="right";actionList.startInterval()});jQuery("#mod_action_list > .arrow_right").bind("mouseout",actionList.stopInterval)},startInterval:function(){if(actionList.beltDirection=="left"){actionList.beltTimer=setInterval(actionList.scrollActionLeft,10)}else{actionList.beltTimer=setInterval(actionList.scrollActionRight,10)}},stopInterval:function(){if(actionList.beltTimer){clearInterval(actionList.beltTimer)}actionList.beltTimer=undefined;actionList.beltDirection="right"},scrollActionLeft:function(){if((actionList.beltPosition-actionList.beltJump)>0){actionList.beltPosition-=actionList.beltJump;actionList.updatePosition()}else{actionList.beltPosition=0;actionList.updatePosition();if(actionList.beltTimer){actionList.stopInterval()}}},scrollActionRight:function(){if((jQuery("#mod_action_list > .belt").innerWidth()+actionList.beltPosition+actionList.beltJump)<actionList.beltWidth){actionList.beltPosition+=actionList.beltJump;actionList.updatePosition()}else{actionList.beltPosition=actionList.beltWidth-jQuery("#mod_action_list > .belt").innerWidth();actionList.updatePosition();if(actionList.beltTimer){actionList.stopInterval()}}},updatePosition:function(){jQuery("#mod_action_list > .belt > div").css("margin-left",-actionList.beltPosition);jQuery("#mod_action_list > .slider_container > #slider").slider("value",actionList.beltPosition)}};jQuery(function(){jQuery("#mod_action_list > .slider_container > #slider").slider({range:false})});var mod_action_list_init=function(){actionList.setup()};
