var skimlinks_pub_id = '3035X597780';
var skimlinks_site = 'pokecommunity.com';
var skimlinks_domain = 'go.pokecommunity.com';
var noskoupon = true;
(function(){function Da(a){e(a).each(function(){e("<img/>")[0].src=this})}function L(a){var b="";a.length&&(e.each(a,function(a,e){b+='"'+e+'",'}),b=b.slice(0,-1));return"["+b+"]"}function N(a,b){return b.hasClass("skimwords-link")?"http://"+f.sw_domain+"/?id="+m+"&xcust="+b.attr("data-skimwords-id")+"&xs=2&url="+encodeURIComponent(a)+"&sref="+encodeURIComponent(x):D(b,"skimlinks")?"http://"+Ea+"/?id="+m+(O?"&site="+O:"")+(ba?"&test="+ba:"")+(q?"&xcust="+q:"")+"&xs=1&url="+encodeURIComponent(a)+"&sref="+
encodeURIComponent(x):a}function Fa(){return Math.round(Math.random())-0.5}function Ga(a,b,c){c=c||{};if(!c.charset)c.charset="utf-8";if(!c.target)c.target=this;return function(a,b,c){var e=c.charset,d=c.target,c=c.async,h=d.document,i=h.getElementsByTagName("head")[0],o=h.createElement("script"),s=!1;o.type="text/javascript";o.charset=e;o.onload=o.onreadystatechange=function(){var a=this.readyState;if(!s&&(!a||a==="complete"||a==="loaded"))o.onload=o.onreadystatechange=null,s=!0,b.call(d)};o.async=
c===!1;o.src=a;i.appendChild(o)}.call(this,a,b||function(){},c)}function Ha(a){var b;e?a(e):(b=d.jQuery)&&b.fn&&b.fn.jquery&&b.fn.jquery>=f.jQueryMinVersion?(e=y=b,a(e)):Ga(f.jQueryUrl,function(){e=y=d.jQuery.noConflict(!0);a(e)},{})}function da(a){return encodeURIComponent(a).replace(/\%20/g,"+").replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/\~/g,"%7E")}function P(a){var b=[],c=0,e;for(e in a)a[e]!="undefined"&&(b[c]=e,c++);b.sort(Fa);
return b}function Ia(a){var b=a.html().slice(0,4);(b==="http"||b==="www.")&&a.prepend("<span style='display:none!important;'>&nbsp;</span>")}function ea(a){var b="{",c=0,e="",g;for(g in a)c>0&&(b+=", "),e=g!="page"&&typeof a[g]=="object"?ea(a[g]):'"'+a[g]+'"',b+='"'+g+'":'+e,c++;b+="}";return b}function Q(){if(!Ja){var a=ea(z),a=f.trackingApiUrl+"?data="+encodeURIComponent(a);(a.length<2E3||!y.browser.msie&&a.length<8E3)&&e.getScript(a)}}function Ka(a){var b=encodeURIComponent('{"page":"'+R+'"}'),
a=S||T?U!=""?f.skimwordsLiteUrl+U.toLowerCase()+"/"+m.toUpperCase()+".json":f.skimwordsLiteUrl+m.toUpperCase()+".json":f.skimwordsApiUrl+"?callback="+a+"&data="+b;e.getScript(a)}function La(){var a=da(p.referrer),b=p.getElementsByTagName("body")[0],c=p.createElement("img");i.thispage=da(i.thispage);c.setAttribute("src",f.pixelPath+"?ref="+a+"&page="+i.thispage+"&phraselist="+Ma.join(",")+"&pubid="+m);b.appendChild(c)}function Na(){content_length=e("html").html().length;var a=i.original_length-i.original_length/
10;if(content_length>=i.original_length+i.original_length/10||content_length<=a){var a=p.getElementsByTagName("body")[0],b=p.createElement("script");b.setAttribute("src","http://d.skimresources.com/js/jsonp.php?ref="+i.thispage+"&content_length="+content_length);a.appendChild(b)}return!0}function fa(a,b,c){var d=(a||p.body).childNodes,g=d.length,j,ca,n,h,f=0,o,s,l;if(A>=i.maxkeywords)return!1;for(;f<g&&g!==0;){n=1;h=d[f];f++;if(h.nodeType===1&&"html,head,style,title,link,meta,script,object,iframe,a,h1,h2,h3,h4,h5,h6,h7,h8,textarea,input,select,option,label,legend,fieldset,hr,".indexOf(h.nodeName.toLowerCase()+
",")===-1){for(k=0;k<c.length;k++){var m=h.getAttribute("id");c[k]==h.nodeName.toLowerCase()+"[id*="+m+"]"&&(n=0);m=h.getAttribute("class");c[k]==h.nodeName.toLowerCase()+"[class="+m+"]"&&(n=0)}n&&arguments.callee(h,b,c)}if(h.nodeType===3&&n&&(e.each(ga,function(a,c){j="([\\s]+|^)([\\\\;\\.|,\\'\\\"\\)\\(\\/\\?]*?)("+b[c].word+")(\\'s)*?(\\'S)*?([\\\\;,\\.\\'\\\"|\\)\\(\\/\\?]*?)([\\s]+|$)";ca='$1$2<a href="'+b[c].link+'" class="skimwords-link" target="_blank" style="'+u+" "+E+" "+B+" "+F+' " data-skimwords-id="'+
b[c].id+'" title="'+b[c].title+'">$3$4$5</a>$6$7';var g=RegExp(j,"i");if(h&&b[c].limit>0&&g.test(h.data)){var d=h.parentNode,M=0;T||S?D(e(d),"skimwords")&&(M=1):M=1;if(M){if(b[c].limit==0||A==i.maxkeywords)g=0;else{A++;b[c].limit--;Oa++;e.inArray(c,z.phrases)==-1&&z.phrases.push(c);l=h.data;o=h.data.replace(g,ca);s=p.createElement("div");g=p.createDocumentFragment();replaced=o!=l?1:0;for(s.innerHTML=o;s.firstChild;)g.appendChild(s.firstChild)}if(g)d.insertBefore(g,h),d.removeChild(h),h=d.childNodes[f];
else return!1}}}),A>=i.maxkeywords))return!1}return 0}function ha(a,b){var c,d,g,j;A<i.maxkeywords&&(c=P(b),e.each(c,function(c,n){if(a===0||n==a||a<0&&n!=-a){if(S||T){var h=e("body").text().toLowerCase(),f={};e.each(b[n],function(a,b){if(h.indexOf(b.word.toLowerCase())!=-1)f[b.id]=b,f[b.id].limit=100});b[n]=f}ga=P(b[n]);e.each(i.includes,function(a,c){d=e(c).length;g=Math.ceil(d/2);if(d)for(j=0;j<g;j++)D(e(i.includes[a]).eq(j),"skimwords")&&fa(e(i.includes[a])[j],b[n],i.excludes),D(e(i.includes[a]).eq(d-
j-1),"skimwords")&&fa(e(i.includes[a])[d-j-1],b[n],i.excludes)})}}))}function D(a,b){var c=a[0].className;return c.indexOf("no"+b)==-1&&c.indexOf("noskim")==-1&&a.parents(".no"+b).length==0&&a.parents(".noskim").length==0?!0:!1}function ia(a){var a=a.target,b=e(a),c=a.href;if(!b.data("skimwords-original-href"))b.data("skimwords-original-href",c),a.href=N(c,b)}function Pa(){var a;typeof G==="undefined"&&(G={},a=H.concat(f.defaultExcludedDomains),e.each(a,function(a,c){G[c]=c.length}));return G}function ja(a){var b=
!1,c=Pa(),d=a.length;e.each(c,function(c,e){if(c.indexOf("*")===0){if(c=c.slice(1),e-=1,a.lastIndexOf(c)!==-1&&a.lastIndexOf(c)===d-e)return b=!0,!1}else if(a===c)return b=!0,!1});return b}function ka(){var a;typeof I==="undefined"&&(I={},a=la?[la]:[],a=a.concat(f.defaultExcludedRels),e.each(a,function(a,c){I[c]=!0}));return I}function ma(a){var b=d.pageTracker,c=d.urchinTracker,a="/"+Qa+"/"+a;b&&b._trackPageview?b._trackPageview(a):c&&c(a)}function na(a){var a=a.target,b=e(a),c=a.href;if(!b.data("skimlinks-original-href"))b.data("skimlinks-original-href",
c),V&&ma(c),a.href=N(c,b)}function oa(a){var b=a.attr("href");a.data("skimlinks-original-href")||(a.data("skimlinks-original-href",b),V&&ma(b),a.attr("href",N(b,a)))}function pa(a){a=a.target;e(a);a=encodeURIComponent('{"pubcode":"'+m+'","referrer":"'+x+'","site":"'+O+'","url":"'+a.href+'","custom":"'+q+'","product":"1"}');e.getScript(f.skimlinksApiUrl+"?call=track&data="+a)}function Ra(){var a=[],b={};e("a[href]").each(function(c,d){var g=e(d),j=d.hostname.replace(v,""),f=e.trim(d.href),g=g.attr("rel");
if(qa.test(f)&&j.indexOf(t)===-1&&t.indexOf("."+j)===-1&&!ja(j)&&(J&&g===J||!ka()[g])&&j&&!b[j])a.push(j),b[j]=!0});return a}function Sa(a,b){var c=!1;b.merchant_domains&&e.each(b.merchant_domains,function(b,e){if(a==e)return c=!0});return c}function W(){d.setTimeout(function(){if(!r&&l)l.fadeOut("fast").slideUp(),w.event_length=(new Date).getTime()-X,w.event_length>=500&&Ta.events[w.product].push(w)},f.delayBeforeFadeOut)}function ra(a,b){return a.indexOf(f.skouponRedirectDomain)===-1?"http://"+
f.skouponRedirectDomain+"/?id="+m+(q?"&xcust="+q:"")+"&xs="+b+"&url="+encodeURIComponent(a)+"&sref="+encodeURIComponent(x):a}function Ua(a,b){l=e(a).mouseenter(function(){r=!0}).mouseleave(function(){W();r=!1});l.find("a[class=skoupon-go]:eq(0)").mouseenter(function(){l.addClass("detached")}).mouseleave(function(){l.removeClass("detached")}).click(function(){this.href=ra(this.href,b)}).bind("contextmenu",function(){this.href=ra(this.href,b)});e(".skoupon-go",l).click(function(){var a=l.data("skoupon-popup");
typeof a==="string"&&d.open("http://www.skoupon.net/?id="+a,"skouponpopup","location=1,menubar=0,resizable=0,status=0,toolbar=0,directories=0,width="+f.popupWidth+",height="+f.popupHeight)});l.appendTo(Va)}function sa(a,b,c,d){if(b.type!=2004)b.url=c;var c=Wa(Xa,b),g=!!(b.type&&b.type!=2004);l||Ua(c,d);l.data("skoupon-popup",g?b.id:!1);var d=a.pageX,a=a.pageY,j=l.width(),c=l.height(),f=C.width(),i=C.scrollTop(),g=0,h=0-c/2;d+g+j>f&&(g=0-j);a-i+h<0?h=i-a:(j=C.height(),a+h+c>j&&(h=j-(a+c)));l.css({top:a+
"px",left:d+"px",marginTop:h+"px",marginLeft:g+"px"});if(!r)b="#skoupon-"+b.id,d=e(b+" .skoupon-text").html().length,a=d*5,c="",a>parseInt(e(b+" .skoupon-body").css("width"))&&(a>160||d>65?a=160:a<=110&&(a=110),c="width: "+a+"px !important",e(b+" .skoupon-inner").attr("style",c),e(b+" .skoupon-body").attr("style",c),e(b+" .skoupon-button-container").attr("style","margin-top: 2px !important;")),d<30&&(e(b+" .skoupon-button-container").attr("style","margin-top: 6px !important;"),e(b+" .skoupon-inner").attr("style",
"margin-top: 6px !important;")),l.fadeIn("fast")}function Ya(){var a=e("a[href]:not(:has(img))"),b={},c={},d={};Y=e([]);Z=e([]);a.each(function(a,j){var f=j.className,i=j.href,h=j.hostname.replace(v,""),l=j.getAttribute("data-skimwords-id");if(i.indexOf(t)==-1||!t)f&&f.indexOf("skimwords")!=-1?(h&&!c[h]&&(ta.push(h),c[h]=!0),l&&(f=l.split(" "),e.each(f,function(a,b){if((b=e.trim(b))&&!d[b])ua.push(b),d[b]=!0}))):h&&!b[h]&&(va.push(h),b[h]=!0)});Y=e(".skimwords-link");Z=e("a[href^=http://]:not([href*="+
t+"],[class=skimwords-link])")}function wa(a,b){var c=3,c=a[0].className=="skimwords-link"?4:3;if(xa<f.skouponMaxPerPage){var d=0,g=a.closest("p");g.size()==0&&(g=a.closest("div"));g.size()!=0&&(d=g.find(".skoupon-icon").size());d==0&&(e.inArray(b.id,z.skoupons[c])==-1&&z.skoupons[c].push(b.id),ya=="hover"?e(za).insertAfter(a).mouseenter(function(e){sa(e,b,a[0].href,c);r=!0;X=(new Date).getTime();w={target_id:b.id,event_type:"hover",event_length:0,product:c}}).mouseleave(function(){W();r=!1}):ya==
"click"&&e(za).insertAfter(a).click(function(e){sa(e,b,a[0].href,c);r=!0;X=(new Date).getTime();w={target_id:b.id,event_type:"hover",event_length:0,product:c}}).mouseleave(function(){W();r=!1}),a.attr("data-skoupon",!0),xa++)}}function Aa(){$||(C=e(p),C.ready(function(){Ya();e("<link rel='stylesheet' type='text/css' href='"+f.cssUrl+"' />").appendTo("head");Da(["http://k.skimresources.com/img/Skoupon-left-1.png","http://k.skimresources.com/img/Skoupon-left-2.png","http://k.skimresources.com/img/Skoupon-middle.png",
"http://k.skimresources.com/img/Skoupon-expand-5px.png","http://k.skimresources.com/img/Skoupon-right.png","http://k.skimresources.com/img/skoupon-get-it-now.png","http://k.skimresources.com/img/skoupon-get-this-deal.png","http://k.skimresources.com/img/skoupon-link-bg.png"]);var a=encodeURIComponent('{"1":'+L(va)+',"2":'+L(ta.concat(ua))+"}");e.getScript(f.skouponApiUrl+"?pubcode="+m+"&callback=skouponProcessData&data="+a)}))}function Ba(){if(Za)return $a;H=H.concat(f.defaultExcludedRels);d.skimlinks_site&&
H.push(d.skimlinks_site);q&&!ab.test(q)&&(q=!1);var a=Ra(),a=encodeURIComponent('{"pubcode":"'+m+'","domains":'+L(a)+"}");e.getScript(f.skimlinksApiUrl+"?callback=skimlinksApplyHandlers&data="+a);!$&&aa?Aa():aa&&Q()}var Wa=function(){var a=RegExp("{{([a-z0-9_][\\.a-z0-9_]*)}}","gi");return function(b,c){return b.replace(a,function(a,b){for(var e=b.split("."),d=e.length,f=c,h=0;h<d;h++)if(f=f[e[h]],f===void 0&&console.log("tim: '"+e[h]+"' not found in "+a),h===d-1)return f})}}(),d=this,p=d.document,
f={jQueryUrl:"https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js",jQueryMinVersion:"1.4.0",pixelPath:"http://t.skimresources.com/",sw_domain:d.skimlinks_domain||"go.redirectingat.com",defaultExcludedDomains:["*doubleclick.net","*mjxads.internet.com","*pgpartner.co.uk","*pgpartner.com","*pricegrabber.co.uk","*pricegrabber.com","*overture.com","*youtube.com"],defaultExcludedRels:["noskim","norewrite"],skimwordsApiUrl:"http://d.skimresources.com/api/index.php",skimwordsLiteUrl:"http://s.skimresources.com/js/lite/",
skouponApiUrl:"http://k.skimresources.com/api/getcoupons/",skimlinksApiUrl:"http://r.skimresources.com/api/",trackingApiUrl:"http://t.skimresources.com/api/index.php",skouponRedirectDomain:d.skimlinks_domain||"go.redirectingat.com",skouponMaxPerPage:2,cssUrl:"http://k.skimresources.com/skoupon2.css",popupType:"127",popupWidth:314,popupHeight:284,delayBeforeFadeOut:250},$=d.noskoupon||!1,Ja=d.noimpressions||!1,aa=d.noskimwords||!1,bb=d.noskim||!1,Za=d.noskim||d.noskimlinks||!1,m=d.skimlinks_pub_id||
"",U="",$a=function(){},v=/^www\./,qa=/^\/\/|https?:\/\//,ab=/^[a-z0-9_]+$/i,x=d.location,G,I,t=x.hostname.replace(v,""),J=d.skimlinks_byrel||!1,la=d.skimlinks_exrel||!1,Ca=d.skimlinks_noright||!1,H=d.skimlinks_exclude||[],ba=d.sl_test||!1,K=d.skimlinks_target||!1,V=d.skimlinks_google||!1,Qa=V||"skimout",Ea=d.skimlinks_domain||"go.redirectingat.com",O=d.skimlinks_site||!1,q=d.skimlinks_tracking||!1,u=d.skimwords_color||!1,E=d.skimwords_weight||!1,F=d.skimwords_style||!1,S=d.skimwords_lite||!1,T=d.skimwords_standard||
!1,B=d.skimwords_decoration||!1,i,R=d.force_location||d.location.href,Oa=0,A=0,Ma=[],ga,ya=d.skoupon_trigger||"hover",za="<img class='skoupon-icon' src='http://s.skimresources.com/img/skoupon-link.gif' style='margin-bottom:-3px; margin-left:2px; cursor:pointer;' />",Xa="<div id='skoupon-{{id}}' class='skoupon-outer'><div class='skoupon-wrapper'><div class='skoupon-tag' class='cleanslate'></div><div class='skoupon-body'><div class='skoupon-inner'><h4>{{title}}</h4><p class='skoupon-text'>{{short_description}}</p><p><strong class='skoupon-merchant-name'>at {{merchant_name}}</strong></p><p class='skoupon-button-container'><a class='skoupon-go' href='{{url}}' target='_blank' title='Go to {{merchant_name}}'></a><span class='skoupon-enddate'>Until {{pretty_enddate}}</span></p></div></div><div class='skoupon-end'></div></div></div>",
C,Va=p.body,l,xa=0,w={},X,r=!1,Y,Z,ta=[],ua=[],va=[],z={page:R,phrases:[],skoupons:{3:[],4:[]},pubcode:m,referrer:p.referrer},Ta={page:R,events:{3:[],4:[]},pubcode:m},e,y;d.skimlinks=Ba;d.mugicPopWin=na;d.mugicRight=na;d.skouponProcessData=function(a){if(!a.coupons)return!1;var b=P(a.coupons);e.each(b,function(b,d){var g=a.coupons[d],f=g.targets,i=g.details;if(!f||!i)return!0;g=f["1"];f=f["2"];g&&e.each(g,function(a,b){Z.each(function(a,c){var d=b.target,g=c.hostname.replace(v,""),f=e(c).attr("data-skoupon");
d===g&&!f&&wa(e(c),i)})});f&&e.each(f,function(a,b){Y.each(function(a,c){var d=b.target,g=c.hostname.replace(v,""),f=e(c).attr("data-skoupon");(d===g||c.getAttribute("data-skimwords-id").indexOf(d)>-1)&&!f&&wa(e(c),i)})})});Q()};d.skimwordsDataCallback=function(a){i=a;i.includes.length==0&&(i.includes[0]="body");ha(4,i.words);ha(-4,i.words);d.setTimeout(function(){e(".skimwords-link").each(function(){y(this).click(ia);y(this).bind("contextmenu",ia)})},10);i.impression&&La();i.reindex&&Na();$?Q():
d.setTimeout(function(){Aa()},5)};d.skimlinksApplyHandlers=function(a){var b=e("a[href]");if(a.country)U=a.country;!aa&&!bb&&(u&&(u=u.indexOf("#")==-1?"color:#"+u+" !important;":"color:"+u+" !important;"),E&&(E="font-weight: "+E+" !important;"),F&&(F="font-style: "+F+" !important;"),B=B=="double"?"border-bottom: 1px double !important;":B?"text-decoration: "+B+" !important;":"text-decoration: underline !important;",Ka("skimwordsDataCallback"));b.each(function(b,d){var g=e(d),f=d.hostname.replace(v,
""),i=e.trim(d.href),l=g.attr("rel"),h=e.browser.msie;if(Sa(f,a)){K&&g.attr("target",K);if(h){if(encodeURIComponent(i).indexOf("%C3%82%C2%A3")!==-1)return!0;Ia(g)}g.click(function(){oa(g)});Ca||g.bind("contextmenu",function(){oa(g)})}else if(qa.test(i)&&f.indexOf(t)===-1&&t.indexOf("."+f)===-1&&!ja(f)&&(J&&l===J||!ka()[l]))K&&g.attr("target",K),g.click(pa),Ca||g.bind("contextmenu",pa)})};(function(){Ha(function(){Ba()})})()})();