app.custom = {	

	default_page : 'videoviewer',

	siteBase : '',	
	
	myRoswell : 'http://dev.roswellpark.org/myroswell',
	
	refs : {

			//navigation 
			navi : ['debug', 'appcenter_bottom', 'appcenter_top', 'paneltitle', 
					'main', 'appright', 'appleft', 'appnavlist', 'username'],			
					
			//login and logout
			login : ['loginstart', 'login_form', 'formnotes', 'news'],			
			logout : ['loginstart', 'login_form', 'formnotes', 'news'],	
			
			//account pages
			signup : ['grdata_signup', 'news', 'signup_cancel'],						
			update  : ['grdata_update', 'credits_list', 'credits_notes', 'credits_shell'],
			pending  : ['grdata_update', 'news'],
			thanks : ['grdata_update', 'news'],
			
			//view videos
			videoviewer : [ 'cataloged_shell', 'unlisted_shell', 'vidoptions', 'details', 'appcontent',
					 		'allunlistedpageings', 'alllisted', 'uploadvidsbutton', 'unwatched_shell',
					 		'watched_shell', 'options',  'videoplayer', 'logform', 'big', 'big_gutz'],
					  
			//video manager
			videomanager : ['vidoptions', 'options', 'details', 'cataloged_shell', 'unlisted_shell'],
			
			//user manager
			usermanager : ['active_shell', 'applicants_shell', 'details', 'report_start', 'report_end', 'report', 'report_display', 'report_res'],

			//terms of service
			tos : ['tosMe']
	},
	
	testy: 0,
	
	sb_config : function(){
		
		//ajax
		sb.ajax.defaultFormat = 'json';
		sb.ajax.defaultMethod = 'get';
		sb.ajax.defaultURL = this.siteBase + '/data/process.php';
		
		sb.cookies.path = "/grandrounds";
		sb.cookies.domain = "dev.roswellpark.org";

		//other settings
		sb.debug = 1;
		sb.stickerDebug = this.debug;
		
		//tc config
		tc.forms.date.startYearDefault = 2005;
		tc.forms.date.yearSpanDefault = 15;
		app.swfname = 'video2.swf';
		
	}, 
	
	sb_includes : function(){ 
		
			
			sb.include("date");
			sb.include("cookies");
			sb.include("swf");
			sb.include("flashGate");
			sb.include("utils.timer");
			sb.include("String.prototype.toNumber");
			sb.include("String.prototype.md5");
			sb.include("Array.prototype.shuffle");
			sb.include("forms.serialize");
			sb.include("browser.scrollTo");
			sb.include("Element.prototype.cssTransition");
			sb.include("colors.getTweenColor");
			sb.include("forms.textarea.textBling");
		
		
		return 1;
	},
	
	tc_includes : function(){
		tc.include("arrays.removeByValue");
		tc.include("forms.date");
		tc.include("widget.pageControl");
		tc.include("widget.notes");/**/
	}
};
