(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.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.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)})();
$(document).ready(function(){var e={icon:"http://img.widgetbox.com/widget/asset/2de3e560-1fb4-4a5d-b8c0-5c0f6fa18b80/t_1267110695879.png",startupImg:"",headerImg:"",navStyle:"topNav",aboutImg:"",aboutText:"",titleStyle:"siteTitleText","titleImg:":"",themeColor:"#32ADF5",admobAcct:"",noAds:"true",pageConfigs:[],theme:"03",titleImg:"http://img.widgetbox.com/widget/asset/c55752d7-12e2-486f-9482-9c06c9c5ef56/t_1267110630133.png"};e.title="WM Mobile Site";e.mode="site";e.pageConfigs.push({username:"williamsmystic",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:'{"feedUrl":"http://williamsmystic.wordpress.com/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:'{"username":"thewilliamsmystic","type":"uploads","feedUrl":"http://gdata.youtube.com/feeds/base/users/thewilliamsmystic/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"});
WbxMobileSite.site.pageList=[{guid:"ec49a023-92f2-4762-a872-38544b0c8f82",title:"WM on Twitter",type:"mtwitter",elId:"mobile-site-page-0"},{guid:"4f09d974-1a42-421b-8a6a-39917da62b04",title:"WM Blog",type:"mfeed",elId:"mobile-site-page-2"},{guid:"e8849ac5-2071-4d8c-99f2-85c0240ed384",title:"WM on YouTube",type:"myoutube",elId:"mobile-site-page-1"}];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="WM Mobile Site";WbxMobileSite.galleryShortUrl=WbxMobileSite.shortWidgetUrl+"46vrrp";WbxMobileSite.instFriendlyId="wm-mobile-site";WbxMobileSite.syndShortSiteUrl=
WbxMobileSite.mobileSiteRuntimeUrl+WbxMobileSite.instFriendlyId;WbxMobileSite.token="39ef9a8da8cbe375b8bee7eea806104e0911ac370000012ae838e8b4";WbxMobileSite.instPk="141553529";WbxMobileSite.instId="8a6f49d9-a65e-4ba6-8e48-218cc6939249";WbxMobileSite.instCreatedByUserPk="66840354";WbxMobileSite.regPk="3755230";WbxMobileSite.providerPk="1860293";WbxMobileSite.partnerNetworkPk="14";WbxMobileSite.userServiceLevel=parseInt("1");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")});