//	This team's JavaScript - Copyright (C) 2003-2010 Charles A Upsdell, All Rights Reserved; www.upsdell.com


//	OnLoad Function
function myOnLoad( nTimeLimit )
{
myShowItem( ['hidden', 'list-item'], ['hidden_block', 'block'] );
if ( typeof(cFilenameList) != 'undefined' )
	mySeasonalImage.setMastheadImage( undefined, '../../' );
mySetSpaceImage( 'bak_space', '../../' );
if ( typeof(myFilmLibrary) != 'undefined' )
	myGallery();
if ( typeof(cal) == 'object' )
  {
	calCookieOptions();
	if ( isMobileDevice() )
		calUpcomingListTournamentGames = true;
	var myCalendarType = 'grid';
	if ( typeof(myNewsAlert) != 'undefined' )
		myNewsAlert.addNews();
	if ( typeof(myPrintOnLoad) != 'undefined' )
		myCalendarType = myPrintOnLoad();
	if ( typeof(cal.toNewsHTML) != 'undefined' )
		cal.toNewsHTML();
	if ( typeof(cal.toCheckHTML) != 'undefined' )
		cal.toCheckHTML();
	if ( typeof(cal.toCalendarHTML) != 'undefined' )
		cal.toCalendarHTML( (isMobileDevice()?'list':'grid'), 'ins_calendar_dump', window.location.hash );
	if ( typeof(cal.toGamesHTML) != 'undefined' )
		cal.toGamesHTML();
	if ( typeof(cal.toTrophiesHTML) != 'undefined' )
		cal.toTrophiesHTML();
	if ( typeof(calendarTournament) != 'undefined' )
		cal.toGamesHTML( calendarTournamentID, 'T', calendarTournament );
  }
if ( typeof(calDumpHTML) !== typeof(noSuchFunction) )
	calDumpHTML();
if ( typeof(myNewsAlertForm) != 'undefined' )
	myNewsAlertForm.initForm();
myMarkAnchor();
if ( typeof(mySponsorList) != 'undefined' )
	mySponsorList.insertHTML();
if ( typeof(myReportAnyBrowserUpdate) != 'undefined' )
	myReportAnyBrowserUpdate( '../../../BrowserNews/', getElement('ins_BrowserUpdate') );
}

