(function(){function f(b,a){this.index=b;this.config=a;this.feedData=this.articleParentEl=null;this.loadingContext={parentEl:null,pageKey:null};this.loadedPages=[]}f.prototype.render=function(){};f.prototype.load=function(b,a){var c=a.split("-"),d=c.length>2?c[2]:null;c=c.length>3&&c[3]=="img";this.loadingContext.parentEl=b;this.loadingContext.pageKey=a;var e=this;if(c)if(this.feedData==null||this.feedData.entries==null){WbxMobileSite.utils.toggleLoading(true,true);this.loadingContext.callback=function(){e.renderArticleImage()};
this.fetchFeed()}else this.renderArticleImage();else if(d)if(this.feedData==null||this.feedData.entries==null){WbxMobileSite.utils.toggleLoading(true);this.loadingContext.callback=function(){e.renderArticleDetail()};this.fetchFeed()}else this.renderArticleDetail();else if(this.feedData==null||this.feedData.entries==null){WbxMobileSite.utils.toggleLoading(true);this.loadingContext.callback=function(){e.renderArticleList()};this.fetchFeed()}else this.renderArticleList()};f.prototype.hasLoaded=function(b){for(var a=
0;a<this.loadedPages.length;a++)if(this.loadedPages[a]==b)return true;return false};f.prototype.fetchFeed=function(){var b=JSON.parse(this.config.pageConfig);b=new WbxMobileSite.fetcher.FeedFetcher(b.feedUrl);b.minify=false;var a=this;b.fetch(function(c){a.handleFeedCallback(c)})};f.prototype.handleFeedCallback=function(b){this.feedData=b;this.loadingContext.callback()};f.prototype.renderArticleList=function(){if(this.feedData.entries==undefined||this.feedData.entries.length==0||this.feedData.entries[0]==
undefined){WbxMobileSite.utils.toggleLoading(false);var b=$(this.loadingContext.parentEl);b.html('<div style="margin:15px" class="content-view grouped">No posts found in feed.</div>')}else{var a=JSON.parse(this.config.pageConfig),c="includeListImg"in a&&a.includeListImg=="true";if(!this.hasLoaded(this.loadingContext.pageKey)){b=$(this.loadingContext.parentEl);var d=$("<div></div>");d.addClass("table-view");d.addClass("grouped");d.addClass("entries");c&&d.addClass("imgs");var e="";if(this.feedData.entries.length>
0)if(e=this.feedData.entries[0].author)e=e.name;a="javascript:WbxMobileSite.utils.openExternalLink('"+a.pageUrl+"')";var g='<div class="header"><a href="'+a+'" target="_blank"><img src="'+WbxMobileSite.utils.getProxyImageSrc(this.feedData.logo,48,48,true)+'" alt="'+e+'" class="profileimage" /></a>';g+='<div class="action" ><div class="name"><a href="'+a+'" target="_blank"><span class="name">'+e+"</span> on Facebook</a></div>";g+='<div class="button"><a href="'+a+'" target="_blank"><span class="button_text"><span></span>Become a Fan</span></a>';
g+="</div></div></div>";b.append(g);e="";e+='<ul class="section">';for(a=0;a<this.feedData.entries.length&&a<25;a++){g=this.feedData.entries[a];e+='<li><a href="#" onclick="return WbxMobileSite.utils.navTo(\''+("p-"+this.index+"-"+a)+"')\">";var h=this.getBestImage(g);if(h&&c){var i=WbxMobileSite.utils.getProxyImageSrc(h,120,120);e+='<div class="row-img" style="background-image:url('+i+'); -webkit-border-top-left-radius: 0; -moz-border-radius-topleft:0 "></div>'}e+='<div class="row-label">'+g.shortDescription.replace(/<\/?[^>]+>/gi,
" ")+"</div>";e+='<div class="row-arrow"></div>';if(h&&c)e+='<div style="clear:both"></div>';e+="</a></li>"}e+="</ul>";d.html(e);b.append(d);this.loadedPages.push(this.loadingContext.pageKey)}WbxMobileSite.utils.enableScrolling(this.loadingContext.pageKey)}WbxMobileSite.utils.toggleLoading(false)};f.prototype.getBestImage=function(b){var a=b.articleImage!=null&&b.articleImage!=""?b.articleImage:b.image;b=b.rawDescription.match(/http:\/\/photos-h.ak.fbcdn.net\/[^"']*_s.jpg/);if(b!=null&&b.length>0){a=
b[0];a=a.replace("_s.jpg","_n.jpg");a=a.replace("http://photos-h.ak.fbcdn.net","http://sphotos.ak.fbcdn.net")}return a};f.prototype.renderArticleDetail=function(){JSON.parse(this.config.pageConfig);if(!this.hasLoaded(this.loadingContext.pageKey)){var b=parseInt(this.loadingContext.pageKey.split("-")[2]),a=this.feedData.entries[b],c=WbxMobileSite.utils.getExternalLink(a.link),d="";if(a.date)d+='<p class="postdate">'+a.date+"</p>";if(a.title)d+='<h1><a href="'+c+'" target="_blank">'+a.title+"</a></h1>";
b="p-"+this.index+"-"+b+"-img";c=(c=this.getBestImage(a))?WbxMobileSite.utils.getProxyImageSrc(c,320,320):null;if(c!=null){d+='<a class="content-img" href="#" onclick="return WbxMobileSite.utils.navTo(\''+b+'\')"><img src="'+c+'" onload="'+("setTimeout(function() { WbxMobileSite.utils.enableScrolling('"+this.loadingContext.pageKey+"'); }, 500)")+'" border="0" /></a>';d+='<div style="clear:both"></div>'}a=a.shortDescription.replace(/<\/?[^>]+>/gi," ").replace(/((ftp|https?):\/\/([-\w\.]+)+(:\d+)?(\/([\w/_\.]*(\?\S+)?)?)?)/gm,
'<a href="javascript:WbxMobileSite.utils.openExternalLink(\'$1\')" target="_blank">$1</a>');d+="<p>"+a+"</p>";$(this.loadingContext.parentEl).addClass("content-view");this.loadingContext.parentEl.innerHTML=d}WbxMobileSite.utils.enableScrolling(this.loadingContext.pageKey);WbxMobileSite.utils.toggleLoading(false)};f.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 c=-1*parseInt(this.width/2),d=-1*parseInt(this.height/2);this.style.marginLeft=c+"px";this.style.marginTop=d+"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("mfacebook")||WbxMobileSite.pageFactory.register("mfacebook",f)})();
(function(){function f(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=[]}f.prototype.render=function(){};f.prototype.load=function(b,a){var c=a.split("-"),d=c.length>2?c[2]:null;c=c.length>3&&c[3]=="img";this.loadingContext.parentEl=b;this.loadingContext.pageKey=a;var e=this;if(c){WbxMobileSite.utils.toggleLoading(true,true);if(this.feedData==null){this.loadingContext.callback=
function(){e.renderArticleImage()};this.fetchFeed()}else this.renderArticleImage()}else if(d){WbxMobileSite.utils.toggleLoading(true);if(this.feedData==null){this.loadingContext.callback=function(){e.renderArticleDetail()};this.fetchFeed()}else this.renderArticleDetail()}else if(this.feedData==null){WbxMobileSite.utils.toggleLoading(true);this.loadingContext.callback=function(){e.renderArticleList()};this.fetchFeed()}else this.renderArticleList()};f.prototype.hasLoaded=function(b){for(var a=0;a<this.loadedPages.length;a++)if(this.loadedPages[a]==
b)return true;return false};f.prototype.fetchFeed=function(){var b=this;(new WbxMobileSite.fetcher.FeedFetcher(this.pageConfig.feedUrl)).fetch(function(a){b.handleFeedCallback(a)})};f.prototype.handleFeedCallback=function(b){this.feedData=b;this.loadingContext.callback()};f.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 c=0;c<this.feedData.entries.length&&c<25;c++){var d=this.feedData.entries[c];a+='<li><a href="#" onclick="return WbxMobileSite.utils.navTo(\''+("p-"+this.index+"-"+c)+"')\">";var e=this.getBestImage(d);if(e&&b){e=WbxMobileSite.utils.getProxyImageSrc(e,60,60,true);a+='<div class="row-img" style="background-image:url('+e+')"></div>'}a+='<div class="row-label">'+d.title+"</div>";d=d.shortDescription?WbxMobileSite.utils.stripTags(d.shortDescription):
"";a+='<div class="row-sublabel">'+d+"</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)};f.prototype.renderArticleDetail=function(){if(!this.hasLoaded(this.loadingContext.pageKey)){var b=parseInt(this.loadingContext.pageKey.split("-")[2]),a=this.feedData.entries[b],c="WbxMobileSite.utils.openExternalLink('"+
a.link+"', "+(this.pageConfig.useMobilizer=="true")+")",d="";if(a.date)d+='<p class="postdate">'+a.date+"</p>";var e=!("linkout"in this.pageConfig)||this.pageConfig.linkout=="true";d+=e?'<h1><a href="javascript:void(0)" onclick="'+c+'">'+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)d+='<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>';d+="<p>"+a.description+"</p>";if(e)d+='<div style="clear:both; min-height:300px;" class="button-row"><a class="lg-button black" href="javascript:void(0)" onclick="'+c+'">Read Full Article</a></div>';$(this.loadingContext.parentEl).addClass("content-view");this.loadingContext.parentEl.innerHTML=d}WbxMobileSite.utils.enableScrolling(this.loadingContext.pageKey);WbxMobileSite.utils.toggleLoading(false)};
f.prototype.getBestImage=function(b){return b.articleImage!=null&&b.articleImage!=""?b.articleImage:b.image};f.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 c=-1*parseInt(this.width/
2),d=-1*parseInt(this.height/2);this.style.marginLeft=c+"px";this.style.marginTop=d+"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",f)})();
(function(){function f(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=[]}f.prototype.render=function(){};f.prototype.load=function(b,a){var c=a.split("-"),d=c.length>2?c[2]:null;c=c.length>3&&c[3]=="img";this.loadingContext.parentEl=b;this.loadingContext.pageKey=a;var e=this;if(c){WbxMobileSite.utils.toggleLoading(true,true);if(this.feedData==null){this.loadingContext.callback=
function(){e.renderArticleImage()};this.fetchFeed()}else this.renderArticleImage()}else if(d){WbxMobileSite.utils.toggleLoading(true);if(this.feedData==null){this.loadingContext.callback=function(){e.renderArticleDetail()};this.fetchFeed()}else this.renderArticleDetail()}else if(this.feedData==null){WbxMobileSite.utils.toggleLoading(true);this.loadingContext.callback=function(){e.renderArticleList()};this.fetchFeed()}else this.renderArticleList()};f.prototype.hasLoaded=function(b){for(var a=0;a<this.loadedPages.length;a++)if(this.loadedPages[a]==
b)return true;return false};f.prototype.fetchFeed=function(){var b=this;(new WbxMobileSite.fetcher.FeedFetcher(this.pageConfig.feedUrl)).fetch(function(a){b.handleFeedCallback(a)})};f.prototype.handleFeedCallback=function(b){this.feedData=b;this.loadingContext.callback()};f.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 c=0;c<this.feedData.entries.length&&c<25;c++){var d=this.feedData.entries[c];a+='<li><a href="#" onclick="return WbxMobileSite.utils.navTo(\''+("p-"+this.index+"-"+c)+"')\">";var e=this.getBestImage(d);if(e&&b){e=WbxMobileSite.utils.getProxyImageSrc(e,60,60,true);a+='<div class="row-img" style="background-image:url('+e+')"></div>'}a+='<div class="row-label">'+d.title+"</div>";d=d.shortDescription?WbxMobileSite.utils.stripTags(d.shortDescription):
"";a+='<div class="row-sublabel">'+d+"</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)};f.prototype.renderArticleDetail=function(){if(!this.hasLoaded(this.loadingContext.pageKey)){var b=parseInt(this.loadingContext.pageKey.split("-")[2]),a=this.feedData.entries[b],c="WbxMobileSite.utils.openExternalLink('"+
a.link+"', "+(this.pageConfig.useMobilizer=="true")+")",d="";if(a.date)d+='<p class="postdate">'+a.date+"</p>";var e=!("linkout"in this.pageConfig)||this.pageConfig.linkout=="true";d+=e?'<h1><a href="javascript:void(0)" onclick="'+c+'">'+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)d+='<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>';d+="<p>"+a.description+"</p>";if(e)d+='<div style="clear:both; min-height:300px;" class="button-row"><a class="lg-button black" href="javascript:void(0)" onclick="'+c+'">Read Full Article</a></div>';$(this.loadingContext.parentEl).addClass("content-view");this.loadingContext.parentEl.innerHTML=d}WbxMobileSite.utils.enableScrolling(this.loadingContext.pageKey);WbxMobileSite.utils.toggleLoading(false)};
f.prototype.getBestImage=function(b){return b.articleImage!=null&&b.articleImage!=""?b.articleImage:b.image};f.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 c=-1*parseInt(this.width/
2),d=-1*parseInt(this.height/2);this.style.marginLeft=c+"px";this.style.marginTop=d+"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",f)})();
(function(){function f(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}}f.prototype.render=function(){};f.prototype.load=function(b,a){var c=a.split("-"),d=c.length>2?c[2]:null;this.loadingContext.parentEl=b;this.loadingContext.pageKey=a;if(d){$(b).html("");WbxMobileSite.utils.toggleLoading(true);
$(b).append($(f.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">'+f.formatTwitString(this.tweets[d].text,true)+"</div>";a+='<div class="row-sublabel">'+f.relativeTime(this.tweets[d].created_at)+"</div>";a+="</div></li></ul></div>";$(b).append(a);a="http://twitter.com/"+this.user.screen_name+"/statuses/"+this.tweets[d].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[d].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);d=new WbxMobileSite.fetcher.FeedFetcher(this.apiUrl+"?count="+this.config.updateCount,WbxMobileSite.proxyUrl+"/fetch/","2fb04bd53a9c08d61344d07df62e2cdc33b7554e0000012667b887ef");
d.minify=false;d.processResponse=false;d.raw=true;d.fetch(function(e){currentPage=WbxMobileSite.site.getPageByPageKey(WbxMobileSite.site.currentPage);currentPage.tweets=e;currentPage.user=e[0].user;$(b).html($(f.formatUser(currentPage.user,currentPage.loadingContext.pageKey)));$(b).append($('<div class="table-view grouped entries" id="tweetlist-'+c[1]+'"></div>'));e='<ul class="section">';for(ix=0;ix<currentPage.tweets.length;ix++){var g="p-"+c[1]+"-"+ix;e+="<li>";e+='<a href="javascript:void(0)" ontouchstart="WbxMobileSite.site.selectNavigation(this, \''+
g+"');\" onclick=\"return WbxMobileSite.utils.navTo('"+g+"')\">";e+='<div class="row-label">'+f.formatTwitString(currentPage.tweets[ix].text,false)+"</div>";e+='<div class="row-sublabel">'+f.relativeTime(currentPage.tweets[ix].created_at)+"</div>";e+='<div class="row-arrow"></div>';e+="</a></li>"}e+="</ul>";$("#tweetlist-"+c[1]).append(e);WbxMobileSite.utils.toggleLoading(false);currentPage.isInitialized=true;WbxMobileSite.utils.enableScrolling(currentPage.loadingContext.pageKey)})}};f.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>"};f.relativeTime=function(b){var a=new Date(b);
if(a!=null){try{var c=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(d){c=a.toLocaleTimeString()+" "+a.toLocaleDateString()}return c}return b};f.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",f)})();
(function(){function f(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=[]}f.prototype.render=function(){};f.prototype.load=function(b,a){var c=a.split("-"),d=c.length>2?c[2]:null;c=c.length>3&&c[3]=="img";this.loadingContext.parentEl=b;this.loadingContext.pageKey=a;var e=this;if(c){WbxMobileSite.utils.toggleLoading(true,true);if(this.feedData==null){this.loadingContext.callback=
function(){e.renderArticleImage()};this.fetchFeed()}else this.renderArticleImage()}else if(d){WbxMobileSite.utils.toggleLoading(true);if(this.feedData==null){this.loadingContext.callback=function(){e.renderArticleDetail()};this.fetchFeed()}else this.renderArticleDetail()}else if(this.feedData==null){WbxMobileSite.utils.toggleLoading(true);this.loadingContext.callback=function(){e.renderArticleList()};this.fetchFeed()}else this.renderArticleList()};f.prototype.hasLoaded=function(b){for(var a=0;a<this.loadedPages.length;a++)if(this.loadedPages[a]==
b)return true;return false};f.prototype.fetchFeed=function(){var b=this;(new WbxMobileSite.fetcher.FeedFetcher(this.pageConfig.feedUrl)).fetch(function(a){b.handleFeedCallback(a)})};f.prototype.handleFeedCallback=function(b){this.feedData=b;this.loadingContext.callback()};f.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 c=0;c<this.feedData.entries.length&&c<25;c++){var d=this.feedData.entries[c];a+='<li><a href="#" onclick="return WbxMobileSite.utils.navTo(\''+("p-"+this.index+"-"+c)+"')\">";var e=this.getBestImage(d);if(e&&b){e=WbxMobileSite.utils.getProxyImageSrc(e,60,60,true);a+='<div class="row-img" style="background-image:url('+e+')"></div>'}a+='<div class="row-label">'+d.title+"</div>";d=d.shortDescription?WbxMobileSite.utils.stripTags(d.shortDescription):
"";a+='<div class="row-sublabel">'+d+"</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)};f.prototype.renderArticleDetail=function(){if(!this.hasLoaded(this.loadingContext.pageKey)){var b=parseInt(this.loadingContext.pageKey.split("-")[2]),a=this.feedData.entries[b],c="WbxMobileSite.utils.openExternalLink('"+
a.link+"', "+(this.pageConfig.useMobilizer=="true")+")",d="";if(a.date)d+='<p class="postdate">'+a.date+"</p>";var e=!("linkout"in this.pageConfig)||this.pageConfig.linkout=="true";d+=e?'<h1><a href="javascript:void(0)" onclick="'+c+'">'+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)d+='<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>';d+="<p>"+a.description+"</p>";if(e)d+='<div style="clear:both; min-height:300px;" class="button-row"><a class="lg-button black" href="javascript:void(0)" onclick="'+c+'">Read Full Article</a></div>';$(this.loadingContext.parentEl).addClass("content-view");this.loadingContext.parentEl.innerHTML=d}WbxMobileSite.utils.enableScrolling(this.loadingContext.pageKey);WbxMobileSite.utils.toggleLoading(false)};
f.prototype.getBestImage=function(b){return b.articleImage!=null&&b.articleImage!=""?b.articleImage:b.image};f.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 c=-1*parseInt(this.width/
2),d=-1*parseInt(this.height/2);this.style.marginLeft=c+"px";this.style.marginTop=d+"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",f)})();
(function(){function f(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=[]}f.prototype.render=function(){};f.prototype.load=function(b,a){var c=a.split("-"),d=c.length>2?c[2]:null;c=c.length>3&&c[3]=="img";this.loadingContext.parentEl=b;this.loadingContext.pageKey=a;var e=this;if(c){WbxMobileSite.utils.toggleLoading(true,true);if(this.feedData==null){this.loadingContext.callback=
function(){e.renderArticleImage()};this.fetchFeed()}else this.renderArticleImage()}else if(d){WbxMobileSite.utils.toggleLoading(true);if(this.feedData==null){this.loadingContext.callback=function(){e.renderArticleDetail()};this.fetchFeed()}else this.renderArticleDetail()}else if(this.feedData==null){WbxMobileSite.utils.toggleLoading(true);this.loadingContext.callback=function(){e.renderArticleList()};this.fetchFeed()}else this.renderArticleList()};f.prototype.hasLoaded=function(b){for(var a=0;a<this.loadedPages.length;a++)if(this.loadedPages[a]==
b)return true;return false};f.prototype.fetchFeed=function(){var b=this;(new WbxMobileSite.fetcher.FeedFetcher(this.pageConfig.feedUrl)).fetch(function(a){b.handleFeedCallback(a)})};f.prototype.handleFeedCallback=function(b){this.feedData=b;this.loadingContext.callback()};f.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 c=0;c<this.feedData.entries.length&&c<25;c++){var d=this.feedData.entries[c];a+='<li><a href="#" onclick="return WbxMobileSite.utils.navTo(\''+("p-"+this.index+"-"+c)+"')\">";var e=this.getBestImage(d);if(e&&b){e=WbxMobileSite.utils.getProxyImageSrc(e,60,60,true);a+='<div class="row-img" style="background-image:url('+e+')"></div>'}a+='<div class="row-label">'+d.title+"</div>";d=d.shortDescription?WbxMobileSite.utils.stripTags(d.shortDescription):
"";a+='<div class="row-sublabel">'+d+"</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)};f.prototype.renderArticleDetail=function(){if(!this.hasLoaded(this.loadingContext.pageKey)){var b=parseInt(this.loadingContext.pageKey.split("-")[2]),a=this.feedData.entries[b],c="WbxMobileSite.utils.openExternalLink('"+
a.link+"', "+(this.pageConfig.useMobilizer=="true")+")",d="";if(a.date)d+='<p class="postdate">'+a.date+"</p>";var e=!("linkout"in this.pageConfig)||this.pageConfig.linkout=="true";d+=e?'<h1><a href="javascript:void(0)" onclick="'+c+'">'+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)d+='<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>';d+="<p>"+a.description+"</p>";if(e)d+='<div style="clear:both; min-height:300px;" class="button-row"><a class="lg-button black" href="javascript:void(0)" onclick="'+c+'">Read Full Article</a></div>';$(this.loadingContext.parentEl).addClass("content-view");this.loadingContext.parentEl.innerHTML=d}WbxMobileSite.utils.enableScrolling(this.loadingContext.pageKey);WbxMobileSite.utils.toggleLoading(false)};
f.prototype.getBestImage=function(b){return b.articleImage!=null&&b.articleImage!=""?b.articleImage:b.image};f.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 c=-1*parseInt(this.width/
2),d=-1*parseInt(this.height/2);this.style.marginLeft=c+"px";this.style.marginTop=d+"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",f)})();
(function(){function f(b,a){this.index=b;this.config=a;this.feedData=this.articleParentEl=null;this.loadingContext={parentEl:null,pageKey:null};this.loadedPages=[]}f.prototype.render=function(){};f.prototype.load=function(b,a){var c=a.split("-");c=c.length>2?c[2]:null;this.loadingContext.parentEl=b;this.loadingContext.pageKey=a;var d=this;if(c)if(this.feedData==null){WbxMobileSite.utils.toggleLoading(true);this.loadingContext.callback=function(){d.renderDetail()};this.fetchFeed()}else this.renderDetail();
else if(this.feedData==null){WbxMobileSite.utils.toggleLoading(true);this.loadingContext.callback=function(){d.renderList()};this.fetchFeed()}else this.renderList()};f.prototype.hasLoaded=function(b){for(var a=0;a<this.loadedPages.length;a++)if(this.loadedPages[a]==b)return true;return false};f.prototype.fetchFeed=function(){var b=JSON.parse(this.config.pageConfig),a=this;(new WbxMobileSite.fetcher.FeedFetcher(b.feedUrl)).fetch(function(c){a.handleFeedCallback(c)})};f.prototype.handleFeedCallback=
function(b){this.feedData=b;this.loadingContext.callback()};f.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 c=WbxMobileSite.utils.getProxyImageSrc(a.image,120,90),d=document.createElement("a");d.className="listItem";d.href="#";this.setImageLinkClickHandler(d,"p-"+this.index+"-"+b);d.style.backgroundImage=
"url("+c+")";c=document.createElement("div");c.className="listDetail";var e="<h2>"+a.title+"</h2>";a=this.getDetailsFromEntry(a);if(a!=null&&a!="")e+='<p class="desc">'+a+"</p>";c.innerHTML=e;d.appendChild(c);this.loadingContext.parentEl.appendChild(d);d=document.createElement("div");d.style.clear="both";this.loadingContext.parentEl.appendChild(d)}}this.loadedPages.push(this.loadingContext.pageKey);WbxMobileSite.utils.enableScrolling(this.loadingContext.pageKey)}WbxMobileSite.utils.toggleLoading(false)};
f.prototype.getDetailsFromEntry=function(b){var a=b.description?WbxMobileSite.utils.stripTags(b.description):"",c=a!=null?a.indexOf("From:"):-1;b=a;var d=null;if(c>0){b=a.substring(0,c);d=a.substr(c)}if(d!=null&&d!=""){var e=d.indexOf("Views:");c=d.indexOf("Time:");var g=d.indexOf("More",c+6),h=d.indexOf(" ",e+7);a=d.substring(5,e).replace(/ /g,"");e=d.substring(e+7,h).replace(/ /g,"");h=d.substring(h,c).replace(/ /g,"").replace("ratings","");d=d.substring(c+6,g);if(a!=null&&e!=null&&h!=null&&d!=
null&&a!=""&&e!=""&&h!=""&&d!=""){b=h+" ratings&nbsp;&nbsp;"+e+" views<br />";b+="<strong>"+d+"</strong>&nbsp;&nbsp;"+a}}return b};f.prototype.setImageLinkClickHandler=function(b,a){b.onclick=function(){return WbxMobileSite.utils.navTo(a)}};f.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 c=document.createElement("div");c.className=
"listItem";var d=document.createElement("div");d.className="listDetail";var e="<h2>"+b.title+"</h2>",g=this.getDetailsFromEntry(b);if(g!=null&&g!="")e+='<p class="desc">'+g+"</p>";d.innerHTML=e;e=document.createElement("div");g=WbxMobileSite.utils.getProxyImageSrc(b.image,120,90);e.style.backgroundImage="url("+g+")";e.className="video-embed";if(WbxMobileSite.isAndroid){b=WbxMobileSite.utils.getExternalLink(b.link);e.innerHTML='<a href="'+b+'" style="display:block; width:120px; height:90px" target="_blank"></a>'}else e.innerHTML=
'<embed src="'+b.link+'" type="application/x-shockwave-flash" wmode="transparent" width="120" height="90"></embed>';c.appendChild(e);c.appendChild(d);a.appendChild(c);c=document.createElement("div");c.style.clear="both";a.appendChild(c);$("#"+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",
f)})();
(function(){function f(b,a){this.index=b;this.config=a;this.feedData=this.articleParentEl=this.pageConfig=null;this.loadedEntries=[];this.isFlickr=false;this.loadingContext={parentEl:null,pageKey:null};this.loadedPages=[]}f.prototype.render=function(b,a){a=a.split("-");(a.length>2?a[2]:null)&&$("#"+b.id).addClass("fullImageContent")};f.prototype.load=function(b,a){var c=a.split("-");c=c.length>2?c[2]:null;this.loadingContext.parentEl=b;this.loadingContext.pageKey=a;var d=this;WbxMobileSite.utils.toggleLoading(true);if(c){$("#"+
this.loadingContext.parentEl.id).addClass("fullImageContent");if(this.feedData==null){this.loadingContext.callback=function(){d.renderPhotosDetail()};this.fetchFeed()}else this.renderPhotosDetail()}else if(this.feedData==null){WbxMobileSite.utils.toggleLoading(true);this.loadingContext.callback=function(){d.renderPhotosList()};this.fetchFeed()}else this.renderPhotosList()};f.prototype.hasLoaded=function(b){for(var a=0;a<this.loadedPages;a++)if(this.loadedPages[a]==b)return true;return false};f.prototype.fetchFeed=
function(){this.pageConfig=JSON.parse(this.config.pageConfig);this.isFlickr=/api.flickr.com/.test(this.pageConfig.feedUrl);var b=new WbxMobileSite.fetcher.FeedFetcher(this.pageConfig.feedUrl);if(this.isFlickr)b.minify=false;var a=this;b.fetch(function(c){a.handleFeedCallback(c)})};f.prototype.handleFeedCallback=function(b){this.feedData=b;this.loadingContext.callback()};f.prototype.renderPhotosList=function(){if(!this.hasLoaded(this.loadingContext.pageKey)){this.loadingContext.parentEl.innerHTML=
"";var b=0;this.loadedEntries=[];for(var a=0;a<this.feedData.entries.length&&b<50;a++){var c=this.feedData.entries[a],d=this.getBestImage(c);if(d!=null&&d!=""){var e=document.createElement("a");e.className="thumbnail";e.href="#";this.setImageLinkClickHandler(e,"p-"+this.index+"-"+b);d=WbxMobileSite.utils.getProxyImageSrc(d,75,75,true);e.style.backgroundImage="url("+d+")";this.loadingContext.parentEl.appendChild(e);this.loadedEntries.push(c);b++}}b=document.createElement("div");b.style.clear="both";
this.loadingContext.parentEl.appendChild(b);this.loadedPages.push(this.loadingContext.pageKey)}WbxMobileSite.utils.toggleLoading(false);WbxMobileSite.utils.enableScrolling(this.loadingContext.pageKey)};f.prototype.getBestImage=function(b){var a=b.articleImage!=null&&b.articleImage!=""?b.articleImage:b.image;if(this.isFlickr){b=b.rawDescription.match(/http:\/\/farm[0-9].static.flickr.com\/[0-9]+\/[0-9]+_[a-zA-Z0-9]+_m.jpg/);if(b!=null&&b.length>0)a=b[0].replace(/_m.jpg\b/,".jpg")}return a};f.prototype.setImageLinkClickHandler=
function(b,a){b.onclick=function(){return WbxMobileSite.utils.navTo(a)}};f.prototype.attachPhotoOnloadFn=function(b,a){b.onload=function(){var c=-1*parseInt(this.width/2),d=-1*parseInt(this.height/2);this.style.marginLeft=c+"px";this.style.marginTop=d+"px";b.style.visibility="visible";a&&WbxMobileSite.utils.toggleLoading(false)}};f.prototype.renderPhotosFilmstrip=function(){if(!this.hasLoaded("filmstrip")){WbxMobileSite.utils.toggleLoading(true,true);parseInt(this.loadingContext.pageKey.split("-")[2]);
for(var b=document.getElementById("site-container").offsetWidth,a=this.loadingContext.parentEl.offsetHeight,c=b*this.loadedEntries.length,d=0;d<this.loadedEntries.length;d++){var e=document.createElement("div");e.className="cell";e.style.width=b+"px";e.style.height=a+"px";var g=this.loadedEntries[d];g=g.image?WbxMobileSite.utils.getProxyImageSrc(g.image,320,320):null;var h=document.createElement("img");h.src=g;h.className="cellImage";h.style.visibility="hidden";this.attachPhotoOnloadFn(h,d==0);e.appendChild(h);
this.loadingContext.parentEl.appendChild(e)}$("#"+this.loadingContext.parentEl.id).addClass("fullImageContent");this.loadingContext.parentEl.style.width=c+"px";WbxMobileSite.utils.enableXYScrolling(this.loadingContext.pageKey);WbxMobileSite.utils.toggleLoading(false);this.loadedPages.push("filmstrip")}};f.prototype.renderPhotosDetail=function(){if(this.hasLoaded(this.loadingContext.pageKey))WbxMobileSite.utils.toggleLoading(false);else{var b=parseInt(this.loadingContext.pageKey.split("-")[2]);this.loadImage(b);
var a=this;WbxMobileSite.pagination.init(this.loadedEntries.length,function(c){a.loadImage(c)},b)}};f.prototype.loadImage=function(b){WbxMobileSite.utils.toggleLoading(true,true);this.loadingContext.parentEl.innerHTML="";b=this.loadedEntries[b];var a=this.getBestImage(b);a=a?WbxMobileSite.utils.getProxyImageSrc(a,320,320):null;var c=document.createElement("img");c.src=a;c.className="fullImage";c.style.visibility="hidden";c.onload=function(){var d=-1*parseInt(this.width/2),e=-1*parseInt(this.height/
2);this.style.marginLeft=d+"px";this.style.marginTop=e+"px";c.style.visibility="visible";WbxMobileSite.utils.toggleLoading(false)};$("#"+this.loadingContext.parentEl.id).addClass("fullImageContent");if(this.pageConfig.linkToArticle=="true"){b=WbxMobileSite.utils.getExternalLink(b.link);a=document.createElement("a");a.href=b;a.target="_blank";a.appendChild(c);this.loadingContext.parentEl.appendChild(a)}else this.loadingContext.parentEl.appendChild(c)};WbxMobileSite.pageFactory.contains("mphotos")||
WbxMobileSite.pageFactory.register("mphotos",f)})();
(function(){function f(b,a){this.index=b;this.config=a;this.feedData=this.articleParentEl=null;this.loadingContext={parentEl:null,pageKey:null};this.isLoaded=false;this.carriers=[{label:"AT&T",code:"att"},{label:"T-Mobile",code:"tmobile"},{label:"Sprint",code:"sprint"},{label:"Verizon",code:"verizon"}];this.mobileMessageServletURL="http://www.widgetbox.com/mobilemessage";this.isSMSLoaded=this.isEmailLoaded=false;this.notYetSavedMessage="Please save your Mobile Site before sharing."}f.prototype.render=
function(b,a){this.loadingContext.parentEl=b;this.loadingContext.pageKey=a};f.prototype.load=function(b,a){this.loadingContext.parentEl=b;this.loadingContext.pageKey=a;WbxMobileSite.utils.toggleLoading(true);var c=a.split("-");if(c=c.length>2?c[2]:null){WbxMobileSite.utils.toggleLoading(true);var d=$('<div class="content-view grouped"></div>');if(c=="email"){if(this.isEmailLoaded){WbxMobileSite.utils.toggleLoading(false);return}d.append('<h1 style="background: url('+WbxMobileSite.syndUrl+'syndication/mobile/images/share-email.png) no-repeat 5px 50%;  padding: 8px 0 16px 45px;">Share via Email</h1>');
d.append('<form id="'+a+'-form" style="padding-left: 45px" onKeyPress="return WbxMobileSite.site.getPageByPageKey(\''+this.loadingContext.pageKey+"').returnEmail(event);\" onsubmit=\"return WbxMobileSite.site.getPageByPageKey('"+this.loadingContext.pageKey+'\').sendEmail();"><label for="'+a+'-emailAddress">Email Address</label><br/><input type="email" id="'+a+'-emailAddress" name="toAddress"/></form>');this.isEmailLoaded=true}else{if(this.isSMSLoaded){WbxMobileSite.utils.toggleLoading(false);return}d.append('<h1 style="background: url('+
WbxMobileSite.syndUrl+'syndication/mobile/images/share-sms.png) no-repeat 5px 50%; padding: 8px 0 16px 45px;">Share via SMS</h1>');var e='<form id="'+a+'-form" style="padding-left: 45px"  onKeyPress="return WbxMobileSite.site.getPageByPageKey(\''+this.loadingContext.pageKey+"').returnSMS(event);\" onsubmit=\"return WbxMobileSite.site.getPageByPageKey('"+this.loadingContext.pageKey+'\').sendSMS();"><label for="'+a+'-phoneNumber">Phone Number</label><br/>';e+='<input type="tel" id="'+a+'-phoneNumber" name="toNumber"/><br/>';
e+='<label for="'+a+'-phoneNumber">Mobile Carrier</label><br/>';e+='<select id="'+a+'-carrier">';for(var g=0;g<this.carriers.length;g++)e+='<option value="'+this.carriers[g].code+'">'+this.carriers[g].label+"</option>";e+="</select></form>";d.append(e);this.isSMSLoaded=true}$(b).append(d);c=c=="email"?"Email":"SMS";$(b).append('<div class="button-row" style="min-height: 600px;" id="'+a+'-form-button"><div class="button-cell"><a class="lg-button" target="_blank" href="javascript:void(0)" onclick="return WbxMobileSite.site.getPageByPageKey(\''+
this.loadingContext.pageKey+"').send"+c+'();">Send '+c+"</a></div></div>")}else{if(!this.isLoaded){c=JSON.parse(this.config.pageConfig);$(b).addClass("table-view");$(b).addClass("grouped");var h=escape("Check out "+WbxMobileSite.siteName+" "+WbxMobileSite.galleryShortUrl+" on #widgetbox");d="javascript:alert('"+this.notYetSavedMessage+"')";e="javascript:alert('"+this.notYetSavedMessage+"')";g="";if(WbxMobileSite.instFriendlyId!=null&&WbxMobileSite.instFriendlyId!=""){d="http://m.facebook.com/sharer.php?u="+
escape(WbxMobileSite.galleryUrl+"widget/msite/"+WbxMobileSite.instFriendlyId)+"&amp;t="+h;e="http://twitter.com/?status="+h;g="WbxMobileSite.site.track('"+this.loadingContext.pageKey+"','click')"}h='<ul class="section">';if(c.shareOptions.twitter)h+='<li class="twitter" style="background: url('+WbxMobileSite.syndUrl+'syndication/mobile/images/share-twitter.png) no-repeat 5px 50%;"><a href="'+e+'" target="_blank" onclick="'+g+'"><div class="row-label" style="padding-left: 45px;">Twitter</div><div class="row-arrow"></div></a></li>';
if(c.shareOptions.facebook)h+='<li class="facebook" style="background: url('+WbxMobileSite.syndUrl+'syndication/mobile/images/share-facebook.png) no-repeat 5px 50%;"><a href="'+d+'" target="_blank" onclick="'+g+'"><div class="row-label" style="padding-left: 45px;">Facebook</div><div class="row-arrow"></div></a></li>';if(c.shareOptions.email)h+='<li class="email" style="background: url('+WbxMobileSite.syndUrl+'syndication/mobile/images/share-email.png) no-repeat 5px 50%;"><a href="javascript:void(0);" onclick="return WbxMobileSite.utils.navTo(\''+
a+'-email\')"><div class="row-label" style="padding-left: 45px;">Email</div><div class="row-arrow"></div></a></li>';if(c.shareOptions.sms)h+='<li class="sms" style="background: url('+WbxMobileSite.syndUrl+'syndication/mobile/images/share-sms.png) no-repeat 5px 50%;"><a href="javascript:void(0);" onclick="return WbxMobileSite.utils.navTo(\''+a+'-sms\')"><div class="row-label" style="padding-left: 45px;">SMS</div><div class="row-arrow"></div></a></li>';h+="</ul>";$(b).append(h);this.isLoaded=true}WbxMobileSite.utils.enableScrolling(this.loadingContext.pageKey)}WbxMobileSite.utils.toggleLoading(false)};
f.prototype.sendSMS=function(){if(WbxMobileSite.instFriendlyId==null||WbxMobileSite.instFriendlyId==""){alert(this.notYetSavedMessage);return false}WbxMobileSite.utils.toggleLoading(true);var b=this.loadingContext.pageKey;scrollTo(0,0);var a=$("#"+this.loadingContext.pageKey+"-phoneNumber").val();a=a.replace(/[^\d]/g,"");if(a.length!=10){WbxMobileSite.utils.toggleLoading(false);alert("Please enter a valid 10-digit phone number.");$("#"+b+"-phoneNumber").focus();return false}$("#"+b+"-form-button").hide();
var c=$("#"+this.loadingContext.pageKey+"-carrier").val();$.getJSON(this.mobileMessageServletURL,"toNumber="+a+"&carrier="+c+"&token="+window.WbxMobileSite.token+"&siteUrl="+encodeURIComponent(WbxMobileSite.syndShortSiteUrl)+"&callback=?",function(d){WbxMobileSite.utils.toggleLoading(false);d.status=="success"?$("#"+b+"-form").html("<p>Your message has been sent.</p>"):$("#"+b+"-form").html("<p>Error sending your message.</p>")})};f.prototype.sendEmail=function(){if(WbxMobileSite.instFriendlyId==
null||WbxMobileSite.instFriendlyId==""){alert(this.notYetSavedMessage);return false}WbxMobileSite.utils.toggleLoading(true);var b=this.loadingContext.pageKey;scrollTo(0,0);var a=$("#"+this.loadingContext.pageKey+"-emailAddress").val();if(!/^([a-zA-Z0-9_\+.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/.test(a)){WbxMobileSite.utils.toggleLoading(false);alert("Please enter a valid email address.");$("#"+this.loadingContext.pageKey+"-emailAddress").focus();return false}$("#"+b+"-form-button").hide();$.getJSON(this.mobileMessageServletURL,
"toEmail="+encodeURIComponent(a)+"&token="+window.WbxMobileSite.token+"&siteUrl="+encodeURIComponent(WbxMobileSite.syndShortSiteUrl)+"&callback=?",function(c){WbxMobileSite.utils.toggleLoading(false);c.status=="success"?$("#"+b+"-form").html("<p>Your message has been sent.</p>"):$("#"+b+"-form").html("<p>Error sending your message.</p>")})};f.prototype.returnEmail=function(b){if(b.keyCode==13||b.keyCode==10){this.sendEmail();return false}return true};f.prototype.returnSMS=function(b){if(b.keyCode==
13||b.keyCode==10){this.sendSMS();return false}return true};WbxMobileSite.pageFactory.contains("mshare")||WbxMobileSite.pageFactory.register("mshare",f)})();
$(document).ready(function(){var f={icon:"",startupImg:"",headerImg:"",navStyle:"topNav",aboutImg:"",aboutText:"",titleStyle:"siteTitleImage","titleImg:":"",themeColor:"",admobAcct:"",noAds:"false",pageConfigs:[],theme:"05",titleImg:"http://img.widgetbox.com/widget/asset/b44118e0-a660-4c9b-9bf0-1f0ef3e27a9f/t_1267817818963.png"};f.title="ROCK-TIL-YOU-DROP";f.mode="site";f.pageConfigs.push({isStandalone:"true","lib.mobileCssSrc":"/mobile/css/theme/01/theme.css","wbx.buttonMode":"2",pageConfig:'{"feedUrl":"http://www.facebook.com/feeds/page.php?format=atom10&id=98922923412","pageUrl":"http://www.facebook.com/pages/ROCK-TIL-YOU-DROPCOM/98922923412","headerImg":"","includeListImg":"true"}',
"lib.mobileScriptSrc":"/mobile/mobile.js","lib.scriptSrc":"/scripts/jquery-1.4.1.min.js","lib.cssSrc":"/mobile/css/base.css"});f.pageConfigs.push({isStandalone:"true","lib.mobileCssSrc":"/mobile/css/theme/01/theme.css","wbx.buttonMode":"2",pageConfig:'{"feedUrl":"http://www.rock-til-you-drop-musicians.com/activity/log/list?fmt=rss","headerImg":"","includeListImg":"true"}',"lib.mobileScriptSrc":"/mobile/mobile.js","lib.scriptSrc":"/scripts/jquery-1.4.1.min.js","lib.cssSrc":"/mobile/css/base.css"});
f.pageConfigs.push({isStandalone:"true","lib.mobileCssSrc":"/mobile/css/theme/01/theme.css","wbx.buttonMode":"2",pageConfig:'{"feedUrl":"http://www.rock-til-you-drop-bfi.com/activity/log/list?fmt=rss","headerImg":"","includeListImg":"true"}',"lib.mobileScriptSrc":"/mobile/mobile.js","lib.scriptSrc":"/scripts/jquery-1.4.1.min.js","lib.cssSrc":"/mobile/css/base.css"});f.pageConfigs.push({username:"rocktilyoudrop",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"});f.pageConfigs.push({isStandalone:"true","lib.mobileCssSrc":"/mobile/css/theme/01/theme.css","wbx.buttonMode":"2",pageConfig:'{"feedUrl":"http://www.r-t-y-d.com/feeds/posts/default","headerImg":"","includeListImg":"true"}',"lib.mobileScriptSrc":"/mobile/mobile.js","lib.scriptSrc":"/scripts/jquery-1.4.1.min.js","lib.cssSrc":"/mobile/css/base.css"});
f.pageConfigs.push({isStandalone:"true","lib.mobileCssSrc":"/mobile/css/theme/01/theme.css","wbx.buttonMode":"2",pageConfig:'{"feedUrl":"http://www.rock-til-you-drop-blog.com/feeds/posts/default","headerImg":"","includeListImg":"true"}',"lib.mobileScriptSrc":"/mobile/mobile.js","lib.scriptSrc":"/scripts/jquery-1.4.1.min.js","lib.cssSrc":"/mobile/css/base.css"});f.pageConfigs.push({isStandalone:"true","lib.mobileCssSrc":"/mobile/css/theme/01/theme.css","wbx.buttonMode":"2",pageConfig:'{"username":"rocktilyoudropvideos","type":"uploads","feedUrl":"http://gdata.youtube.com/feeds/base/users/rocktilyoudropvideos/uploads?alt=rss&v=2&orderby=published&client=ytapi-youtube-profile"}',
"lib.mobileScriptSrc":"/mobile/mobile.js","lib.scriptSrc":"/scripts/jquery-1.4.1.min.js","lib.cssSrc":"/mobile/css/base.css"});f.pageConfigs.push({isStandalone:"true","lib.mobileCssSrc":"/mobile/css/theme/01/theme.css","wbx.buttonMode":"2",pageConfig:'{"feedUrl":"http://api.flickr.com/services/feeds/photos_public.gne?id=45906157@N07&amp;lang=en-us&amp;format=atom","headerImg":"","linkToArticle":"true"}',"lib.mobileScriptSrc":"/mobile/mobile.js","lib.scriptSrc":"/scripts/jquery-1.4.1.min.js","lib.cssSrc":"/mobile/css/base.css"});
f.pageConfigs.push({isStandalone:"true","lib.mobileCssSrc":"/mobile/css/theme/01/theme.css","wbx.buttonMode":"2",pageConfig:'{"shareOptions":{"twitter":true,"facebook":true,"email":true,"sms":true}}',"lib.mobileScriptSrc":"/mobile/mobile.js","lib.scriptSrc":"/scripts/jquery-1.4.1.min.js","lib.cssSrc":"/mobile/css/base.css"});WbxMobileSite.site.pageList=[{guid:"0f34b5ea-ac12-461c-bbb1-226a90f6d01e",title:"Facebook",type:"mfacebook",elId:"mobile-site-page-6"},{guid:"d65b54d9-1424-4581-b306-dcbe03a7665f",
title:"Musicians",type:"mfeed",elId:"mobile-site-page-2"},{guid:"51d27140-064f-471b-b232-5e565286c2a7",title:"B,F & I",type:"mfeed",elId:"mobile-site-page-3"},{guid:"b1504403-8aae-46af-ad10-86fe77aaad3f",title:"Twitter",type:"mtwitter",elId:"mobile-site-page-0"},{guid:"addf502a-863c-4b96-8fc9-085cd5fa6274",title:"Webzine",type:"mfeed",elId:"mobile-site-page-1"},{guid:"0ce93514-e2e3-4d4c-aae0-de6d5040b3f2",title:"Blog",type:"mfeed",elId:"mobile-site-page-4"},{guid:"175a4b4e-02d7-45b8-ab04-1bc53bf73e01",
title:"YouTube",type:"myoutube",elId:"mobile-site-page-8"},{guid:"74069553-3030-4b6f-afa0-f2ddc11f121e",title:"Photos",type:"mphotos",elId:"mobile-site-page-5"},{guid:"4b650629-6288-4c89-b753-519121f30e32",title:"Share",type:"mshare",elId:"mobile-site-page-7"}];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="ROCK-TIL-YOU-DROP";WbxMobileSite.galleryShortUrl=WbxMobileSite.shortWidgetUrl+"47eorm";WbxMobileSite.instFriendlyId="rock-til-you-drop";WbxMobileSite.syndShortSiteUrl=WbxMobileSite.mobileSiteRuntimeUrl+WbxMobileSite.instFriendlyId;WbxMobileSite.token=
"3cb6b205b322d04a623e58fb9d39dd7900628e500000012ae8381049";WbxMobileSite.instPk="142041974";WbxMobileSite.instId="791d506c-5798-473b-a283-c03c0986f377";WbxMobileSite.instCreatedByUserPk="65322387";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(f);if(window.self!=window.top)if(!WbxMobileSite.site.isPro()||f.admobAcct!=null&&f.admobAcct!=""){f.admobAcct!=null&&f.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")});