


function CMS_MainMenu_GetBegin()
{
	document.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\"><tr>");
}




function CMS_MainMenu_GetEnd()
{
	document.write("</tr></table>");
}



function CMS_MainMenu_GetItem(piId, psName, psUrl, psDesc, psTarget, iconURL, psIconWidth, psIconHeight, pbIsCurrMenuItem, pbIsFirstPage)
{
	document.write("<td width=\"10\"><img src=\"/images/dot.gif\" border=\"0\" width=\"10\" height=\"1\"></td><td align=center width=\"16%\">");
	if(pbIsCurrMenuItem) document.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td width=\"10\" height=\"25\" valign=top><img src=\"/images/menuCorner1.gif\" border=\"0\" width=\"10\" height=\"25\"></td><td width=\"8\" bgcolor=white><img src=\"/images/kub.gif\" border=\"0\" width=\"8\" height=\"8\"></td><td align=\"center\" bgcolor=white><nobr>&nbsp;&nbsp;<a href=" + psUrl + " title='" + psDesc + "' target='" + psTarget + "'><font class=\"menu\" style=\"color : #777777;\">" + psName + "</font></a>&nbsp;</nobr></td><td width=\"8\" valign=top><img src=\"/images/menuCorner2.gif\" border=\"0\" width=\"8\" height=\"25\"></td></tr></table>");
	else
		document.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td width=\"5\" height=\"25\"><img src=\"/images/kub.gif\" border=\"0\" width=\"8\" height=\"8\"></td><td align=\"center\"><nobr>&nbsp;&nbsp;<a href=" + psUrl + " title='" + psDesc + "' target='" + psTarget + "'><font class=\"menu\">" + psName + "</font></a>&nbsp;</nobr></td></tr></table>");
	document.write("</td>");

}




function CMS_MenuItem_GetIcon(piId,  psName, iconURL, psIconWidth, psIconHeight)
{
	HomeIconPath = "/images/marker.gif";
	HomeIconWidth = "1";
	HomeIconHeight = "16";


	if (piId == 0 && HomeIconPath != "")
		return "<img src=\"" + HomeIconPath + "\" width=\"" + HomeIconWidth + "\" height=\"" + HomeIconHeight + "\" alt=\"" + psName + "\" vspace=\"2\">";
	else if (psIconWidth != "")
		return "<img src=\"" + iconURL + "\" width=\"" + psIconWidth + "\" height=\"" + psIconHeight + "\" alt=\"" + psName + "\" vspace=\"2\">";
		
	return "";
}
