function do_sIFR(a){sIFR.replaceElement(named({sSelector:"h2",sFlashSrc:a+"flash/FSsophie.swf",sColor:"#ffffff",sLinkColor:"#919191",sBgColor:"#000000",sHoverColor:"#e9eae4",nPaddingTop:0,nPaddingBottom:0,sFlashVars:"textalign=left&offsetTop=2"})),sIFR.replaceElement(named({sSelector:".AddComments legend, #support_form label, legend.sifr",sFlashSrc:a+"flash/FSsophie.swf",sColor:"#ffffff",sLinkColor:"#919191",sWmode:"transparent",sHoverColor:"#e9eae4",sHoverBackground:"#555",nPaddingTop:5,nPaddingBottom:5,sFlashVars:"textalign=left&offsetTop=0"})),sIFR.replaceElement(named({sSelector:"span.sifr",sFlashSrc:a+"flash/FSsophie.swf",sColor:"#ffffff",sLinkColor:"#919191",sWmode:"transparent",sHoverColor:"#fff",sHoverBackground:"#a31a22",nPaddingTop:5,nPaddingBottom:5,sFlashVars:"textalign=left&offsetTop=0"}))}function selectReplacement(a){a.className+=" replaced";var b=document.createElement("ul");b.className="selectReplacement rounded";var c=a.options;for(var d=0;d<c.length;d++){var e;if(c[d].selected){e=d;break}e=0}for(var d=0;d<c.length;d++){var f=document.createElement("li"),g=document.createTextNode(c[d].text);f.appendChild(g),f.selIndex=c[d].index,f.selectID=a.id,f.onclick=function(){selectMe(this)},d==e&&(f.className="selected",f.onclick=function(){this.parentNode.className+=" selectOpen",this.onclick=function(){selectMe(this)}}),window.attachEvent&&(f.onmouseover=function(){this.className+=" hover"},f.onmouseout=function(){this.className=this.className.replace(new RegExp(" hover\\b"),"")}),b.appendChild(f)}a.parentNode.appendChild(b)}function selectMe(a){var b=a.parentNode.getElementsByTagName("li");for(var c=0;c<b.length;c++)b[c]!=a?(b[c].className="",b[c].onclick=function(){selectMe(this)}):(setVal(a.selectID,a.selIndex),a.className="selected",a.parentNode.className=a.parentNode.className.replace(new RegExp(" selectOpen\\b"),""),a.onclick=function(){a.parentNode.className+=" selectOpen",this.onclick=function(){selectMe(this)}})}function setVal(a,b){var c=document.getElementById(a);c.selectedIndex=b}function setForm(){var a=document.getElementsByTagName("select");for(var b=0;b<a.length;b++)selectReplacement(a[b])}function closeSel(a){}function forwarding(a){window.location="/products/category/"+a}function equalHeight(a){tallest=0,a.each(function(){thisHeight=jQuery(this).height(),thisHeight>tallest&&(tallest=thisHeight)}),a.height(tallest)}(function(a){a.fn.equalHeights=function(b,c){return tallest=b?b:0,this.each(function(){a(this).height()>tallest&&(tallest=a(this).height())}),c&&tallest>c&&(tallest=c),this.each(function(){a(this).height(tallest).css("overflow","auto")})}})(jQuery),function(a){function b(b){var c;return b&&b.constructor==Array&&b.length==3?b:(c=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(b))?[parseInt(c[1]),parseInt(c[2]),parseInt(c[3])]:(c=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(b))?[parseFloat(c[1])*2.55,parseFloat(c[2])*2.55,parseFloat(c[3])*2.55]:(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(b))?[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)]:(c=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(b))?[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)]:d[a.trim(b).toLowerCase()]}function c(c,d){var e;do{e=a.curCSS(c,d);if(e!=""&&e!="transparent"||a.nodeName(c,"body"))break;d="backgroundColor"}while(c=c.parentNode);return b(e)}a.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(d,e){a.fx.step[e]=function(a){a.state==0&&(a.start=c(a.elem,e),a.end=b(a.end)),a.elem.style[e]="rgb("+[Math.max(Math.min(parseInt(a.pos*(a.end[0]-a.start[0])+a.start[0]),255),0),Math.max(Math.min(parseInt(a.pos*(a.end[1]-a.start[1])+a.start[1]),255),0),Math.max(Math.min(parseInt(a.pos*(a.end[2]-a.start[2])+a.start[2]),255),0)].join(",")+")"}});var d={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}}(jQuery),function(a){function c(a){return typeof a=="object"?a:{top:a,left:a}}var b=a.scrollTo=function(b,c,e){a(window).scrollTo(b,c,e)};b.defaults={axis:"xy",duration:parseFloat(a.fn.jquery)>=1.3?0:1},b.window=function(b){return a(window)._scrollable()},a.fn._scrollable=function(){return this.map(function(){var b=this,c=!b.nodeName||a.inArray(b.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!c)return b;var e=(b.contentWindow||b).document||b.ownerDocument||b;return a.browser.safari||e.compatMode=="BackCompat"?e.body:e.documentElement})},a.fn.scrollTo=function(e,f,g){return typeof f=="object"&&(g=f,f=0),typeof g=="function"&&(g={onAfter:g}),e=="max"&&(e=9e9),g=a.extend({},b.defaults,g),f=f||g.speed||g.duration,g.queue=g.queue&&g.axis.length>1,g.queue&&(f/=2),g.offset=c(g.offset),g.over=c(g.over),this._scrollable().each(function(){function r(a){i.animate(o,f,g.easing,a&&function(){a.call(this,e,g)})}var h=this,i=a(h),l=e,m,o={},q=i.is("html,body");switch(typeof l){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(l)){l=c(l);break}l=a(l,this);case"object":if(l.is||l.style)m=(l=a(l)).offset()}a.each(g.axis.split(""),function(a,c){var d=c=="x"?"Left":"Top",e=d.toLowerCase(),f="scroll"+d,j=h[f],n=b.max(h,c);if(m)o[f]=m[e]+(q?0:j-i.offset()[e]),g.margin&&(o[f]-=parseInt(l.css("margin"+d))||0,o[f]-=parseInt(l.css("border"+d+"Width"))||0),o[f]+=g.offset[e]||0,g.over[e]&&(o[f]+=l[c=="x"?"width":"height"]()*g.over[e]);else{var p=l[e];o[f]=p.slice&&p.slice(-1)=="%"?parseFloat(p)/100*n:p}/^\d+$/.test(o[f])&&(o[f]=o[f]<=0?0:Math.min(o[f],n)),!a&&g.queue&&(j!=o[f]&&r(g.onAfterFirst),delete o[f])}),r(g.onAfter)}).end()},b.max=function(b,c){var e=c=="x"?"Width":"Height",f="scroll"+e;if(!a(b).is("html,body"))return b[f]-a(b)[e.toLowerCase()]();var g="client"+e,h=b.ownerDocument.documentElement,i=b.ownerDocument.body;return Math.max(h[f],i[f])-Math.min(h[g],i[g])}}(jQuery),function(a){a.extend(a.fn,{livequery:function(b,c,d){var e=this,f;return a.isFunction(b)&&(d=c,c=b,b=undefined),a.each(a.livequery.queries,function(a,g){if(e.selector==g.selector&&e.context==g.context&&b==g.type&&(!c||c.$lqguid==g.fn.$lqguid)&&(!d||d.$lqguid==g.fn2.$lqguid))return(f=g)&&!1}),f=f||new a.livequery(this.selector,this.context,b,c,d),f.stopped=!1,f.run(),this},expire:function(b,c,d){var e=this;return a.isFunction(b)&&(d=c,c=b,b=undefined),a.each(a.livequery.queries,function(f,g){e.selector==g.selector&&e.context==g.context&&(!b||b==g.type)&&(!c||c.$lqguid==g.fn.$lqguid)&&(!d||d.$lqguid==g.fn2.$lqguid)&&!this.stopped&&a.livequery.stop(g.id)}),this}}),a.livequery=function(b,c,d,e,f){return this.selector=b,this.context=c,this.type=d,this.fn=e,this.fn2=f,this.elements=[],this.stopped=!1,this.id=a.livequery.queries.push(this)-1,e.$lqguid=e.$lqguid||a.livequery.guid++,f&&(f.$lqguid=f.$lqguid||a.livequery.guid++),this},a.livequery.prototype={stop:function(){var a=this;this.type?this.elements.unbind(this.type,this.fn):this.fn2&&this.elements.each(function(b,c){a.fn2.apply(c)}),this.elements=[],this.stopped=!0},run:function(){if(this.stopped)return;var b=this,c=this.elements,d=a(this.selector,this.context),e=d.not(c);this.elements=d,this.type?(e.bind(this.type,this.fn),c.length>0&&a.each(c,function(c,e){a.inArray(e,d)<0&&a.event.remove(e,b.type,b.fn)})):(e.each(function(){b.fn.apply(this)}),this.fn2&&c.length>0&&a.each(c,function(c,e){a.inArray(e,d)<0&&b.fn2.apply(e)}))}},a.extend(a.livequery,{guid:0,queries:[],queue:[],running:!1,timeout:null,checkQueue:function(){if(a.livequery.running&&a.livequery.queue.length){var b=a.livequery.queue.length;while(b--)a.livequery.queries[a.livequery.queue.shift()].run()}},pause:function(){a.livequery.running=!1},play:function(){a.livequery.running=!0,a.livequery.run()},registerPlugin:function(){a.each(arguments,function(b,c){if(!a.fn[c])return;var d=a.fn[c];a.fn[c]=function(){var b=d.apply(this,arguments);return a.livequery.run(),b}})},run:function(b){b!=undefined?a.inArray(b,a.livequery.queue)<0&&a.livequery.queue.push(b):a.each(a.livequery.queries,function(b){a.inArray(b,a.livequery.queue)<0&&a.livequery.queue.push(b)}),a.livequery.timeout&&clearTimeout(a.livequery.timeout),a.livequery.timeout=setTimeout(a.livequery.checkQueue,650)},stop:function(b){b!=undefined?a.livequery.queries[b].stop():a.each(a.livequery.queries,function(b){a.livequery.queries[b].stop()})}}),a.livequery.registerPlugin("append","prepend","after","before","wrap","attr","removeAttr","addClass","removeClass","toggleClass","empty","remove"),a(function(){a.livequery.play()})}(jQuery),jQuery.noConflict();var Carousel={json:null,currentItem:0,animating:!1,paused:!1,globalHolder:"jQuery('#flash')",holder:"jQuery('#flashinner ul')",init:function(a){this.json=a,this.build(this.json),this.events(),jQuery("#close").fadeIn();var b=window.setInterval("Carousel.autoplay()",3300)},build:function(b){items=this.json;var c=0,d="<ul>";for(var e=0;e<items.length;e++)d=d+'<li><a href="products/'+items[e].url_title+'"><img class="prodimage" src="/uploads/images/home/'+items[e].image.split(":")[0]+'" alt="'+items[e].title+'" /></a><h3>'+items[e].title+'</h3><p class="blurb rounded">'+items[e].home_blurb+'</p><p class="price">'+items[e].price+'</p><p class="see_more ir"><a href="products/'+items[e].url_title+'">See this product<span></span></a></li>';d+="</ul>",jQuery("#flashinner").html(d),jQuery("#flash").append('<div class="pagination"></div>');for(a=1;a<products.length+1;a++)a===1?jQuery(".pagination").append('<a href="#" class="active rounded" id="product'+a+'"">'+a+"</a>"):jQuery(".pagination").append('<a href="#"  class="rounded" id="product'+a+'"">'+a+"</a>")},next:function(){Carousel.updateStatus(),jQuery("#flashinner ul").animate({left:"-=950px"},{duration:1e3,specialEasing:{width:"linear",height:"easeOutBounce"},complete:function(){Carousel.updateStatus()}}),Carousel.currentItem++},prev:function(){Carousel.updateStatus(),jQuery("#flashinner ul").animate({left:"+=950px"},{duration:1e3,specialEasing:{width:"linear",height:"easeOutBounce"},complete:function(){Carousel.updateStatus()}}),Carousel.currentItem--},reset:function(){Carousel.updateStatus(),jQuery("#flashinner ul").animate({left:"0"},{duration:1e3,specialEasing:{width:"linear",height:"easeOutBounce"},complete:function(){Carousel.updateStatus()}}),Carousel.currentItem=0},show:function(a){Carousel.updateStatus(),placement="-"+950*a,jQuery("#flashinner ul").animate({left:placement+"px"},{duration:1e3,specialEasing:{width:"linear",height:"easeOutBounce"},complete:function(){Carousel.updateStatus()}}),Carousel.currentItem=a,Carousel.updateNav(a+1)},autoplay:function(){!Carousel.animating&&!Carousel.paused&&(Carousel.updateNav(),Carousel.currentItem<products.length-1?Carousel.next():Carousel.reset(),Carousel.updateNav(Carousel.currentItem+1))},events:function(){jQuery(".pagination a").bind("click",function(){var a=parseFloat(jQuery(this).html())-1;return Carousel.show(a),!1}),jQuery("#close").live("click",function(){return jQuery("#close").fadeOut(),jQuery("#flashinner").slideUp("1000",function(){jQuery("#open").fadeIn()}),!1}),jQuery("#open").live("click",function(){return jQuery("#close").fadeIn(),jQuery("#flashinner").slideDown("1000",function(){jQuery("#open").fadeOut()}),!1}),jQuery("#flash").hover(function(){Carousel.paused=!0,jQuery(".loading").html("Paused").fadeIn("fast")},function(){Carousel.paused=!1,jQuery(".loading").fadeOut("fast",function(){jQuery(this).html("loading")})})},updateStatus:function(){Carousel.animating=!Carousel.animating,Carousel.animating?jQuery(".loading").fadeIn("fast"):jQuery(".loading").fadeOut("fast")},updateNav:function(a){jQuery(".pagination a.rounded").removeClass("active"),jQuery("a#product"+a).addClass("active")}};jQuery(window).load(function(){setForm(),jQuery("#category_search").removeClass("open"),jQuery("#showfiler").fadeIn(),jQuery("#category_search").css({right:"-250px",position:"absolute"}),equalHeight(jQuery("#products #left .item")),jQuery("h1").fadeIn("slow"),jQuery("#phonedetails").click(function(){return jQuery("#contactdetails").toggle("slow"),!1}),jQuery("#showfiler, #hidefiler, flashinner").show(),jQuery(".scroll").click(function(){return jQuery(window).scrollTo(jQuery(this).attr("href"),1e3),!1}),jQuery("#showfiler").click(function(){return jQuery("#showfiler").fadeOut(),jQuery("#category_search").animate({right:"0"},1e3,function(){jQuery("#category_search").addClass("open")}),!1}),jQuery("#hidefiler").click(function(){jQuery("#category_search").animate({right:"-250px"},1e3,function(){jQuery("#category_search").removeClass("open"),jQuery("#showfiler").fadeIn()})}),jQuery("input[type=text]").focus(function(){var a=jQuery(this).val();jQuery(this).val(""),jQuery("input").blur(function(){var b=jQuery(this).val();b==""&&jQuery(this).val(a)})}),jQuery(".tab").click(function(){var a="#"+jQuery(this).attr("id")+"_table";return jQuery(".accordion").slideUp("slow",function(){jQuery(a).delay(500).slideDown("slow")}),!1}),jQuery(function(){jQuery(".fadein img").size()>1&&(jQuery(".fadein img:gt(0)").hide(),setInterval(function(){jQuery(".fadein :first-child").fadeOut().next("img").fadeIn().end().appendTo(".fadein")},3e3))}),jQuery("[id^=video_player]").hide(),jQuery(".close_video").click(function(){return jQuery("[id^=video_player]").slideUp("slow"),!1});if(page=="home"||page==null||page=="")carousel=Carousel.init(products);jQuery(".phone").hover(function(){jQuery(".phone").animate({backgroundColor:"#a31a22"},300)},function(){jQuery(".phone").animate({backgroundColor:"#272727"},300)})})
