function GTPrefs(D){var B=D;var C=this;var A=GTPrefs.prefBuckets["b"+B]||{};this.getBSID=function(){return B};this.getPref=function(E){return A[E]};this.setPref=function(E,F){var G=document.createElement("iframe");G.setAttribute("src","/widgets/pref_setter/"+this.getBSID()+"?p="+E+"&v="+encodeURIComponent(F));G.setAttribute("onload","this.onload=null;this.src=null;this.parentNode.removeChild(this)");G.style.height="0px";G.style.width="0px";G.style.visibility="hidden";document.body.appendChild(G);A[E]=F}}GTPrefs.prefBuckets=new Array();GTPrefs.addPref=function(C,A,B){if(!GTPrefs.prefBuckets["b"+C]){GTPrefs.prefBuckets["b"+C]={}}GTPrefs.prefBuckets["b"+C][A]=B};ooga.feed_widget={};ooga.feed_widget.load=function(B,A,F,C,E){var D=new google.feeds.Feed(A);if(F==null){var F=6}D.setNumEntries(F);D.includeHistoricalEntries();D.load(function(G){var H=$("gtfw"+B);if(!G.error&&G.feed.entries.length>0){for(var I=0;I<G.feed.entries.length;I++){(C||ooga.feed_widget.handleResult)(G.feed.entries[I],B,H)}if(E){E()}}else{H.adopt(new Element("div").addClass("empty").setText("This feed is temporarily unavailable"))}})};ooga.feed_widget.handleResult=function(D,B,A){var E=document.createElement("div");var C=document.createElement("a");C.href=D.link;C.title=D.contentSnippet;C.innerHTML=D.title;E.appendChild(C);A.appendChild(E)};