FeedValue=function(b,a){this.CAT_WIDGET=1;this.CAT_SITE=3;this.CAT_RSS=3;this.trackURI="http://tracker.feedvalue.com/0.4/";if(this.parseAccount(b)){return}this.opts=a==null?{}:a;if(this.opts.fv_camp){this.fv_camp=this.opts.fv_camp}switch(this.eCat){case this.CAT_WIDGET:this.initWidget();break;default:break}};FeedValue.prototype.parseAccount=function(d,c){var b;var a=false;if(d==null){a=true}else{b=d.split("-");if(b.length!=4){a=true}else{if(b[0]!="FV"){a=true}}}if(!a&&!c){this.client=b[1];this.eCat=parseInt(b[2]);this.eNum=b[3];this.account=d}return a};FeedValue.prototype.initWidget=function(){this.currentWidget=this.account;this.pl=this.opts.platform||"none";if(!this.opts.noInstallTracking){if(this.opts.dontWaitOnload){this.getWidgetInstall()}else{this._onload(this._bind(this.getWidgetInstall,this))}}};FeedValue.prototype.addInstall=function(f,e){if(e&&e.fv_camp){this.fv_camp=e.fv_camp}var d=document.getElementsByTagName("head")[0];if(this.parseAccount(f,true)){return}var g=document.getElementById("fv_tracking_src");if(g){d.removeChild(g)}var b=f;var a=this.currentWidget;var c=this.trackURI+"track_src.html?pl="+this.pl+"&cW="+encodeURI(a)+"&tW="+encodeURI(b);if(e&&e.iSlogan!=null){c+="&iSl="+e.iSlogan}if(this.fv_camp){c+="&fv_camp="+this.fv_camp}this.createIframe("fv_tracking_src",c)};FeedValue.prototype.getWidgetInstall=function(){var a=this.currentWidget;var b=this.trackURI+"track_dest.html?pl="+this.pl+"&cW="+encodeURI(a);if(this.fv_camp){b+="&fv_camp="+this.fv_camp}this.createIframe("fv_tracking_dest",b)};FeedValue.prototype.createIframe=function(d,a){var b=document.getElementsByTagName("head")[0];var c=document.getElementById(d);if(c){b.removeChild(c)}c=document.createElement("iframe");c.id=d;c.src=a;c.setAttribute("height","0");c.setAttribute("width","0");c.style.display="none";b.appendChild(c)};FeedValue.prototype._bind=function(c,b){var a=c;return function(){return a.apply(b,arguments)}};FeedValue.prototype._onload=function(a){if(this.opts.onLoadFired){a()}else{var b=window.onload;if(typeof window.onload!="function"){window.onload=a}else{window.onload=function(){if(b){b()}a()}}}};