var g_TimeoutCount = 0;
var g_TimeoutLength = 3;

function MoveLayer( strLayerName, xCoord, yCoord )
{
   if ( document.all ) 
   {
      // We have IE4+
      var theLayer = eval( "document.all." + strLayerName + ".style" );     
      theLayer.pixelLeft = xCoord;
      theLayer.pixelTop = yCoord;

   } 
   else if ( document.layers ) 
   {
      // We have Netscape 4.x
      var theLayer = eval( "document." + strLayerName );
      theLayer.left = xCoord;
      theLayer.top = yCoord;   
   } 
   else if ( !document.all && document.getElementById ) 
   {
      // We have Mozilla or Netscape 6.x
      var theLayer = document.getElementById( strLayerName ).style;    
      theLayer.left = xCoord + "px";
      theLayer.top = yCoord + "px";    
   }     
}

function IsVisible( strLayerName )
{
   var LayerVisible = false;
   
   if ( document.all ) 
   {
      // We have IE4+
      var theLayer = eval( "document.all." + strLayerName + ".style" );     
      LayerVisible = ( theLayer.visibility == "visible" ) ? true : false;     
      
   } 
   else if ( document.layers ) 
   {
      // We have Netscape 4.x
      var theLayer = eval( "document." + strLayerName );
      LayerVisible = ( theLayer.visibility == "show" ) ? true : false;     
   
   } 
   else if ( !document.all && document.getElementById ) 
   {
      // We have Mozilla or Netscape 6.x
      var theLayer = document.getElementById( strLayerName ).style;    
      LayerVisible = ( theLayer.visibility == "visible" ) ? true : false;     
   }  
   
   return LayerVisible;
}

function showHideLayer( strLayerName )
{
   var strAction = "";

   if ( document.all ) 
   {
      // We have IE4+
      var theLayer = eval( "document.all." + strLayerName + ".style" );     
      strAction = ( theLayer.visibility == "hidden" || theLayer.visibility == "" ) ? "visible" : "hidden";    
      theLayer.visibility = strAction;
      
   } 
   else if ( document.layers ) 
   {
      // We have Netscape 4.x
      var theLayer = eval( "document." + strLayerName );
      strAction = ( theLayer.visibility == "hide" || theLayer.visibility == "" ) ? "show" : "hide";
      theLayer.visibility = strAction;
   
   } 
   else if ( !document.all && document.getElementById ) 
   {
      // We have Mozilla or Netscape 6.x
      var theLayer = document.getElementById( strLayerName ).style;    
      strAction = ( theLayer.visibility == "hidden" || theLayer.visibility == "" ) ? "visible" : "hidden";
      
      theLayer.visibility = strAction;
   }
   
} // showHideLayer


function showLayer( strLayerName )
{

   if ( document.all ) 
   {
      // We have IE4+
      var theLayer = eval( "document.all." + strLayerName + ".style" );     
      theLayer.visibility = "visible";
      
   } 
   else if ( document.layers ) 
   {
      // We have Netscape 4.x
      var theLayer = eval( "document." + strLayerName );
      theLayer.visibility = "show";
   
   } 
   else if ( !document.all && document.getElementById ) 
   {
      // We have Mozilla or Netscape 6.x
      var theLayer = document.getElementById( strLayerName ).style;          
      theLayer.visibility = "visible";
   }
   
} // showHideLayer

function hideLayer( strLayerName )
{

   if ( document.all ) 
   {
      // We have IE4+
      var theLayer = eval( "document.all." + strLayerName + ".style" );     
      theLayer.visibility = "hidden";
      
   } 
   else if ( document.layers ) 
   {
      // We have Netscape 4.x
      var theLayer = eval( "document." + strLayerName );
      theLayer.visibility = "hide";
   
   } 
   else if ( !document.all && document.getElementById ) 
   {
      // We have Mozilla or Netscape 6.x
      var theLayer = document.getElementById( strLayerName ).style;          
      theLayer.visibility = "hidden";
   }
   
} // hideLayer


function RollOn( ImageName, Pic )
{
	if ( document.images )
	{
		document.images[ImageName].src = Pic;
	} // knows about images

} // RollOn


function showTvProduction()
{

	RollOn( 'tv_production', 'images/menu/tv_production_on.gif' );
	showLayer( "NavigationSubLinksTvProduction" );

	var IsTeamPage = ( location.href.indexOf( "team" ) != -1 ) ? true : false;

	
	if ( IsTeamPage )
	{
		RollOn( 'team_bios', 'images/menu/team_bios_off.gif' );
		showLayer( "NavigationSubLinksTeamBios" );
	}
	else
	{
		hideTeamBios();
	
	} // not bios page	

} // showTvProduction

function hideTvProduction()
{

	RollOn( 'tv_production', 'images/menu/tv_production_off.gif' );
	hideLayer( "NavigationSubLinksTvProduction" );
		
} // hideTvProduction


function showTeamBios()
{

 	RollOn( 'team_bios', 'images/menu/team_bios_on.gif' );
	showLayer( "NavigationSubLinksTeamBios" );
	hideTvProduction();
} // showTeamBios

function hideTeamBios()
{
	
	RollOn( 'team_bios', 'images/menu/team_bios_off.gif' );
	hideLayer( "NavigationSubLinksTeamBios" );

} // hideTeamBios


function showContact()
{

	RollOn( 'contact', 'images/menu/contact_on.gif' );
	hideTvProduction();

	var IsTeamPage = ( location.href.indexOf( "team" ) != -1 ) ? true : false;
	var IsTvPage = ( location.href.indexOf( "tv_production" ) != -1 ) ? true : false;
	
	if ( IsTeamPage )
	{
		RollOn( 'team_bios', 'images/menu/team_bios_off.gif' );
		showLayer( "NavigationSubLinksTeamBios" );
	}
	else
	{
		hideTeamBios();
	
	} // not bios page
	
	if ( IsTvPage )
	{
		RollOn( 'tv_production', 'images/menu/tv_production_off.gif' );
		showLayer( "NavigationSubLinksTvProduction" );
	}
	else
	{
		hideTvProduction();
	
	} // not tv page	
	
} // showContact

function hideContact()
{

	RollOn( 'contact', 'images/menu/contact_off.gif' );

} // hideContact


function showHome()
{

	RollOn( 'home', 'images/menu/home_on.gif' );
	hideTvProduction();

	var IsTeamPage = ( location.href.indexOf( "team" ) != -1 ) ? true : false;
	var IsTvPage = ( location.href.indexOf( "tv_production" ) != -1 ) ? true : false;
	
	if ( IsTeamPage )
	{
		RollOn( 'team_bios', 'images/menu/team_bios_off.gif' );
		showLayer( "NavigationSubLinksTeamBios" );
	}
	else
	{
		hideTeamBios();
	
	} // not bios page
	
	if ( IsTvPage )
	{
		RollOn( 'tv_production', 'images/menu/tv_production_off.gif' );
		showLayer( "NavigationSubLinksTvProduction" );
	}
	else
	{
		hideTvProduction();
	
	} // not tv page		

} // showHome

function hideHome()
{

	RollOn( 'home', 'images/menu/home_off.gif' );

} // hideHome

function NavigationMonitor( strLayerName )
{
	if ( !IsVisible( strLayerName ) || g_TimeoutCount != 0 )
	{
		return;
	}

	g_TimeoutCount = 0;
	
	while( g_TimeoutCount <= g_TimeoutLength )
	{
		setTimeout( "IncrementCounter()", 1000 );
	}
	
	if ( (g_TimeoutCount > g_TimeoutLength) )
	{
		hideLayer( strLayerName );		
	}
	
} // NavigationMonitor

function ClearAll()
{
	hideLayer( "NavigationSubLinksTvProduction" );
	hideLayer( "NavigationSubLinksTeamBios" );
	ResetCounter();
	RollOn( 'tv_production', 'images/menu/tv_production_off.gif' );
	RollOn( 'team_bios', 'images/menu/team_bios_off.gif' );

} // ClearAll

function ClearAllTeam()
{
	hideLayer( "NavigationSubLinksTvProduction" );
	showLayer( "NavigationSubLinksTeamBios" );
	ResetCounter();
	RollOn( 'tv_production', 'images/menu/tv_production_off.gif' );
	RollOn( 'team_bios', 'images/menu/team_bios_off.gif' );

} // ClearAll

function ResetCounter()
{
	g_TimeoutCount = 0;
} // ResetCounter

function IncrementCounter()
{
	g_TimeoutCount += 1;
} // Nothing

function PrintNavigation()
{

	document.write( "<div id=\"NavigationParentLinks\">\n" );
	document.write( "<div id=\"NavigationParentLinkTvProduction\"><a href=\"tv_production_dc.html\" onmouseover=\"showTvProduction();\"><img src=\"images/menu/tv_production_off.gif\" width=\"107\" height=\"23\" border=\"0\" name=\"tv_production\" alt=\"TV PRODUCTION\" /></a></div>\n" );
	document.write( "<div id=\"NavigationParentLinkTeamBios\"><a href=\"team_janiceevans.html\" onmouseover=\"showTeamBios();\"><img src=\"images/menu/team_bios_off.gif\" width=\"82\" height=\"23\" border=\"0\" name=\"team_bios\" alt=\"TEAM BIOS\" /></a></div>\n" );
	document.write( "<div id=\"NavigationParentLinkContact\"><a href=\"contact.html\" onmouseover=\"showContact();\" onmouseout=\"hideContact();\"><img src=\"images/menu/contact_off.gif\" width=\"70\" height=\"23\" border=\"0\" name=\"contact\" alt=\"CONTACT\" /></a></div>\n" );
	document.write( "<div id=\"NavigationParentLinkHome\"><a href=\"index.html\" onmouseover=\"showHome();\" onmouseout=\"hideHome();\"><img src=\"images/menu/home_off.gif\" width=\"58\" height=\"23\" border=\"0\" name=\"home\" alt=\"HOME\" /></a></div>\n" );	
	document.write( "</div>\n" );
	
	document.write( "<div id=\"NavigationSubLinksTvProduction\">" );
	document.write( "<div style=\"display: inline;\"><a href=\"tv_production_dc.html\" onmouseover=\"RollOn( 'drama_comedy_tvprod', 'images/menu/drama_comedy_tvprod_on.gif' );\" onmouseout=\"RollOn( 'drama_comedy_tvprod', 'images/menu/drama_comedy_tvprod_off.gif' );\"><img src=\"images/menu/drama_comedy_tvprod_off.gif\" width=\"111\" height=\"16\" border=\"0\" name=\"drama_comedy_tvprod\" alt=\"DRAMA/COMEDY\" /></a></div>" );
	document.write( "<div style=\"display: inline;\"><a href=\"tv_production_doc.html\" onmouseover=\"RollOn( 'documentary_tvprod', 'images/menu/documentary_tvprod_on.gif' );\" onmouseout=\"RollOn( 'documentary_tvprod', 'images/menu/documentary_tvprod_off.gif' );\"><img src=\"images/menu/documentary_tvprod_off.gif\" width=\"99\" height=\"16\" border=\"0\" name=\"documentary_tvprod\" alt=\"DOCUMENTARY\" /></a></div>" );
	document.write( "<div style=\"display: inline;\"><a href=\"tv_production_perf.html\" onmouseover=\"RollOn( 'performing_arts', 'images/menu/performing_arts_tvprod_on.gif' );\" onmouseout=\"RollOn( 'performing_arts', 'images/menu/performing_arts_tvprod_off.gif' );\"><img src=\"images/menu/performing_arts_tvprod_off.gif\" width=\"122\" height=\"16\" border=\"0\" name=\"performing_arts\" alt=\"PERFORMING ARTS\" /></a></div>" );
	document.write( "<div style=\"display: inline;\"><a href=\"tv_production_ch.html\" onmouseover=\"RollOn( 'childrens_tvprod', 'images/menu/childrens_tvprod_on.gif' );\" onmouseout=\"RollOn( 'childrens_tvprod', 'images/menu/childrens_tvprod_off.gif' );\"><img src=\"images/menu/childrens_tvprod_off.gif\" width=\"88\" height=\"16\" border=\"0\" name=\"childrens_tvprod\" alt=\"CHILDREN'S\" /></a></div>" );
	document.write( "</div>\n" );

	document.write( "<div id=\"NavigationSubLinksTeamBios\">" );
	document.write( "<div style=\"display: inline;\"><a href=\"team_janiceevans.html\" onmouseover=\"RollOn( 'janice_evans_bios', 'images/menu/janice_evans_bios_on.gif' );\" onmouseout=\"RollOn( 'janice_evans_bios', 'images/menu/janice_evans_bios_off.gif' );\"><img src=\"images/menu/janice_evans_bios_off.gif\" width=\"94\" height=\"16\" border=\"0\" name=\"janice_evans_bios\" alt=\"JANICE EVANS\" style=\"margin-left: 107px;\" /></a></div>" );
	document.write( "<div style=\"display: inline;\"><a href=\"team_gregjones.html\" onmouseover=\"RollOn( 'greg_jones_bios', 'images/menu/greg_jones_bios_on.gif' );\" onmouseout=\"RollOn( 'greg_jones_bios', 'images/menu/greg_jones_bios_off.gif' );\"><img src=\"images/menu/greg_jones_bios_off.gif\" width=\"87\" height=\"16\" border=\"0\" name=\"greg_jones_bios\" alt=\"GREG JONES\" /></a></div>" );
	document.write( "<div style=\"display: inline;\"><a href=\"team_cherylpereira.html\" onmouseover=\"RollOn( 'cheryl_pereira_bios', 'images/menu/cheryl_pereira_bios_on.gif' );\" onmouseout=\"RollOn( 'cheryl_pereira_bios', 'images/menu/cheryl_pereira_bios_off.gif' );\"><img src=\"images/menu/cheryl_pereira_bios_off.gif\" width=\"108\" height=\"16\" border=\"0\" name=\"cheryl_pereira_bios\" alt=\"CHERYL PEREIRA\" /></a></div>" );

	document.write( "</div>\n" );

} // PrintNavigation










	

	

	

