var FeatureViewer=Class.create();Object.extend(Object.extend(FeatureViewer.prototype,AC.ViewMaster.Viewer.prototype),{superInit:AC.ViewMaster.Viewer.prototype.initialize,initialize:function(c,a,d,b){this._subfeatureviewerSwapView=new AC.SwapView("tipcontent");
this.superInit(c,a,d,b)},superShow:AC.ViewMaster.Viewer.prototype.show,show:function(b,a){this.superShow(b,a);
this._subfeatureviewerSwapView.setDelegate(b.subFeatureViewer);b.subFeatureViewer.show(b.subFeatureViewer.currentSection)
},triggerClicked:function(a,b){var d=null;if(this.options.silentTriggers){if(a){Event.stop(a)
}}if(!!b.href.match(/#previous/)){d=this.getPreviousSection()}else{if(!!b.href.match(/#next/)){d=this.getNextSection()
}else{var c=b.href.match(/#(.*)$/);if(c){var f=c[1]}else{f=b.name}d=this.sections.get(f)
}}if(!d){d=this.addSection(b)}if(d.isContentRemote()&&!d.isContentLoaded()){if(a){Event.stop(a)
}}if(d==this.currentSection){if(a){Event.stop(a)}return}else{if(!d){return}}this._didShowInitial=true;
this.show(d);if(typeof this.options.subViewer==="object"){var e=$$("#MASKED-"+f+" div ul li > a")[0];
this.options.subViewer._categoryChanged(e)}},addSection:function(f){var n=f.id;
var s="NON-CONFLICTING-"+n;var o=$("maskedcontent");var a=$(s);if(!a){var c=Builder.node("div",{id:s,className:"section-content"});
o.appendChild(c);var r=topicsHash[n].topics;var b=new TipsSlider(s);var m="";for(var q=0,p;
p=r[q];q++){var j=n+"_"+p.file.split(".html")[0];var d=(parseInt(q+1)+". "+p.name).truncate(21);
var i="/autopush/us/iphone/appstore/content/images/"+p.imageURL;var e=false;if(i){e=Builder.node("img",{src:i,width:"36",height:"36",alt:""})
}var g=Builder.node("a",{className:n+"-content-link",name:j,href:"/autopush/us/iphone/appstore/content/"+p.file},(e)?[e,Builder.node("span",[d])]:[Builder.node("span",[d])]);
var u=new AC.SliderItem(g);b.items.push(u);if(q==0){m=j}}b.render(10);b.resetPages()
}this.subFeatureViewer=null;var l=new SubFeatureViewer(null,this._subfeatureviewerSwapView,n+"-content-link",{initialId:m,shouldAnimateContentChange:false,silentTriggers:true,alwaysShowSection:true});
var t=c;t.id=n;var h=new AC.ViewMaster.Section(t,this);h.subFeatureViewer=l;this.sections.set(h.id,h);
this.orderedSections.push(h.id);return h}});
