(function(){function e(b,a){this.index=b;this.config=a;this.pageConfig=JSON.parse(this.config.pageConfig);this.feedData=this.articleParentEl=null;this.loadingContext={parentEl:null,pageKey:null};this.loadedPages=[]}e.prototype.render=function(){};e.prototype.load=function(b,a){var d=a.split("-"),c=d.length>2?d[2]:null;d=d.length>3&&d[3]=="img";this.loadingContext.parentEl=b;this.loadingContext.pageKey=a;var f=this;if(d){WbxMobileSite.utils.toggleLoading(true,true);if(this.feedData==null){this.loadingContext.callback=
function(){f.renderArticleImage()};this.fetchFeed()}else this.renderArticleImage()}else if(c){WbxMobileSite.utils.toggleLoading(true);if(this.feedData==null){this.loadingContext.callback=function(){f.renderArticleDetail()};this.fetchFeed()}else this.renderArticleDetail()}else if(this.feedData==null){WbxMobileSite.utils.toggleLoading(true);this.loadingContext.callback=function(){f.renderArticleList()};this.fetchFeed()}else this.renderArticleList()};e.prototype.hasLoaded=function(b){for(var a=0;a<this.loadedPages.length;a++)if(this.loadedPages[a]==
b)return true;return false};e.prototype.fetchFeed=function(){var b=this;(new WbxMobileSite.fetcher.FeedFetcher(this.pageConfig.feedUrl)).fetch(function(a){b.handleFeedCallback(a)})};e.prototype.handleFeedCallback=function(b){this.feedData=b;this.loadingContext.callback()};e.prototype.renderArticleList=function(){var b="includeListImg"in this.pageConfig&&this.pageConfig.includeListImg=="true";if(!this.hasLoaded(this.loadingContext.pageKey)){var a=$(this.loadingContext.parentEl);a.addClass("table-view");
a.addClass("sums");b&&a.addClass("imgs");a="";a+='<ul class="section">';for(var d=0;d<this.feedData.entries.length&&d<25;d++){var c=this.feedData.entries[d];a+='<li><a href="#" onclick="return WbxMobileSite.utils.navTo(\''+("p-"+this.index+"-"+d)+"')\">";var f=this.getBestImage(c);if(f&&b){f=WbxMobileSite.utils.getProxyImageSrc(f,60,60,true);a+='<div class="row-img" style="background-image:url('+f+')"></div>'}a+='<div class="row-label">'+c.title+"</div>";c=c.shortDescription?WbxMobileSite.utils.stripTags(c.shortDescription):
"";a+='<div class="row-sublabel">'+c+"</div>";a+='<div class="row-arrow"></div>';a+="</a></li>"}a+="</ul>";this.loadingContext.parentEl.innerHTML=a;this.loadedPages.push(this.loadingContext.pageKey)}WbxMobileSite.utils.enableScrolling(this.loadingContext.pageKey);WbxMobileSite.utils.toggleLoading(false)};e.prototype.renderArticleDetail=function(){if(!this.hasLoaded(this.loadingContext.pageKey)){var b=parseInt(this.loadingContext.pageKey.split("-")[2]),a=this.feedData.entries[b],d="WbxMobileSite.utils.openExternalLink('"+
a.link+"', "+(this.pageConfig.useMobilizer=="true")+")",c="";if(a.date)c+='<p class="postdate">'+a.date+"</p>";var f=!("linkout"in this.pageConfig)||this.pageConfig.linkout=="true";c+=f?'<h1><a href="javascript:void(0)" onclick="'+d+'">'+a.title+"</a></h1>":"<h1>"+a.title+"</h1>";b="p-"+this.index+"-"+b+"-img";var g=this.getBestImage(a);g=g?WbxMobileSite.utils.getProxyImageSrc(g,320,320):null;if(g!=null)c+='<a class="content-img" href="#" onclick="return WbxMobileSite.utils.navTo(\''+b+'\')"><img src="'+
g+'" onload="'+("setTimeout(function() { WbxMobileSite.utils.enableScrolling('"+this.loadingContext.pageKey+"'); }, 500)")+'" /></a>';c+="<p>"+a.description+"</p>";if(f)c+='<div style="clear:both; min-height:300px;" class="button-row"><a class="lg-button black" href="javascript:void(0)" onclick="'+d+'">Read Full Article</a></div>';$(this.loadingContext.parentEl).addClass("content-view");this.loadingContext.parentEl.innerHTML=c}WbxMobileSite.utils.enableScrolling(this.loadingContext.pageKey);WbxMobileSite.utils.toggleLoading(false)};
e.prototype.getBestImage=function(b){return b.articleImage!=null&&b.articleImage!=""?b.articleImage:b.image};e.prototype.renderArticleImage=function(){if(!this.hasLoaded(this.loadingContext.pageKey)){var b=this.getBestImage(this.feedData.entries[parseInt(this.loadingContext.pageKey.split("-")[2])]);b=b?WbxMobileSite.utils.getProxyImageSrc(b,320,320):null;var a=document.createElement("img");a.src=b;a.className="fullImage";a.style.visibility="hidden";a.onload=function(){var d=-1*parseInt(this.width/
2),c=-1*parseInt(this.height/2);this.style.marginLeft=d+"px";this.style.marginTop=c+"px";a.style.visibility="visible"};$("#"+this.loadingContext.parentEl.id).addClass("fullImageContent");this.loadingContext.parentEl.appendChild(a)}WbxMobileSite.utils.enableScrolling(this.loadingContext.pageKey);WbxMobileSite.utils.toggleLoading(false)};WbxMobileSite.pageFactory.contains("mfeed")||WbxMobileSite.pageFactory.register("mfeed",e)})();
(function(){function e(b,a){this.index=b;this.config=a;this.pageConfig=JSON.parse(this.config.pageConfig);this.feedData=this.articleParentEl=null;this.loadingContext={parentEl:null,pageKey:null};this.loadedPages=[]}e.prototype.render=function(){};e.prototype.load=function(b,a){var d=a.split("-"),c=d.length>2?d[2]:null;d=d.length>3&&d[3]=="img";this.loadingContext.parentEl=b;this.loadingContext.pageKey=a;var f=this;if(d){WbxMobileSite.utils.toggleLoading(true,true);if(this.feedData==null){this.loadingContext.callback=
function(){f.renderArticleImage()};this.fetchFeed()}else this.renderArticleImage()}else if(c){WbxMobileSite.utils.toggleLoading(true);if(this.feedData==null){this.loadingContext.callback=function(){f.renderArticleDetail()};this.fetchFeed()}else this.renderArticleDetail()}else if(this.feedData==null){WbxMobileSite.utils.toggleLoading(true);this.loadingContext.callback=function(){f.renderArticleList()};this.fetchFeed()}else this.renderArticleList()};e.prototype.hasLoaded=function(b){for(var a=0;a<this.loadedPages.length;a++)if(this.loadedPages[a]==
b)return true;return false};e.prototype.fetchFeed=function(){var b=this;(new WbxMobileSite.fetcher.FeedFetcher(this.pageConfig.feedUrl)).fetch(function(a){b.handleFeedCallback(a)})};e.prototype.handleFeedCallback=function(b){this.feedData=b;this.loadingContext.callback()};e.prototype.renderArticleList=function(){var b="includeListImg"in this.pageConfig&&this.pageConfig.includeListImg=="true";if(!this.hasLoaded(this.loadingContext.pageKey)){var a=$(this.loadingContext.parentEl);a.addClass("table-view");
a.addClass("sums");b&&a.addClass("imgs");a="";a+='<ul class="section">';for(var d=0;d<this.feedData.entries.length&&d<25;d++){var c=this.feedData.entries[d];a+='<li><a href="#" onclick="return WbxMobileSite.utils.navTo(\''+("p-"+this.index+"-"+d)+"')\">";var f=this.getBestImage(c);if(f&&b){f=WbxMobileSite.utils.getProxyImageSrc(f,60,60,true);a+='<div class="row-img" style="background-image:url('+f+')"></div>'}a+='<div class="row-label">'+c.title+"</div>";c=c.shortDescription?WbxMobileSite.utils.stripTags(c.shortDescription):
"";a+='<div class="row-sublabel">'+c+"</div>";a+='<div class="row-arrow"></div>';a+="</a></li>"}a+="</ul>";this.loadingContext.parentEl.innerHTML=a;this.loadedPages.push(this.loadingContext.pageKey)}WbxMobileSite.utils.enableScrolling(this.loadingContext.pageKey);WbxMobileSite.utils.toggleLoading(false)};e.prototype.renderArticleDetail=function(){if(!this.hasLoaded(this.loadingContext.pageKey)){var b=parseInt(this.loadingContext.pageKey.split("-")[2]),a=this.feedData.entries[b],d="WbxMobileSite.utils.openExternalLink('"+
a.link+"', "+(this.pageConfig.useMobilizer=="true")+")",c="";if(a.date)c+='<p class="postdate">'+a.date+"</p>";var f=!("linkout"in this.pageConfig)||this.pageConfig.linkout=="true";c+=f?'<h1><a href="javascript:void(0)" onclick="'+d+'">'+a.title+"</a></h1>":"<h1>"+a.title+"</h1>";b="p-"+this.index+"-"+b+"-img";var g=this.getBestImage(a);g=g?WbxMobileSite.utils.getProxyImageSrc(g,320,320):null;if(g!=null)c+='<a class="content-img" href="#" onclick="return WbxMobileSite.utils.navTo(\''+b+'\')"><img src="'+
g+'" onload="'+("setTimeout(function() { WbxMobileSite.utils.enableScrolling('"+this.loadingContext.pageKey+"'); }, 500)")+'" /></a>';c+="<p>"+a.description+"</p>";if(f)c+='<div style="clear:both; min-height:300px;" class="button-row"><a class="lg-button black" href="javascript:void(0)" onclick="'+d+'">Read Full Article</a></div>';$(this.loadingContext.parentEl).addClass("content-view");this.loadingContext.parentEl.innerHTML=c}WbxMobileSite.utils.enableScrolling(this.loadingContext.pageKey);WbxMobileSite.utils.toggleLoading(false)};
e.prototype.getBestImage=function(b){return b.articleImage!=null&&b.articleImage!=""?b.articleImage:b.image};e.prototype.renderArticleImage=function(){if(!this.hasLoaded(this.loadingContext.pageKey)){var b=this.getBestImage(this.feedData.entries[parseInt(this.loadingContext.pageKey.split("-")[2])]);b=b?WbxMobileSite.utils.getProxyImageSrc(b,320,320):null;var a=document.createElement("img");a.src=b;a.className="fullImage";a.style.visibility="hidden";a.onload=function(){var d=-1*parseInt(this.width/
2),c=-1*parseInt(this.height/2);this.style.marginLeft=d+"px";this.style.marginTop=c+"px";a.style.visibility="visible"};$("#"+this.loadingContext.parentEl.id).addClass("fullImageContent");this.loadingContext.parentEl.appendChild(a)}WbxMobileSite.utils.enableScrolling(this.loadingContext.pageKey);WbxMobileSite.utils.toggleLoading(false)};WbxMobileSite.pageFactory.contains("mfeed")||WbxMobileSite.pageFactory.register("mfeed",e)})();
(function(){function e(b,a){this.type="twitter";this.index=b;this.config=a;this.isLoaded=false;this.articleParentEl=null;this.apiUrl="http://twitter.com/status/user_timeline/"+a.username+".json";this.user=this.tweets=null;this.isInitialized=false;this.loadingContext={parentEl:null,pageKey:null}}e.prototype.render=function(){};e.prototype.load=function(b,a){var d=a.split("-"),c=d.length>2?d[2]:null;this.loadingContext.parentEl=b;this.loadingContext.pageKey=a;if(c){$(b).html("");WbxMobileSite.utils.toggleLoading(true);
$(b).append($(e.formatUser(currentPage.user,currentPage.loadingContext.pageKey)));a='<div class="table-view grouped entries" style="min-height: 0;"><ul class="section"><li><div class="entry">';a+='<div class="row-label">'+e.formatTwitString(this.tweets[c].text,true)+"</div>";a+='<div class="row-sublabel">'+e.relativeTime(this.tweets[c].created_at)+"</div>";a+="</div></li></ul></div>";$(b).append(a);a="http://twitter.com/"+this.user.screen_name+"/statuses/"+this.tweets[c].id;$(b).append('<div class="button-row" style="min-height: 300px;"><div class="button-cell"><a class="lg-button" target="_blank" href="http://twitter.com/?status='+
escape("RT "+this.user.screen_name+" "+this.tweets[c].text)+'">Retweet</a></div><div class="button-cell"><a class="lg-button" target="_blank" href="'+a+'">Favorite</a></div></div>');WbxMobileSite.utils.enableScrolling(currentPage.loadingContext.pageKey);WbxMobileSite.utils.toggleLoading(false)}else if(!this.isInitialized){WbxMobileSite.utils.toggleLoading(true);c=new WbxMobileSite.fetcher.FeedFetcher(this.apiUrl+"?count="+this.config.updateCount,WbxMobileSite.proxyUrl+"/fetch/","2fb04bd53a9c08d61344d07df62e2cdc33b7554e0000012667b887ef");
c.minify=false;c.processResponse=false;c.raw=true;c.fetch(function(f){currentPage=WbxMobileSite.site.getPageByPageKey(WbxMobileSite.site.currentPage);currentPage.tweets=f;currentPage.user=f[0].user;$(b).html($(e.formatUser(currentPage.user,currentPage.loadingContext.pageKey)));$(b).append($('<div class="table-view grouped entries" id="tweetlist-'+d[1]+'"></div>'));f='<ul class="section">';for(ix=0;ix<currentPage.tweets.length;ix++){var g="p-"+d[1]+"-"+ix;f+="<li>";f+='<a href="javascript:void(0)" ontouchstart="WbxMobileSite.site.selectNavigation(this, \''+
g+"');\" onclick=\"return WbxMobileSite.utils.navTo('"+g+"')\">";f+='<div class="row-label">'+e.formatTwitString(currentPage.tweets[ix].text,false)+"</div>";f+='<div class="row-sublabel">'+e.relativeTime(currentPage.tweets[ix].created_at)+"</div>";f+='<div class="row-arrow"></div>';f+="</a></li>"}f+="</ul>";$("#tweetlist-"+d[1]).append(f);WbxMobileSite.utils.toggleLoading(false);currentPage.isInitialized=true;WbxMobileSite.utils.enableScrolling(currentPage.loadingContext.pageKey)})}};e.formatUser=
function(b){var a="javascript:void(0)";if(window.top==window.self)a=WbxMobileSite.utils.getExternalLink("http://twitter.com/"+b.screen_name,"follow");return'<div class="twitteruser"><div class="avatar" style="background-image: url('+b.profile_image_url+');"></div><a target="_blank" href="'+a+'"><p class="username">'+b.screen_name+'</p></a><p class="userinfo"><span>'+b.statuses_count+"</span> updates | <span>"+b.followers_count+"</span> followers</p></div>"};e.relativeTime=function(b){var a=new Date(b);
if(a!=null){try{var d=a.toLocaleTimeString().replace(/([0-9]{1,2}:[0-9]{2}):[0-9]{2}/,"$1").replace(/ \w+$/," ")+" "+a.toLocaleDateString().replace(/, 20[0-9][0-9]/,"")}catch(c){d=a.toLocaleTimeString()+" "+a.toLocaleDateString()}return d}return b};e.formatTwitString=function(b,a){if(a){b=b.replace(/((ftp|https?):\/\/([-\w\.]+)+(:\d+)?(\/([\w/_\.]*(\?\S+)?)?)?)/gm,'<a href="$1" target="_blank">$1</a>');b=b.replace(/(\s*)@([a-zA-Z0-9_]+)\b/gm,'$1<a href="http://twitter.com/$2" target="_blank">@$2</a>');
b=b.replace(/(\s*)#([a-zA-Z0-9_]+)\b/gm,'$1<a href="http://twitter.com/search?q=%23$2" target="_blank">#$2</a>')}return b};WbxMobileSite.pageFactory.contains("mtwitter")||WbxMobileSite.pageFactory.register("mtwitter",e)})();
(function(){function e(b,a){this.index=b;this.config=a;this.feedData=this.articleParentEl=null;this.loadingContext={parentEl:null,pageKey:null};this.loadedPages=[]}e.prototype.render=function(){};e.prototype.load=function(b,a){var d=a.split("-");d=d.length>2?d[2]:null;this.loadingContext.parentEl=b;this.loadingContext.pageKey=a;var c=this;if(d)if(this.feedData==null){WbxMobileSite.utils.toggleLoading(true);this.loadingContext.callback=function(){c.renderDetail()};this.fetchFeed()}else this.renderDetail();
else if(this.feedData==null){WbxMobileSite.utils.toggleLoading(true);this.loadingContext.callback=function(){c.renderList()};this.fetchFeed()}else this.renderList()};e.prototype.hasLoaded=function(b){for(var a=0;a<this.loadedPages.length;a++)if(this.loadedPages[a]==b)return true;return false};e.prototype.fetchFeed=function(){var b=JSON.parse(this.config.pageConfig),a=this;(new WbxMobileSite.fetcher.FeedFetcher(b.feedUrl)).fetch(function(d){a.handleFeedCallback(d)})};e.prototype.handleFeedCallback=
function(b){this.feedData=b;this.loadingContext.callback()};e.prototype.renderList=function(){if(!this.hasLoaded(this.loadingContext.pageKey)){this.loadingContext.parentEl.innerHTML="";for(var b=0;b<this.feedData.entries.length&&b<25;b++){var a=this.feedData.entries[b];if(a.image!=null&&a.image!=""){var d=WbxMobileSite.utils.getProxyImageSrc(a.image,120,90),c=document.createElement("a");c.className="listItem";c.href="#";this.setImageLinkClickHandler(c,"p-"+this.index+"-"+b);c.style.backgroundImage=
"url("+d+")";d=document.createElement("div");d.className="listDetail";var f="<h2>"+a.title+"</h2>";a=this.getDetailsFromEntry(a);if(a!=null&&a!="")f+='<p class="desc">'+a+"</p>";d.innerHTML=f;c.appendChild(d);this.loadingContext.parentEl.appendChild(c);c=document.createElement("div");c.style.clear="both";this.loadingContext.parentEl.appendChild(c)}}this.loadedPages.push(this.loadingContext.pageKey);WbxMobileSite.utils.enableScrolling(this.loadingContext.pageKey)}WbxMobileSite.utils.toggleLoading(false)};
e.prototype.getDetailsFromEntry=function(b){var a=b.description?WbxMobileSite.utils.stripTags(b.description):"",d=a!=null?a.indexOf("From:"):-1;b=a;var c=null;if(d>0){b=a.substring(0,d);c=a.substr(d)}if(c!=null&&c!=""){var f=c.indexOf("Views:");d=c.indexOf("Time:");var g=c.indexOf("More",d+6),h=c.indexOf(" ",f+7);a=c.substring(5,f).replace(/ /g,"");f=c.substring(f+7,h).replace(/ /g,"");h=c.substring(h,d).replace(/ /g,"").replace("ratings","");c=c.substring(d+6,g);if(a!=null&&f!=null&&h!=null&&c!=
null&&a!=""&&f!=""&&h!=""&&c!=""){b=h+" ratings&nbsp;&nbsp;"+f+" views<br />";b+="<strong>"+c+"</strong>&nbsp;&nbsp;"+a}}return b};e.prototype.setImageLinkClickHandler=function(b,a){b.onclick=function(){return WbxMobileSite.utils.navTo(a)}};e.prototype.renderDetail=function(){if(!this.hasLoaded(this.loadingContext.pageKey)){var b=this.feedData.entries[parseInt(this.loadingContext.pageKey.split("-")[2])],a=document.createElement("div");a.className="wrapper";var d=document.createElement("div");d.className=
"listItem";var c=document.createElement("div");c.className="listDetail";var f="<h2>"+b.title+"</h2>",g=this.getDetailsFromEntry(b);if(g!=null&&g!="")f+='<p class="desc">'+g+"</p>";c.innerHTML=f;f=document.createElement("div");g=WbxMobileSite.utils.getProxyImageSrc(b.image,120,90);f.style.backgroundImage="url("+g+")";f.className="video-embed";if(WbxMobileSite.isAndroid){b=WbxMobileSite.utils.getExternalLink(b.link);f.innerHTML='<a href="'+b+'" style="display:block; width:120px; height:90px" target="_blank"></a>'}else f.innerHTML=
'<embed src="'+b.link+'" type="application/x-shockwave-flash" wmode="transparent" width="120" height="90"></embed>';d.appendChild(f);d.appendChild(c);a.appendChild(d);d=document.createElement("div");d.style.clear="both";a.appendChild(d);$("#"+this.loadingContext.parentEl.id).addClass("video-content");this.loadingContext.parentEl.appendChild(a);this.loadedPages.push(this.loadingContext.pageKey)}WbxMobileSite.utils.toggleLoading(false)};WbxMobileSite.pageFactory.contains("myoutube")||WbxMobileSite.pageFactory.register("myoutube",
e)})();
(function(){function e(b,a){this.type="poll";this.index=b;this.config=a;this.pollAnswers=eval(a.pollAnswers);this.isLoaded=false;this.articleParentEl=null;this.apiHost="http://data.widgetserver.com";this.resultsApiUrl=this.apiHost+"/data-api/counter/get/12402f90-04c1-4571-b564-2183f0dfd37e/"+a.pollQuestionId+".json?";this.voteApiUrl=this.apiHost+"/data-api/counter/incr/12402f90-04c1-4571-b564-2183f0dfd37e/"+a.pollQuestionId+"/";this.results=null;this.token="7f8f672e6b25670c5925343d5dc608b27bbdf66c0000012ae8387a88";this.selectedAnswer=
this.votePage=null;this.loadingContext={parentEl:null,pageKey:null};this.graphingScripts=["http://files.widgetbox.com/mobile/scripts/raphael-min.js","http://files.widgetbox.com/mobile/scripts/g.raphael-min.js","http://files.widgetbox.com/mobile/scripts/g.pie-min.js"]}e.prototype.render=function(){for(var b=0;b<this.graphingScripts.length;b++)$.getScript(this.graphingScripts[b])};e.prototype.load=function(b,a){var d=a.split("-"),c=d.length>2?d[2]:null;this.loadingContext.parentEl=b;this.loadingContext.pageKey=
a;d=WbxMobileSite.site.getPageByPageKey(WbxMobileSite.site.currentPage);if(c){WbxMobileSite.utils.toggleLoading(true);this.viewResults()}else if(!this.isLoaded){WbxMobileSite.utils.toggleLoading(true);if(this.votePage!=null){$(b).html(this.votePage);this.selectedAnswer&&$("#"+this.selectedAnswer).attr("checked","checked")}else{c=$('<div class="headerimage content-view grouped"></div>');if(this.config.headerImage!=""){c.css("min-height","165px");c.css("max-width","300px");c.css("background","url("+
this.config.headerImage+") center center no-repeat");c.css("webkitBackgroundSize",this.config.headerImageWidth+"px "+this.config.headerImageHeight+"px");c.css("padding","0");c.css("margin","8px auto !important");$(b).html(c)}$(b).append($('<div class="content-view grouped"><h1 style="color:'+this.config.pollQuestionColor+'">'+this.config.pollQuestion+"</h1></div>"));c=$("<div></div>");c.addClass("table-view");c.addClass("grouped");c.addClass("wrap");c.css("minHeight","0");var f=$('<ul class="section"></ul>');
f.css("marginTop","0");for(var g=0;g<this.pollAnswers.length;g++)this.pollAnswers[g]!=null&&this.pollAnswers[g].text!=null&&this.pollAnswers[g].text!=""&&f.append($('<li><div class="row-label answer"><input type="radio" name="answer" id="a'+this.pollAnswers[g].id+'"value="a'+this.pollAnswers[g].id+'"/><label style="color:'+this.config.pollAnswerColor+';"for="a'+this.pollAnswers[g].id+'">'+this.pollAnswers[g].text+"</label></div></li>"));c.append(f);$(b).append(c);c='<div class="button-row"><div class="button-cell"><a class="lg-button" href="#" id="'+
a+'-vote" onclick="return WbxMobileSite.site.getPageByPageKey(\''+this.loadingContext.pageKey+'\').vote();" title="Vote">Vote</a></div>';if(this.config.showResultsLink&&this.config.showResultsLink!="false")c+='<div class="button-cell"><a class="lg-button" href="#" onclick="return WbxMobileSite.utils.navTo(\''+a+'-results\')" title="Vote">Results</a></div>';c+="</div>";$(b).append(c)}this.isLoaded=true;WbxMobileSite.utils.enableScrolling(d.loadingContext.pageKey);WbxMobileSite.utils.toggleLoading(false)}};
e.prototype.vote=function(){WbxMobileSite.utils.toggleLoading(true);var b=this.loadingContext.pageKey,a=WbxMobileSite.site.getPageByPageKey(WbxMobileSite.site.currentPage);a.results=null;var d=$("#"+b+" input[type=radio]:checked").val();if(d)$.getJSON(this.voteApiUrl+d+".json?wbx_callback=?",{wbx_token:this.token},function(c){if(c.success){a.selectedAnswer=d;a.disableVoting();a.votePage=$(a.loadingContext.parentEl).html();WbxMobileSite.site.track(a.loadingContext.pageKey,"submit");WbxMobileSite.utils.navTo(b+
"-results")}else{alert("Trouble posting vote");WbxMobileSite.utils.toggleLoading(false)}});else{alert("Choose an answer before voting");WbxMobileSite.utils.toggleLoading(false)}return false};e.prototype.disableVoting=function(){var b=this.loadingContext.pageKey;$("#"+b+"-vote").remove();$("#"+b+" :input").attr("disabled","disabled")};e.prototype.viewResults=function(){for(var b=WbxMobileSite.site.getPageByPageKey(WbxMobileSite.site.currentPage),a=this.resultsApiUrl,d=this.pollAnswers,c=0;c<d.length;c++)a+=
"labelId=a"+d[c].id+"&";b.results==null?$.getJSON(a+"&wbx_callback=?",{wbx_token:this.token},function(f){b.results=f.results;b.renderResults()}):b.renderResults();WbxMobileSite.site.track(b.loadingContext.pageKey,"result");WbxMobileSite.utils.toggleLoading(false);WbxMobileSite.utils.enableScrolling(b.loadingContext.pageKey)};e.prototype.renderResults=function(){var b=WbxMobileSite.site.getPageByPageKey(WbxMobileSite.site.currentPage);$(b.loadingContext.parentEl).html("");if(b.results.calculatedTotal==
0){$(b.loadingContext.parentEl).append('<div id="'+b.loadingContext.pageKey+'-graph" class="content-view grouped"></div>');$("#"+b.loadingContext.pageKey+"-graph").append('<h1 style="text-align:center;">No votes yet.</h1>')}else{$(b.loadingContext.parentEl).append('<div id="'+b.loadingContext.pageKey+'-graph" class="content-view grouped" style="height: 270px;"></div>');for(var a=[],d=0;d<b.pollAnswers.length;d++)a.push(b.results["a"+b.pollAnswers[d].id]);var c=Raphael(b.loadingContext.pageKey+"-graph");
c.g.txtattr.font="10px 'Fontin Sans', Fontin-Sans, sans-serif";d=b.config.pollQuestion.substr(0,40);d=b.config.pollQuestion.length>=40?d+"...":d;c.g.text(140,10,d).attr({"font-size":14});var f=[];for(d=0;d<b.pollAnswers.length;d++){var g=b.pollAnswers[d].text.substr(0,33);g=b.pollAnswers[d].text.length>=33?g+"...":g;f.push(g+" (%%.%%, ## votes)")}c.g.piechart(140,120,90,a,{legend:f,legendpos:"south"})}};WbxMobileSite.pageFactory.contains("mpoll")||WbxMobileSite.pageFactory.register("mpoll",e)})();
$(document).ready(function(){var e={icon:"",startupImg:"",headerImg:"",navStyle:"bottomNav",aboutImg:"",aboutText:"",titleStyle:"siteTitleImage","titleImg:":"",themeColor:"",admobAcct:"",noAds:"false",pageConfigs:[],theme:"04",titleImg:""};e.title="Adrenaline";e.mode="site";e.pageConfigs.push({isStandalone:"true","lib.mobileCssSrc":"/mobile/css/theme/01/theme.css","wbx.buttonMode":"2",pageConfig:'{"feedUrl":"http://www.adrenalinelive.net/feed","headerImg":"","includeListImg":"true"}',"lib.mobileScriptSrc":"/mobile/mobile.js",
"lib.scriptSrc":"/scripts/jquery-1.4.1.min.js","lib.cssSrc":"/mobile/css/base.css"});e.pageConfigs.push({isStandalone:"true","lib.mobileCssSrc":"/mobile/css/theme/01/theme.css","wbx.buttonMode":"2",pageConfig:'{"feedUrl":"http://makedatamakesense.com/myspace/event/?url=http%3A%2F%2Fwww.myspace.com%2Fadrenalinelive&format=rss&style=standard","headerImg":"","includeListImg":"true"}',"lib.mobileScriptSrc":"/mobile/mobile.js","lib.scriptSrc":"/scripts/jquery-1.4.1.min.js","lib.cssSrc":"/mobile/css/base.css"});
e.pageConfigs.push({username:"The_Slade",isStandalone:"true","lib.mobileCssSrc":"/mobile/css/theme/01/theme.css","wbx.buttonMode":"2",isCurrent:"true",updateCount:"20","lib.mobileScriptSrc":"/mobile/mobile.js",pageIndex:"0","lib.scriptSrc":"/scripts/jquery-1.4.1.min.js","lib.cssSrc":"/mobile/css/base.css"});e.pageConfigs.push({isStandalone:"true","lib.mobileCssSrc":"/mobile/css/theme/01/theme.css","wbx.buttonMode":"2",pageConfig:'{"username":"bad12boy","type":"search","feedUrl":"http://gdata.youtube.com/feeds/base/videos?q=bad12boy&client=ytapi-youtube-search&alt=rss&v=2"}',
"lib.mobileScriptSrc":"/mobile/mobile.js","lib.scriptSrc":"/scripts/jquery-1.4.1.min.js","lib.cssSrc":"/mobile/css/base.css"});e.pageConfigs.push({"wbx.libraryMobileCss":"/mobile/jqtouch/themes/apple/theme.min.css",pollQuestionColor:"#000000",headerImageHeight:"100",pollAnswerColor:"#000000",pollVoteButtonColor:"#6DA529","lib.mobileCssSrc":"/mobile/css/theme/01/theme.css",pollAnswers:'[{"id":0,"text":"Westheimer","elId":"mobile-poll-answer-0"},{"id":1,"text":"Riveroaks","elId":"mobile-poll-answer-1"},{"id":2,"text":"Willowbrook","elId":"mobile-poll-answer-2"},{"id":3,"text":"Einstein\'s","elId":"mobile-poll-answer-3"},{"id":4,"text":"Texas Rock Tavern","elId":"mobile-poll-answer-4"},{"id":5,"text":"Scout Bar","elId":"mobile-poll-answer-5"},{"id":6,"text":"Addison","elId":"mobile-poll-answer-6"},{"id":7,"text":"Arlington","elId":"mobile-poll-answer-7"},{"id":8,"text":"San Antonio","elId":"mobile-poll-answer-8"},{"id":9,"text":"Cullen\'s live","elId":"mobile-poll-answer-9"},{"id":10,"text":"Clearlake","elId":"mobile-poll-answer-10"},{"id":11,"text":"Austin","elId":"mobile-poll-answer-11"}]',
lastAnswerId:"11",pollQuestionId:"ibj7z9dnn",pollQuestion:"What is your favorite venue to see an Adrenaline concert?",headerImageWidth:"480","lib.scriptSrc":"/scripts/jquery-1.4.1.min.js",pageIndex:"0",showResultsLink:"true",headerImage:"",isStandalone:"true","wbx.buttonMode":"2",isCurrent:"true",pollVoteButtonTextColor:"#FFFFFF","lib.mobileScriptSrc":"/mobile/mobile.js","lib.cssSrc":"/mobile/css/base.css"});WbxMobileSite.site.pageList=[{guid:"71c42fbf-7abc-4b43-a1db-65958e20a9df",title:"Posts",type:"mfeed",
elId:"mobile-site-page-0"},{guid:"d2e495e1-98d0-4905-b782-b247245c9e8c",title:"Show Dates",type:"mfeed",elId:"mobile-site-page-1"},{guid:"05ab69d8-2231-4899-8c19-545c28b79258",title:"Twitter",type:"mtwitter",elId:"mobile-site-page-2"},{guid:"35da28f7-79fc-4e46-9c30-ff473063d53f",title:"YouTube",type:"myoutube",elId:"mobile-site-page-3"},{guid:"3e14b9a5-a5fe-42d7-b08f-c25d7f4001a7",title:"Poll",type:"mpoll",elId:"mobile-site-page-4"}];WbxMobileSite.galleryUrl="http://www.widgetbox.com/";WbxMobileSite.cdnGalleryUrl=
"http://pub.widgetbox.com/";WbxMobileSite.syndUrl="http://widgetserver.com/";WbxMobileSite.proxyUrl="http://p.widgetserver.com/p/fetch/";WbxMobileSite.imageProxyUrl="http://i.widgetserver.com/ip/";WbxMobileSite.metricsUrl="http://t.widgetserver.com/t";WbxMobileSite.linkbarUrl="http://l.wbx.me/l/";WbxMobileSite.shortWidgetUrl="http://l.wbx.me/w/";WbxMobileSite.mobileSiteRuntimeUrl="http://m.wbx.me/";WbxMobileSite.siteName="Adrenaline";WbxMobileSite.galleryShortUrl=WbxMobileSite.shortWidgetUrl+"47dd8c";
WbxMobileSite.instFriendlyId="adrenaline";WbxMobileSite.syndShortSiteUrl=WbxMobileSite.mobileSiteRuntimeUrl+WbxMobileSite.instFriendlyId;WbxMobileSite.token="eb7d0098be0b87674732854a395423d374fb0c350000012ae8387aa6";WbxMobileSite.instPk="141997324";WbxMobileSite.instId="fa2a7ac3-e572-4e24-b77f-e2cb9c93f74f";WbxMobileSite.instCreatedByUserPk="65221409";WbxMobileSite.regPk="3755230";WbxMobileSite.providerPk="1860293";WbxMobileSite.partnerNetworkPk="14";WbxMobileSite.userServiceLevel=parseInt("0");WbxMobileSite.providerServiceLevel=
parseInt("2");WbxMobileSite.registrationServiceLevel=parseInt("0");WbxMobileSite.instanceServiceLevel=parseInt("0");WbxMobileSite.instanceServiceLevel=parseInt("0");WbxMobileSite.site.init(e);if(window.self!=window.top)if(!WbxMobileSite.site.isPro()||e.admobAcct!=null&&e.admobAcct!=""){e.admobAcct!=null&&e.admobAcct!=""?$("#p-ads").html("<strong>Your ads here.</strong>"):$("#p-ads").html("<strong>Don't want ads?</strong> Upgrade your mobile site to Pro!");$("#p-ads").addClass("mobile-ad-placeholder")}else $("#p-ads").css("display",
"none")});