// Filename: flashGo.js
// Project : www.morning-side.com
//
// Description:
// Handle scripting of the content specific to the homepage
//
// Revision History:
// 08SEP2003 - MJT - New development

// GetSwf
// Get an item from the page by id, all set or name depending
// on how the browser supports it
function GetSwf( strId )
{
	if ( document.all )
	{
		return document.all[ strId ];
	}
	else if ( document.getElementById )
	{
		return document.getElementById( strId );
	}
	else
	{
		return null;
	}
}

// FlashMouseOver
// Go to the specified label within the flash movie
function FlashMouseOver( strPicNum )
{
	var swf = GetSwf( 'homeFlash' );
	if (swf)
	{
		swf.TGotoLabel( "switchPic","section" + strPicNum );
		swf.TPlay("switchPic");
	}
}

// FlashMouseOut
// Go to the specified label within the flash movie
function FlashMouseOut( )
{
	var swf = GetSwf( 'homeFlash' );
	if (swf)
	{
		swf.TGotoLabel( "switchPic", "home" );
	}
}

