﻿/*
Context menu for site on the CMS system
*/

var sContextMenu = ""

// Menu begin rendering
function CMS_ContextMenu_GetBegin()
{
	sContextMenu = "";
}



// Menu end rendering
function CMS_ContextMenu_GetEnd()
{
	sContextMenu += "";
	document.getElementById("contextMenu").innerHTML = sContextMenu;
}



// Menu item rendering
function CMS_ContextMenu_GetItem(psName, psUrl, psDesc, psTarget, pbIsSelected, biLevel)
{
	sContextMenu += "<p id='sub_menu' style='text-align:left;'>";
	if (pbIsSelected) 
		sContextMenu += "<a href=" + psUrl + " title='" + psDesc + "' target='" + psTarget +	"' style='display:block;color:#383838;text-decoration:none;font-weight:bold;margin-bottom:1px;margin-left:16px;'>" + psName + "</a>";
	else
		sContextMenu += "<a href=" + psUrl + " title='" + psDesc + "' target='" + psTarget +	"' style='display:block;color:#383838;text-decoration:none;font-weight:bold;margin-bottom:1px;margin-left:16px;'>" + psName + "</a>";
	
}



// Render if it's first page
function CMS_ContextMenu_GetIfDefaultPage()
{
}





// Render if current menu item node has not any menu item
function CMS_ContextMenu_GetIfWithoutMenu()
{
}



