(function(){function c(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=[]}c.prototype.render=function(){};c.prototype.load=function(b,a){var e=a.split("-"),d=e.length>2?e[2]:null;e=e.length>3&&e[3]=="img";this.loadingContext.parentEl=b;this.loadingContext.pageKey=a;var f=this;if(e){WbxMobileSite.utils.toggleLoading(true,true);if(this.feedData==null){this.loadingContext.callback=
function(){f.renderArticleImage()};this.fetchFeed()}else this.renderArticleImage()}else if(d){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()};c.prototype.hasLoaded=function(b){for(var a=0;a<this.loadedPages.length;a++)if(this.loadedPages[a]==
b)return true;return false};c.prototype.fetchFeed=function(){var b=this;(new WbxMobileSite.fetcher.FeedFetcher(this.pageConfig.feedUrl)).fetch(function(a){b.handleFeedCallback(a)})};c.prototype.handleFeedCallback=function(b){this.feedData=b;this.loadingContext.callback()};c.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 e=0;e<this.feedData.entries.length&&e<25;e++){var d=this.feedData.entries[e];a+='<li><a href="#" onclick="return WbxMobileSite.utils.navTo(\''+("p-"+this.index+"-"+e)+"')\">";var f=this.getBestImage(d);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">'+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)};c.prototype.renderArticleDetail=function(){if(!this.hasLoaded(this.loadingContext.pageKey)){var b=parseInt(this.loadingContext.pageKey.split("-")[2]),a=this.feedData.entries[b],e="WbxMobileSite.utils.openExternalLink('"+
a.link+"', "+(this.pageConfig.useMobilizer=="true")+")",d="";if(a.date)d+='<p class="postdate">'+a.date+"</p>";var f=!("linkout"in this.pageConfig)||this.pageConfig.linkout=="true";d+=f?'<h1><a href="javascript:void(0)" onclick="'+e+'">'+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(f)d+='<div style="clear:both; min-height:300px;" class="button-row"><a class="lg-button black" href="javascript:void(0)" onclick="'+e+'">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)};
c.prototype.getBestImage=function(b){return b.articleImage!=null&&b.articleImage!=""?b.articleImage:b.image};c.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 e=-1*parseInt(this.width/
2),d=-1*parseInt(this.height/2);this.style.marginLeft=e+"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",c)})();
(function(){function c(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}}c.prototype.render=function(){};c.prototype.load=function(b,a){var e=a.split("-"),d=e.length>2?e[2]:null;this.loadingContext.parentEl=b;this.loadingContext.pageKey=a;if(d){$(b).html("");WbxMobileSite.utils.toggleLoading(true);
$(b).append($(c.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">'+c.formatTwitString(this.tweets[d].text,true)+"</div>";a+='<div class="row-sublabel">'+c.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(f){currentPage=WbxMobileSite.site.getPageByPageKey(WbxMobileSite.site.currentPage);currentPage.tweets=f;currentPage.user=f[0].user;$(b).html($(c.formatUser(currentPage.user,currentPage.loadingContext.pageKey)));$(b).append($('<div class="table-view grouped entries" id="tweetlist-'+e[1]+'"></div>'));f='<ul class="section">';for(ix=0;ix<currentPage.tweets.length;ix++){var g="p-"+e[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">'+c.formatTwitString(currentPage.tweets[ix].text,false)+"</div>";f+='<div class="row-sublabel">'+c.relativeTime(currentPage.tweets[ix].created_at)+"</div>";f+='<div class="row-arrow"></div>';f+="</a></li>"}f+="</ul>";$("#tweetlist-"+e[1]).append(f);WbxMobileSite.utils.toggleLoading(false);currentPage.isInitialized=true;WbxMobileSite.utils.enableScrolling(currentPage.loadingContext.pageKey)})}};c.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>"};c.relativeTime=function(b){var a=new Date(b);
if(a!=null){try{var e=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){e=a.toLocaleTimeString()+" "+a.toLocaleDateString()}return e}return b};c.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",c)})();
$(document).ready(function(){var c={icon:"http://img.widgetbox.com/widget/asset/e56c1009-01f3-4693-9d1d-65d24ef9d9ab/logo.png",startupImg:"http://img.widgetbox.com/widget/asset/e20019a4-d2c7-4f0e-8f52-bfa60c08a80f/t_1268175013024.png",headerImg:"",navStyle:"bottomNav",aboutImg:"http://img.widgetbox.com/widget/asset/0fb97a19-c2f6-4537-b9aa-9f54e5a93848/t_1268175091405.png",aboutText:"I am a Software Engineer living near San Francisco, CA. I currently work at Widgetbox as a Flash Specialist.",titleStyle:"siteTitleText",
"titleImg:":"",themeColor:"",admobAcct:"",noAds:"true",pageConfigs:[],theme:"04"};c.title="David LeMieux";c.mode="site";c.pageConfigs.push({isStandalone:"true","lib.mobileCssSrc":"/mobile/css/theme/01/theme.css","wbx.buttonMode":"2",pageConfig:'{"feedUrl":"http://www.iherebydecree.com/rss/index.php","headerImg":"","includeListImg":"true"}',"lib.mobileScriptSrc":"/mobile/mobile.js","lib.scriptSrc":"/scripts/jquery-1.4.1.min.js","lib.cssSrc":"/mobile/css/base.css"});c.pageConfigs.push({username:"lemieuxster",
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"});WbxMobileSite.site.pageList=[{guid:"6daac5f3-a49a-48b6-ad07-82a1d5c7ca07",title:"Posts",type:"mfeed",elId:"mobile-site-page-0"},{guid:"ba015e82-ac2e-4a8a-bbd3-f925e92562ee",title:"Twitter",type:"mtwitter",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=
"David LeMieux";WbxMobileSite.galleryShortUrl=WbxMobileSite.shortWidgetUrl+"47lblr";WbxMobileSite.instFriendlyId="lemieux";WbxMobileSite.syndShortSiteUrl=WbxMobileSite.mobileSiteRuntimeUrl+WbxMobileSite.instFriendlyId;WbxMobileSite.token="65f44cbd66483042328e5b99ab6da2b3d4b1a9080000012ae82b8a7f";WbxMobileSite.instPk="142257851";WbxMobileSite.instId="7afd6de6-7ac5-4329-b496-fa1e516a540a";WbxMobileSite.instCreatedByUserPk="53753602";WbxMobileSite.regPk="3755230";WbxMobileSite.providerPk="1860293";WbxMobileSite.partnerNetworkPk=
"14";WbxMobileSite.userServiceLevel=parseInt("2");WbxMobileSite.providerServiceLevel=parseInt("2");WbxMobileSite.registrationServiceLevel=parseInt("0");WbxMobileSite.instanceServiceLevel=parseInt("1");WbxMobileSite.instanceServiceLevel=parseInt("1");WbxMobileSite.site.init(c);if(window.self!=window.top)if(!WbxMobileSite.site.isPro()||c.admobAcct!=null&&c.admobAcct!=""){c.admobAcct!=null&&c.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")});