(function($){$.fn.superfish=function(op){var sf=$.fn.superfish,c=sf.c,$arrow=$(['<span class="',c.arrowClass,'"> &#187;</span>'].join("")),over=function(){var $$=$(this),menu=getMenu($$);clearTimeout(menu.sfTimer);$$.showSuperfishUl().siblings().hideSuperfishUl()},out=function(){var $$=$(this),menu=getMenu($$),o=sf.op;clearTimeout(menu.sfTimer);menu.sfTimer=setTimeout(function(){o.retainPath=($.inArray($$[0],o.$path)>-1);$$.hideSuperfishUl();if(o.$path.length&&$$.parents(["li.",o.hoverClass].join("")).length<1){over.call(o.$path)}},o.delay)},getMenu=function($menu){var menu=$menu.parents(["ul.",c.menuClass,":first"].join(""))[0];sf.op=sf.o[menu.serial];return menu},addArrow=function($a){$a.addClass(c.anchorClass).append($arrow.clone())};return this.each(function(){var s=this.serial=sf.o.length;var o=$.extend({},sf.defaults,op);o.$path=$("li."+o.pathClass,this).slice(0,o.pathLevels).each(function(){$(this).addClass([o.hoverClass,c.bcClass].join(" ")).filter("li:has(ul)").removeClass(o.pathClass)});sf.o[s]=sf.op=o;$("li:has(ul)",this)[($.fn.hoverIntent&&!o.disableHI)?"hoverIntent":"hover"](over,out).each(function(){if(o.autoArrows){addArrow($(">a:first-child",this))}}).not("."+c.bcClass).hideSuperfishUl();var $a=$("a",this);$a.each(function(i){var $li=$a.eq(i).parents("li");$a.eq(i).focus(function(){over.call($li)}).blur(function(){out.call($li)})});o.onInit.call(this)}).each(function(){menuClasses=[c.menuClass];if(sf.op.dropShadows&&!($.browser.msie&&$.browser.version<7)){menuClasses.push(c.shadowClass)}$(this).addClass(menuClasses.join(" "))})};var sf=$.fn.superfish;sf.o=[];sf.op={};sf.IE7fix=function(){var o=sf.op;if($.browser.msie&&$.browser.version>6&&o.dropShadows&&o.animation.opacity!=undefined){this.toggleClass(sf.c.shadowClass+"-off")}};sf.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};sf.defaults={hoverClass:"sfHover",pathClass:"active",pathLevels:0,delay:800,animation:{opacity:"show"},speed:"normal",autoArrows:false,dropShadows:false,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};$.fn.extend({hideSuperfishUl:function(){var o=sf.op,not=(o.retainPath===true)?o.$path:"";o.retainPath=false;var $ul=$(["li.",o.hoverClass].join(""),this).add(this).not(not).removeClass(o.hoverClass).find(">ul").hide().css("visibility","hidden");o.onHide.call($ul);return this},showSuperfishUl:function(){var o=sf.op,sh=sf.c.shadowClass+"-off",$ul=this.addClass(o.hoverClass).find(">ul:hidden").css("visibility","visible");sf.IE7fix.call($ul);o.onBeforeShow.call($ul);$ul.animate(o.animation,o.speed,function(){sf.IE7fix.call($ul);o.onShow.call($ul)});return this}})})(jQuery);(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev])}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev])};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode}catch(e){p=this}}if(p==this){return false}if($("#sidecolumn .sf-menu").length!=0){$(this).find("ul:first").eq(0).css("left",$(this).width()+"px")}else{if($(this).hasClass("level1")==true||$(this).hasClass("level0")==true){$(this).find("ul:first").css("top",$(this).height()+"px")}else{$(this).find("ul:first").eq(0).css("left",$(this).width()+"px")}}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t)}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob)},cfg.timeout)}}};return this.mouseover(handleHover).mouseout(handleHover)}})(jQuery);$(function(){$("ul.sf-menu").superfish({animation:{height:"show"},speed:"fast"})});(function($){$.fn.lightBox=function(settings){settings=jQuery.extend({overlayBgColor:"#000",overlayOpacity:0.8,fixedNavigation:false,imageLoading:"/images/lightbox-ico-loading.gif",imageBtnPrev:"/images/lightbox-btn-prev.gif",imageBtnNext:"/images/lightbox-btn-next.gif",imageBtnClose:"/images/lightbox-btn-close.gif",imageBlank:"/images/lightbox-blank.gif",containerBorderSize:10,containerResizeSpeed:400,txtImage:"Image",txtOf:"of",keyToClose:"c",keyToPrev:"p",keyToNext:"n",imageArray:[],activeImage:0},settings);var jQueryMatchedObj=this;function _initialize(){_start(this,jQueryMatchedObj);return false}function _start(objClicked,jQueryMatchedObj){$("embed, object, select").css({visibility:"hidden"});_set_interface();settings.imageArray.length=0;settings.activeImage=0;if(jQueryMatchedObj.length==1){settings.imageArray.push(new Array(objClicked.getAttribute("bigPicture"),objClicked.getAttribute("title")))}else{for(var i=0;i<jQueryMatchedObj.length;i++){settings.imageArray.push(new Array(jQueryMatchedObj[i].getAttribute("bigPicture"),jQueryMatchedObj[i].getAttribute("title")))}}while(settings.imageArray[settings.activeImage][0]!=objClicked.getAttribute("bigPicture")){settings.activeImage++}_set_image_to_view()}function _set_interface(){$("body").append('<div id="jquery-overlay"></div><div id="jquery-lightbox"><div id="lightbox-container-image-box"><div id="lightbox-container-image"><img id="lightbox-image"><div style="" id="lightbox-nav"><a href="#" id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" id="lightbox-loading-link"><img src="'+settings.imageLoading+'"></a></div></div></div><div id="lightbox-container-image-data-box"><div id="lightbox-container-image-data"><div id="lightbox-image-details"><span id="lightbox-image-details-caption"></span><span id="lightbox-image-details-currentNumber"></span></div><div id="lightbox-secNav"><a href="#" id="lightbox-secNav-btnClose"><img src="'+settings.imageBtnClose+'"></a></div></div></div></div>');var arrPageSizes=___getPageSize();$("#jquery-overlay").css({backgroundColor:settings.overlayBgColor,opacity:settings.overlayOpacity,width:arrPageSizes[0],height:arrPageSizes[1]}).fadeIn();var arrPageScroll=___getPageScroll();$("#jquery-lightbox").css({top:arrPageScroll[1]+(arrPageSizes[3]/10),left:arrPageScroll[0]}).show();$("#jquery-overlay,#jquery-lightbox").click(function(){_finish()});$("#lightbox-loading-link,#lightbox-secNav-btnClose").click(function(){_finish();return false});$(window).resize(function(){var arrPageSizes=___getPageSize();$("#jquery-overlay").css({width:arrPageSizes[0],height:arrPageSizes[1]});var arrPageScroll=___getPageScroll();$("#jquery-lightbox").css({top:arrPageScroll[1]+(arrPageSizes[3]/10),left:arrPageScroll[0]})})}function _set_image_to_view(){$("#lightbox-loading").show();if(settings.fixedNavigation){$("#lightbox-image,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide()}else{$("#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide()}var objImagePreloader=new Image();objImagePreloader.onload=function(){$("#lightbox-image").attr("src",settings.imageArray[settings.activeImage][0]);_resize_container_image_box(objImagePreloader.width,objImagePreloader.height);objImagePreloader.onload=function(){}};objImagePreloader.src=settings.imageArray[settings.activeImage][0]}function _resize_container_image_box(intImageWidth,intImageHeight){var intCurrentWidth=$("#lightbox-container-image-box").width();var intCurrentHeight=$("#lightbox-container-image-box").height();var intWidth=(intImageWidth+(settings.containerBorderSize*2));var intHeight=(intImageHeight+(settings.containerBorderSize*2));var intDiffW=intCurrentWidth-intWidth;var intDiffH=intCurrentHeight-intHeight;$("#lightbox-container-image-box").animate({width:intWidth,height:intHeight},settings.containerResizeSpeed,function(){_show_image()});if((intDiffW==0)&&(intDiffH==0)){if($.browser.msie){___pause(250)}else{___pause(100)}}$("#lightbox-container-image-data-box").css({width:intImageWidth});$("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({height:intImageHeight+(settings.containerBorderSize*2)})}function _show_image(){$("#lightbox-loading").hide();$("#lightbox-image").fadeIn(function(){_show_image_data();_set_navigation()});_preload_neighbor_images()}function _show_image_data(){$("#lightbox-container-image-data-box").slideDown("fast");$("#lightbox-image-details-caption").hide();if(settings.imageArray[settings.activeImage][1]){$("#lightbox-image-details-caption").html(settings.imageArray[settings.activeImage][1]).show()}if(settings.imageArray.length>1){$("#lightbox-image-details-currentNumber").html(settings.txtImage+" "+(settings.activeImage+1)+" "+settings.txtOf+" "+settings.imageArray.length).show()}}function _set_navigation(){$("#lightbox-nav").show();$("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({background:"transparent url("+settings.imageBlank+") no-repeat"});if(settings.activeImage!=0){if(settings.fixedNavigation){$("#lightbox-nav-btnPrev").css({background:"url("+settings.imageBtnPrev+") left 15% no-repeat"}).unbind().bind("click",function(){settings.activeImage=settings.activeImage-1;_set_image_to_view();return false})}else{$("#lightbox-nav-btnPrev").unbind().hover(function(){$(this).css({background:"url("+settings.imageBtnPrev+") left 15% no-repeat"})},function(){$(this).css({background:"transparent url("+settings.imageBlank+") no-repeat"})}).show().bind("click",function(){settings.activeImage=settings.activeImage-1;_set_image_to_view();return false})}}if(settings.activeImage!=(settings.imageArray.length-1)){if(settings.fixedNavigation){$("#lightbox-nav-btnNext").css({background:"url("+settings.imageBtnNext+") right 15% no-repeat"}).unbind().bind("click",function(){settings.activeImage=settings.activeImage+1;_set_image_to_view();return false})}else{$("#lightbox-nav-btnNext").unbind().hover(function(){$(this).css({background:"url("+settings.imageBtnNext+") right 15% no-repeat"})},function(){$(this).css({background:"transparent url("+settings.imageBlank+") no-repeat"})}).show().bind("click",function(){settings.activeImage=settings.activeImage+1;_set_image_to_view();return false})}}_enable_keyboard_navigation()}function _enable_keyboard_navigation(){$(document).keydown(function(objEvent){_keyboard_action(objEvent)})}function _disable_keyboard_navigation(){$(document).unbind()}function _keyboard_action(objEvent){if(objEvent==null){keycode=event.keyCode;escapeKey=27}else{keycode=objEvent.keyCode;escapeKey=objEvent.DOM_VK_ESCAPE}key=String.fromCharCode(keycode).toLowerCase();if((key==settings.keyToClose)||(key=="x")||(keycode==escapeKey)){_finish()}if((key==settings.keyToPrev)||(keycode==37)){if(settings.activeImage!=0){settings.activeImage=settings.activeImage-1;_set_image_to_view();_disable_keyboard_navigation()}}if((key==settings.keyToNext)||(keycode==39)){if(settings.activeImage!=(settings.imageArray.length-1)){settings.activeImage=settings.activeImage+1;_set_image_to_view();_disable_keyboard_navigation()}}}function _preload_neighbor_images(){if((settings.imageArray.length-1)>settings.activeImage){objNext=new Image();objNext.src=settings.imageArray[settings.activeImage+1][0]}if(settings.activeImage>0){objPrev=new Image();objPrev.src=settings.imageArray[settings.activeImage-1][0]}}function _finish(){$("#jquery-lightbox").remove();$("#jquery-overlay").fadeOut(function(){$("#jquery-overlay").remove()});$("embed, object, select").css({visibility:"visible"})}function ___getPageSize(){var xScroll,yScroll;if(window.innerHeight&&window.scrollMaxY){xScroll=window.innerWidth+window.scrollMaxX;yScroll=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight}else{xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight}}var windowWidth,windowHeight;if(self.innerHeight){if(document.documentElement.clientWidth){windowWidth=document.documentElement.clientWidth}else{windowWidth=self.innerWidth}windowHeight=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight}else{if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight}}}if(yScroll<windowHeight){pageHeight=windowHeight}else{pageHeight=yScroll}if(xScroll<windowWidth){pageWidth=xScroll}else{pageWidth=windowWidth}arrayPageSize=new Array(pageWidth,pageHeight,windowWidth,windowHeight);return arrayPageSize}function ___getPageScroll(){var xScroll,yScroll;if(self.pageYOffset){yScroll=self.pageYOffset;xScroll=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){yScroll=document.documentElement.scrollTop;xScroll=document.documentElement.scrollLeft}else{if(document.body){yScroll=document.body.scrollTop;xScroll=document.body.scrollLeft}}}arrayPageScroll=new Array(xScroll,yScroll);return arrayPageScroll}function ___pause(ms){var date=new Date();curDate=null;do{var curDate=new Date()}while(curDate-date<ms)}return this.unbind("click").click(_initialize)}})(jQuery);(function($){var methods={init:function(callback){var data={callback:callback||$.noop};this.bind("keypress.inputDigits",data,methods._keypress);this.bind("change.inputDigits",data,methods._change);if($.browser.webkit){this.bind("keyup.inputDigits",data,methods._keyup)}return this},_callback:function(el,data,reformat){setTimeout(function(){var value=$(el).val();if(reformat||(value&&value.match(/\D/g))){var clean=value.replace(/\D/g,"");$(el).val(clean||"1")}data.callback(el)},1)},_keyup:function(e){if(e.which==8){methods._callback(this,e.data)}},_keypress:function(e){if(e.which!=0&&e.which!=8&&e.which!=13&&String.fromCharCode(e.which).match(/\D/g)){return false}methods._callback(this,e.data);return true},_change:function(e){methods._callback(this,e.data,true)},destroy:function(){return this.unbind(".inputDigits")}};$.fn.inputDigits=function(method){if(methods[method]){return methods[method].apply(this,Array.prototype.slice.call(arguments,1))}else{if(!method||$.isFunction(method)){return methods.init.apply(this,arguments)}else{$.error("Method "+method+" does not exist on jQuery.inputDigits")}}}})(jQuery);(function($,e,b){var c="hashchange",h=document,f,g=$.event.special,i=h.documentMode,d="on"+c in e&&(i===b||i>7);function a(j){j=j||location.href;return"#"+j.replace(/^[^#]*#?(.*)$/,"$1")}$.fn[c]=function(j){return j?this.bind(c,j):this.trigger(c)};$.fn[c].delay=50;g[c]=$.extend(g[c],{setup:function(){if(d){return false}$(f.start)},teardown:function(){if(d){return false}$(f.stop)}});f=(function(){var j={},p,m=a(),k=function(q){return q},l=k,o=k;j.start=function(){p||n()};j.stop=function(){p&&clearTimeout(p);p=b};function n(){var r=a(),q=o(m);if(r!==m){l(m=r,q);$(e).trigger(c)}else{if(q!==m){location.href=location.href.replace(/#.*/,"")+q}}p=setTimeout(n,$.fn[c].delay)}$.browser.msie&&!d&&(function(){var q,r;j.start=function(){if(!q){r=$.fn[c].src;r=r&&r+a();q=$('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){r||l(a());n()}).attr("src",r||"javascript:0").insertAfter("body")[0].contentWindow;h.onpropertychange=function(){try{if(event.propertyName==="title"){q.document.title=h.title}}catch(s){}}}};j.stop=k;o=function(){return a(q.location.href)};l=function(v,s){var u=q.document,t=$.fn[c].domain;if(v!==s){u.title=h.title;u.open();t&&u.write('<script>document.domain="'+t+'"</script>');u.close();q.location.hash=v}}})();return j})()})(jQuery,this);Function.prototype.inheritsFrom=function(parent){var F=function(){};F.prototype=parent.prototype;this.prototype=new F();this.prototype.constructor=this;this.parent=parent.prototype};window.Redham=window.Redham||{};Redham.Forms=Redham.Forms||{};Redham.Forms.Events=Redham.Forms.Events||{};$.extend(Redham,{currency:{symbol:"$"}});$.extend(Redham.Forms,{parseMoney:function(text){text=$.trim(text).replace(/^\D*(\d+.*)$/g,"$1");var amount=parseFloat(text);return isNaN(amount)?0:amount},formatMoney:function(amount,symbol){function format(n,c,d,t){var c=isNaN(c=Math.abs(c))?2:c,d=d==undefined?",":d,t=t==undefined?".":t,s=n<0?"-":"",i=parseInt(n=Math.abs(+n||0).toFixed(c))+"",j=(j=i.length)>3?j%3:0;return s+(j?i.substr(0,j)+t:"")+i.substr(j).replace(/(\d{3})(?=\d)/g,"$1"+t)+(c?d+Math.abs(n-i).toFixed(c).slice(2):"")}return(symbol?Redham.currency.symbol:"")+format(amount,2,".","")}});$.extend(Redham.Forms.Events,{amountChanged:"amountChanged.RedhamForms"});(function(){var Form=Redham.Forms.$form=function(element){this.element=element;this.controls=[];var form=this;this.element.find(".field").each(function(){var control=form.createControl($(this));control&&form.controls.push(control)});$.each(this.controls,function(){this.init()})};$.extend(Form.prototype,{createControl:function(element){for(var prop in Redham.Forms){if(prop.charAt(0)=="$"&&Redham.Forms[prop].prototype instanceof Redham.Forms.$control&&Redham.Forms[prop].create){var c=Redham.Forms[prop].create(element,this);if(c){return c}}}},render:function(){$.each(this.controls,function(){this.render()})}});$(function(){$("form.fb-form").each(function(){new Form($(this)).render()})})})();(function(){var Control=Redham.Forms.$control=function(element,form){this.element=element;this.form=form;this.name=this.element.attr("controlname")};$.extend(Control.prototype,{init:function(){},render:function(){}})})();(function(){var ButtonList=Redham.Forms.$buttonList=function(element,form){ButtonList.parent.constructor.call(this,element,form)};ButtonList.inheritsFrom(Redham.Forms.$control);$.extend(ButtonList.prototype,{render:function(){ButtonList.parent.render.call(this);var control=this;this.element.find(".control label").each(function(){var $item=$(this);control.render_quantity($item)})},item_number:function($item){return $item.find("input").attr("value")},render_quantity:function($item){if($item.is(":has(input:checked)")&&$item.attr("quantity")){if(!$item.is(":has(.quantity)")){var number=this.item_number($item);var quantity='<span class="quantity">Qty. <input name="'+this.name+"_"+number+'.quantity" value="1" /></span>';$item.find("br").before(quantity);var control=this;$item.find(".quantity input").inputDigits(function(){control.amountChanged()}).click(function(){return false})}}else{$item.find(".quantity").remove()}},computeAmount:function(){var total=[];this.element.find(".control label:has(input:checked)").each(function(){var $item=$(this),price=Redham.Forms.parseMoney($item.attr("price")),quantityText=$item.find(".quantity input").val()||"",quantity=parseInt(quantityText.replace(/D/g,""),10)||1,title=$item.find(".title").text();total.push({title:title+(quantity>1?(" x"+quantity):""),amount:price*quantity})});return total},amountChanged:function(){this.element.trigger(Redham.Forms.Events.amountChanged)},hidePrice:function(){this.element.addClass("hidePrice")}})})();(function(){var RadioButtonList=Redham.Forms.$radioButtonList=function(element,form){RadioButtonList.parent.constructor.call(this,element,form);var control=this;element.find(".control label input:radio").change(function(e){return control.onItemChanged(this,e)})};RadioButtonList.inheritsFrom(Redham.Forms.$buttonList);$.extend(RadioButtonList,{create:function(element,form){if(!element.is(".radioButtonList-money")){return}return new RadioButtonList(element,form)}});$.extend(RadioButtonList.prototype,{onItemChanged:function(el,ev){this.render();this.amountChanged()}})})();(function(){var CheckBoxList=Redham.Forms.$checkBoxList=function(element,form){CheckBoxList.parent.constructor.call(this,element,form);var control=this;element.find(".control label input:checkbox").change(function(e){return control.onItemChanged(this,e)})};CheckBoxList.inheritsFrom(Redham.Forms.$buttonList);$.extend(CheckBoxList,{create:function(element,form){if(!element.is(".checkBoxList-money")){return}return new CheckBoxList(element,form)}});$.extend(CheckBoxList.prototype,{onItemChanged:function(el,ev){this.render_quantity($(el).closest("label"));this.amountChanged()}})})();(function(){var DropDownList=Redham.Forms.$dropDownList=function(element,form){DropDownList.parent.constructor.call(this,element,form);var control=this;element.find(".control select").change(function(e){return control.onItemChanged(this,e)})};DropDownList.inheritsFrom(Redham.Forms.$control);$.extend(DropDownList,{create:function(element,form){if(!element.is(".dropDownList-money")){return}return new DropDownList(element,form)}});$.extend(DropDownList.prototype,{onItemChanged:function(el,ev){this.render();this.amountChanged()},render:function(){DropDownList.parent.render.call(this);var $control=this.element.find(".control"),$item=$control.find("select option:selected"),number=this.item_number($item);$control.find(".price, .quantity").remove();if(number==0){return}var price=Redham.Forms.parseMoney($item.attr("price"));if(price>0){var html='<span class="price">'+Redham.Forms.formatMoney(price,true)+"</span>";$control.append(html)}var quantity=$item.attr("quantity")=="quantity";if(quantity){var html='<span class="quantity">Qty. <input name="'+this.name+"_"+number+'.quantity" value="1" /></span>';$control.append(html);var control=this;$control.find(".quantity input").inputDigits(function(){control.amountChanged()})}},amountChanged:function(){this.element.trigger(Redham.Forms.Events.amountChanged)},item_number:function($item){return $item.val()},computeAmount:function(){var $control=this.element.find(".control"),$item=$control.find("select option:selected");if(this.item_number($item)==0){return[]}var price=Redham.Forms.parseMoney($item.attr("price"));var quantityText=$control.find(".quantity input").val()||"",quantity=parseInt(quantityText.replace(/D/g,""),10)||1,title=$item.text();return[{title:title,amount:price*quantity}]},hidePrice:function(){this.element.addClass("hidePrice")}})})();var headerPictureIntervalID;$(function(){$("#selector a").click(function(e){var clicked=$(this);var index=clicked.parent().index();$("#selector a").removeClass("active");clicked.addClass("active");$("#photo-area").css("background-position","0 "+(-229*index)+"px");e.preventDefault();initSlideshow()});initSlideshow()});function initSlideshow(){if(headerPictureIntervalID){clearInterval(headerPictureIntervalID)}headerPictureIntervalID=setInterval(imitateClick,5000)}function imitateClick(){var current=$("#selector a.active");var currentIndex=current.parent().index();var nextIndex=(currentIndex+1)%3;$("#selector a").eq(nextIndex).click()};
