(function(e){if(!window.console){window.console={log:function(){},info:function(){},debug:function(){},error:function(){}}}e.fn.front=function(p){if(p==undefined){p="show"}var o=Math.max.apply(null,e.map(e("body > *"),function(q,s){var r=e(q).css("position");if(r=="absolute"||r=="fixed"){return parseInt(e(q).css("z-index"))||1}else{return 0}}));this.each(function(q,r){e(r).css("z-index",++o)[p](p=="fadeIn"?"slow":null)});return this};e.fn.fixAt=function(o){this.addClass("absolute").css("top",(e(window).scrollTop()+o)+"px");return this};e.fn.destroy=function(){this.trigger("destroy");this.remove();return this};e.fn.captcha=function(o,q){var p=this.first();Squidoo.withDeps([Squidoo.DEPS.AUTH],function(){Squidoo.Auth.captcha(p,o,q)})};e.fn.wait=function(p){var q=e(this);var o=false;if(p===false){o=true}else{if(p==undefined){p={lines:12,length:7,width:4,radius:10,color:"#000",speed:1,trail:60,shadow:false}}}if(o&&q.data("spinner")){q.spin()}else{if(!o&&!q.data("spinner")){q.spin(p)}}return this};var b=[];var c=1;var f=0;var m=[];var j={};var n={};var l="";var a="";var h=false;var g=false;if("Squidoo" in window){l=window.Squidoo.host;a=window.Squidoo.secure;h=window.Squidoo.isMobile;g=window.Squidoo.isIPad;if("lazyload" in Squidoo){m=window.Squidoo.lazyLoad}if("DEPS" in Squidoo){j=e.extend(j,Squidoo.DEPS)}if("Facebook" in Squidoo){n=e.extend(n,Squidoo.Facebook)}}window._gaq=window._gaq?window._gaq:[];var k=window.$Sq=window.Squidoo={DEPS:j,Facebook:n,host:l,secure:a,isMobile:h,isIPad:g,evt:function(r,t,u,p){if(arguments[0] instanceof Array){var o=[];for(var q=0;q<arguments.length;q++){var s=arguments[q];s.unshift("sqev._trackEvent");o.push(s)}_gaq.push.apply(_gaq,o)}else{_gaq.push(["sqev._trackEvent",r,t,u,p])}},lazyLoad:{push:function(o){k.lazyLoadModule(o.lmi,o.workshop)}},onPageletLoad:function(o){k.withDeps(o.js?o.js:[],function(){if(!e.trim(o.html)){e("#"+o.id).remove()}else{e("#"+o.id).html(o.html);e("#"+o.id).children("*:first").unwrap()}},true)},lazyLoadModule:function(p,o){c++;setTimeout(function(){(function(s){var q=s("#module"+p+"_lazyload");var r=(o?"/utility/lazyload_draft/":"/utility/lazyload/")+p;s.get(r,function(u){q.html(u);c--;if(o){}else{var t=setInterval(function(){if(window.setClickOutTracking){clearInterval(t);setClickOutTracking(q.attr("id"))}},100)}})})(jQuery)},200*(c-1))},wait:function(o,q){if(o==undefined){o=true}else{if(e.isFunction(o)){q=o;o=true}}function p(){if(o){e(".loading_onion:first").front("fadeIn");e("#loading_modal:first").front("fadeIn")}else{e(".loading_onion").remove();e("#loading_modal").remove()}if(e.isFunction(q)){q()}}if(!e("#loading_modal").size()){k.waitForSelection("body",function(){e("body").append('<div class="loading_onion default_onion"></div><div id="loading_modal"><img src="/imgs/loading_big.gif" alt="Loading" /></div>').find("#loading_modal");p()})}else{p()}},waitForSelection:function(o,q){var p=setInterval(function(){if(e(o).size()){clearInterval(p);q()}},100)},getScriptSrc:function(p){if(!p||p.match(/\.js$/i)){return p}else{var o=("DEPS" in Squidoo&&"__HOST__" in Squidoo.DEPS?Squidoo.DEPS.__HOST__:"/")+"scripts/";if("DEPS" in Squidoo&&"__VERSIONS__" in Squidoo.DEPS&&Squidoo.DEPS.__VERSIONS__[p]){o+=p+".v"+Squidoo.DEPS.__VERSIONS__[p]+".js"}else{o+=p+".js"}return o}},withDeps:function(r,s,o){if(r==undefined||r.length<1){return s()}if(o){s();s=null}var q=0;var p=function(){var t=r[q++];if(!e.isPlainObject(t)){t={src:t,isLoaded:function(u){u(e.inArray(this.src,b)>-1)}}}t.isLoaded(function(u){if(u){if(q<r.length){p()}else{s?s():null}}else{k.withDeps(t.deps,function(){e.ajax({url:k.getScriptSrc(t.src),dataType:"script",success:function(){b[t.src]=true;var v=function(){if(q<r.length){p()}else{s?s():null}};"onLoad" in t?t.onLoad(v):v()},error:function(v){console.error("Failed to load dependency: "+t.src,t,v);if(t.alt){e.ajax({url:k.getScriptSrc(t.alt),dataType:"script",success:function(){var w=function(){if(q<r.length){p()}else{s?s():null}};"onLoad" in t?t.onLoad(w):w()},error:function(w){console.error("Failed to load dependency alternate: "+t.alt,w)}})}}})})}})};p()},modal:function(s,q,t,p){if(p==undefined){p=true}if(e.isFunction(q)){p=t;t=q;q=null}var o=function(u){if(!e.isPlainObject(u)){u={html:u}}k.withDeps("js" in u?u.js:[],function(){k.waitForSelection("body",function(){var x="squidoo_modal_"+(++f);var w=e("body").append('<div id="'+x+'_onion" class="default_onion"></div>').find("#"+x+"_onion").front();var v=e("body").append('<div id="'+x+'" class="squidoo_modal"></div>').find("#"+x);v.bind("destroy",function(){w.remove()});if(!u.requireResponse){w.click(function(){v.destroy()})}v.html(u.html);if(p){v.find("*:first").fixAt(55).front("fadeIn")}if(jQuery.ui&&e.fn.tabs){v.find(".tabs").tabs()}if(t){t(v)}k.wait(false)})})};try{if(e.isPlainObject(s)){return o(s)}else{if(e(s).size()){$path=e(s);if($path.attr("type")=="text/x-jquery-tmpl"){return Squidoo.Templates.render(s,q,function(u){q.html=u;o(q)})}else{return o({html:$path.clone()})}}}}catch(r){}k.wait(function(){k.withDeps([Squidoo.DEPS.JQUERY_UI],function(){e.post(s,q,o)})})},dialog:function(q,p,o,r){if(e.isFunction(p)){r=p;p={};o={}}else{if(e.isFunction(o)){r=o;o={}}}if(r==undefined){r=o.callback}o=e.extend({callback:r,tabs:false},o);k.wait(function(){k.withDeps([Squidoo.DEPS.JQUERY_UI],function(){e.post(q,p,function(s){if(!e.isPlainObject(s)){s={html:s}}k.withDeps("js" in s?s.js:[],function(){k.waitForSelection("body",function(){var x="squidoo_modal_"+(++f);var w=e("body").append('<div id="'+x+'_onion" class="default_onion"></div>').find("#"+x+"_onion").front();var t=e("body").append('<div id="'+x+'" class="squidoo_modal"></div>').find("#"+x);var u=t.append('<div class="overlay_wrap '+(o.wide?"overlay_tabs_wrap":"")+' squidoo_modal novib"></div>').find(".overlay_wrap:first");var v=u.append('<form action="#" method="post"></form>').find("form");t.bind("destroy",function(){t.remove();w.remove()});w.click(function(){if(!t||!t.find("div#"+x)){w.remove()}});v.html(s.html);u.front();if(e.fn.tabs){t.find(".overlay_tabs_left ul").tabs()}v.submit(function(){var y=o.callback(v);if(y!==false){t.trigger("destroy")}return false});v[0].callback=function(z){var y=o.callback(z);if(y!==false){t.trigger("destroy")}};k.wait(false)})})})})})},shorten:function(p,o){if(!p){return""}if(o==undefined){o=137}if(p.length<=o){return p}var q=p.substr(0,o);if(!q.match(/\s$/)){q=q.substr(0,q.lastIndexOf(" "))}return $J.trim(q)+"..."},close:function(o){e(o).closest(".squidoo_modal").fadeOut("fast",function(){e(this).destroy()})},hide:function(o){return e(o).closest(".squidoo_modal").hide()},profile:function(){k.modal("/profile/ajax_modal")},bug:function(o){if(o==undefined&&"theLensName" in window){o=window.theLensName}if(o==undefined&&"theLens" in window){o=window.theLens.lensName}k.modal("/bug/ajax_modal"+(o?"/"+o:""))},og:function(o,p){if(o==undefined){o=window.theLensName}if(o==undefined){o=window.theLens.lensName}Squidoo.modal("/workshop/ajax_opengraph_modal/"+(o?o:"__INPROGRESS__"),{og_settings:p})},login:function(o,p){Squidoo.Auth.login(o,p)},logout:function(o,p){Squidoo.Auth.logout(o,p)},register:function(o,p){Squidoo.Auth.register(o,p)},api:function(s,q,o){if(e.isFunction(q)){o=q;q={}}var r=function(t){console.log(t)};var p=function(t,v,u){console.error(s,t,v,u)};if(e.isFunction(o)){o={success:o,error:r,transportError:p}}if(o==undefined){o={success:null,error:r,transportError:p}}if(!o.transportError){o.transportError=p}if(s.substring(0,1)=="/"){s=s.substring(1)}e.ajax({type:"POST",url:"/api/"+s,data:q,dataType:"json",success:function(t){if(t.errors){o.error((function(u){return{type:function(){return u[0].type},message:function(){return u[0].message},hasType:function(w){for(var v=0;v<u.length;v++){if(u[v].type==w){return true}}return false},hasCode:function(w){for(var v=0;v<u.length;v++){if(u[v].code==w){return true}}return false},all:function(w){if(w==undefined){return u}else{var x=[];for(var v=0;v<u.length;v++){if(u[v].type==w){x.push(u[v])}}return x}}}})(t.errors))}else{if(e.isFunction(o.success)){o.success(t.result)}}},error:function(t,v,u){o.transportError(t,v,u)}})}};if(document.location.hash.match(/profile(\-\d+)?/)){Squidoo.profile()}if(document.location.hash.match(/bugbox/)){Squidoo.bug()}Squidoo.Auth={};Squidoo.Auth.login=function(o,p){Squidoo.wait(function(){Squidoo.withDeps([Squidoo.DEPS.AUTH],function(){Squidoo.Auth.login(o,p)})})};Squidoo.Auth.register=function(o,p){Squidoo.wait(function(){Squidoo.withDeps([Squidoo.DEPS.AUTH],function(){Squidoo.Auth.register(o,p)})})};Squidoo.Auth.logout=function(o,p){Squidoo.wait(function(){Squidoo.withDeps([Squidoo.DEPS.AUTH],function(){Squidoo.Auth.logout(o,p)})})};Squidoo.Validation=("Validation" in Squidoo)?Squidoo.Validation:{};if(!e.fn.validatable){e.fn.validatable=function(q,s,p,r){var o=this;Squidoo.withDeps([Squidoo.DEPS.VALIDATION],function(){Squidoo.Validation.apply(o,q,s,p,r)})}}Squidoo.Autocomplete=("Autocomplete" in Squidoo)?Squidoo.Autocomplete:{};Squidoo.Autocomplete.apply=function(o,p){Squidoo.withDeps([Squidoo.DEPS.AUTOCOMPLETE],function(){Squidoo.Autocomplete.apply(o,p)})};Squidoo.Autocomplete.lens=function(o,p){Squidoo.withDeps([Squidoo.DEPS.AUTOCOMPLETE],function(){Squidoo.Autocomplete.lens(o,p)})};Squidoo.Templates={};Squidoo.Templates.apply=function(o,p,q){Squidoo.withDeps([Squidoo.DEPS.TEMPLATES],function(){Squidoo.Templates.apply(o,p,q)})};Squidoo.Templates.render=function(o,p,q){Squidoo.withDeps([Squidoo.DEPS.TEMPLATES],function(){q(Squidoo.Templates.render(o,p))})};Squidoo.Facebook.login=function(o){Squidoo.withDeps([Squidoo.DEPS.FACEBOOK],function(){Squidoo.Facebook.login(o)})};Squidoo.Facebook.logout=function(){Squidoo.withDeps([Squidoo.DEPS.FACEBOOK],function(){Squidoo.Facebook.logout()})};var i;Squidoo.Facebook.init=function(){if(i){return}i=true;var o=arguments;Squidoo.withDeps([Squidoo.DEPS.FACEBOOK],function(){})};Squidoo.Media={};if(!e.fn.uploadable){e.fn.uploadable=function(){var o=this;Squidoo.withDeps([Squidoo.DEPS.MEDIA],function(){Squidoo.Media.Uploadable.apply(o)})}}Squidoo.notify=function(o){Squidoo.withDeps([Squidoo.DEPS.NOTIFYBAR],function(){NotifyBar.show(o)})};Squidoo.tooltip=function(o,p){Squidoo.withDeps([Squidoo.DEPS.TOOLTIP],function(){var q={tip_options:{position:{edge:"left",align:"center"}},tip_action:"open",callback:false};p=e.extend(q,p);o.pointer(p.tip_options).pointer(p.tip_action);if(e.isFunction(p.callback)){p.callback()}})};Squidoo.meebo=function(o){window.Meebo||function(S){function E(){return["<",L,' onload="var d=',N,";d.getElementsByTagName('head')[0].",K,"(d.",M,"('script')).",J,"='//",S.stage?"stage-":"","cim.meebo.com/cim?iv=",T.v,"&",D,"=",S[D],S[I]?"&"+I+"="+S[I]:"",S[P]?"&"+P+"="+S[P]:"","'\"></",L,">"].join("")}var O=window,T=O.Meebo=O.Meebo||function(){(T._=T._||[]).push(arguments)},Q=document,L="body",H=Q[L],C;if(!H){C=arguments.callee;return setTimeout(function(){C(S)},100)}T.$={0:+new Date};T.T=function(p){T.$[p]=new Date-T.$[0]};T.v=4;var K="appendChild",M="createElement",J="src",I="lang",D="network",P="domain",G=Q[M]("div"),z=G[K](Q[M]("m")),R=Q[M]("iframe"),N="document",F,B=function(){T.T("load");T("load")};O.addEventListener?O.addEventListener("load",B,false):O.attachEvent("onload",B);G.style.display="none";H.insertBefore(G,H.firstChild).id="meebo";R.frameBorder="0";R.id="meebo-iframe";R.allowTransparency="true";z[K](R);try{R.contentWindow[N].open()}catch(y){S[P]=Q[P];F="javascript:var d="+N+".open();d.domain='"+Q.domain+"';";R[J]=F+"void(0);"}try{var A=R.contentWindow[N];A.write(E());A.close()}catch(u){R[J]=F+'d.write("'+E().replace(/"/g,'\\"')+'");d.close();'}T.T(1)}({network:"squidoo"});Meebo("addButton",{id:"meebobutton1",type:"menu",icon:"http://the.squidoocdn.com/imgs/modules/meebo/smiley.png",label:"Fun stuff to DO!",items:[{value:"http://blogs.squidoo.com/lensoftheday/",text:"Lens of the Day"},{value:"http://www.squidoo.com/browse/top_lenses",text:"See the Top 100"},{value:"http://www.squidoo.com/build/start",text:"Make a lens"},{value:"http://squidu.com/forum",text:"Say hi in the forum"},{value:"http://www.squidoo.com/squidquiz/hq",text:"P.S. Take a quiz!"},{value:"http://www.squidoo.com/squidwho/hq",text:"P.P.S. Get famous"},],onSelect:function(p){window.open(p,"resizable=1,scrolling=1,scrollbars=1,status=1,toolbar=1")}});Meebo("domReady")};var d=new Image();d.src="/imgs/loading_big.gif";e.each(m,function(o,p){Squidoo.lazyLoadModule(p.lmi,p.workshop)})})(jQuery);Array.prototype.unique=function(){if(this===void 0||this===null){throw new TypeError()}var e=Object(this);var a=e.length>>>0;var d=[];var c=arguments[1];for(var b=0;b<a;b++){if(b in e){var f=e[b];if($J.inArray(f,d)==-1){d.push(f)}}}return d};if(!Array.prototype.filter){Array.prototype.filter=function(b){if(this===void 0||this===null){throw new TypeError()}var f=Object(this);var a=f.length>>>0;if(typeof b!=="function"){throw new TypeError()}var e=[];var d=arguments[1];for(var c=0;c<a;c++){if(c in f){var g=f[c];if(b.call(d,g,c,f)){e.push(g)}}}return e}}if(!Array.prototype.map){Array.prototype.map=function(b){if(this===void 0||this===null){throw new TypeError()}var f=Object(this);var a=f.length>>>0;if(typeof b!=="function"){throw new TypeError()}var e=new Array(a);var d=arguments[1];for(var c=0;c<a;c++){if(c in f){e[c]=b.call(d,f[c],c,f)}}return e}}if(!Array.prototype.filter){Array.prototype.filter=function(b){if(this===void 0||this===null){throw new TypeError()}var f=Object(this);var a=f.length>>>0;if(typeof b!=="function"){throw new TypeError()}var e=[];var d=arguments[1];for(var c=0;c<a;c++){if(c in f){var g=f[c];if(b.call(d,g,c,f)){e.push(g)}}}return e}}if(!Array.prototype.combine){Array.prototype.combine=function(a){if(a){for(var b=0;b<a.length;b++){this.push(a[b])}}}}if(!Array.prototype.sum){Array.prototype.sum=function(){var b=0;for(var a=0,b=0;a<this.length;b+=parseFloat(this[a++])){}return b}}(function(j,l,a){var e=["webkit","Moz","ms","O"],q={},p;function h(r,u){var s=l.createElement(r||"div"),t;for(t in u){s[t]=u[t]}return s}function i(r,t,s){if(s&&!s.parentNode){i(r,s)}r.insertBefore(t,s||null);return r}var k=(function(){var r=h("style");i(l.getElementsByTagName("head")[0],r);return r.sheet||r.styleSheet})();function c(v,r,w,A){var s=["opacity",r,~~(v*100),w,A].join("-"),t=0.01+w/A*100,y=Math.max(1-(1-v)/r*(100-t),v),x=p.substring(0,p.indexOf("Animation")).toLowerCase(),u=x&&"-"+x+"-"||"";if(!q[s]){k.insertRule("@"+u+"keyframes "+s+"{0%{opacity:"+y+"}"+t+"%{opacity:"+v+"}"+(t+0.01)+"%{opacity:1}"+(t+r)%100+"%{opacity:"+v+"}100%{opacity:"+y+"}}",0);q[s]=1}return s}function o(v,w){var u=v.style,r,t;if(u[w]!==a){return w}w=w.charAt(0).toUpperCase()+w.slice(1);for(t=0;t<e.length;t++){r=e[t]+w;if(u[r]!==a){return r}}}function g(r,t){for(var s in t){r.style[o(r,s)||s]=t[s]}return r}function n(t){for(var r=1;r<arguments.length;r++){var s=arguments[r];for(var u in s){if(t[u]===a){t[u]=s[u]}}}return t}function m(r){var s={x:r.offsetLeft,y:r.offsetTop};while((r=r.offsetParent)){s.x+=r.offsetLeft;s.y+=r.offsetTop}return s}var b=function b(r){if(!this.spin){return new b(r)}this.opts=n(r||{},b.defaults,d)},d=b.defaults={lines:12,length:7,width:5,radius:10,color:"#000",speed:1,trail:100,opacity:1/4,fps:20},f=b.prototype={spin:function(y){this.stop();var B=this,s=B.el=g(h(),{position:"relative"}),C,A;if(y){A=m(i(y,s,y.firstChild));C=m(s);g(s,{left:(y.offsetWidth>>1)-C.x+A.x+"px",top:(y.offsetHeight>>1)-C.y+A.y+"px"})}s.setAttribute("aria-role","progressbar");B.lines(s,B.opts);if(!p){var r=B.opts,v=0,t=r.fps,x=t/r.speed,w=(1-r.opacity)/(x*r.trail/100),z=x/r.lines;(function u(){v++;for(var D=r.lines;D;D--){var E=Math.max(1-(v+D*z)%x*w,r.opacity);B.opacity(s,r.lines-D,E,r)}B.timeout=B.el&&setTimeout(u,~~(1000/t))})()}return B},stop:function(){var r=this.el;if(r){clearTimeout(this.timeout);if(r.parentNode){r.parentNode.removeChild(r)}this.el=a}return this}};f.lines=function(t,v){var s=0,r;function u(w,x){return g(h(),{position:"absolute",width:(v.length+v.width)+"px",height:v.width+"px",background:w,boxShadow:x,transformOrigin:"left",transform:"rotate("+~~(360/v.lines*s)+"deg) translate("+v.radius+"px,0)",borderRadius:(v.width>>1)+"px"})}for(;s<v.lines;s++){r=g(h(),{position:"absolute",top:1+~(v.width/2)+"px",transform:"translate3d(0,0,0)",opacity:v.opacity,animation:p&&c(v.opacity,v.trail,s,v.lines)+" "+1/v.speed+"s linear infinite"});if(v.shadow){i(r,g(u("#000","0 0 4px #000"),{top:2+"px"}))}i(t,i(r,u(v.color,"0 0 1px rgba(0,0,0,.1)")))}return t};f.opacity=function(s,r,t){if(r<s.childNodes.length){s.childNodes[r].style.opacity=t}};(function(){var t=g(h("group"),{behavior:"url(#default#VML)"}),r;if(!o(t,"transform")&&t.adj){for(r=4;r--;){k.addRule(["group","roundrect","fill","stroke"][r],"behavior:url(#default#VML)")}f.lines=function(w,v){var u=v.length+v.width,C=2*u;function B(){return g(h("group",{coordsize:C+" "+C,coordorigin:-u+" "+-u}),{width:C,height:C})}var A=B(),x=~(v.length+v.radius+v.width)+"px",z;function y(D,s,E){i(A,i(g(B(),{rotation:360/v.lines*D+"deg",left:~~s}),i(g(h("roundrect",{arcsize:1}),{width:u,height:v.width,left:v.radius,top:-v.width>>1,filter:E}),h("fill",{color:v.color,opacity:v.opacity}),h("stroke",{opacity:0}))))}if(v.shadow){for(z=1;z<=v.lines;z++){y(z,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)")}}for(z=1;z<=v.lines;z++){y(z)}return i(g(w,{margin:x+" 0 0 "+x,zoom:1}),A)};f.opacity=function(u,s,w,v){var x=u.firstChild;v=v.shadow&&v.lines||0;if(x&&s+v<x.childNodes.length){x=x.childNodes[s+v];x=x&&x.firstChild;x=x&&x.firstChild;if(x){x.opacity=w}}}}else{p=o(t,"animation")}})();j.Spinner=b})(window,document);var SPINNER_HOME={lines:8,trail:51,length:7,width:9,radius:16,color:"#555",opacity:1/4,speed:1};var SPINNER_FIT;var SPINNER_SMALL;(function(a){a.fn.spin=function(b){if(b==undefined){}this.each(function(){var d=a(this),c=d.data();if(c.spinner){c.spinner.stop();delete c.spinner}if(b!==false){c.spinner=new Spinner(a.extend({color:d.css("color")},b)).spin(this)}});return this}})(jQuery);var sprintf=(function(){function a(d){return Object.prototype.toString.call(d).slice(8,-1).toLowerCase()}function b(e,f){for(var d=[];f>0;d[--f]=e){}return d.join("")}var c=function(){if(!c.cache.hasOwnProperty(arguments[0])){c.cache[arguments[0]]=c.parse(arguments[0])}return c.format.call(null,c.cache[arguments[0]],arguments)};c.format=function(m,l){var q=1,o=m.length,g="",r,d=[],h,f,j,e,n,p;for(h=0;h<o;h++){g=a(m[h]);if(g==="string"){d.push(m[h])}else{if(g==="array"){j=m[h];if(j[2]){r=l[q];for(f=0;f<j[2].length;f++){if(!r.hasOwnProperty(j[2][f])){throw (sprintf('[sprintf] property "%s" does not exist',j[2][f]))}r=r[j[2][f]]}}else{if(j[1]){r=l[j[1]]}else{r=l[q++]}}if(/[^s]/.test(j[8])&&(a(r)!="number")){throw (sprintf("[sprintf] expecting number but found %s",a(r)))}switch(j[8]){case"b":r=r.toString(2);break;case"c":r=String.fromCharCode(r);break;case"d":r=parseInt(r,10);break;case"e":r=j[7]?r.toExponential(j[7]):r.toExponential();break;case"f":r=j[7]?parseFloat(r).toFixed(j[7]):parseFloat(r);break;case"o":r=r.toString(8);break;case"s":r=((r=String(r))&&j[7]?r.substring(0,j[7]):r);break;case"u":r=Math.abs(r);break;case"x":r=r.toString(16);break;case"X":r=r.toString(16).toUpperCase();break}r=(/[def]/.test(j[8])&&j[3]&&r>=0?"+"+r:r);n=j[4]?j[4]=="0"?"0":j[4].charAt(1):" ";p=j[6]-String(r).length;e=j[6]?b(n,p):"";d.push(j[5]?r+e:e+r)}}}return d.join("")};c.cache={};c.parse=function(d){var g=d,h=[],j=[],i=0;while(g){if((h=/^[^\x25]+/.exec(g))!==null){j.push(h[0])}else{if((h=/^\x25{2}/.exec(g))!==null){j.push("%")}else{if((h=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(g))!==null){if(h[2]){i|=1;var k=[],f=h[2],e=[];if((e=/^([a-z_][a-z_\d]*)/i.exec(f))!==null){k.push(e[1]);while((f=f.substring(e[0].length))!==""){if((e=/^\.([a-z_][a-z_\d]*)/i.exec(f))!==null){k.push(e[1])}else{if((e=/^\[(\d+)\]/.exec(f))!==null){k.push(e[1])}else{throw ("[sprintf] huh?")}}}}else{throw ("[sprintf] huh?")}h[2]=k}else{i|=2}if(i===3){throw ("[sprintf] mixing positional and named placeholders is not (yet) supported")}j.push(h)}else{throw ("[sprintf] huh?")}}}g=g.substring(h[0].length)}return j};return c})();var vsprintf=function(b,a){a.unshift(b);return sprintf.apply(null,a)};(function($){var escapeable=/["\\\x00-\x1f\x7f-\x9f]/g,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};$.toJSON=typeof JSON==="object"&&JSON.stringify?JSON.stringify:function(o){if(o===null){return"null"}var type=typeof o;if(type==="undefined"){return undefined}if(type==="number"||type==="boolean"){return""+o}if(type==="string"){return $.quoteString(o)}if(type==="object"){if(typeof o.toJSON==="function"){return $.toJSON(o.toJSON())}if(o.constructor===Date){var month=o.getUTCMonth()+1,day=o.getUTCDate(),year=o.getUTCFullYear(),hours=o.getUTCHours(),minutes=o.getUTCMinutes(),seconds=o.getUTCSeconds(),milli=o.getUTCMilliseconds();if(month<10){month="0"+month}if(day<10){day="0"+day}if(hours<10){hours="0"+hours}if(minutes<10){minutes="0"+minutes}if(seconds<10){seconds="0"+seconds}if(milli<100){milli="0"+milli}if(milli<10){milli="0"+milli}return'"'+year+"-"+month+"-"+day+"T"+hours+":"+minutes+":"+seconds+"."+milli+'Z"'}if(o.constructor===Array){var ret=[];for(var i=0;i<o.length;i++){ret.push($.toJSON(o[i])||"null")}return"["+ret.join(",")+"]"}var name,val,pairs=[];for(var k in o){type=typeof k;if(type==="number"){name='"'+k+'"'}else{if(type==="string"){name=$.quoteString(k)}else{continue}}type=typeof o[k];if(type==="function"||type==="undefined"){continue}val=$.toJSON(o[k]);pairs.push(name+":"+val)}return"{"+pairs.join(",")+"}"}};$.evalJSON=typeof JSON==="object"&&JSON.parse?JSON.parse:function(src){return eval("("+src+")")};$.secureEvalJSON=typeof JSON==="object"&&JSON.parse?JSON.parse:function(src){var filtered=src.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"");if(/^[\],:{}\s]*$/.test(filtered)){return eval("("+src+")")}else{throw new SyntaxError("Error parsing JSON, source is not valid.")}};$.quoteString=function(string){if(string.match(escapeable)){return'"'+string.replace(escapeable,function(a){var c=meta[a];if(typeof c==="string"){return c}c=a.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)})+'"'}return'"'+string+'"'}})(jQuery);(function(u){function o(){if(v.jStorage){try{w=n(String(v.jStorage))}catch(b){v.jStorage="{}"}}else{v.jStorage="{}"}s=v.jStorage?String(v.jStorage).length:0}function r(){try{v.jStorage=a(w),x&&(x.setAttribute("jStorage",v.jStorage),x.save("jStorage")),s=v.jStorage?String(v.jStorage).length:0}catch(b){}}function q(b){if(!b||typeof b!="string"&&typeof b!="number"){throw new TypeError("Key name must be string or numeric")}return true}if(!u||!u.toJSON&&!Object.toJSON&&!window.JSON){throw Error("jQuery, MooTools or Prototype needs to be loaded before jStorage!")}var w={},v={jStorage:"{}"},x=null,s=0,a=u.toJSON||Object.toJSON||window.JSON&&(JSON.encode||JSON.stringify),n=u.evalJSON||window.JSON&&(JSON.decode||JSON.parse)||function(b){return String(b).evalJSON()},t=false,p={isXML:function(b){return(b=(b?b.ownerDocument||b:0).documentElement)?b.nodeName!=="HTML":false},encode:function(e){if(!this.isXML(e)){return false}try{return(new XMLSerializer).serializeToString(e)}catch(d){try{return e.xml}catch(f){}}return false},decode:function(d){var c="DOMParser" in window&&(new DOMParser).parseFromString||window.ActiveXObject&&function(f){var e=new ActiveXObject("Microsoft.XMLDOM");e.async="false";e.loadXML(f);return e};if(!c){return false}d=c.call("DOMParser" in window&&new DOMParser||window,d,"text/xml");return this.isXML(d)?d:false}};u.jStorage={version:"0.1.5.4",set:function(d,c){q(d);p.isXML(c)&&(c={_is_xml:true,xml:p.encode(c)});w[d]=c;r();return c},get:function(d,c){q(d);return d in w?w[d]&&typeof w[d]=="object"&&w[d]._is_xml&&w[d]._is_xml?p.decode(w[d].xml):w[d]:typeof c=="undefined"?null:c},deleteKey:function(b){q(b);return b in w?(delete w[b],r(),true):false},flush:function(){w={};r();return true},storageObj:function(){function b(){}b.prototype=w;return new b},index:function(){var d=[],c;for(c in w){w.hasOwnProperty(c)&&d.push(c)}return d},storageSize:function(){return s},currentBackend:function(){return t},storageAvailable:function(){return !!t},reInit:function(){var b;if(x&&x.addBehavior){b=document.createElement("link");x.parentNode.replaceChild(b,x);x=b;x.style.behavior="url(#default#userData)";document.getElementsByTagName("head")[0].appendChild(x);x.load("jStorage");b="{}";try{b=x.getAttribute("jStorage")}catch(d){}v.jStorage=b;t="userDataBehavior"}o()}};(function(){var b=false;if("localStorage" in window){try{window.localStorage.setItem("_tmptest","tmpval"),b=true,window.localStorage.removeItem("_tmptest")}catch(j){}}if(b){try{if(window.localStorage){v=window.localStorage,t="localStorage"}}catch(i){}}else{if("globalStorage" in window){try{window.globalStorage&&(v=window.globalStorage[window.location.hostname],t="globalStorage")}catch(f){}}else{if(x=document.createElement("link"),x.addBehavior){x.style.behavior="url(#default#userData)";document.getElementsByTagName("head")[0].appendChild(x);x.load("jStorage");b="{}";try{b=x.getAttribute("jStorage")}catch(d){}v.jStorage=b;t="userDataBehavior"}else{x=null;return}}}o()})()})(window.jQuery||window.$);var CACHE_MIN=60;var CACHE_5MIN=300;var CACHE_10MIN=600;var CACHE_HOUR=3600;var CACHE_8HOURS=28800;var CACHE_DAY=86400;var CACHE_WEEK=604800;var CACHE_MONTH=18144000;Squidoo.Cache={store:function(a){return{get:function(c,b){var d=$J.jStorage.get(a+"_"+c);if(d&&(d.t==-1||(new Date().getTime()/1000)<d.t)){return d.d}else{return b}},set:function(b,d,c){var e={d:d,t:(c==undefined||c==0)?-1:((new Date().getTime()/1000)+c)};$J.jStorage.set(a+"_"+b,e);return this},del:function(b){$J.jStorage.deleteKey(a+"_"+b);return this},flush:function(){$J.each($J.jStorage.index(),function(c,b){if(b.indexOf(a+"_")===0){$J.jStorage.deleteKey(b)}});return this}}}};(function(n,c){var i="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color outlineColor".split(" "),f=/^([\-+])=\s*(\d+\.?\d*)/,e=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(o){return[o[1],o[2],o[3],o[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(o){return[2.55*o[1],2.55*o[2],2.55*o[3],o[4]]}},{re:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,parse:function(o){return[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]}},{re:/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/,parse:function(o){return[parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(o){return[o[1],o[2]/100,o[3]/100,o[4]]}}],d=n.Color=function(p,q,o,r){return new n.Color.fn.parse(p,q,o,r)},h={rgba:{cache:"_rgba",props:{red:{idx:0,type:"byte",empty:true},green:{idx:1,type:"byte",empty:true},blue:{idx:2,type:"byte",empty:true},alpha:{idx:3,type:"percent",def:1}}},hsla:{cache:"_hsla",props:{hue:{idx:0,type:"degrees",empty:true},saturation:{idx:1,type:"percent",empty:true},lightness:{idx:2,type:"percent",empty:true}}}},m={"byte":{floor:true,min:0,max:255},percent:{min:0,max:1},degrees:{mod:360,floor:true}},k=h.rgba.props,l=d.support={},a,j=n.each;h.hsla.props.alpha=k.alpha;function g(q,s,p){var o=m[s.type]||{},r=s.empty||p;if(r&&q==null){return null}if(s.def&&q==null){return s.def}if(o.floor){q=~~q}else{q=parseFloat(q)}if(q==null||isNaN(q)){return s.def}if(o.mod){q=q%o.mod;return q<0?o.mod+q:q}return o.min>q?o.min:o.max<q?o.max:q}d.fn=d.prototype={constructor:d,parse:function(v,t,o,u){if(v===c){this._rgba=[null,null,null,null];return this}if(v instanceof n||v.nodeType){v=v instanceof n?v.css(t):n(v).css(t);t=c}var s=this,q=n.type(v),p=this._rgba=[],r;if(t!==c){v=[v,t,o,u];q="array"}if(q==="string"){v=v.toLowerCase();j(e,function(B,C){var A=C.re.exec(v),z=A&&C.parse(A),y,x=C.space||"rgba",w=h[x].cache;if(z){y=s[x](z);s[w]=y[w];p=s._rgba=y._rgba;return false}});if(p.length!==0){if(Math.max.apply(Math,p)===0){n.extend(p,a.transparent)}return this}v=a[v]||a._default;return this.parse(v)}if(q==="array"){j(k,function(w,x){p[x.idx]=g(v[x.idx],x)});return this}if(q==="object"){if(v instanceof d){j(h,function(w,x){if(v[x.cache]){s[x.cache]=v[x.cache].slice()}})}else{j(h,function(w,x){j(x.props,function(z,A){var y=x.cache;if(!s[y]&&x.to){if(v[z]==null||z==="alpha"){return}s[y]=x.to(s._rgba)}s[y][A.idx]=g(v[z],A,true)})})}return this}},is:function(q){var p=d(q),r=true,o=this;j(h,function(s,u){var t=p[u.cache],v;if(t){v=o[u.cache]||u.to&&u.to(o._rgba)||[];j(u.props,function(w,x){if(t[x.idx]!=null){r=(t[x.idx]==v[x.idx]);return r}})}return r});return r},_space:function(){var o=[],p=this;j(h,function(q,r){if(p[r.cache]){o.push(q)}});return o.pop()},transition:function(p,u){var q=d(p),r=q._space(),s=h[r],t=this[s.cache]||s.to(this._rgba),o=t.slice();q=q[s.cache];j(s.props,function(y,A){var x=A.idx,w=t[x],v=q[x],z=m[A.type]||{};if(v===null){return}if(w===null){o[x]=v}else{if(z.mod){if(v-w>z.mod/2){w+=z.mod}else{if(w-v>z.mod/2){w-=z.mod}}}o[A.idx]=g((v-w)*u+w,A)}});return this[r](o)},blend:function(r){if(this._rgba[3]===1){return this}var q=this._rgba.slice(),p=q.pop(),o=d(r)._rgba;return d(n.map(q,function(s,t){return(1-p)*o[t]+p*s}))},toRgbaString:function(){var p="rgba(",o=n.map(this._rgba,function(q,r){return q==null?(r>2?1:0):q});if(o[3]===1){o.pop();p="rgb("}return p+o.join(",")+")"},toHslaString:function(){var p="hsla(",o=n.map(this.hsla(),function(q,r){if(q==null){q=r>2?1:0}if(r&&r<3){q=Math.round(q*100)+"%"}return q});if(o[3]==1){o.pop();p="hsl("}return p+o.join(",")+")"},toHexString:function(o){var p=this._rgba.slice(),q=p.pop();if(o){p.push(~~(q*255))}return"#"+n.map(p,function(r,s){r=(r||0).toString(16);return r.length==1?"0"+r:r}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}};d.fn.parse.prototype=d.fn;function b(s,r,o){o=(o+1)%1;if(o*6<1){return s+(r-s)*6*o}if(o*2<1){return r}if(o*3<2){return s+(r-s)*((2/3)-o)*6}return s}h.hsla.to=function(q){if(q[0]==null||q[1]==null||q[2]==null){return[null,null,null,q[3]]}var o=q[0]/255,v=q[1]/255,w=q[2]/255,y=q[3],x=Math.max(o,v,w),t=Math.min(o,v,w),z=x-t,A=x+t,p=A*0.5,u,B;if(t===x){u=0}else{if(o===x){u=(60*(v-w)/z)+360}else{if(v===x){u=(60*(w-o)/z)+120}else{u=(60*(o-v)/z)+240}}}if(p===0||p===1){B=p}else{if(p<=0.5){B=z/A}else{B=z/(2-A)}}return[Math.round(u)%360,B,p,y==null?1:y]};h.hsla.from=function(u){if(u[0]==null||u[1]==null||u[2]==null){return[null,null,null,u[3]]}var x=u[0]/360,B=u[1],w=u[2],A=u[3],t=w<=0.5?w*(1+B):w+B-w*B,v=2*w-t,o,y,z;return[Math.round(b(v,t,x+(1/3))*255),Math.round(b(v,t,x)*255),Math.round(b(v,t,x-(1/3))*255),A]};j(h,function(p,r){var q=r.props,o=r.cache,t=r.to,s=r.from;d.fn[p]=function(y){if(t&&!this[o]){this[o]=t(this._rgba)}if(y===c){return this[o].slice()}var x=n.type(y),u=(x==="array"||x==="object")?y:arguments,w=this[o].slice(),v;j(q,function(z,B){var A=u[x==="object"?z:B.idx];if(A==null){A=w[B.idx]}w[B.idx]=g(A,B)});if(s){v=d(s(w));v[o]=w;return v}else{return d(w)}};j(q,function(u,v){if(d.fn[u]){return}d.fn[u]=function(z){var B=n.type(z),y=(u==="alpha"?(this._hsla?"hsla":"rgba"):p),x=this[y](),A=x[v.idx],w;if(B==="undefined"){return A}if(B==="function"){z=z.call(this,A);B=n.type(z)}if(z==null&&v.empty){return this}if(B==="string"){w=f.exec(z);if(w){z=A+parseFloat(w[2])*(w[1]==="+"?1:-1)}}x[v.idx]=z;return this[y](x)}})});j(i,function(o,p){n.cssHooks[p]={set:function(s,t){t=d(t);if(!l.rgba&&t._rgba[3]!==1){var q,r=p==="backgroundColor"?s.parentNode:s;do{q=n.curCSS(r,"backgroundColor")}while((q===""||q==="transparent")&&(r=r.parentNode)&&r.style);t=t.blend(q&&q!=="transparent"?q:"_default")}t=t.toRgbaString();s.style[p]=t}};n.fx.step[p]=function(q){if(!q.colorInit){q.start=d(q.elem,p);q.end=d(q.end);q.colorInit=true}n.cssHooks[p].set(q.elem,q.start.transition(q.end,q.pos))}});n(function(){var p=document.createElement("div"),o=p.style;o.cssText="background-color:rgba(1,1,1,.5)";l.rgba=o.backgroundColor.indexOf("rgba")>-1});a=n.Color.names={aqua:"#00ffff",azure:"#f0ffff",beige:"#f5f5dc",black:"#000000",blue:"#0000ff",brown:"#a52a2a",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkviolet:"#9400d3",fuchsia:"#ff00ff",gold:"#ffd700",green:"#008000",indigo:"#4b0082",khaki:"#f0e68c",lightblue:"#add8e6",lightcyan:"#e0ffff",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightyellow:"#ffffe0",lime:"#00ff00",magenta:"#ff00ff",maroon:"#800000",navy:"#000080",olive:"#808000",orange:"#ffa500",pink:"#ffc0cb",purple:"#800080",violet:"#800080",red:"#ff0000",silver:"#c0c0c0",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}})(jQuery);
