(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:"",startupImg:"",headerImg:"",navStyle:"topNav",aboutImg:"",aboutText:"",titleStyle:"siteTitleText","titleImg:":"",themeColor:"#111010",admobAcct:"",noAds:"false",pageConfigs:[],theme:"03",titleImg:""};e.title="OklahomaSkies.Net";e.mode="site";e.pageConfigs.push({isStandalone:"true","lib.mobileCssSrc":"/mobile/css/theme/01/theme.css","wbx.buttonMode":"2",pageConfig:'{"feedUrl":"http://oklahomaskiesdotnet.blogspot.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"});e.pageConfigs.push({isStandalone:"true","lib.mobileCssSrc":"/mobile/css/theme/01/theme.css","wbx.buttonMode":"2",pageConfig:'{"username":"oklahomaskiesdotnet","type":"uploads","feedUrl":"http://gdata.youtube.com/feeds/base/users/oklahomaskiesdotnet/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:"658527e2-57d0-44aa-b24c-9f1efba0fb85",title:"Breaking News",type:"mfeed",elId:"mobile-site-page-0"},{guid:"35fc00a3-d07f-4b5c-aeac-008a8fe27aaf",title:"Videos",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="OklahomaSkies.Net";WbxMobileSite.galleryShortUrl=WbxMobileSite.shortWidgetUrl+"47dp1e";WbxMobileSite.instFriendlyId="osnmobile";WbxMobileSite.syndShortSiteUrl=WbxMobileSite.mobileSiteRuntimeUrl+WbxMobileSite.instFriendlyId;WbxMobileSite.token="33c54bf1e2f1702a4b39f09f997ca716899ddd550000012ae836d2c4";
WbxMobileSite.instPk="142009390";WbxMobileSite.instId="ca266245-98a3-4915-8941-010b81791f75";WbxMobileSite.instCreatedByUserPk="60921451";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")});