// item - menu item object
// irule - index of the element in the stylesheet file xxxx.css
function m_in(item,irule)
{
	var col;
	if(item.style.backgroundColor)
		col=item.style.backgroundColor;
	else
		col=document.styleSheets[0].rules[irule].style.backgroundColor;
	if(item.style.color)
		item.style.backgroundColor=item.style.color;
	else
		item.style.backgroundColor=document.styleSheets[0].rules[irule].style.color;
	item.style.color=col;
}

function m_out(item,irule)
{
	var col;
	col=item.style.backgroundColor;
	item.style.backgroundColor=item.style.color;
	item.style.color=col;
}

function n_in(item)
{
//	item.style.backgroundColor="#606060";
/*	var col;
	if(item.style.backgroundColor)
		col=item.style.backgroundColor;
	else
		col=document.styleSheets[0].rules[irule].style.backgroundColor;
	if(item.style.color)
		item.style.backgroundColor=item.style.color;
	else
		item.style.backgroundColor=document.styleSheets[0].rules[irule].style.color;
	item.style.color=col;
*/	
}

function n_out(item)
{
//	item.style.backgroundColor="#B0B0B0";
/*	var col;
	col=item.style.backgroundColor;
	item.style.backgroundColor=item.style.color;
	item.style.color=col;
*/	
}


function go(url)
{
	window.location.href=url;
}

function OpenShot(a,x,y)
{
	NewWindow=window.open(a,"NewWindow",'width='+x+',height='+y+',menubar=no,scrollbars=no');
}

function OpenShotik(a,x,y)
{
	NewWindow=window.open(a,"NewWindow",'width='+x+',height='+y+',menubar=no,scrollbars=yes');
}

 

var nifty_little_window = null;
function gateKeeper(name) 
{
	nifty_little_window = window.open('gatekeep.htm', 'theKeeper', 'width=350, height=200, resizable=0');
//	alert(name);
}
