
(function($){$.extend($.fx.step,{backgroundPosition:function(fx){if(fx.state===0&&typeof fx.end=='string'){var start=$.curCSS(fx.elem,'backgroundPosition');start=toArray(start);fx.start=[start[0],start[2]];var end=toArray(fx.end);fx.end=[end[0],end[2]];fx.unit=[end[1],end[3]];}
var nowPosX=[];nowPosX[0]=((fx.end[0]-fx.start[0])*fx.pos)
+fx.start[0]+fx.unit[0];nowPosX[1]=((fx.end[1]-fx.start[1])*fx.pos)
+fx.start[1]+fx.unit[1];fx.elem.style.backgroundPosition=nowPosX[0]+' '
+nowPosX[1];function toArray(strg){strg=strg.replace(/left|top/g,'0px');strg=strg.replace(/right|bottom/g,'100%');strg=strg.replace(/([0-9\.]+)(\s|\)|$)/g,"$1px$2");var res=strg.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/);return[parseFloat(res[1],10),res[2],parseFloat(res[3],10),res[4]];}}});})(jQuery);$(function(){$('#tabs a').css({backgroundPosition:"0px -8px"}).mouseover(function(){$(this).stop().animate({backgroundPosition:"(0px 0px)"},{duration:100})}).mouseout(function(){$(this).stop().animate({backgroundPosition:"(0px -8px)"},{duration:400})});$('#taborg a').css({backgroundPosition:"0px 21px"}).mouseover(function(){$(this).stop().animate({backgroundPosition:"(0px 8px)"},{duration:100})}).mouseout(function(){$(this).stop().animate({backgroundPosition:"(0px 21px)"},{duration:400})});$('#popbeast').mouseover(function(){$(this).stop();$('#beastie').css("z-index","4");$('#ba').animate({backgroundPosition:"(0px 0px)"},{duration:200})}).mouseout(function(){$(this).stop();$('#ba').animate({backgroundPosition:"(0px 150px)"},{duration:400})
$('#beastie').css("z-index","-1");});$('#ba').css({backgroundPosition:"0px 150px"});$('#next').mouseover(function(){$(this).stop();this.src="images/tabs/next_sel.png";}).mouseout(function(){$(this).stop();this.src="images/tabs/next.png";});$('#back').mouseover(function(){$(this).stop();this.src="images/tabs/back_sel.png";}).mouseout(function(){$(this).stop();this.src="images/tabs/back.png";});$('#add').mouseover(function(){$(this).stop();this.src="images/tabs/add_sel.png";}).mouseout(function(){$(this).stop();this.src="images/tabs/add.png";});$('#details').mouseover(function(){$(this).stop();this.src="images/tabs/details_sel.png";}).mouseout(function(){$(this).stop();this.src="images/tabs/details.png";});$('#finish').mouseover(function(){$(this).stop();this.src="images/tabs/finish_sel.png";}).mouseout(function(){$(this).stop();this.src="images/tabs/finish.png";});$('#remove').mouseover(function(){$(this).stop();this.src="images/tabs/remove_sel.png";}).mouseout(function(){$(this).stop();this.src="images/tabs/remove.png";});$('#sign_in').mouseover(function(){$(this).stop();this.src="images/tabs/sign_in_sel.png";}).mouseout(function(){$(this).stop();this.src="images/tabs/sign_in.png";});$('#details').mouseover(function(){$(this).stop();this.src="images/tabs/details_sel.png";}).mouseout(function(){$(this).stop();this.src="images/tabs/details.png";});$('#dflt').mouseover(function(){$(this).stop();this.src="images/tabs/default_sel.png";}).mouseout(function(){$(this).stop();this.src="images/tabs/default.png";});$('#save').mouseover(function(){$(this).stop();this.src="images/tabs/save_sel.png";}).mouseout(function(){$(this).stop();this.src="images/tabs/save.png";});$('.smallImg').mouseover(function(){$(this).stop();var f=$(this).find('img');var s=f.attr("src");var b=$('.bigImg').find('img');b.attr("src",s);})});var OSXS;var oType;var focusField;OSXS={container:null,open:function(d){var self=this;self.container=d.container[0];d.overlay.fadeIn('slow',function(){$("#osxs-modal-content",self.container).show();var title=$("#osx-modal-title",self.container);title.show();d.container.slideDown('slow',function(){setTimeout(function(){var h=$("#osxs-modal-data",self.container).height()
+title.height()+20;d.container.animate({height:h},200,function(){$("div.close",self.container).show();$("#osxs-modal-data",self.container).show();});},300);});})},close:function(d){var self=this;d.container.animate({top:"-"+(d.container.height()+20)},500,function(){self.close();if('message'==oType){if(typeof focusField!=='undefined'){if(typeof focusField.focus!=='undefined'){focusField.focus();}}}else if('confirm'==oType){if(oClose){oClose();}}});}};function subscribe(){var h='<b>Subscription Required<b><br/>';var m='To make and keep your website live, you need to make payment, '
+'please click the subscribe button in the lower portion of the '
+'screen to go to PayPal to setup payment. If you\'d prefer to pay '
+'by another means, please email us at <a href="mailto:info@rarelittlebeastie.com">'
+'info@rarelittlebeastie.com</a>';oMessage(h+m);}
function oMessage(message,f,closeF){focusField=f;oType="message";$("#osxOk").css('display','block');$("#osxYes,#osxCancel").css('display','none');$("#osxMessage").html(message);$("#osxOk").click(function(event){if(closeF){closeF();}});$("#osxs-modal-content").modal({overlayId:'osxs-overlay',containerId:'osxs-container',closeHTML:'<div class="close"><a href="#" class="simplemodal-close">x</a></div>',minHeight:120,opacity:65,position:['0'],overlayClose:true,onOpen:OSXS.open,onClose:OSXS.close});}
var oClose;function oConfirm(message,fYes,fNo){oType="confirm";$("#osxOk").css('display','none');$("#osxYes,#osxCancel").css('display','block');oClose=fNo;$("#osxYes").click(function(event){oClose=fYes;});$("#osxMessage").html(message);$("#osxs-modal-content").modal({overlayId:'osxs-overlay',containerId:'osxs-container',closeHTML:'<div class="close"><a href="#" class="simplemodal-close">x</a></div>',minHeight:120,opacity:65,position:['0'],overlayClose:true,onOpen:OSXS.open,onClose:OSXS.close});}
