"use strict";
/*
* Sqwidget
*   github.com/premasagar/sqwidget
*
*/
if(!this.Sqwidget){(function(){var c;(function(){if(this.location.search.indexOf("sqwidgetDebug")!==-1){this.sqwidgetDebug=true;this._=(function(){var e=b,f=e.navigator.userAgent,g=e.console,n=e.opera,m;if(!g){return(n&&n.postError)?function(){var x,z,w=n.postError,y=arguments,k,v,l;w(y);z=y.length;for(x=0;x<z;x++){k=y[x];if(typeof k==="object"&&k!==null){v=[];for(l in k){try{if(k.hasOwnProperty(l)){v.push(l+": "+k[l])}}catch(u){}}w("----subArgs: "+v)}}}:function(){}}else{if(/webkit/i.test(f)){return function(){var l,r,q=arguments,k="";r=q.length;for(l=0;l<r;l++){g.log(k+q[l]);k="---- "}}}else{m=g.debug;return m?m:function(){var r,t,l=g.log,s=arguments,k="";if(l){if(typeof l.apply==="function"){l.apply(g,s)}else{t=s.length;for(r=0;r<t;r++){l(k+s[r]);k="---- "}}}}}}}())}var h=(function(){var e=this,E=e.document,D=E.documentElement,C=E.addEventListener,z=E.attachEvent,G=[],F,B,f="DOMContentLoaded",x="onreadystatechange",y;function g(){if(F){return}F=true;for(var k=0,l=G.length;k<l;k++){G[k]()}}function A(){if(F){return}try{D.doScroll("left")}catch(k){setTimeout(A,1);return}g()}function H(){if(C){E.removeEventListener(f,H,false);g()}else{if(z&&E.readyState==="complete"){E.detachEvent(x,H);g()}}}function w(l){G.push(l);if(F){return l()}if(B){return}B=true;if(C){E.addEventListener(f,H,false);e.addEventListener("load",g,false)}else{if(z){E.attachEvent(x,H);e.attachEvent("onload",g);try{y=!e.frameElement}catch(k){}if(D.doScroll&&y){A()}}}}return w}());var a,b=this,j=b.document,i=b.sqwidgetDebug?(b._?b._:(b.console&&b.console.firebug?b.console.debug:function(){})):function(){};this.Sqwidget=c={settings:{jQuery:{minVersion:"1.4",src:"http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js",noConflict:{$:false,jQuery:false}}},thisDomScript:function(){var e=j.getElementsByTagName("script");return e[e.length-1]},getScript:function(f,e){var g,n,m;g=j.getElementsByTagName("head")[0];e=e||function(){};n=j.createElement("script");n.src=f;n.onload=n.onreadystatechange=function(){var k=this.readyState;if(!m&&(!k||k==="complete"||k==="loaded")){i("script loaded: "+f);m=true;e();n.onload=n.onreadystatechange=null;g.removeChild(n)}};g.appendChild(n)},compareVersion:function(g,m){var f,e=Number;g=g.split(".");m=m.split(".");for(f=0;f<g.length;f++){if(typeof m[f]==="undefined"){return -1}else{if(e(g[f])===e(m[f])){continue}}return(e(g[f])>e(m[f]))?-1:1}return(m.length>g.length)?1:0},hasMinVersion:function(f,e){return this.compareVersion(e,f)>=0},jQueryIsLoaded:function(f){if(!a){var e=b.jQuery;if(e&&e.fn&&e.fn.jquery&&this.hasMinVersion(e.fn.jquery,f||this.settings.jQuery.minVersion)){a=e}}return a},onjQueryReady:function(e){i("Sqwidget.onjQueryReady");var g,f,l;if(!a){g=this.jQueryIsLoaded();if(g){i("jQuery found");a=g}else{i("jQuery not found");f=this.settings.jQuery;l=this.onjQueryReady.callbacks;if(!l){l=this.onjQueryReady.callbacks=[];this.getScript(f.src,function(){var k=b.jQuery,n=k;if(f.noConflict.$){k.noConflict(f.noConflict.jQuery)}n.each(l,function(){l.shift()(n)})})}l.push(e);return}}e(a)},ready:function(e){i("Sqwidget.ready");return this.onjQueryReady(e)},domReady:h,widgetsInDom:function(){function x(k){return k.replace(/^[\0\t\n\v\f\r\s]+|[\0\t\n\v\f\r\s]+$/g,"")}function g(k){return k.replace(/^.*\/([\w]+)(?:\.[^\/]+)?$|^([\w]+)(?:\..*)?$/,"$1$2")}function w(q){if(!q){return{}}var k=q.split(","),o=k.length,l={},m,n,p;for(n=o;n;n--){m=k[n-1];p=m.indexOf(":");if(p!==-1){l[x(m.slice(0,p))]=x(m.slice(p+1))}}return l}var f=j.getElementsByTagName("div"),u=f.length,e=[],y,A,t,z,v;for(v=u;v;v--){y=f[v-1];A=y.getAttribute("data-sqwidget");t=y.getAttribute("data-sqwidget-settings");if(A){A=w(A);t=w(t);z=g(A.template||"generic");e.push({type:z,container:y,sqwidgetSettings:A,widgetSettings:t})}}return e}};c.onjQueryReady(function(r){var e=r,f,o,p;f="sqwidget";function g(k,l){l=l||"-";if(!k){return f}else{if(typeof k==="string"){return f+l+k}else{return[f].concat(k).join(l)}}}o=e.extend({}).fn;p={css:o.css,show:o.show,hide:o.hide};(function(k){function l(n,v,m){var u=this;v=v||250;return function(){if(!n.throttling){n.throttling=true;b.setTimeout(function(){if(m){n.call(u)}n.throttling=false},v);if(!m){n.call(u)}}return u}}k.throttle=l;k.fn.throttle=function(u,n,v,m){return k(this).bind(u,l(n,v,m))}}(r));(function(R){function Q(s){return(/^https?:\/\/[\-\w]+\.\w[\-\w]+\S*$/).test(s)}function G(s){return s&&s.nodeType===1}function K(s){return s&&!!s.jquery}function O(s){return R.extend(function(){this.init.apply(this,arguments)},{prototype:R.extend(true,{},R.fn,s)})}var J="0.25",l="aomi",L=b,P=R.browser,I=P.msie,k=(I&&L.parseInt(P.version,10)===6),F=!I,N=k,H=R.event,M={margin:0,padding:0,borderWidth:0,borderStyle:"none",backgroundColor:"transparent"},n={attr:{scrolling:"no",frameBorder:0,allowTransparency:true},src:"about:blank",doctype:5,target:"_parent",autoheight:true,autowidth:false,resizeThrottle:250,css:R.extend({width:"100%"},M),title:""},m=new O(R.extend({init:function(){var u=this,v=this._args(R.makeArray(arguments))._args(),w=this.options(),x=w.autowidth,s=w.autoheight,t,y;if(Q(v.bodyContents)){w.src=v.bodyContents;if(N){this.ready(this.repaint)}}else{this.bind("attachElement",function(){this._iframeLoad(function(){var z=arguments.callee;if(u._okToLoad()){u._iframeLoad(z,true).document(true)._iframeLoad(function(){u.trigger("load")})}else{if(F){u.reload()}else{u.replace()}}})});if(x||s){if(x){w.css.width="auto"}this.one("attachElement",function(){t=true;this.css("visibility","hidden")}).one("ready",function(){var z,A;z=R.throttle(function(){u.resize(x,s);if(t){t=false;u.css("visibility","visible")}},w.resizeThrottle,true);if(!this.is(":visible")){A=L.setInterval(function(){if(u.parent().is(":visible")){z();L.clearInterval(A)}},1000)}this.bind("manipulateHead",function(){return z()}).bind("manipulateBody",function(){return z()}).load(function(){return z()});if(!x){R(L).resize(z)}})}if(F){this.bind("extremereloadstart",function(){y=true}).load(function(z){if(y){y=false}else{if(!this.body().children().length){this.restore()}}this.cache()})}}return this._attachElement().trigger("init")},$:function(t){var s=this.document();return t?R(t,s[0]):s},doctype:function(s){var t;if(s){this.options().doctype=s;return this}s=this.options().doctype;t="<!DOCTYPE ";if(s===5){t+="html"}else{if(s===4.01){t+='HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"'}}return t+">"},trigger:function(t,s){if(R.iframe.debug){var u=[this.attr("id")+": *"+t+"*"];if(typeof s!=="undefined"){u.push(s)}R.iframe.debug.apply(null,u)}H.trigger(t+"."+l,s,this);return this},bind:function(t,s){H.add(this,t+"."+l,s);return this},unbind:function(t,s){H.remove(this,t+"."+l,s);return this},one:function(t,s){return this.bind(t,function u(){s.apply(this,R.makeArray(arguments));this.unbind(t,u)})},addEventListener:function(){},removeEventListener:function(){},document:function(){var u=R.makeArray(arguments),s;try{s=this.window().attr("document")}catch(t){}if(!u.length){return R(s||[])}if(u[0]!==true){this._args(u)}if(s){s.open();s.write(this.doctype()+"\n<head></head><body></body>");s.close();this._trim()._args(true).trigger("ready").trigger("load")}else{this.one("load",function(){this.document(true)})}return this},_args:function(){var u=this,v=R.makeArray(arguments),s={headContents:"",bodyContents:"",callback:function(){}},w=this._argsCache||s,t={},x;if(!v.length){return R.extend(true,w,{options:this.options()})}if(R.isArray(v[0])){return this._args.apply(this,v[0])}if(v[0]===true){this.options(true).head(w.headContents,true).body(w.bodyContents,true).one("ready",w.callback)}else{R.each(v.reverse(),function(z,y){if(!t.callback&&R.isFunction(y)){t.callback=y}else{if(!x&&typeof y==="object"&&!K(y)&&!G(y)){u.options(y);x=true}else{if(!t.bodyContents&&typeof y!=="undefined"){t.bodyContents=y}else{if(!t.headContents&&typeof y!=="undefined"){t.headContents=y}}}}});this._argsCache=R.extend(true,s,t)}return this},options:R.extend(function(s){var t=this.options,u=t.defaultOptions,v;if(s){if(typeof s==="object"){this._options=R.extend(true,u(),s)}else{if(s===true){v=this.options();this.title(true).ready(function(){this.$("a").live("click",function(){if(!R(this).attr("target")&&R(this).attr("href")){R(this).attr("target",v.target)}})})}}return this}if(!this._options){this._options=u()}return this._options},{defaultOptions:function(){return R.extend(true,{},n)}}),load:function(s){return this.bind("load",s)},ready:function(s){return this.bind("ready",s)},reload:function(s){if((!s&&F)||!this.hasBlankSrc()){this.attr("src",this.attr("src"))}else{this.trigger("extremereloadstart");this.document(true)}return this.trigger("reload",!!s)},clone:function(){var s=this._args();return R.iframe(s.headContents,s.bodyContents,this.options(),s.callback)},replace:function(){var s=this.clone();this.replaceWith(s);this[0]=s[0];return this.trigger("replace")},repaint:function(){var s=l+"-repaint";this.addClass(s).removeClass(s);return this.trigger("repaint")},window:function(){var s=this._windowObj();if(s){try{return R(s)}catch(t){}}return R([])},location:function(){var t=this.window(),s=t.attr("location");if(s){try{return s.href}catch(u){}}return this._windowObj()?null:this.attr("src")},head:function(t,v){var u=this.$("head"),s="append";if(typeof t!=="undefined"&&t!==false){if(u.length){if(v){u.empty()}if(t){u[s](t)}this.trigger("manipulateHead",s)}else{this.one("load",function(){this.head(t,v)})}return this}return u},body:function(s,t){var u=this.$("body");if(typeof s!=="undefined"&&s!==false){if(u.length){if(t){this.empty()}if(s){this.append(s)}}else{this.one("load",function(){this.body(s,t)})}return this}return u},title:function(s){if(s===true){return this.title(this.options().title)}if(typeof s!=="undefined"){this.options().title=s;this.$().attr("title",s);return this}return this.$().attr("title")},style:function(s){return this.head("<style>"+s+"</style>")},resize:function(z,w){var x,s,u,t,y;z=z||false;w=w!==false||true;function v(C){var A=0,B=0;R(C).each(function(){var D;if(z){D=R(this).outerWidth(true);if(D>A){A=D}}if(w){B+=R(this).outerHeight(true)}});return[A,B]}x=this.body();s=v(x);u=v(x.children());if(z){t=Math.max(s[0],u[0]);this.width(t)}if(w){y=Math.max(s[1],u[1]);this.height(y)}return this.trigger("resize",[t,y])},isSameDomain:function(){return this.location()!==null},hasExternalDocument:function(){var s=this.location();return s===null||(s!=="about:blank"&&s!==L.location.href)},hasBlankSrc:function(){var s=this.attr("src");return !s||s==="about:blank"},cache:function(){if(!this.$()[0]){return this}this._cachedNodes=this.head().add(this.body());this.trigger("cache");return this},restore:function(){var t=["adoptNode","appendChild","importNode","cloneNode"],s=R.iframe.appendMethod,u=this.$("html").empty(),v=this.$()[0],w=this._cachedNodes;if(!v||!w){return this}if(!s){s=this._findAppendMethod(v,t,u,w)||"reload";R.iframe.appendMethod=s}else{if(s!=="reload"){this._appendWith(v,s,u,w)}}if(s==="reload"){this._cachedNodes=null;this.reload(true)}else{this.title(true);this.body().contents().each(function(){var x=R(this);x.css("margin",x.css("marginTop")+" "+x.css("marginRight")+" "+x.css("marginBottom")+" "+x.css("marginLeft"))})}return this.trigger("restore",s)},_iframeLoad:function(s,t){var u=this;if(!t){R(this[0]).bind("load",s);R(L).unload(function(){u._iframeLoad(s,true)})}else{R(this[0]).unbind("load",s)}return this},_attachElement:function(){var s=this.options();R.fn.init.call(this,"<iframe></iframe>");this.css(s.css).attr(s.attr).addClass(l).attr("src",s.src);return this.options(true).trigger("attachElement")},_windowObj:function(){try{return this[0].contentWindow}catch(s){return false}},_appendWith:function(u,s,w,t){if(R.isFunction(u[s])){try{t.each(function(){var x;switch(s){case"cloneNode":x=this[s](true);break;case"appendChild":x=this;break;default:x=u[s](this,true)}w.append(x)});return true}catch(v){}}return false},_findAppendMethod:function(u,w,x,t){var v=this,s;R.each(w,function(y,z){if(v._appendWith(u,z,x,t)){s=z;return false}});return s},_trim:function(){this.body().css(M);return this},_hasSrcMismatch:function(){return(this.hasBlankSrc()&&this.hasExternalDocument())},_okToLoad:function(){var s=true;if(this._hasSrcMismatch()){s=false}return s}},(function(){var t=[{fn:["appendTo","prependTo","insertBefore","insertAfter","replaceAll"],wrapper:function(u){return function(){R.fn[u].apply(this,arguments);if(!this.hasBlankSrc()){this.reload()}return this.trigger("manipulateIframe",u)}}},{fn:["append","prepend","html","text","wrapInner","empty"],wrapper:function(u){return function(){R.fn[u].apply(this.body(),arguments);return this.trigger("manipulateBody",u)}}}],s={};R.each(t,function(w,u){var v=u.wrapper;R.each(u.fn,function(y,x){s[x]=v(x)})});return s}())));R.extend(true,{iframe:R.extend(function(v,t,u,s){return new m(v,t,u,s)},{aomi:J}),fn:{intoIframe:function(u,t,s){return R.iframe(u,this,t,s).replaceAll(this)}}});R.iframe.fn=m.prototype}(r));(function(k){var m="nitelite",F="0.1.1",G=b,D=G.document,l={overlay:{opacity:0.7,bgColor:"#000"}},B=function B(t,s){s=s||"-";if(!t){return m}else{if(typeof t==="string"){return m+s+t}else{return[m].concat(t).join(s)}}},A=function(s,t,u){k.each(t,function(x,w){try{k(s).bind(w,function(){k(G).trigger(B(),{type:(u||s.type)+"."+w,origin:this})})}catch(v){}});return s},E=function(){if(!E.hidden){E.hidden=[]}k("object:visible, embed:visible").filter(function(){return !k(this).parents("embed:visible, object:visible").length}).each(function(){var s=k(this);E.hidden.push([s,s.css("visibility")]);s.css("visibility","hidden")})},n=function(){k.each(E.hidden,function(s,t){t[0].css("visibility",t[1])});E.hidden=[]},C={Overlay:k.extend(function(s,t){if(s){this.opacity=s}if(t){this.bgColor=t}},{prototype:{type:"overlay",opacity:l.overlay.opacity,bgColor:l.overlay.bgColor,fillScreen:function(){this.node.width(k(D).width()+"px").height(k(D).height()+"px");return this},create:function(){var s=this;this.node=k("<div></div>").addClass(B()+" "+B("overlay")).css({opacity:this.opacity,position:"absolute",top:0,left:0,margin:0,padding:0,"background-color":this.bgColor,border:"0 none "+this.bgColor,"z-index":99999});this.fillScreen();k(G).unload(function(){s.unload()});k(this).triggerHandler("create");return this},add:function(t){var s=this;if(t){k(s).one("add",t);return this.add()}if(!this.node){this.create()}this.node.hide().data(B(),this).appendTo("body").fadeIn(function(){k(s).triggerHandler("add")});return this},remove:function(){var s=this,t=this.node;if(t){t.fadeOut(function(){k(this).remove();k(s).triggerHandler("remove")})}return this},unload:function(){this.remove();delete this.node;try{k(this).triggerHandler("unload")}catch(s){}return this}}}),Lightbox:k.extend(function(){var t=this,u=k.throttle(function(){t.center();t.overlay.fillScreen()},250,true),s=function(v){if(v.which===27){t.close()}};k.extend(this,{overlay:k.extend(new C.Overlay(),{lightbox:this})});k(this.overlay).bind("add",function(){this.node.one("click",function(){t.close()})});k(this).bind("open",function(){k(G).resize(u);k(D).keydown(s);G.setTimeout(function(){k("iframe").each(function(){try{k(this.contentWindow.document).keydown(s)}catch(v){}})},260)}).bind("close",function(){k(G).unbind("resize",u);k(D).unbind("keydown",s);k("iframe").each(function(){try{k(this.contentWindow.document).unbind("keydown",s)}catch(v){}})})},{prototype:{type:"lightbox",center:function(){var s=this.container,u,t;if(s){u=Math.floor((k(G).width()-s.width())/2)+k(D).scrollLeft();t=Math.floor((k(G).height()-s.height())/2)+k(D).scrollTop();if(u<0){u=0}if(t<0){t=0}s.css({left:u+"px",top:t+"px"})}return this},open:function(u){var t=this;E();this.overlay.add();if(!t.container){t.container=k("<div></div>").hide().addClass(B()+" "+B([t.type,"container"])).css({position:"absolute",margin:0,padding:0,"z-index":99999});k(G).unload(function(){t.unload()})}t.container.append(u).appendTo("body");t.center().container.show();t.overlay.fillScreen();k(D).bind("keydown",function s(v){if(v.which===27){k(this).unbind("keydown",s);t.close()}});k(t).triggerHandler("open");t.center();return this},close:function(u,s){var t=this;n();if(typeof u==="object"){u.bind(s||"click",function(){t.close()})}else{this.overlay.remove();this.container.empty().remove();k(this).triggerHandler("close")}return this},unload:function(){this.close();delete this.container;try{k(this).triggerHandler("unload")}catch(s){}return this}}})},H=k.extend(function(){var s=new C.Lightbox();return A(s,["open","close","remove","unload"])},{nitelite:F,overlay:function(){var s=new C.Overlay();return A(s,["create","add","remove","unload"])}});k.nitelite=H}(r));e.extend(e.fn,{cssImportant:function(m,l){var k,n;n=this;if(typeof m!=="object"&&typeof l==="undefined"){return p.css.apply(this,arguments)}if(typeof m==="string"){k=m;m={};m[k]=l}e.each(m,function(z,x){var y,w;y=n.attr("style")||"";w=(x!==null)?z+":"+x+" !important;":"";if(y.toLowerCase().indexOf(z.toLowerCase())!==-1){y=y.replace(new RegExp(z+"\\s*:\\s*[^;]*(;|$)","i"),w)}else{y=e.trim(y);if(y!==""){if(y.slice(-1)!==";"){y+=";"}y+=" "}y+=w}n.attr("style",y)});return n},css:function(){var l,k;l=arguments;k=(typeof l[0]==="string"&&l.length>2)||(typeof l[1]==="string"&&l.length>2)&&l.length>1&&arguments[arguments.length-1]===true;return(k?this.cssImportant:p.css).apply(this,arguments)}});this.Sqwidget=c=e.extend(function(l,k){c.widgets.push(this);if(typeof l==="object"){e.extend(this,l,{uid:c.uid()})}if(typeof k==="function"){k.call(this,e)}},c,{widgets:[],isElement:function(k){return k&&k.nodeType===1},isJQuery:function(k){return k&&!!k.jquery},isUrl:function(k){return(/^https?:\/\/[\-\w]+\.\w[\-\w]+\S*$/).test(k)},uid:function(l){var k=Math;return k.round(k.pow(k.pow(10,l||8),k.random()))},cssPresets:{contentonly:{margin:0,padding:0,borderWidth:0}},notifyGlobalWindow:function(m,k,l){e.each(k,function(v,u){try{e(m).bind(u,function(){e(b).trigger(g(),{type:(l||m.type)+"."+u,origin:this})})}catch(n){i("catch",e)}})},prototype:e.extend(function(){},{insert:function(m,l,k){var n=this.insertPosition=e(l||this.insertPosition||this.thisDomScript());if(!n){return false}if(!m){return n}n[k||"after"](m);return e(m)},truncate:function(k,n,l){var m=String(k).replace(new RegExp("^((\\W*\\w*\\b){0,"+n+"}\\.?).*$","m"),"$1");return m+(m.length<k.length?(l||"\u2026"):"")},repeat:function(k,l){return l>0?new Array(l+1).join(k):""},leadingZeroes:function(l,k){return this.repeat("0",(k||2)-String(l).length)+l},atomDate:function(n){var l,k,m;n=n.replace(/z$/i,"+00:00");l=n.split(/[\-T:+]/);k=Number;if(l.length!==8){return false}m=n.substr(19,1);return new Date(Date.UTC(k(l[0]),k(l[1]-1),k(l[2]),k(l[3]-k(m+l[6])),k(l[4]-k(m+l[7])),k(l[5])))},urlParam:function(m,k,l){return m+(!/\?/.test(m)?"?":"&")+k+"="+l},timeChunk:function(n){var l,k,m,x,v,w;l=4;k=new Date(2009,0,1).getTime();m=24*60*60*1000;x=n*m;v=new Date().getTime();w=v-(v%Math.round(x));return Number(((w-k)/m).toFixed(l))||0},cacheUrl:function(k,l){return this.urlParam(k,"cache",this.timeChunk(l))},loadCss:function(l,m){m=m||this.settings.cssCacheTime;function k(n){return(/@|\{/m).test(n)}e("head").append(k(l)?'<style type="text/css">'+l+"</style>":'<link type="text/css" rel="stylesheet" href="'+(m?this.cacheUrl(l,m):l)+'" />')},tmpl:function q(k,l){var m=new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+k.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');");return m.call(this,e.extend(true,{$:e,sqwidget:this},l))}})})})}());
/*
* MiShorts Widget: www.mishorts.com/widget
*   by Dharmafly: dharmafly.com
*/
c.ready(function(b){var a=20,j=this,l=j.sqwidgetDebug?(j._?j._:(j.console&&j.console.firebug?j.console.debug:function(){})):function(){},m=b.browser,n=j.parseInt(m.version,10),k=(m.webkit&&n<=523);b.iframe.debug=l;b.Midget=b.extend(function(e){l("new $.Midget");b.extend(this,e)},{prototype:b.extend(new c({type:"midget"}),{templateCache:5,templateHead:"",templates:[],possessiveName:function(e){return e+(e.slice(-1)==="s"?"'":(e?"'s":""))},prettyDate:function(f){var e=new Date(f*1000);return e.getDate()+" "+"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(",")[e.getMonth()]+" "+e.getFullYear()},prettyDuration:function(f){var e=f%60;return parseInt(f/60,10)+":"+this.leadingZeroes(e)},userFeedUrl:function(e,f){f=f||this.numFilms||a;e=e||this.user;return e?this.cacheUrl("http://www.mishorts.com/includes/midget-feed.php?userId="+e+"&per_page="+f,1)+"&callback=?":false},userFeed:function(e,f,g){l("Loading feed: "+this.userFeedUrl(f,g));b.getJSON(this.userFeedUrl(f),e)},lightbox:b.nitelite(),render:function(){var e=this;this.userFeed(function(f){d.template(function(g){e.template(g,f)});c.getScript(e.cacheUrl(e.templateUrl,e.templateCache))});return this},template:function(x,u){var i=this,w,e,t;l("data:",u);function g(o){var p=o.user;p.films=p.films||[];p.films=b.map(p.films,function(q,r){return q.id!==null?q:null});p.photos=p.photos||[];p.photos=b.map(p.photos,function(r,q){return r.url&&r.width>0&&r.height>0?r:null});b.each(p.films,function(r,q){q.photos=q.photos||[];q.photos=b.map(q.photos,function(s,z){return s.url&&s.width>0&&s.height>0?s:null});q.videos=q.videos||[];q.videos=b.map(q.videos,function(z,s){return z.url?z:null});q.categories=q.categories||[]});return o}function v(o){var p,z,q,s,r;q="";r={};p=o.match(/^((?!<script)[\w\W])*<head>/);if(p){z=o.match(/^((?!<script)[\w\W])*?<head>([\w\W]*)<\/head>([\w\W]*?)$/);q=b.trim(z[2]);s=z[1]+z[3]}else{s=o}b(s).filter("script[type=text/template][id]").each(function(B,y){y=b(y);r[y.attr("id")]={body:b.trim(y.html())}});return{head:q,templates:r}}function f(q,o,p){return b.map(q,function(r){return(typeof r[o]!=="undefined"&&r[o]===p)?r:null})}function h(){var o=i.lightbox,q=b(this).closest("li").attr("className").replace(/^(?:.*\s)?film-(.*)(?:\s|$)/,"$1"),r,s,p;if(q){s=f(u.user.films,"id",q);if(s.length){p=b.extend(true,{},u);p.user.films=s;r=b.iframe(i.templateHead,i.tmpl(i.templates.lightbox.body,p),{autowidth:true,target:"_blank"},function(){var z=this;this.one("resize",function(){o.center().close(this.$("a.close")).overlay.fillScreen();this.animate({opacity:1},"slow")});j.setTimeout(function(){var y=i.templates[!k?"video":"still"].body;z.$(".sqwidget-player .video").append(i.tmpl(y,p))},250)});r.css({opacity:0});o.open(r)}}return false}u=g(u);e=v(x);i.templateHead=e.head;i.templates=e.templates;t=i.tmpl(i.templates.main.body,u);w=b.iframe(i.templateHead,t,{target:"_blank"},function(){this.body().find("h3.entry-title a, div.film-img > a").click(h)}).appendTo(i.insertPosition)}})})});function d(b,i,j,a){var k=this,l=k.sqwidgetDebug?(k._?k._:(k.console&&k.console.firebug?k.console.debug:function(){})):function(){};l("midget()",j);c.ready(function(e){var f;d.template=function(h){var g=d.template.callbacks;if(e.isFunction(h)){g.push(h)}else{while(g.length){g.shift()(h)}}};d.template.callbacks=[];f=new e.Midget(j);f.insertPosition=b;f.templateUrl=i;f.render();if(a){a.call(f,e)}})}c.domReady(function(){var a=c.widgetsInDom();c.ready(function(){for(var h=a.length,g=h,b;g;g--){b=a[g-1];if(b.type==="mishorts"){d(b.container,b.sqwidgetSettings.template,b.widgetSettings)}}})});this.mishorts=d}())};