// Filename: customers.js
// Project : www.thepdigroup.com
//
// Description:
// Handle scripting of the content specific to the homepage

// 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( 'customers' );
	if (swf)
	{
		swf.TGotoLabel( "globe", "country" + strPicNum );
		//swf.TPlay( "globe" );
	}
}

// FlashMouseOut
// Go to the specified label within the flash movie
function FlashMouseOut( )
{
	var swf = GetSwf( 'customers' );
	if (swf)
	{
		swf.TGotoLabel( "globe", "countryStop" );
		//swf.TPlay( "globe" );
		swf.TGotoLabel( "logo", "logoOn" );
		swf.TPlay( "logo" );
	}
}

// FlashMouseOver
// Go to the specified label within the flash movie
//function FlashMouseOver( strPicNum )
//{
//	var swf = GetSwf( 'customers' );
//	if (swf)
//	{
//		swf.TGotoLabel( "globe", "country" + strPicNum );
//		swf.Stop(  );
//	}
//}

// FlashMouseOut
// Go to the specified label within the flash movie
//function FlashMouseOut( )
//{
//	var swf = GetSwf( 'customers' );
//	if (swf)
//	{
//		swf.TPlay( "globe" );
//	}
//}


