/*
This file contains the following URLs concatenated together.
They were also optimized by Google's Closure Compiler with compilation_level SIMPLE_OPTIMIZATIONS.
 1. /wp-includes/js/json2.js?ver=20110113
 2. http://craftgawker.com/wp-content/plugins/foodgawker/js/jquery.jsoncookie.min.js
 3. http://craftgawker.com/wp-content/plugins/foodgawker/js/cf-placeholder/jquery.placeholder.min.js?ver=1320894581
 4. http://craftgawker.com/wp-content/plugins/foodgawker/jquery.quickflip.js?ver=1320894581
 5. http://craftgawker.com/wp-content/plugins/foodgawker/form/jquery.form.js?ver=1320894581
 6. http://craftgawker.com/wp-content/plugins/foodgawker/foodgawker.js?ver=1320894581
 7. http://craftgawker.com/wp-content/plugins/foodgawker/app_prompt.js?ver=1323731362
 8. http://craftgawker.com/wp-content/plugins/foodgawker/js/jquery.columnizelists.min.js?ver=1320894581
 9. http://craftgawker.com/wp-content/plugins/foodgawker/js/jquery.fg-advanced-search.js?ver=1320894581
 10. http://craftgawker.com/wp-content/plugins/foodgawker/js/jquery.my-saved-searches.js?ver=1320894581
*/
if(!this.JSON)this.JSON={};
(function(){function a(a){return 10>a?"0"+a:a}function c(a){e.lastIndex=0;return e.test(a)?'"'+a.replace(e,function(a){var b=h[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function b(a,e){var h,g,s,w,y=d,r,n=e[a];n&&"object"===typeof n&&"function"===typeof n.toJSON&&(n=n.toJSON(a));"function"===typeof j&&(n=j.call(e,a,n));switch(typeof n){case "string":return c(n);case "number":return isFinite(n)?""+n:"null";case "boolean":case "null":return""+n;
case "object":if(!n)return"null";d+=f;r=[];if("[object Array]"===Object.prototype.toString.apply(n)){w=n.length;for(h=0;h<w;h+=1)r[h]=b(h,n)||"null";s=0===r.length?"[]":d?"[\n"+d+r.join(",\n"+d)+"\n"+y+"]":"["+r.join(",")+"]";d=y;return s}if(j&&"object"===typeof j){w=j.length;for(h=0;h<w;h+=1)g=j[h],"string"===typeof g&&(s=b(g,n))&&r.push(c(g)+(d?": ":":")+s)}else for(g in n)Object.hasOwnProperty.call(n,g)&&(s=b(g,n))&&r.push(c(g)+(d?": ":":")+s);s=0===r.length?"{}":d?"{\n"+d+r.join(",\n"+d)+"\n"+
y+"}":"{"+r.join(",")+"}";d=y;return s}}if("function"!==typeof Date.prototype.toJSON)Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()};var g=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,d,f,h={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},j;if("function"!==typeof JSON.stringify)JSON.stringify=function(a,c,e){var h;f=d="";if("number"===typeof e)for(h=0;h<e;h+=1)f+=" ";else"string"===typeof e&&(f=e);if((j=c)&&"function"!==typeof c&&("object"!==typeof c||"number"!==typeof c.length))throw Error("JSON.stringify");return b("",
{"":a})};if("function"!==typeof JSON.parse)JSON.parse=function(a,b){function c(a,d){var e,h,f=a[d];if(f&&"object"===typeof f)for(e in f)Object.hasOwnProperty.call(f,e)&&(h=c(f,e),void 0!==h?f[e]=h:delete f[e]);return b.call(a,d,f)}var d;g.lastIndex=0;g.test(a)&&(a=a.replace(g,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return d=eval("("+a+")"),"function"===typeof b?c({"":d},""):d;throw new SyntaxError("JSON.parse");}})();
(function(a){var c=encodeURIComponent,b=decodeURIComponent;a.cookie=function(g,e,d){var d=a.extend({},d),f=d.expires,h=e;return g?(g=c(g),void 0===e?(h=RegExp("(?:^|; )"+g+"=([^;]*)").exec(document.cookie),h&&JSON.parse(b(h[1]))):(null===e&&(f=-1),"number"==typeof f&&(f=new Date((new Date).getTime()+f)),document.cookie=[g,"=",c(JSON.stringify(e)),f?"; expires="+f.toUTCString():"",d.path?"; path="+d.path:"",d.domain?"; domain="+d.domain:"",d.secure?"; secure":""].join(""),h)):(h={},a.each(document.cookie.split("; "),
function(a,d){if(d){var c=d.split("=");h[b(c[0])]=JSON.parse(b(c[1]))}}),h)};a.support&&function(){var b="jsoncookie"+(new Date).getTime();a.cookie(b,b);a.support.cookie=a.cookie(b)===b;a.cookie(b,null)}()})(jQuery);
(function(a){function c(a,b){var c=b.classname;""==a.val()||a.val()==a.attr(b.attribute)?(a.addClass(c),""==a.val()&&a.attr("value",a.attr(b.attribute))):a.removeClass(c)}function b(a,b){a.val()&&a.val()!=a.attr(b.attribute)||(a.val()==a.attr(b.attribute)?a.attr("value",""):a.val()||a.attr("value",a.attr(b.attribute)),a.toggleClass(b.classname))}function g(b){a("form").submit(function(){clearPlaceholders(this,b)})}a.fn.placeholder=function(e){var d=a.extend({},a.fn.placeholder.settings,e);"placeholder"==
d.attribute&&!0==d.disableIfSupported&&"placeholder"in document.createElement("input")||(this.each(function(){var f=a(this);c(f,d);f.focus(function(){b(f,d)});f.blur(function(){b(f,d)})}),g(d))};a.fn.placeholder.settings={classname:"cfp-placeholder",attribute:"placeholder",disableIfSupported:!0};a.placeholders=function(b){a("input[placeholder], textarea[placeholder]").placeholder(b)};clearPlaceholders=function(b,c){a(b).find("input").each(function(){_this=a(this);_this.val()==_this.attr(c.attribute)&&
_this.attr("value","")})}})(jQuery);
(function(a){a.quickFlip={wrappers:[],options:[],objs:[],init:function(c,b){c=c||{};c.closeSpeed=c.closeSpeed||180;c.openSpeed=c.openSpeed||120;c.ctaSelector=c.ctaSelector||".quickFlipCta";c.refresh=c.refresh||!1;c.easing=c.easing||"swing";var g="undefined"!=typeof b?a(b):a(".quickFlip"),e=g.children();"static"==g.css("position")&&g.css("position","relative");var d=a.quickFlip.wrappers.length;e.each(function(b){var h=a(this);c.ctaSelector&&a.quickFlip.attachHandlers(a(c.ctaSelector,h),d,b);b&&h.hide()});
a.quickFlip.options.push(c);a.quickFlip.objs.push({$box:a(g),$kids:a(e)});a.quickFlip.buildQuickFlip(d);a(window).resize(function(){for(var b=0;b<a.quickFlip.wrappers.length;b++)a.quickFlip.removeFlipDivs(b),a.quickFlip.buildQuickFlip(b)})},buildQuickFlip:function(c,b){function g(b,c,f){var g=a("<div></div>");g.css({width:b.halfwidth,height:d.panelHeight,position:"absolute",top:0,overflow:"hidden",margin:0,padding:0});b=e("<div></div>");b.addClass(c);b.html(f);g.html(b);return g}function e(b){"undefined"==
typeof b.css&&(b=a(b));b.css({position:"absolute",top:0,left:0,margin:0,padding:0,width:d.panelWidth,height:d.panelHeight});return b}a.quickFlip.options[c].panelWidth=a.quickFlip.options[c].panelWidth||a.quickFlip.objs[c].$box.width();a.quickFlip.options[c].panelHeight=a.quickFlip.options[c].panelHeight||a.quickFlip.objs[c].$box.height();var d=a.quickFlip.options[c],f={wrapper:a.quickFlip.objs[c].$box,index:c,halfwidth:parseInt(d.panelWidth/2),classNames:[],panels:[],flipDivs:[],flipDivCols:[],currPanel:b||
0,options:d};a.quickFlip.objs[c].$kids.each(function(b){var c=e(a(this));f.panels.push(c);f.classNames.push(c[0].className);var c=a("<div></div>"),d=f.panels[b].html(),m=a(g(f,f.classNames[b],d)).appendTo(c),b=a(g(f,f.classNames[b],d)).appendTo(c);m.css("right",f.halfwidth);b.css("left",f.halfwidth);b.children().css({right:0,left:"auto"});b=c.hide().appendTo(f.wrapper);f.flipDivs.push(b);f.flipDivCols.push(b.children())});a.quickFlip.wrappers[c]=f},flip:function(c,b,g,e){if("number"!=typeof c||"undefined"==
typeof a.quickFlip.wrappers[c])return!1;var d=a.quickFlip.wrappers[c],f=d.currPanel,h="undefined"!=typeof b&&null!=b?b:d.panels.length>f+1?f+1:0;d.currPanel=h;g="undefined"!=typeof g?g:1;e=a.quickFlip.combineOptions(e,a.quickFlip.options[c]);d.panels[f].hide();e.refresh&&(a.quickFlip.removeFlipDivs(c),a.quickFlip.buildQuickFlip(c,h),d=a.quickFlip.wrappers[c]);d.flipDivs[f].show();var j=0,k=0;d.flipDivCols[f].animate({width:0},e.closeSpeed,e.easing,function(){j?(d.flipDivs[h].show(),d.flipDivCols[h].css("width",
0),d.flipDivCols[h].animate({width:d.halfwidth},e.openSpeed,e.easing,function(){if(k)switch(d.flipDivs[h].hide(),d.panels[h].show(),g){case 0:case -1:a.quickFlip.flip(c,null,-1);break;case 1:break;default:a.quickFlip.flip(c,null,g-1)}else k++})):j++})},attachHandlers:function(c,b){c.click(function(c){c.preventDefault();a.quickFlip.flip(b)})},removeFlipDivs:function(c){for(var b=0;b<a.quickFlip.wrappers[c].flipDivs.length;b++)a.quickFlip.wrappers[c].flipDivs[b].remove()},compareObjs:function(a,b){if(!a||
!b||!a.length||!b.length||a.length!=b.length)return!1;for(var g=0;g<a.length;g++)if(a[g]!==b[g])return!1;return!0},combineOptions:function(a,b){a=a||{};b=b||{};for(x in a)b[x]=a[x];return b}};a.fn.quickFlip=function(c){this.each(function(){new a.quickFlip.init(c,this)});return this};a.fn.whichQuickFlip=function(){for(var c=null,b=0;b<a.quickFlip.wrappers.length;b++)a.quickFlip.compareObjs(this,a(a.quickFlip.wrappers[b].wrapper))&&(c=b);return c};a.fn.quickFlipper=function(c,b,g){this.each(function(){var e=
a(this),d=e.whichQuickFlip();null==d&&(e.quickFlip(c),d=e.whichQuickFlip());a.quickFlip.flip(d,b,g,c)})}})(jQuery);
(function(a){function c(){var a="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(a):window.opera&&window.opera.postError&&window.opera.postError(a)}a.fn.ajaxSubmit=function(b){function g(d){function g(){function b(){try{var a=(p.contentWindow?p.contentWindow.document:p.contentDocument?p.contentDocument:p.document).readyState;c("state = "+a);"uninitialized"==a.toLowerCase()&&setTimeout(b,50)}catch(d){c("Server abort: ",d," (",d.name,")"),
h(z),v&&clearTimeout(v),v=void 0}}var d=f.attr("target"),k=f.attr("action");j.setAttribute("target",u);e||j.setAttribute("method","POST");k!=i.url&&j.setAttribute("action",i.url);!i.skipEncodingOverride&&(!e||/post/i.test(e))&&f.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});i.timeout&&(v=setTimeout(function(){A=!0;h(B)},i.timeout));var l=[];try{if(i.extraData)for(var m in i.extraData)l.push(a('<input type="hidden" name="'+m+'" />').attr("value",i.extraData[m]).appendTo(j)[0]);
i.iframeTarget||(t.appendTo("body"),p.attachEvent?p.attachEvent("onload",h):p.addEventListener("load",h,!1));setTimeout(b,15);j.submit()}finally{j.setAttribute("action",k),d?j.setAttribute("target",d):f.removeAttr("target"),a(l).remove()}}function h(b){if(!l.aborted&&!C){try{q=p.contentWindow?p.contentWindow.document:p.contentDocument?p.contentDocument:p.document}catch(d){c("cannot access response document: ",d),b=z}if(b===B&&l)l.abort("timeout");else if(b==z&&l)l.abort("server abort");else if(q&&
q.location.href!=i.iframeSrc||A){p.detachEvent?p.detachEvent("onload",h):p.removeEventListener("load",h,!1);var b="success",e;try{if(A)throw"timeout";var f="xml"==i.dataType||q.XMLDocument||a.isXMLDoc(q);c("isXml="+f);if(!f&&window.opera&&(null==q.body||""==q.body.innerHTML)&&--E){c("requeing onLoad callback, DOM not available");setTimeout(h,250);return}var g=q.body?q.body:q.documentElement;l.responseText=g?g.innerHTML:null;l.responseXML=q.XMLDocument?q.XMLDocument:q;if(f)i.dataType="xml";l.getResponseHeader=
function(a){return{"content-type":i.dataType}[a]};if(g)l.status=Number(g.getAttribute("status"))||l.status,l.statusText=g.getAttribute("statusText")||l.statusText;var j=/(json|script|text)/.test((i.dataType||"").toLowerCase());if(j||i.textarea){var k=q.getElementsByTagName("textarea")[0];if(k)l.responseText=k.value,l.status=Number(k.getAttribute("status"))||l.status,l.statusText=k.getAttribute("statusText")||l.statusText;else if(j){var m=q.getElementsByTagName("pre")[0],n=q.getElementsByTagName("body")[0];
if(m)l.responseText=m.textContent?m.textContent:m.innerHTML;else if(n)l.responseText=n.innerHTML}}else if("xml"==i.dataType&&!l.responseXML&&null!=l.responseText)l.responseXML=F(l.responseText);try{D=G(l,i.dataType,i)}catch(s){b="parsererror",l.error=e=s||b}}catch(r){c("error caught: ",r),b="error",l.error=e=r||b}l.aborted&&(c("upload aborted"),b=null);l.status&&(b=200<=l.status&&300>l.status||304===l.status?"success":"error");if("success"===b)i.success&&i.success.call(i.context,D,"success",l),o&&
a.event.trigger("ajaxSuccess",[l,i]);else if(b){if(void 0==e)e=l.statusText;i.error&&i.error.call(i.context,l,b,e);o&&a.event.trigger("ajaxError",[l,i,e])}o&&a.event.trigger("ajaxComplete",[l,i]);o&&!--a.active&&a.event.trigger("ajaxStop");i.complete&&i.complete.call(i.context,l,b);C=!0;i.timeout&&clearTimeout(v);setTimeout(function(){i.iframeTarget||t.remove();l.responseXML=null},100)}}}var j=f[0],k,m,i,o,u,t,p,l,A,v,H=!!a.fn.prop;if(d)for(m=0;m<d.length;m++)k=a(j[d[m].name]),k[H?"prop":"attr"]("disabled",
!1);if(a(":input[name=submit],:input[id=submit]",j).length)alert('Error: Form elements must not have name or id of "submit".');else if(i=a.extend(!0,{},a.ajaxSettings,b),i.context=i.context||i,u="jqFormIO"+(new Date).getTime(),i.iframeTarget?(t=a(i.iframeTarget),k=t.attr("name"),null==k?t.attr("name",u):u=k):(t=a('<iframe name="'+u+'" src="'+i.iframeSrc+'" />'),t.css({position:"absolute",top:"-1000px",left:"-1000px"})),p=t[0],l={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",
getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(b){var d="timeout"===b?"timeout":"aborted";c("aborting upload... "+d);this.aborted=1;t.attr("src",i.iframeSrc);l.error=d;i.error&&i.error.call(i.context,l,d,b);o&&a.event.trigger("ajaxError",[l,i,d]);i.complete&&i.complete.call(i.context,l,d)}},(o=i.global)&&!a.active++&&a.event.trigger("ajaxStart"),o&&a.event.trigger("ajaxSend",[l,i]),i.beforeSend&&!1===i.beforeSend.call(i.context,l,i))i.global&&
a.active--;else if(!l.aborted){if(d=j.clk)if((k=d.name)&&!d.disabled)if(i.extraData=i.extraData||{},i.extraData[k]=d.value,"image"==d.type)i.extraData[k+".x"]=j.clk_x,i.extraData[k+".y"]=j.clk_y;var B=1,z=2;i.forceSync?g():setTimeout(g,10);var D,q,E=50,C,F=a.parseXML||function(a,b){window.ActiveXObject?(b=new ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(a)):b=(new DOMParser).parseFromString(a,"text/xml");return b&&b.documentElement&&"parsererror"!=b.documentElement.nodeName?b:null},
I=a.parseJSON||function(a){return window.eval("("+a+")")},G=function(b,d,c){var e=b.getResponseHeader("content-type")||"",f="xml"===d||!d&&0<=e.indexOf("xml"),b=f?b.responseXML:b.responseText;f&&"parsererror"===b.documentElement.nodeName&&a.error&&a.error("parsererror");c&&c.dataFilter&&(b=c.dataFilter(b,d));"string"===typeof b&&("json"===d||!d&&0<=e.indexOf("json")?b=I(b):("script"===d||!d&&0<=e.indexOf("javascript"))&&a.globalEval(b));return b}}}if(!this.length)return c("ajaxSubmit: skipping submit process - no element selected"),
this;var e,d,f=this;"function"==typeof b&&(b={success:b});e=this.attr("method");d=this.attr("action");(d=(d="string"===typeof d?a.trim(d):"")||window.location.href||"")&&(d=(d.match(/^([^#]+)/)||[])[1]);b=a.extend(!0,{url:d,success:a.ajaxSettings.success,type:e||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},b);d={};this.trigger("form-pre-serialize",[this,b,d]);if(d.veto)return c("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(b.beforeSerialize&&
!1===b.beforeSerialize(this,b))return c("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var h,j,k=this.formToArray(b.semantic);if(b.data)for(h in b.extraData=b.data,b.data)if(a.isArray(b.data[h]))for(var m in b.data[h])k.push({name:h,value:b.data[h][m]});else j=b.data[h],j=a.isFunction(j)?j():j,k.push({name:h,value:j});if(b.beforeSubmit&&!1===b.beforeSubmit(k,this,b))return c("ajaxSubmit: submit aborted via beforeSubmit callback"),this;this.trigger("form-submit-validate",[k,this,b,
d]);if(d.veto)return c("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;h=a.param(k);"GET"==b.type.toUpperCase()?(b.url+=(0<=b.url.indexOf("?")?"&":"?")+h,b.data=null):b.data=h;var o=[];b.resetForm&&o.push(function(){f.resetForm()});b.clearForm&&o.push(function(){f.clearForm()});if(!b.dataType&&b.target){var u=b.success||function(){};o.push(function(d){var c=b.replaceTarget?"replaceWith":"html";a(b.target)[c](d).each(u,arguments)})}else b.success&&o.push(b.success);b.success=function(a,
d,c){for(var e=b.context||b,g=0,h=o.length;g<h;g++)o[g].apply(e,[a,d,c||f,f])};h=0<a("input:file",this).length;m="multipart/form-data"==f.attr("enctype")||"multipart/form-data"==f.attr("encoding");if(!1!==b.iframe&&(h||b.iframe||m))b.closeKeepAlive?a.get(b.closeKeepAlive,function(){g(k)}):g(k);else{if(a.browser.msie&&"get"==e&&(h=f[0].getAttribute("method"),"string"===typeof h))b.type=h;a.ajax(b)}this.trigger("form-submit-notify",[this,b]);return this};a.fn.ajaxForm=function(b){if(0===this.length){var g=
this.selector,e=this.context;if(!a.isReady&&g)return c("DOM not ready, queuing ajaxForm"),a(function(){a(g,e).ajaxForm(b)}),this;c("terminating; zero elements found by selector"+(a.isReady?"":" (DOM not ready)"));return this}return this.ajaxFormUnbind().bind("submit.form-plugin",function(d){d.isDefaultPrevented()||(d.preventDefault(),a(this).ajaxSubmit(b))}).bind("click.form-plugin",function(b){var c=b.target,e=a(c);if(!e.is(":submit,input:image")){c=e.closest(":submit");if(0==c.length)return;c=c[0]}var g=
this;g.clk=c;if("image"==c.type)void 0!=b.offsetX?(g.clk_x=b.offsetX,g.clk_y=b.offsetY):"function"==typeof a.fn.offset?(e=e.offset(),g.clk_x=b.pageX-e.left,g.clk_y=b.pageY-e.top):(g.clk_x=b.pageX-c.offsetLeft,g.clk_y=b.pageY-c.offsetTop);setTimeout(function(){g.clk=g.clk_x=g.clk_y=null},100)})};a.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};a.fn.formToArray=function(b){var c=[];if(0===this.length)return c;var e=this[0],d=b?e.getElementsByTagName("*"):e.elements;
if(!d)return c;var f,h,j,k,m,o;for(f=0,m=d.length;f<m;f++)if(h=d[f],j=h.name)if(b&&e.clk&&"image"==h.type)!h.disabled&&e.clk==h&&(c.push({name:j,value:a(h).val()}),c.push({name:j+".x",value:e.clk_x},{name:j+".y",value:e.clk_y}));else if((k=a.fieldValue(h,!0))&&k.constructor==Array)for(h=0,o=k.length;h<o;h++)c.push({name:j,value:k[h]});else null!==k&&"undefined"!=typeof k&&c.push({name:j,value:k});if(!b&&e.clk&&(b=a(e.clk),d=b[0],(j=d.name)&&!d.disabled&&"image"==d.type))c.push({name:j,value:b.val()}),
c.push({name:j+".x",value:e.clk_x},{name:j+".y",value:e.clk_y});return c};a.fn.formSerialize=function(b){return a.param(this.formToArray(b))};a.fn.fieldSerialize=function(b){var c=[];this.each(function(){var e=this.name;if(e){var d=a.fieldValue(this,b);if(d&&d.constructor==Array)for(var f=0,h=d.length;f<h;f++)c.push({name:e,value:d[f]});else null!==d&&"undefined"!=typeof d&&c.push({name:this.name,value:d})}});return a.param(c)};a.fn.fieldValue=function(b){for(var c=[],e=0,d=this.length;e<d;e++){var f=
a.fieldValue(this[e],b);null===f||"undefined"==typeof f||f.constructor==Array&&!f.length||(f.constructor==Array?a.merge(c,f):c.push(f))}return c};a.fieldValue=function(b,c){var e=b.name,d=b.type,f=b.tagName.toLowerCase();void 0===c&&(c=!0);if(c&&(!e||b.disabled||"reset"==d||"button"==d||("checkbox"==d||"radio"==d)&&!b.checked||("submit"==d||"image"==d)&&b.form&&b.form.clk!=b||"select"==f&&-1==b.selectedIndex))return null;if("select"==f){var h=b.selectedIndex;if(0>h)return null;for(var e=[],f=b.options,
j=(d="select-one"==d)?h+1:f.length,h=d?h:0;h<j;h++){var k=f[h];if(k.selected){var m=k.value;m||(m=k.attributes&&k.attributes.value&&!k.attributes.value.specified?k.text:k.value);if(d)return m;e.push(m)}}return e}return a(b).val()};a.fn.clearForm=function(){return this.each(function(){a("input,select,textarea",this).clearFields()})};a.fn.clearFields=a.fn.clearInputs=function(){var a=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var c=
this.type,e=this.tagName.toLowerCase();if(a.test(c)||"textarea"==e)this.value="";else if("checkbox"==c||"radio"==c)this.checked=!1;else if("select"==e)this.selectedIndex=-1})};a.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})};a.fn.enable=function(a){void 0===a&&(a=!0);return this.each(function(){this.disabled=!a})};a.fn.selected=function(b){void 0===b&&(b=!0);return this.each(function(){var c=this.type;
if("checkbox"==c||"radio"==c)this.checked=b;else if("option"==this.tagName.toLowerCase())c=a(this).parent("select"),b&&c[0]&&"select-one"==c[0].type&&c.find("option").selected(!1),this.selected=b})}})(jQuery);function limitChars(a,c,b){jQuery(a).keyup(function(){var g=jQuery(a).val(),e=g.length;e>c&&(jQuery(a).val(g.substr(0,c)),e=c);g=c-e;jQuery(b).html(g+"")})}
function doLinks(){jQuery(".page-item-6").unbind().click(function(){jQuery("#register-card").hide();jQuery("#login-card").show();jQuery("#submission-card").show();jQuery("#login-card form:first").append(jQuery('<input type="hidden" name="redirect_to" value="/submit/" />'));return!1});jQuery("a.register").unbind().click(function(){jQuery("#login-card").hide();jQuery("#register-card").show();return!1});jQuery("a#login").unbind().click(function(){jQuery("#register-card").hide();jQuery("#login-card").show();
return!1});jQuery("a.cancel").unbind().live("click",function(){jQuery(".ajax_card").hide();return!1});jQuery("#preview_button").remove();jQuery("#preview_link").show().unbind().live("click",submitPreview);var a=jQuery('<a class="right" id="login_link" href="/login">login</a>');a.click(function(){jQuery("#login_button").click();return!1});jQuery("#login_button").hide().after(a);a=jQuery('<a class="right" id="forgot_link" href="/">reset password</a>');a.click(function(){jQuery("#forgot_button").click();
return!1});jQuery("#forgot_button").hide().after(a);a=jQuery('<a class="right" id="register_link" href="/">register</a>');a.click(function(){jQuery("#register_button").click();return!1});jQuery("#register_button").hide().after(a);limitChars("#sub_title input",35,"#title_remaining");limitChars("#sub_description textarea",140,"#desc_remaining")}
function loginSuccess(a){a.error_str?jQuery("#login-card").before(jQuery("<div>"+a.error_str+"</div>")):(jQuery("#register-card").remove(),jQuery("#login-card").remove(),jQuery("#login_links").html(a.login_links),0===jQuery("#submission-card").length&&jQuery("#front-page").prepend(a.submission_card),doLinks())}
function validate(){var a=[],c=jQuery("fieldset#sub_image input");0===c.val().length&&(c.before('<div class="error">Please select an image</div>'),a.push("Please select an image"));c=jQuery("fieldset#sub_url input");0!==c.val().indexOf("http://")&&(c.before('<div class="error">Please include http:// in the URL</div>'),a.push("Please include http:// in the URL"));c=jQuery("fieldset#sub_title input");35<c.val().length?(c.before('<div class="error">Title too long</div>'),a.push("Title too long")):0===
c.val().length&&(c.before('<div class="error">Please add a Title</div>'),a.push("Please add a Title"));c=jQuery("fieldset#sub_description textarea");140<c.val().length?(c.before('<div class="error">Description too long</div>'),a.push("Description too long")):0===c.val().length&&(c.before('<div class="error">Please add a description</div>'),a.push("Please add a description"));return 0===a.length}
function submitPreview(){if(!jQuery(".spinner").length){var a=jQuery(this),c={success:showPreview,extraData:{subaction:"Preview",ajax:"true"},beforeSubmit:validate,beforeSend:function(){a.addClass("spinner")},error:function(){a.before('<div class="error">An error occurred</div>')},complete:function(){a.removeClass("spinner")}};jQuery("div.error").remove();jQuery("#submission-card form").ajaxSubmit(c)}return!1}
function showPreview(a){var c=jQuery("#submission-card"),a=jQuery(a);"submission-card"==a.attr("id")?(c.replaceWith(a),jQuery("#preview_button").remove(),jQuery("#preview_link").show().unbind().click(submitPreview)):"preview-card"==a.attr("id")&&(0===jQuery("#preview-card").length?jQuery("#submission-card").after(a):jQuery("#preview-card").replaceWith(a),jQuery("#submission-card").hide(),jQuery("#preview_cancel").unbind().click(function(){jQuery("#preview-card").hide();return!1}),jQuery("#preview_submit").unbind().click(function(){jQuery(".spinner").length||
(jQuery(this).addClass("spinner"),jQuery("#submit_button").click());return!1}),jQuery("#preview_edit").unbind().click(function(){jQuery("#submission-card").show();jQuery("#preview-card").hide();return!1}))}function doReasonDropdown(){var a="div#reason-"+this.id.split("-")[1];jQuery(a).toggle();return!1}function showOtherBox(){var a="input#other-"+this.id.split("-")[1];"Other"==this.value?jQuery(a).attr("style","display: block;"):jQuery(a).hide();return!1}
function notesSaved(a){jQuery("#currAjax").html(a.msg);var c=jQuery(a.link);jQuery("#"+c.attr("id")).attr("href",c.attr("href")).attr("class",c.attr("class")).text(c.text());""!=a.tags&&jQuery("#favorite_tags").html(a.tags)}function recordForm(a,c){jQuery("#currAjax").attr("id","");c.prev().attr("id","currAjax");return!0}function saveClick(){jQuery(this).siblings("input:submit").submit();return!1}
function favoriteClick(){var a=jQuery(this),c={ajax:"true"};if(a.hasClass("simple"))c.simple="true";if(-1<a.attr("href").indexOf("?fg_flip"))return!1;jQuery.getJSON(a.attr("href"),c,function(b){if(a.hasClass("remove_link")&&!a.hasClass("noclose"))a.closest(".flipwrapper").fadeOut("slow",function(){jQuery(this).remove()});else{a=jQuery("#fav_link-"+b.id);var c=jQuery(b.link);a.attr("href",c.attr("href")).attr("class",c.attr("class")).text(c.text());"favorites_id"in b&&jQuery("#post-"+b.id+"-flip").find("p.status").text(b.status).end().find('input[name="favorites_id"]').val(b.favorites_id).end().find('input[name="_wpnonce"]').val(b.nonce)}""!=
b.tags&&jQuery("#favorite_tags").html(b.tags);b=new Date;b.setTime(b.getTime()+1728E5);document.cookie="wordpress_fg_favorites="+encodeURIComponent(new Date)+";expires="+b.toGMTString()});return!1}function firstFlipClick(a){var c=jQuery(this),b=0===c.closest(".flipped").length?1:0;c.unbind("click",firstFlipClick).closest(".flippable").quickFlipper({},b);a.preventDefault()}
function everyLoad(){jQuery.placeholders();jQuery('a[rel="external"], a[rel="external nofollow"], a[rel="nofollow external"]').attr("target","_blank");jQuery(".quickFlipCta:visible").click(firstFlipClick);jQuery(".fav_link").live("click",favoriteClick);jQuery("form.notes").ajaxForm({beforeSubmit:recordForm,success:notesSaved,dataType:"json",data:{ajax:"true"}});jQuery(".flipback").click(function(){jQuery("p.status").text("")});jQuery(".remove_link").click(function(){jQuery(this).parent().find("textarea").val("")});
var a=jQuery('<a class="save" href="#">save</a>');jQuery("form.notes input:submit").each(function(){var c=a.clone();c.click(saveClick);jQuery(this).hide().after(c)});jQuery("#fav-hide").click(function(){jQuery("#fav-sidebar").toggle();jQuery("#presentation3").toggleClass("fav-full")});gawkerverse.app_prompt.AppPrompt.prototype.PROMPT_TEXT="Wait, you don't have our iPhone app yet? Go install the app now!";gawkerverse.app_prompt.AppPrompt.prototype.OK_LINK=$('link[rel="app"]:first').attr("href");(new gawkerverse.app_prompt.AppPrompt).showIfAllowed()}
jQuery(document).ready(function(){everyLoad()});var gawkerverse=gawkerverse||{};gawkerverse.app_prompt=gawkerverse.app_prompt||{};gawkerverse.bind=function(a,c){return function(){return a.apply(c,arguments)}};gawkerverse.app_prompt.AppPrompt=function(){};gawkerverse.app_prompt.AppPrompt.prototype.OK_LINK="http://example.com";gawkerverse.app_prompt.AppPrompt.prototype.PROMPT_TEXT="Go to example.com?";gawkerverse.app_prompt.AppPrompt.prototype.NUMBER_OF_TIMES_TO_SHOW=2;
gawkerverse.app_prompt.AppPrompt.prototype.LOCAL_STORAGE_PREFIX="BOOKMARK_";gawkerverse.app_prompt.AppPrompt.prototype.SHOWN_="SHOWN_COUNT";gawkerverse.app_prompt.AppPrompt.prototype.MOBILE_USERAGENT_REGEX_=/iPhone|iPod/;gawkerverse.app_prompt.AppPrompt.prototype.SAFARI_USERAGENT_REGEX_=/Safari/;gawkerverse.app_prompt.AppPrompt.prototype.isMobileSafari_=function(){return this.MOBILE_USERAGENT_REGEX_.test(window.navigator.userAgent)&&this.SAFARI_USERAGENT_REGEX_.test(window.navigator.userAgent)};
gawkerverse.app_prompt.AppPrompt.prototype.hasBeenShownTooManyTimes_=function(){if(!window.localStorage)return!0;try{return(Number(window.localStorage[this.LOCAL_STORAGE_PREFIX+this.SHOWN_])||0)>=this.NUMBER_OF_TIMES_TO_SHOW}catch(a){return!0}};gawkerverse.app_prompt.AppPrompt.prototype.rememberShowing_=function(){if(window.localStorage)try{var a=this.LOCAL_STORAGE_PREFIX+this.SHOWN_;window.localStorage[a]=""+((Number(window.localStorage[a])||0)+1)}catch(c){}};
gawkerverse.app_prompt.AppPrompt.prototype.isAllowedToShow_=function(){return this.isMobileSafari_()&&!this.hasBeenShownTooManyTimes_()};gawkerverse.app_prompt.AppPrompt.prototype.show_=function(){this.rememberShowing_();if(confirm(this.PROMPT_TEXT))window.location=this.OK_LINK};gawkerverse.app_prompt.AppPrompt.prototype.showIfAllowed=function(){if(!this.isAllowedToShow_())return!1;this.show_();return!0};
(function(a){a.fn.columnizeLists=function(c){c=a.extend({},a.fn.columnizeLists.args,c);this.each(function(){var b=a(this),g=b.parent(),e=b.find("li"),d=e.size(),f=c.preserveOriginalClass?' class="'+b.attr("class")+'"':"";if("cols"==c.pref){var h=d%c.cols;c.rows=Math.floor(d/c.cols);h?extra=1:extra=0}g.append('<div class="'+c.divWrapperClass+'"></div>');var j=g.find("."+c.divWrapperClass.replace(" ",".")),k=0,m=0;e.each(function(){extra&&m<=h?row_count=c.rows+extra:row_count=c.rows;0==k%row_count&&
(m++,k=0,cur_col=c.colClass.replace(" ","-")+"-"+m.toString(),j.append('<div class="'+c.colClass+" "+cur_col+'"><ul'+f+"></ul></div>"));a(this).appendTo(j.find("."+cur_col+" ul"));k++});c.containerClass&&g.addClass(c.containerClass);g.children("ul").remove()})};a.fn.columnizeLists.args={pref:"cols",rows:10,cols:4,containerClass:"clearfix",colClass:"cf-col",divWrapperClass:"div-wrapper",preserveOriginalClass:!1}})(jQuery);
(function(a){var c=function(b){c.opts=a.extend(c.defaults,b);c.$form=this;var b=c.opts,g=function(b){b.each(function(){var b=a(this);b.prop("checked")?b.prop("checked",!1):b.prop("selected")?b.prop("selected",!1):b.val("")})};this.find(b.removeSelector).click(function(b){for(var d=a(b.currentTarget).data("clearfor").split(","),f=d.length-1;0<=f;f--)g(a("#"+d[f]));value=a(b.currentTarget).siblings('input[type="hidden"]').val();a(b.currentTarget).siblings('input[type="hidden"]').remove();a('input[value="'+
value+'"]').removeAttr("checked");c.$form.submit()});this.find(b.sortbySelector).change(function(){c.$form.submit()})};c.defaults={removeSelector:".remove",sortbySelector:"#sortby"};a.fn.fgAdvancedSearch=c;a.fn.fgCustomSelect=function(){a(this).filter("select").each(function(b,c){var e=a(c),d=a("<div/>").addClass("sel"),f=a("<div/>").addClass("val"),h=e.find("option"),j=a("<ul>").addClass("opts").css("position","absolute"),k,m=function(a){var b=a.data("fakeoption.fg"),c=b.position();e.find("option").not(a).filter(":selected").prop("selected",
!1);a.prop("selected","selected");j.find("li").removeClass("selected");b.addClass("selected");f.html(a.html());j.css("margin-top",-1*(c.top+b.outerHeight())+"px")};e.addClass("visuallyhidden").wrap(d);h.each(function(b,c){var d=a(c);k=a("<li/>").addClass("opt").html(d.html()).data("select.fg",e).data("fakeoptions.fg",j).data("option.fg",d).click(function(b){var c=a(b.target),d=c.data("select.fg"),e=c.data("option.fg"),c=c.data("fakeoptions.fg");m(e);d.trigger("change");c.hide();b.stopPropagation()});
j.append(k);d.data("fakeoption.fg",k)});f.mouseover(function(a){j.fadeIn("fast");a.stopPropagation()});var o;j.mouseleave(function(a){o=setTimeout(function(){j.fadeOut("fast");a.stopPropagation()},500)}).mouseover(function(){clearTimeout(o)});e.after(j).after(f);d=e.find("option:selected");$selectedFakeOpt=d.data("fakeoption.fg");m(d);j.hide()})};a.fn.fgFlyouts=function(b){var c=function(b,c){this.$context=b;this.$triggers=a();c.apply(this);a("body").click(a.proxy(function(){this.closePanel(this.$triggers,
75)},this));b.click(function(a){a.stopPropagation()})};c.prototype={panelKey:"panel.fg",panelOptsKey:"panelopts.fg",defaultPanelOpts:{width:300},openPanel:function(b){b.each(a.proxy(function(b,c){var e=a(c),g=e.data(this.panelKey),k=g.data(this.panelOptsKey);clearTimeout(this.openingPanel);this.closePanel(this.$triggers.not(e));g&&!(1>g.length||0<g.width())&&g.addClass("open").animate({width:k.width,opacity:1},750)},this))},closePanel:function(b,c){b.each(a.proxy(function(b,e){var g=a(e).data(this.panelKey);
g&&!(1>g.length)&&g.animate({width:0,opacity:0},c,"linear",function(){a(this).removeClass("open")})},this))},onHoverOpen:function(b){this.openingPanel=setTimeout(a.proxy(function(){this.openPanel(a(b.currentTarget))},this),1E3)},onHoverClose:function(){clearTimeout(this.openingPanel)},onClickOpen:function(b){this.openPanel(a(b.currentTarget))},onClickClose:function(b){this.closePanel(a(b.currentTarget),750)},registerFlyout:function(b,c,f){var h=a.proxy(this.onHoverOpen,this),g=a.proxy(this.onHoverClose,
this),k=a.proxy(this.onClickOpen,this),m=a.proxy(this.onClickClose,this),f=a.extend({},this.defaultPanelOpts,f);c.css({width:0,opacity:0,"z-index":99}).data(this.panelOptsKey,f);b.data(this.panelKey,c).click(a.proxy(function(f){b=a(f.currentTarget);c=b.data(this.panelKey);c.hasClass("open")?m(f):k(f)},this)).hover(h,g);this.$triggers=this.$triggers.add(b);return this}};a(this).each(function(e,d){new c(a(d),b)})};a(function(){a("#search-advanced").fgAdvancedSearch();a("#search-advanced .columnize ul").columnizeLists({cols:3});
a("#sortby").fgCustomSelect();a("#adv-s").fgFlyouts(function(){this.registerFlyout(a("#ctlpanel-ex-keywords .label",this.$context),a("#ctlpanel-ex-keywords .subpanel-inner",this.$context),{width:325}).registerFlyout(a("#ctlpanel-ex-cat .label",this.$context),a("#ctlpanel-ex-cat .subpanel-inner",this.$context),{width:471}).registerFlyout(a("#ctlpanel-username .label",this.$context),a("#ctlpanel-username .subpanel-inner",this.$context),{width:325}).registerFlyout(a("#ctlpanel-date .label",this.$context),
a("#ctlpanel-date .subpanel-inner",this.$context),{width:210}).registerFlyout(a("#ctlpanel-cat .label",this.$context),a("#ctlpanel-cat .subpanel-inner",this.$context),{width:471}).registerFlyout(a("#ctlpanel-save-search .label",this.$context),a("#ctlpanel-save-search .subpanel-inner",this.$context),{width:325})});a(".faux-label").click(function(){a(".date-range-radio").attr("checked","checked");a(this).siblings(".inp").focus()});a('input[name="start_date"]').click(function(){a(".date-range-radio").attr("checked",
"checked")});a('input[name="end_date"]').click(function(){a(".date-range-radio").attr("checked","checked")})});(function(){var b=a("html"),c,e=function(){for(var a=window.location.search,b={},c,a=a.replace("?",""),a=a.split("&"),d=0;d<a.length;d++)c=a[d].split("="),b[c[0]]=c[1];return b}().s||"default",d=new function(b,c){var d=a.cookie;this.opts=a.extend({},{path:"/",expires:6048E5},c);this.key=b;this.merge=function(b){var c=this.get()||{};return this.set(a.extend({},c,b))};this.set=function(a){return d(this.key,
a,this.opts)};this.get=function(){return d(this.key)}}("sidebarStatus"),f=d.get();f&&f.search!==e&&(f=d.set(null));f&&b.addClass("asides-hidden");a(function(){c=a("#hide-sidebar");d.get()&&c.html("Show Sidebar");c.css("display","block").click(function(){d.get()?(d.set(null),b.removeClass("asides-hidden"),a("#hide-sidebar").html("Hide Sidebar")):(d.set({search:e,hideSidebar:!0}),b.addClass("asides-hidden"),a("#hide-sidebar").html("Show Sidebar"))});a("form#searchform").submit(function(){d.set(null)})})})()})(jQuery);
jQuery(document).ready(function(){function a(){jQuery(".rename_search > *").hide();jQuery(".edit-button").show();jQuery(".save-button").hide();jQuery(".delete-button").show();jQuery(".search_name > a").show()}jQuery(".table-actions").append('<button class="edit-button">edit</button>');jQuery(".edit-button").click(function(){a();$me=jQuery(this);$otherCell=$me.parent().siblings("td");$me.siblings(".save-button").show();$otherCell.children("a").hide();$otherCell.children(".rename_search").children("input").show();
$me.siblings(".delete-button").hide();return!1});a()});
