/*
This file contains the following URLs concatenated together.
They were also optimized by Google's Closure Compiler with compilation_level SIMPLE_OPTIMIZATIONS.
 1. /wp-content/plugins/foodgawker/jquery.quickflip.js?ver=1263351397
 2. /wp-content/plugins/foodgawker/jquery.form.js?ver=1263351397
 3. /wp-content/plugins/foodgawker/foodgawker.js?ver=1263672683
 4. /scripts/gawky.js?ver=1265135646
*/
(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||false;c.easing=c.easing||"swing";b=typeof b!="undefined"?a(b):a(".quickFlip");var d=b.children();b.css("position")=="static"&&b.css("position","relative");var e=a.quickFlip.wrappers.length;d.each(function(f){var h=a(this);c.ctaSelector&&a.quickFlip.attachHandlers(a(c.ctaSelector,h),e,f);f&&
h.hide()});a.quickFlip.options.push(c);a.quickFlip.objs.push({$box:a(b),$kids:a(d)});a.quickFlip.buildQuickFlip(e);a(window).resize(function(){for(var f=0;f<a.quickFlip.wrappers.length;f++){a.quickFlip.removeFlipDivs(f);a.quickFlip.buildQuickFlip(f)}})},buildQuickFlip:function(c,b){function d(g,i){var q=a("<div></div>"),l=g.panels[i].html(),u=a(e(g,g.classNames[i],l)).appendTo(q);i=a(e(g,g.classNames[i],l)).appendTo(q);u.css("right",g.halfwidth);i.css("left",g.halfwidth);i.children().css({right:0,
left:"auto"});return q}function e(g,i,q){var l=a("<div></div>");l.css({width:g.halfwidth,height:h.panelHeight,position:"absolute",top:0,overflow:"hidden",margin:0,padding:0});g=f("<div></div>");g.addClass(i);g.html(q);l.html(g);return l}function f(g){if(typeof g.css=="undefined")g=a(g);g.css({position:"absolute",top:0,left:0,margin:0,padding:0,width:h.panelWidth,height:h.panelHeight});return g}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 h=a.quickFlip.options[c],j={wrapper:a.quickFlip.objs[c].$box,index:c,halfwidth:parseInt(h.panelWidth/2),classNames:[],panels:[],flipDivs:[],flipDivCols:[],currPanel:b||0,options:h};a.quickFlip.objs[c].$kids.each(function(g){var i=f(a(this));j.panels.push(i);j.classNames.push(i[0].className);g=d(j,g).hide().appendTo(j.wrapper);j.flipDivs.push(g);j.flipDivCols.push(g.children())});a.quickFlip.wrappers[c]=j},flip:function(c,b,
d,e){if(typeof c!="number"||typeof a.quickFlip.wrappers[c]=="undefined")return false;var f=a.quickFlip.wrappers[c],h=f.currPanel,j=typeof b!="undefined"&&b!=null?b:f.panels.length>h+1?h+1:0;f.currPanel=j;d=typeof d!="undefined"?d:1;e=a.quickFlip.combineOptions(e,a.quickFlip.options[c]);f.panels[h].hide();if(e.refresh){a.quickFlip.removeFlipDivs(c);a.quickFlip.buildQuickFlip(c,j);f=a.quickFlip.wrappers[c]}f.flipDivs[h].show();var g=0,i=0;f.flipDivCols[h].animate({width:0},e.closeSpeed,e.easing,function(){if(g){f.flipDivs[j].show();
f.flipDivCols[j].css("width",0);f.flipDivCols[j].animate({width:f.halfwidth},e.openSpeed,e.easing,function(){if(i){f.flipDivs[j].hide();f.panels[j].show();switch(d){case 0:case -1:a.quickFlip.flip(c,null,-1);break;case 1:break;default:a.quickFlip.flip(c,null,d-1);break}}else i++})}else g++})},attachHandlers:function(c,b){c.click(function(d){d.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(c,b){if(!c||!b||!c.length||!b.length||c.length!=b.length)return false;for(var d=0;d<c.length;d++)if(c[d]!==b[d])return false;return true},combineOptions:function(c,b){c=c||{};b=b||{};for(x in c)b[x]=c[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++)if(a.quickFlip.compareObjs(this,a(a.quickFlip.wrappers[b].wrapper)))c=b;return c};a.fn.quickFlipper=
function(c,b,d){this.each(function(){var e=a(this),f=e.whichQuickFlip();if(f==null){e.quickFlip(c);f=e.whichQuickFlip()}a.quickFlip.flip(f,b,d,c)})}})(jQuery);
(function(a){function c(){a.fn.ajaxSubmit.debug&&window.console&&window.console.log&&window.console.log("[jquery.form] "+Array.prototype.join.call(arguments,""))}a.fn.ajaxSubmit=function(b){function d(){function l(){if(!A++){r.detachEvent?r.detachEvent("onload",l):r.removeEventListener("load",l,false);var s=true;try{if(B)throw"timeout";var p,o;o=r.contentWindow?r.contentWindow.document:r.contentDocument?r.contentDocument:r.document;var v=k.dataType=="xml"||o.XMLDocument||a.isXMLDoc(o);c("isXml="+
v);if(!v&&(o.body==null||o.body.innerHTML=="")){if(--F){A=0;setTimeout(l,100);return}c("Could not access iframe DOM after 50 tries.");return}m.responseText=o.body?o.body.innerHTML:null;m.responseXML=o.XMLDocument?o.XMLDocument:o;m.getResponseHeader=function(G){return{"content-type":k.dataType}[G]};if(k.dataType=="json"||k.dataType=="script"){var C=o.getElementsByTagName("textarea")[0];if(C)m.responseText=C.value;else{var D=o.getElementsByTagName("pre")[0];if(D)m.responseText=D.innerHTML}}else if(k.dataType==
"xml"&&!m.responseXML&&m.responseText!=null)m.responseXML=u(m.responseText);p=a.httpData(m,k.dataType)}catch(H){s=false;a.handleError(k,m,"error",H)}if(s){k.success(p,"success");w&&a.event.trigger("ajaxSuccess",[m,k])}w&&a.event.trigger("ajaxComplete",[m,k]);w&&!--a.active&&a.event.trigger("ajaxStop");if(k.complete)k.complete(m,s?"success":"error");setTimeout(function(){y.remove();m.responseXML=null},100)}}function u(s,p){if(window.ActiveXObject){p=new ActiveXObject("Microsoft.XMLDOM");p.async="false";
p.loadXML(s)}else p=(new DOMParser).parseFromString(s,"text/xml");return p&&p.documentElement&&p.documentElement.tagName!="parsererror"?p:null}var n=g[0];if(a(":input[name=submit]",n).length)alert('Error: Form elements must not be named "submit".');else{var k=a.extend({},a.ajaxSettings,b),t=a.extend(true,{},a.extend(true,{},a.ajaxSettings),k),z="jqFormIO"+(new Date).getTime(),y=a('<iframe id="'+z+'" name="'+z+'" src="about:blank" />'),r=y[0];y.css({position:"absolute",top:"-1000px",left:"-1000px"});
var m={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;y.attr("src","about:blank")}},w=k.global;w&&!a.active++&&a.event.trigger("ajaxStart");w&&a.event.trigger("ajaxSend",[m,k]);if(t.beforeSend&&t.beforeSend(m,t)===false)t.global&&a.active--;else if(!m.aborted){var A=0,B=0;if(t=n.clk){var E=t.name;if(E&&!t.disabled){b.extraData=b.extraData||{};b.extraData[E]=
t.value;if(t.type=="image"){b.extraData[name+".x"]=n.clk_x;b.extraData[name+".y"]=n.clk_y}}}setTimeout(function(){var s=g.attr("target"),p=g.attr("action");n.setAttribute("target",z);n.getAttribute("method")!="POST"&&n.setAttribute("method","POST");n.getAttribute("action")!=k.url&&n.setAttribute("action",k.url);b.skipEncodingOverride||g.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});k.timeout&&setTimeout(function(){B=true;l()},k.timeout);var o=[];try{if(b.extraData)for(var v in b.extraData)o.push(a('<input type="hidden" name="'+
v+'" value="'+b.extraData[v]+'" />').appendTo(n)[0]);y.appendTo("body");r.attachEvent?r.attachEvent("onload",l):r.addEventListener("load",l,false);n.submit()}finally{n.setAttribute("action",p);s?n.setAttribute("target",s):g.removeAttr("target");a(o).remove()}},10);var F=50}}}if(!this.length){c("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof b=="function")b={success:b};var e=a.trim(this.attr("action"));if(e)e=(e.match(/^([^#]+)/)||[])[1];e=e||window.location.href||
"";b=a.extend({url:e,type:this.attr("method")||"GET"},b||{});e={};this.trigger("form-pre-serialize",[this,b,e]);if(e.veto){c("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(b.beforeSerialize&&b.beforeSerialize(this,b)===false){c("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var f=this.formToArray(b.semantic);if(b.data){b.extraData=b.data;for(var h in b.data)if(b.data[h]instanceof Array)for(var j in b.data[h])f.push({name:h,value:b.data[h][j]});else f.push({name:h,
value:b.data[h]})}if(b.beforeSubmit&&b.beforeSubmit(f,this,b)===false){c("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[f,this,b,e]);if(e.veto){c("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}h=a.param(f);if(b.type.toUpperCase()=="GET"){b.url+=(b.url.indexOf("?")>=0?"&":"?")+h;b.data=null}else b.data=h;var g=this,i=[];b.resetForm&&i.push(function(){g.resetForm()});b.clearForm&&i.push(function(){g.clearForm()});if(!b.dataType&&
b.target){var q=b.success||function(){};i.push(function(l){a(b.target).html(l).each(q,arguments)})}else b.success&&i.push(b.success);b.success=function(l,u){for(var n=0,k=i.length;n<k;n++)i[n].apply(b,[l,u,g])};h=a("input:file",this).fieldValue();j=false;for(e=0;e<h.length;e++)if(h[e])j=true;if(b.iframe||j||0)b.closeKeepAlive?a.get(b.closeKeepAlive,d):d();else a.ajax(b);this.trigger("form-submit-notify",[this,b]);return this};a.fn.ajaxForm=function(b){return this.ajaxFormUnbind().bind("submit.form-plugin",
function(){a(this).ajaxSubmit(b);return false}).bind("click.form-plugin",function(d){var e=a(d.target);if(e.is(":submit,input:image")){var f=this;f.clk=d.target;if(d.target.type=="image")if(d.offsetX!=undefined){f.clk_x=d.offsetX;f.clk_y=d.offsetY}else if(typeof a.fn.offset=="function"){e=e.offset();f.clk_x=d.pageX-e.left;f.clk_y=d.pageY-e.top}else{f.clk_x=d.pageX-d.target.offsetLeft;f.clk_y=d.pageY-d.target.offsetTop}setTimeout(function(){f.clk=f.clk_x=f.clk_y=null},10)}})};a.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};
a.fn.formToArray=function(b){var d=[];if(this.length==0)return d;var e=this[0],f=b?e.getElementsByTagName("*"):e.elements;if(!f)return d;for(var h=0,j=f.length;h<j;h++){var g=f[h],i=g.name;if(i)if(b&&e.clk&&g.type=="image"){if(!g.disabled&&e.clk==g){d.push({name:i,value:a(g).val()});d.push({name:i+".x",value:e.clk_x},{name:i+".y",value:e.clk_y})}}else if((g=a.fieldValue(g,true))&&g.constructor==Array)for(var q=0,l=g.length;q<l;q++)d.push({name:i,value:g[q]});else g!==null&&typeof g!="undefined"&&
d.push({name:i,value:g})}if(!b&&e.clk){b=a(e.clk);f=b[0];if((i=f.name)&&!f.disabled&&f.type=="image"){d.push({name:i,value:b.val()});d.push({name:i+".x",value:e.clk_x},{name:i+".y",value:e.clk_y})}}return d};a.fn.formSerialize=function(b){return a.param(this.formToArray(b))};a.fn.fieldSerialize=function(b){var d=[];this.each(function(){var e=this.name;if(e){var f=a.fieldValue(this,b);if(f&&f.constructor==Array)for(var h=0,j=f.length;h<j;h++)d.push({name:e,value:f[h]});else f!==null&&typeof f!="undefined"&&
d.push({name:this.name,value:f})}});return a.param(d)};a.fn.fieldValue=function(b){for(var d=[],e=0,f=this.length;e<f;e++){var h=a.fieldValue(this[e],b);h===null||typeof h=="undefined"||h.constructor==Array&&!h.length||(h.constructor==Array?a.merge(d,h):d.push(h))}return d};a.fieldValue=function(b,d){var e=b.name,f=b.type,h=b.tagName.toLowerCase();if(typeof d=="undefined")d=true;if(d&&(!e||b.disabled||f=="reset"||f=="button"||(f=="checkbox"||f=="radio")&&!b.checked||(f=="submit"||f=="image")&&b.form&&
b.form.clk!=b||h=="select"&&b.selectedIndex==-1))return null;if(h=="select"){h=b.selectedIndex;if(h<0)return null;d=[];b=b.options;e=(f=f=="select-one")?h+1:b.length;for(h=f?h:0;h<e;h++){var j=b[h];if(j.selected){var g=j.value;g||(g=j.attributes&&j.attributes.value&&!j.attributes.value.specified?j.text:j.value);if(f)return g;d.push(g)}}return d}return b.value};a.fn.clearForm=function(){return this.each(function(){a("input,select,textarea",this).clearFields()})};a.fn.clearFields=a.fn.clearInputs=function(){return this.each(function(){var b=
this.type,d=this.tagName.toLowerCase();if(b=="text"||b=="password"||d=="textarea")this.value="";else if(b=="checkbox"||b=="radio")this.checked=false;else if(d=="select")this.selectedIndex=-1})};a.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||typeof this.reset=="object"&&!this.reset.nodeType)this.reset()})};a.fn.enable=function(b){if(b==undefined)b=true;return this.each(function(){this.disabled=!b})};a.fn.selected=function(b){if(b==undefined)b=true;return this.each(function(){var d=
this.type;if(d=="checkbox"||d=="radio")this.checked=b;else if(this.tagName.toLowerCase()=="option"){d=a(this).parent("select");b&&d[0]&&d[0].type=="select-one"&&d.find("option").selected(false);this.selected=b}})}})(jQuery);
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 false});jQuery("a.register").unbind().click(function(){jQuery("#login-card").hide();jQuery("#register-card").show();return false});jQuery("a#login").unbind().click(function(){jQuery("#register-card").hide();jQuery("#login-card").show();
return false});jQuery("a.cancel").unbind().click(function(){jQuery(".ajax_card").hide();return false});jQuery("#preview_button").remove();jQuery("#preview_link").show().unbind().click(submitPreview);var a=jQuery('<a class="right" id="login_link" href="/login">login</a>');a.click(function(){jQuery("#login_button").click();return false});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 false});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 false});jQuery("#register_button").hide().after(a);limitChars("#sub_title input",35,"#title_remaining");limitChars("#sub_description textarea",140,"#desc_remaining")}
function loginSuccess(a){if(a.error_str)jQuery("#login-card").before(jQuery("<div>"+a.error_str+"</div>"));else{jQuery("#register-card").remove();jQuery("#login-card").remove();jQuery("#login_links").html(a.login_links);jQuery("#submission-card").length==0&&jQuery("#front-page").prepend(a.submission_card);doLinks()}}
function validate(a,c,b){a=[];c=jQuery("fieldset#sub_image input");if(c.val().length==0){c.before('<div class="error">Please select an image</div>');a.push("Please select an image")}c=jQuery("fieldset#sub_url input");if(c.val().indexOf("http://")!=0){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");if(c.val().length>35){c.before('<div class="error">Title too long</div>');a.push("Title too long")}else if(c.val().length==
0){c.before('<div class="error">Please add a Title</div>');a.push("Please add a Title")}c=jQuery("fieldset#sub_description textarea");if(c.val().length>140){c.before('<div class="error">Description too long</div>');a.push("Description too long")}else if(c.val().length==0){c.before('<div class="error">Please add a description</div>');a.push("Please add a description")}return a.length==0}
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")},complete:function(){a.removeClass("spinner")}};jQuery("div.error").remove();jQuery("#submission-card form").ajaxSubmit(c)}return false}
function showPreview(a,c){c=jQuery("#submission-card");a=jQuery(a);if(a.attr("id")=="submission-card"){c.replaceWith(a);jQuery("#preview_button").remove();jQuery("#preview_link").show().unbind().click(submitPreview)}else if(a.attr("id")=="preview-card"){jQuery("#preview-card").length==0?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 false});jQuery("#preview_submit").unbind().click(function(){if(!jQuery(".spinner").length){jQuery(this).addClass("spinner");
jQuery("#submit_button").click()}return false});jQuery("#preview_edit").unbind().click(function(){jQuery("#submission-card").show();jQuery("#preview-card").hide();return false})}}function doReasonDropdown(){var a="div#reason-"+this.id.split("-")[1];jQuery(a).toggle();return false}function showOtherBox(){var a="input#other-"+this.id.split("-")[1];this.value=="Other"?jQuery(a).show():jQuery(a).hide();return false}
function loadRandomPosts(){jQuery.get("/",{fg_post:"true",action:"random_posts",cacheBust:Math.random()},loadedRandom);jQuery("#navigation").remove();jQuery.each(jQuery("div.card:visible"),function(){jQuery.inviewport(this,{threshold:0})?jQuery(this).hide("slow",function(){jQuery(this).remove()}):jQuery(this).remove()});return false}function loadedRandom(a,c){jQuery(a).appendTo("#front-page");externalizeLinks()}
function limitChars(a,c,b){jQuery(a).keyup(function(){var d=jQuery(a).val(),e=d.length;if(e>c){jQuery(a).val(d.substr(0,c));e=c}d=c-e;jQuery(b).html(d+"")})}function notesSaved(a){$("#currAjax").html(a.msg);var c=$(a.link);$("#"+c.attr("id")).attr("href",c.attr("href")).attr("class",c.attr("class")).text(c.text());a.tags!=""&&$("#favorite_tags").html(a.tags)}function recordForm(a,c){$("#currAjax").attr("id","");c.prev().attr("id","currAjax");return true}
function saveClick(){jQuery(this).siblings("input:submit").submit();return false}
function favoriteClick(){var a=jQuery(this),c={ajax:"true"};if(a.hasClass("simple"))c.simple="true";if(a.attr("href").indexOf("?fg_flip")>-1)return false;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 d=jQuery(b.link);a.attr("href",d.attr("href")).attr("class",d.attr("class")).text(d.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!=
""&&$("#favorite_tags").html(b.tags);expire=new Date;expire.setTime(expire.getTime()+1728E5);document.cookie="wordpress_fg_favorites="+encodeURIComponent(new Date)+";expires="+expire.toGMTString()});return false}function firstFlipClick(a){$this=jQuery(this);var c=$this.closest(".flipped").length==0?1:0;$this.unbind("click",firstFlipClick).closest(".flippable").quickFlipper({},c);a.preventDefault()}
function everyLoad(){jQuery().lazyload&&jQuery(".picture img").lazyload({threshold:200,placeholder:"/wp-content/themes/Foodgawker/images/loading.jpg"});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(){l2=a.clone();l2.click(saveClick);jQuery(this).hide().after(l2)});jQuery("#fav-hide").click(function(){jQuery("#fav-sidebar").toggle();jQuery("#presentation3").toggleClass("fav-full")})}jQuery(document).ready(function(){everyLoad()});
var clicky={init:function(a){if(document.location.protocol=="https:"){clicky.domain="https://static.getclicky.com";clicky.secure=1}else{clicky.domain="http://static.getclicky.com";clicky.secure=0}clicky.img=new Image;clicky.img2=new Image;clicky.img_base=clicky.domain+"/in.php?site_id="+a+"&res="+screen.width+"x"+screen.height+"&lang="+(navigator.language||navigator.browserLanguage).substr(0,2)+"&secure="+clicky.secure;if(clicky_custom.session)for(var c in clicky_custom.session)clicky.img_base+="&custom["+
clicky.enc(c)+"]="+clicky.enc(clicky_custom.session[c]);if(clicky_custom.goal)for(c in clicky_custom.goal)clicky.img_base+="&goal["+clicky.enc(c)+"]="+clicky.enc(clicky_custom.goal[c]);clicky.ref=RegExp("^https?://[^/]*"+location.host.replace(/^www\./i,"")+"/","i").test(document.referrer)?"":clicky.enc(document.referrer);if(!clicky_custom.pageview_disable){if(typeof clicky_custom.delay=="undefined")clicky_custom.delay="onload";a=clicky_custom.delay;if(a=="onload")clicky.add_event(window,"load",clicky.pageview);
else parseInt(a)==a?setTimeout(clicky.pageview,parseInt(a)):clicky.pageview()}clicky.add_event(window,"load",clicky.advanced)},pageview:function(){clicky.img.src=clicky.img_base+"&href="+clicky.enc(clicky_custom.href||location.pathname+location.search)+"&title="+clicky.enc(clicky_custom.title||document.title)+"&ref="+clicky.ref+"&x="+Math.random();clicky.ref=""},isset:function(a){return typeof window[a]!="undefined"},enc:function(a){return window.encodeURIComponent?encodeURIComponent(a):escape(a)},
log:function(a,c,b){b=b||"click";if(b=="pageview")a=a.replace(/^https?:\/\/([^\/]+)/i,"");clicky.img2.src=clicky.img_base+"&type="+b+"&title="+clicky.enc(c)+"&href="+clicky.enc(a)+"&ref="+clicky.ref+"&x="+Math.random();clicky.ref="";clicky.pause()},pause:function(a){var c=new Date;for(a=c.getTime()+(a||clicky_custom.timer||500);c.getTime()<a;)c=new Date},goal:function(a,c){clicky.img2.src=clicky.img_base+"&type=goal&goal[id]="+a+"&goal[revenue]="+c+"&x="+Math.random()},add_event:function(a,c,b){if(a.addEventListener)a.addEventListener(c,
b,false);else a.attachEvent&&a.attachEvent("on"+c,b)},download:function(a){clicky.img_src(a,"download")},outbound:function(a){clicky.img_src(a,"outbound")},click:function(a){clicky.img_src(a,"click")},img_src:function(a,c){obj=clicky.get_target(a);clicky.log(clicky.get_href(obj),clicky.get_text(obj),c)},get_text:function(a){do{var c=a.text?a.text:a.innerText;if(c)return c;if(a.alt)return a.alt;if(a.title)return a.title;if(a.src)return a.src;a=clicky.get_parent(a)}while(a);return""},get_href:function(a){do{if(a.href&&
!a.src)return a.href;a=clicky.get_parent(a)}while(a);return""},get_parent:function(a){return a.parentElement||a.parentNode},get_target:function(a){if(!a)a=window.event;a=a.target?a.target:a.srcElement;if(a.nodeType&&a.nodeType==3)a=a.parentNode;return a},advanced:function(){if(!clicky_custom.advanced_disable)for(var a=new RegExp("\\.(7z|aac|avi|cab|csv|doc(x|m)?|exe|flv|gif|gz|jpe?g|js|m4a|mp(3|4|e?g)|mov|msi|ods|pdf|phps|png|ppt(x|m)?|rar|rtf|sea|sit|tar|torrent|txt|wma|wmv|xls(x|m)?|xml|zip)$",
"i"),c=/^(https?|ftp|telnet|mailto):/i,b=new RegExp("^https?://(.*)"+location.host.replace(/^www\./i,""),"i"),d=document.getElementsByTagName("a"),e=0;e<d.length;e++)if(d[e].className.match(/clicky_log/i))if(d[e].className.match(/clicky_log_download/i))clicky.add_event(d[e],"mousedown",clicky.download);else d[e].className.match(/clicky_log_outbound/i)?clicky.add_event(d[e],"mousedown",clicky.outbound):clicky.add_event(d[e],"mousedown",clicky.click);else if(c.test(d[e].href)&&!d[e].className.match(/clicky_ignore/i))if(a.test(d[e].href))clicky.add_event(d[e],
"mousedown",clicky.download);else b.test(d[e].href)||clicky.add_event(d[e],"mousedown",clicky.outbound)}};clicky.isset("clicky_custom")||(clicky_custom={});if(clicky.isset("clicky_page_title"))clicky_custom.title=clicky_page_title;if(clicky.isset("clicky_advanced_disable"))clicky_custom.advanced_disable=1;if(clicky.isset("clicky_pause_timer"))clicky_custom.timer=clicky_pause_timer;if(clicky.isset("clicky_custom_session"))clicky_custom.session=clicky_custom_session;
if(clicky.isset("clicky_goal"))clicky_custom.goal=clicky_goal;function statsgoyes(a){clicky.init(a)}statsgoyes(43645);