
function WriteMenuLayerBlank( id ) {
//	document.write('<div id="'+id+'" style="position: absolute; visibility: hidden; width: 1px; " onmouseover="showMenu( \'m_'+id+'\', \''+id+'\' ); return true" onmouseout="initiateHideMenu( \'m_'+id+'\', \''+id+'\' ); return true"><span></span></div>');
	document.write('<div id="'+id+'" style="position: absolute; visibility: hidden; width: 1px; " onmouseover="showMenu( \'m_'+id+'\', \''+id+'\' ); return true" onmouseout="initiateHideMenu( \'m_'+id+'\', \''+id+'\' ); return true">');
}

function WriteMenuLayerTop( title, id ) {
	document.write('<div id="'+id+'" style="width: 204px; z-index: 201; width: 175px; position: absolute; visibility: hidden; " onmouseover="showMenu( \'m_'+id+'\', \''+id+'\' ); return true" onmouseout="initiateHideMenu( \'m_'+id+'\', \''+id+'\' ); return true">');

	document.write('<table cellspacing="0">');

	document.write('<tr style="height: 8px;">');
	document.write('<td><img src="/images/common/sp.gif" style="width: 2px; height: 1px; margin: 0px; " alt="" /></td>');
	document.write('<td style="background-color: white; \
			background-image: url(\'/images/template/pxgray.gif\'); background-position: top left; background-repeat: repeat-x; \
			"><img src="/images/common/sp.gif" style="width: 8px; height: 8px; margin: 0px; " alt="" /></td>');
	document.write('<td style="width: 100%; \
			background-image: url(\'/images/template/pxgray.gif\'); background-position: top left; background-repeat: repeat-x; \
			background-color: white;"><img src="/images/common/sp.gif" style="width: 1px; height: 1px; " alt="" /></td>');
	document.write('<td style="width: 8px; height: 8px; background-repeat: no-repeat; \
			background-image: url(/images/template/menurt.gif); \
			background-position: top right; "><img src="/images/common/sp.gif" style="width: 8px; height: 5px; margin: 0px; " alt="" /></td>');
	document.write('</tr>');

	document.write('<tr>');
	document.write('<td><img src="/images/common/sp.gif" style="width: 1px; height: 1px; margin: 0px; " alt="" /></td>');
	document.write('<td style="background-image: url(\'/images/template/menubg.gif\'); background-color: white; background-position: bottom left; background-repeat: repeat-x; width: 8px;  "><img src="/images/common/sp.gif" style="width: 8px; height: 1px;" alt="" /></td>');
	document.write('<td style="width: 100%; background-color: white; background-image: url(\'/images/template/menubg.gif\'); background-position: bottom left; background-repeat: repeat-x;">');
	document.write('<table cellspacing="0" style=" width: 200px; " >');
}


function WriteMenuLayerSeparator( ) {
	document.write('<tr style="height: 1px;">');
	document.write('<td style="width: 10px; "><img src="/images/common/sp.gif" style="width: 10px; height: 1px; " alt="" /></td>');
	document.write('<td colspan=2 style="background-color: #c0cfdc;"><img src=/images/common/sp.gif width=1 height=1></td>');
	document.write('<td style="width: 10px; "><img src="/images/common/sp.gif" style="width: 10px; height: 1px; " alt="" /></td>');
	document.write('</tr>');
}


function WriteMenuLayerItem( title, link, selected_flag, tooltip ) {
	if ( link == cur_url ) {
		selected_flag = 1;
	} else {
		selected_flag = 0;
	}
	if ( selected_flag == 1 ) {
		document.write('<tr>');
		document.write('<td style="width: 10px; "><img src="/images/common/sp.gif" style="width: 10px; height: 1px; " alt="" /></td>');
		document.write('<td width=10 valign=top style="padding: 10px 5px 10px 0px;"><img src="/images/common/menu_arrow_right_blue_10.gif" width="9" height="11"></td><td width="130" class=gray valign=top style="padding: 10px 0px 5px 0px;">');
		document.write('<b>'+title+'</b>');
		document.write('</td>');
		document.write('<td style="width: 10px; "><img src="/images/common/sp.gif" style="width: 10px; height: 1px; " alt="" /></td>');
		document.write('</tr>');
	} else {
		document.write('<tr>');
		document.write('<td style="width: 10px; "><img src="/images/common/sp.gif" style="width: 10px; height: 1px; " alt="" /></td>');
		document.write('<td width=10 valign=top style="padding: 10px 5px 10px 0px;"><img src="/images/common/menu_arrow_right_blue_10.gif" width="9" height="11"></td><td width="130" class=gray10 valign=top style="padding: 10px 0px 5px 0px;">');
		document.write('<b><a style="display: block; width: 120px; height: 100%; font-size: 12px;" href=\"'+link+'\" title=\"'+tooltip+'\" class=gray10>'+title+'</a></b>');
		document.write('</td>');
		document.write('<td style="width: 10px; "><img src="/images/common/sp.gif" style="width: 10px; height: 1px; " alt="" /></td>');
		document.write('</tr>');

	}
	document.write('');
}

function WriteMenuLayerBottom( ) {
	document.write('</table></td>');
	document.write('<td style="background-image: url(/images/template/menubg.gif); background-color: white; background-position: bottom left; background-repeat: repeat-x; width: 8px; border-right: solid 1px #c0cfdc;"><img src="/images/common/sp.gif" style="width: 8px; height: 8px; margin: 0px; " alt="" /></td>');
	document.write('</tr>');

	document.write('<tr style="height: 8px;">');
	document.write('<td style=""><span></span></td>');
	document.write('<td style=" border-bottom: solid 1px #c0cfdc; background-color: #e9f6fc; "><img src="/images/common/sp.gif" style="width: 8px; height: 8px; margin: 0px; " alt="" /></td>');
	document.write('<td style="width: 100%; background-color: #e9f6fc; border-bottom: solid 1px #c0cfdc;"><img src="/images/common/sp.gif" style="width: 8px; height: 8px; margin: 0px; " alt="" /></td>');
	document.write('<td style=" background-repeat: no-repeat; width: 8px; height: 8px; \
			background-image: url(/images/template/menurb.gif); \
			background-position: bottom right;"><img src="/images/common/sp.gif" style="width: 8px; height: 8px; margin: 0px; " alt="" /></td>');
	document.write('</tr>');


	document.write('</table>');
	document.write('</div>');
}


