//---------------------------------------------------------------------------------------------------
var Dif = 0;

function init() 
{
	if( document.getElementById && !document.all )
	{
		window.setInterval( "N6MenuMover()",20 );
	}
	else if( document.layers )
	{
		window.setInterval( "N4MenuMover()",20 );
	}
	else if( document.all )
	{
		window.setInterval( "IeMenuMover()",20 );
	} 
}

function IeMenuMover() 
{
	Dif = parseInt( ( document.body.scrollTop - document.all["menudiv"].offsetTop ) * .1 );
	if( isNaN( Dif ) ) Dif = 0;
	if( Dif == 0 )
	{
		document.all["menudiv"].style.pixelTop = document.body.scrollTop;
	}
	else
	{
		document.all["menudiv"].style.pixelTop += Dif;
	}
}

function N6MenuMover()
{
	Dif = parseInt( ( window.pageYOffset - document.getElementById("menudiv").offsetTop ) * .1 );
	if( isNaN( Dif ) ) Dif = 0;
	if( Dif == 0 )
	{
		document.getElementById("menudiv").style.top = window.pageYOffset + "px";
	}
	else
	{
		i = parseInt( document.getElementById("menudiv").style.top ) + Dif;
		document.getElementById("menudiv").style.top = i + "px"; 
	}
}

function N4MenuMover() 
{
	Dif = parseInt( ( window.pageYOffset - document.layers["menudiv"].pageY ) * .1 );
	if( isNaN( Dif ) ) Dif=0;
	if( Dif == 0 )
	{
		document.layers["menudiv"].top = window.pageYOffset;
	}
	else
	{
		document.layers["menudiv"].top += Dif;
	}
}
//---------------------------------------------------------------------------------------------------
var newwindow;
function launchNewBrowserWindow(url)
{
   newwindow = window.open(url,'name'
      ,'resizable=yes,scrollbars=yes,menubar=yes,toolbar=yes,location=yes,status=yes');

   if (window.focus) 
   {
      newwindow.focus()
   }
}
//---------------------------------------------------------------------------------------------------
