(function(){function e(a,b){this.index=a;this.config=b;this.feedData=this.articleParentEl=null;this.loadingContext={parentEl:null,pageKey:null};this.isLoaded=false}e.prototype.render=function(a,b){this.loadingContext.parentEl=a;this.loadingContext.pageKey=b};e.prototype.load=function(a,b){this.loadingContext.parentEl=a;this.loadingContext.pageKey=b;WbxMobileSite.utils.toggleLoading(true);if(!this.isLoaded){b=JSON.parse(this.config.pageConfig);a.innerHTML=b.content;this.isLoaded=true}WbxMobileSite.utils.toggleLoading(false);
WbxMobileSite.utils.enableScrolling(this.loadingContext.pageKey)};WbxMobileSite.pageFactory.contains("mcustom")||WbxMobileSite.pageFactory.register("mcustom",e)})();
(function(){function e(a,b){this.index=a;this.config=b;this.feedData=this.articleParentEl=this.pageConfig=null;this.loadedEntries=[];this.isFlickr=false;this.loadingContext={parentEl:null,pageKey:null};this.loadedPages=[]}e.prototype.render=function(a,b){b=b.split("-");(b.length>2?b[2]:null)&&$("#"+a.id).addClass("fullImageContent")};e.prototype.load=function(a,b){var c=b.split("-");c=c.length>2?c[2]:null;this.loadingContext.parentEl=a;this.loadingContext.pageKey=b;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()};e.prototype.hasLoaded=function(a){for(var b=0;b<this.loadedPages;b++)if(this.loadedPages[b]==a)return true;return false};
e.prototype.fetchFeed=function(){this.pageConfig=JSON.parse(this.config.pageConfig);this.isFlickr=/api.flickr.com/.test(this.pageConfig.feedUrl);var a=new WbxMobileSite.fetcher.FeedFetcher(this.pageConfig.feedUrl);if(this.isFlickr)a.minify=false;var b=this;a.fetch(function(c){b.handleFeedCallback(c)})};e.prototype.handleFeedCallback=function(a){this.feedData=a;this.loadingContext.callback()};e.prototype.renderPhotosList=function(){if(!this.hasLoaded(this.loadingContext.pageKey)){this.loadingContext.parentEl.innerHTML=
"";var a=0;this.loadedEntries=[];for(var b=0;b<this.feedData.entries.length&&a<50;b++){var c=this.feedData.entries[b],d=this.getBestImage(c);if(d!=null&&d!=""){var f=document.createElement("a");f.className="thumbnail";f.href="#";this.setImageLinkClickHandler(f,"p-"+this.index+"-"+a);d=WbxMobileSite.utils.getProxyImageSrc(d,75,75,true);f.style.backgroundImage="url("+d+")";this.loadingContext.parentEl.appendChild(f);this.loadedEntries.push(c);a++}}a=document.createElement("div");a.style.clear="both";
this.loadingContext.parentEl.appendChild(a);this.loadedPages.push(this.loadingContext.pageKey)}WbxMobileSite.utils.toggleLoading(false);WbxMobileSite.utils.enableScrolling(this.loadingContext.pageKey)};e.prototype.getBestImage=function(a){var b=a.articleImage!=null&&a.articleImage!=""?a.articleImage:a.image;if(this.isFlickr){a=a.rawDescription.match(/http:\/\/farm[0-9].static.flickr.com\/[0-9]+\/[0-9]+_[a-zA-Z0-9]+_m.jpg/);if(a!=null&&a.length>0)b=a[0].replace(/_m.jpg\b/,".jpg")}return b};e.prototype.setImageLinkClickHandler=
function(a,b){a.onclick=function(){return WbxMobileSite.utils.navTo(b)}};e.prototype.attachPhotoOnloadFn=function(a,b){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";b&&WbxMobileSite.utils.toggleLoading(false)}};e.prototype.renderPhotosFilmstrip=function(){if(!this.hasLoaded("filmstrip")){WbxMobileSite.utils.toggleLoading(true,true);parseInt(this.loadingContext.pageKey.split("-")[2]);
for(var a=document.getElementById("site-container").offsetWidth,b=this.loadingContext.parentEl.offsetHeight,c=a*this.loadedEntries.length,d=0;d<this.loadedEntries.length;d++){var f=document.createElement("div");f.className="cell";f.style.width=a+"px";f.style.height=b+"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);f.appendChild(h);
this.loadingContext.parentEl.appendChild(f)}$("#"+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")}};e.prototype.renderPhotosDetail=function(){if(this.hasLoaded(this.loadingContext.pageKey))WbxMobileSite.utils.toggleLoading(false);else{var a=parseInt(this.loadingContext.pageKey.split("-")[2]);this.loadImage(a);
var b=this;WbxMobileSite.pagination.init(this.loadedEntries.length,function(c){b.loadImage(c)},a)}};e.prototype.loadImage=function(a){WbxMobileSite.utils.toggleLoading(true,true);this.loadingContext.parentEl.innerHTML="";a=this.loadedEntries[a];var b=this.getBestImage(a);b=b?WbxMobileSite.utils.getProxyImageSrc(b,320,320):null;var c=document.createElement("img");c.src=b;c.className="fullImage";c.style.visibility="hidden";c.onload=function(){var d=-1*parseInt(this.width/2),f=-1*parseInt(this.height/
2);this.style.marginLeft=d+"px";this.style.marginTop=f+"px";c.style.visibility="visible";WbxMobileSite.utils.toggleLoading(false)};$("#"+this.loadingContext.parentEl.id).addClass("fullImageContent");if(this.pageConfig.linkToArticle=="true"){a=WbxMobileSite.utils.getExternalLink(a.link);b=document.createElement("a");b.href=a;b.target="_blank";b.appendChild(c);this.loadingContext.parentEl.appendChild(b)}else this.loadingContext.parentEl.appendChild(c)};WbxMobileSite.pageFactory.contains("mphotos")||
WbxMobileSite.pageFactory.register("mphotos",e)})();
(function(){function e(a,b){this.type="poll";this.index=a;this.config=b;this.pollAnswers=eval(b.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/"+b.pollQuestionId+".json?";this.voteApiUrl=this.apiHost+"/data-api/counter/incr/12402f90-04c1-4571-b564-2183f0dfd37e/"+b.pollQuestionId+"/";this.results=null;this.token="7f817bb252c397e5ddc9a03667507f2fa64d08b70000012ae82a3747";
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 a=0;a<this.graphingScripts.length;a++)$.getScript(this.graphingScripts[a])};e.prototype.load=function(a,b){var c=b.split("-"),d=c.length>2?c[2]:null;this.loadingContext.parentEl=
a;this.loadingContext.pageKey=b;c=WbxMobileSite.site.getPageByPageKey(WbxMobileSite.site.currentPage);if(d){WbxMobileSite.utils.toggleLoading(true);this.viewResults()}else if(!this.isLoaded){WbxMobileSite.utils.toggleLoading(true);if(this.votePage!=null){$(a).html(this.votePage);this.selectedAnswer&&$("#"+this.selectedAnswer).attr("checked","checked")}else{d=$('<div class="headerimage content-view grouped"></div>');if(this.config.headerImage!=""){d.css("min-height","165px");d.css("max-width","300px");
d.css("background","url("+this.config.headerImage+") center center no-repeat");d.css("webkitBackgroundSize",this.config.headerImageWidth+"px "+this.config.headerImageHeight+"px");d.css("padding","0");d.css("margin","8px auto !important");$(a).html(d)}$(a).append($('<div class="content-view grouped"><h1 style="color:'+this.config.pollQuestionColor+'">'+this.config.pollQuestion+"</h1></div>"));d=$("<div></div>");d.addClass("table-view");d.addClass("grouped");d.addClass("wrap");d.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>"));d.append(f);$(a).append(d);
d='<div class="button-row"><div class="button-cell"><a class="lg-button" href="#" id="'+b+'-vote" onclick="return WbxMobileSite.site.getPageByPageKey(\''+this.loadingContext.pageKey+'\').vote();" title="Vote">Vote</a></div>';if(this.config.showResultsLink&&this.config.showResultsLink!="false")d+='<div class="button-cell"><a class="lg-button" href="#" onclick="return WbxMobileSite.utils.navTo(\''+b+'-results\')" title="Vote">Results</a></div>';d+="</div>";$(a).append(d)}this.isLoaded=true;WbxMobileSite.utils.enableScrolling(c.loadingContext.pageKey);
WbxMobileSite.utils.toggleLoading(false)}};e.prototype.vote=function(){WbxMobileSite.utils.toggleLoading(true);var a=this.loadingContext.pageKey,b=WbxMobileSite.site.getPageByPageKey(WbxMobileSite.site.currentPage);b.results=null;var c=$("#"+a+" input[type=radio]:checked").val();if(c)$.getJSON(this.voteApiUrl+c+".json?wbx_callback=?",{wbx_token:this.token},function(d){if(d.success){b.selectedAnswer=c;b.disableVoting();b.votePage=$(b.loadingContext.parentEl).html();WbxMobileSite.site.track(b.loadingContext.pageKey,
"submit");WbxMobileSite.utils.navTo(a+"-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 a=this.loadingContext.pageKey;$("#"+a+"-vote").remove();$("#"+a+" :input").attr("disabled","disabled")};e.prototype.viewResults=function(){for(var a=WbxMobileSite.site.getPageByPageKey(WbxMobileSite.site.currentPage),b=this.resultsApiUrl,
c=this.pollAnswers,d=0;d<c.length;d++)b+="labelId=a"+c[d].id+"&";a.results==null?$.getJSON(b+"&wbx_callback=?",{wbx_token:this.token},function(f){a.results=f.results;a.renderResults()}):a.renderResults();WbxMobileSite.site.track(a.loadingContext.pageKey,"result");WbxMobileSite.utils.toggleLoading(false);WbxMobileSite.utils.enableScrolling(a.loadingContext.pageKey)};e.prototype.renderResults=function(){var a=WbxMobileSite.site.getPageByPageKey(WbxMobileSite.site.currentPage);$(a.loadingContext.parentEl).html("");
if(a.results.calculatedTotal==0){$(a.loadingContext.parentEl).append('<div id="'+a.loadingContext.pageKey+'-graph" class="content-view grouped"></div>');$("#"+a.loadingContext.pageKey+"-graph").append('<h1 style="text-align:center;">No votes yet.</h1>')}else{$(a.loadingContext.parentEl).append('<div id="'+a.loadingContext.pageKey+'-graph" class="content-view grouped" style="height: 270px;"></div>');for(var b=[],c=0;c<a.pollAnswers.length;c++)b.push(a.results["a"+a.pollAnswers[c].id]);var d=Raphael(a.loadingContext.pageKey+
"-graph");d.g.txtattr.font="10px 'Fontin Sans', Fontin-Sans, sans-serif";c=a.config.pollQuestion.substr(0,40);c=a.config.pollQuestion.length>=40?c+"...":c;d.g.text(140,10,c).attr({"font-size":14});var f=[];for(c=0;c<a.pollAnswers.length;c++){var g=a.pollAnswers[c].text.substr(0,33);g=a.pollAnswers[c].text.length>=33?g+"...":g;f.push(g+" (%%.%%, ## votes)")}d.g.piechart(140,120,90,b,{legend:f,legendpos:"south"})}};WbxMobileSite.pageFactory.contains("mpoll")||WbxMobileSite.pageFactory.register("mpoll",
e)})();
$(document).ready(function(){var e={icon:"",startupImg:"",headerImg:"",navStyle:"topNav",aboutImg:"",aboutText:"",titleStyle:"siteTitleImage","titleImg:":"",themeColor:"",admobAcct:"",noAds:"false",pageConfigs:[],theme:"02",titleImg:"http://img.widgetbox.com/widget/asset/d599ea61-daa5-47ea-a770-6269dee05590/t_1267220573703.png"};e.title="ITSA";e.mode="site";e.pageConfigs.push({isStandalone:"true","lib.mobileCssSrc":"/mobile/css/theme/01/theme.css","wbx.buttonMode":"2",pageConfig:'{"content":"<h1>Welcome to ITSA</h1>Welcome to <b>ITSA\'s Mobile</b> Website.Here you can find some usefull links,advices and wallpapers for your phone.If you have the        <b>Web \'n\' Walk</b> aplication on your phone then you don\'t have to visit this mobile website you should visit the <a href=\\"http://admiral55.webs.com\\">original website</a> where you can also see video and text toutorials and you can also visit <a href=\\"http://itsa.forum0.info/\\">ITSA\'s Forum</a>. <img src=\\"hh.png\\">"}',"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://feeds.boston.com/boston/bigpicture/index","headerImg":""}',"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:"#0F16D4",headerImageHeight:"100",pollAnswerColor:"#069BD1",pollVoteButtonColor:"#6DA529","lib.mobileCssSrc":"/mobile/css/theme/01/theme.css",pollAnswers:'[{"id":0,"text":"Michael Jackson","elId":"mobile-poll-answer-0"},{"id":1,"text":"Beyonce","elId":"mobile-poll-answer-1"},{"text":"Shakira","elId":"mobile-poll-answer-2"},{"text":"Rihanna","elId":"mobile-poll-answer-4"},{"text":"Madonna","elId":"mobile-poll-answer-5"},{"text":"Tose Proevski","elId":"mobile-poll-answer-6"},{"text":"Toni Zen","elId":"mobile-poll-answer-7"},{"text":"Dima Bilan","elId":"mobile-poll-answer-8"},{"text":"Alexander Rybak","elId":"mobile-poll-answer-9"}]',
lastAnswerId:"0",pollQuestionId:"i6xoup7mn",pollQuestion:"Best Musician Ever",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:"f9e987cf-b2ef-4435-97a8-cb8a763a47fa",title:"Welcome",type:"mcustom",elId:"mobile-site-page-0"},
{guid:"46741ae6-50e5-48ce-b198-bf9918d601b4",title:"Photos",type:"mphotos",elId:"mobile-site-page-1"},{guid:"3515d380-ffb0-4b47-a765-d0184ebe3656",title:"Best Musician",type:"mpoll",elId:"mobile-site-page-2"}];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="ITSA";WbxMobileSite.galleryShortUrl=WbxMobileSite.shortWidgetUrl+"472mof";WbxMobileSite.instFriendlyId="itsa";WbxMobileSite.syndShortSiteUrl=WbxMobileSite.mobileSiteRuntimeUrl+WbxMobileSite.instFriendlyId;WbxMobileSite.token="0580d1dabcb62817ea52906879be518ccc82cb650000012ae82a375d";WbxMobileSite.instPk=
"141646607";WbxMobileSite.instId="31aa15db-70ce-4ef5-ac11-7449ee646724";WbxMobileSite.instCreatedByUserPk="67526143";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")});