/*
Контекстное меню для CMS системы
*/



function CMS_ContextMenu_GetBegin()
{
	document.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style='background-image: url(/images/pages/contextMenu.gif); background-repeat: no-repeat; background-position: top left;'><tr><td width=\"174\"><img src=\"/images/dot.gif\" width=\"174\" height=\"1\"></td><td width=\"1\" valign=\"top\"><img src=\"/images/marker.gif\" width=\"1\" height=\"16\"></td>");
}



function CMS_ContextMenu_GetEnd()
{
	document.write("</tr></table>");
}



          

function CMS_ContextMenu_GetItem(psName, psUrl, psDesc, psTarget, pbIsSelected, biLevel)
{
	document.write("<td height=\"21\" width=\"10\" valign=\"middle\" align=\"right\">" +
		"<img src=\"/images/bulleat.gif\" width=\"5\" height=\"5\"></td><td><nobr>&nbsp;<a href=" + psUrl +
		" title='" + psDesc + "' target='" + psTarget +	"' " +
		"><font class=\"small\" color=\"#003366\"><u>");
	if (pbIsSelected) document.write("<font class=small color=\"#CC0000\">");
	document.write("" + psName + "");
	if (pbIsSelected) document.write("</font>");
	document.write("</u></a>&nbsp;&nbsp;</nobr></td>");
}



function CMS_ContextMenu_GetIfDefaultPage()
{
	document.write("");
}



function CMS_ContextMenu_GetIfWithoutMenu()
{
	document.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td width=\"1\" valign=\"top\"><img src=\"/images/pages/contextMenu.gif\" width=\"264\" height=\"21\"></td></tr></table>");
}