menu_item_forecolor 		= "#000000";
menu_item_backcolor			= "#f5f5f5";
menu_item_forecolor_hover	= "#ffffff";
menu_item_backcolor_hover	= "#911b17";

imageObj = new Image();

images = new Array();
images[0] = "/cms/images/page_edited.gif"
images[1] = "/cms/images/link.gif"
images[2] = "/cms/images/folder_page.gif"
images[3] = "/cms/images/form.gif"

for(i=0; i<=3; i++)
	imageObj.src=images[i];

function nav_hover (id, show)
{
	var row = document.getElementById(id);

	if (show)
	{
		row.style.color = menu_item_forecolor_hover;
		row.style.background = menu_item_backcolor_hover;
		//row.style.borderBottom = "2px solid #56100d";
		//row.style.paddingLeft = "15px";
		//row.style.borderLeft = "6px solid #475b6d";
	}

	if (!show)
	{
		row.style.color = menu_item_forecolor;
		row.style.background = "transparent";
		//row.style.borderBottom = "2px solid " + menu_item_backcolor;
		//row.style.paddingLeft = "12px";
		//row.style.borderLeft = "6px solid #dddddd";
	}
	
	row.style.cursor = 'pointer';
}

var popUpWin=0;
function pop_up (URLStr, left, top, width, height)
{
  	if(popUpWin)
	{
		if(!popUpWin.closed) popUpWin.close();
  	}
	popUpWin = window.open(URLStr, 'popUpWin', 'toolbar=0,location=no,directories=0,statusbar=0,menubar=no,scrollbars=yes,resizable=0,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function confirm_delete ()
{
	return confirm("Are you sure you want to delete this?\n\nOnce removed, this item is NOT recoverable!");	
}

function redirect (url)
{
	document.location.href = url;	
}

// collapsable scripts

