/* 
Netscape 4, Ice, Escape, Omniweb 4.2- 
    if( document.layers ) 

Explorer 4+, Opera 6+, iCab, Ice, Omniweb 4.2- 
    if( document.all ) 	

Mozilla, Explorer 5+, Opera 5+, Konqueror, Safari, iCab, Ice, OmniWeb 4.5 
    if( document.getElementById ) 
*/
var divLayer = 'genuineTooltip';
var mouseX   = 0;
var mouseY   = 0;

if( document.layers ) 
{
	document.captureEvents( Event.MOUSEMOVE );
}

document.onmousemove = GetCursor; 

function OSInfo() {
	document.write( '<div class="genuineLayer" id="genuineTooltip">Подлинная ОС Windows  является легальным программным обеспечением Windows, которое было должным образом лицензировано и законно установлено. Дополнительные сведения об особых преимуществах, получаемых покупателями подлинной ОС Windows, можно узнать по адресу <A HREF="http://www.microsoft.com/genuine" target="_blank">www.microsoft.com/genuine</A></div><A onmouseover="ShowToolTip()" onmouseout="HideToolTip()" href="http://www.microsoft.com/genuine" target="_blank">подлинная</A>' );
} 

function GetCursor( e ) 
{
	if( document.layers ) 
	{
		mouseX = e.pageX;
		mouseY = e.pageY;
	}
	else if( document.all ) 
	{
		mouseX = event.clientX + document.body.scrollLeft;
		mouseY = event.clientY + document.body.scrollTop;
	}
	else if( document.getElementById )
	{
	    mouseX = e.pageX;
		mouseY = e.pageY;
	}
	
	return true;
}

function GetHandle( name ) 
{
	
	
	if( document.getElementById ) 
	{
	    return document.getElementById( name ).style;
	}
}

function ShowToolTip() 
{
	var tip = GetHandle( divLayer );
	
	tip.left = mouseX;
	tip.top  = mouseY + 20;
	
	if( document.layers )
	{
		tip.visibility = "show";
	}
	else if( document.all )
	{
		tip.visibility = "visible";
	}
	else if( document.getElementById )
	{
	    tip.visibility = "visible";
	}
}

function HideToolTip(){
	window.setTimeout('HideToolTip2()',4000);
	}

function HideToolTip2()
{
	var tip = GetHandle( divLayer );
	
	if( document.layers )
	{
		tip.visibility = "hide";
	}
	else if( document.all )
	{
		tip.visibility = "hidden";
	}
	else if( document.getElementById )
	{
	    tip.visibility = "hidden";
	}
}

