Type.registerNamespace('SpottedScript.Pages.Articles.Photos');
SpottedScript.Pages.Articles.Photos.Controller=function(view){SpottedScript.Pages.Articles.Photos.Controller.initializeBase(this);this.view=view;this.setupController();}
SpottedScript.Pages.Articles.Photos.Controller.prototype={view:null,get_photoControl:function(){return this.view.get_uiPhotoControl();},get_photoBrowser:function(){return this.view.get_uiPhotoBrowser();},get_threadControl:function(){return this.view.get_uiThreadControl();},photoProvider:null,get_photoProvider:function(){if(!this.photoProvider){this.photoProvider=new SpottedScript.Controls.PhotoBrowser.ArticlePhotoProvider(Number.parseInvariant(this.view.get_uiArticleK().value));}return this.photoProvider;},get_latestChatController:function(){return this.view.get_uiLatestChat();}}
SpottedScript.Pages.Articles.Photos.View=function(clientId){SpottedScript.Pages.Articles.Photos.View.initializeBase(this,[clientId]);this.clientId=clientId;}
SpottedScript.Pages.Articles.Photos.View.prototype={clientId:null,get_uiTitle:function(){return document.getElementById(this.clientId+'_uiTitle');},get_uiArticleInfoSpan:function(){return document.getElementById(this.clientId+'_uiArticleInfoSpan');},get_uiPhotoBrowser:function(){return eval(this.clientId+'_uiPhotoBrowserController');},get_uiPhotoControl:function(){return eval(this.clientId+'_uiPhotoControlController');},get_uiLatestChat:function(){return eval(this.clientId+'_uiLatestChatController');},get_uiThreadControl:function(){return eval(this.clientId+'_uiThreadControlController');},get_uiArticleK:function(){return document.getElementById(this.clientId+'_uiArticleK');},get_genericContainerPage:function(){return document.getElementById(this.clientId+'_GenericContainerPage');}}
SpottedScript.Pages.Articles.Photos.Controller.registerClass('SpottedScript.Pages.Articles.Photos.Controller',SpottedScript.Controls.PhotoBrowser.PhotosController);
SpottedScript.Pages.Articles.Photos.View.registerClass('SpottedScript.Pages.Articles.Photos.View',SpottedScript.DsiUserControl.View);
