
function Quick_WriteMenuLayerBlank( id ) {
	document.write('<div id="'+id+'" style="position: absolute; visibility: hidden; width: 1px; " onmouseover="showMenuLeft( \'m_'+id+'\', \''+id+'\' ); return true" onmouseout="initiateHideMenu( \'m_'+id+'\', \''+id+'\' ); return true"><span></span></div>');
}

function Quick_WriteMenuLayerTop( title, id ) {
	document.write('<div id="'+id+'" style=" \
		z-index: 12; height: 50px; width: 204px; position: absolute; visibility: hidden; \
		" onmouseover="showMenuLeft( \'m_'+id+'\', \''+id+'\' ); return true" onmouseout="initiateHideMenu(\'m_'+id+'\', \''+id+'\' ); return true">');
	document.write('<table cellspacing="0" style="width: 204px; height: 100%; padding: 0px; ">');
	document.write('<tr><td colspan="3"><img src="/images/common/sp.gif" style="width: 1px; height: 1px;" alt="" /></td></tr>');
	document.write('<tr>');
	document.write('<td style="background-image: url(\'/images/template/menubg_left.gif\'); background-color: white; \
		background-position: bottom left; background-repeat: repeat-x; \
		width: 8px; height: 100%; \
	"><div><img src="/images/common/sp.gif" style="width: 8px; height: 100%; " alt="" /></div></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: 100%; "  >');
}


function Quick_WriteMenuLayerSeparator( ) {
	document.write('<tr style="height: 1px;">');
	document.write('<td style="width: 2px; "><img src="/images/common/sp.gif" style="width: 2px; 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 Quick_WriteMenuLayerSeparatorSmall( ) {
}

function Quick_WriteMenuLayerSeparatorBig( ) {
}


function Quick_WriteMenuLayerItemSmall( title, link, selected_flag, tooltip, num ) {

	if ( link == cur_url ) {
		selected_flag = 1;
	} else {
		selected_flag = 0;
	}
	if ( selected_flag == 1 ) {
		document.write('<tr>');
		document.write('<td style="width: 2px; "><img src="/images/common/sp.gif" style="width: 2px; height: 1px; " alt="" /></td>');
		document.write('<td style=" padding: 5px 5px 5px 0px;"><img src="/images/common/menu_arrow_right_yellow_10.gif" width="9" height="11"></td>');
		document.write('<td style=" padding: 5px 0px 5px 0px;">');
		document.write('<b><a style="font-weight: normal; display: block; width: 120px; height: 100%; color: black;" href=\"'+link+'\" title=\"'+tooltip+'\" class="black10">'+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>');
	} else {
		document.write('<tr>');
		document.write('<td style="width: 2px; "><img src="/images/common/sp.gif" style="width: 2px; height: 1px; " alt="" /></td>');
		document.write('<td style=" padding: 5px 5px 5px 0px;"><img src="/images/common/menu_arrow_right_lgray_10.gif" width="9" height="11"></td>');
		document.write('<td style=" padding: 5px 0px 5px 0px;">');
		document.write('<b><a style="font-weight: normal; display: block; width: 120px; height: 100%;" 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 Quick_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: 2px; "><img src="/images/common/sp.gif" style="width: 2px; height: 1px; " alt="" /></td>');
		document.write('<td width=10 valign=top style="padding: 10px 5px 5px 0px;"><img src="/images/common/menu_arrow_right_yellow_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; color: black;" href=\"'+link+'\" title=\"'+tooltip+'\" class="black10">'+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>');
	} else {
		document.write('<tr>');
		document.write('<td style="width: 2px; "><img src="/images/common/sp.gif" style="width: 2px; height: 1px; " alt="" /></td>');
		document.write('<td width=10 valign=top style="padding: 10px 5px 5px 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 Quick_WriteMenuLayerBottom( ) {
	document.write('</table></td>');
	document.write('<td style="background-image: url(\'/images/template/menubg_right.gif\'); background-color: white; background-position: bottom right; background-repeat: repeat-x; width: 8px;"><img src="/images/common/sp.gif" style="width: 8px; height: 1px;" alt="" /></td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td style=" background-repeat: no-repeat; background-image: url(/images/template/menulb.gif); background-position: bottom left; "><img src="/images/common/sp.gif" style="width: 8px; height: 8px; margin: 0px; " alt="" /></td>');
	document.write('<td style="width: 100%; background-color: #e9f6fc; vertical-align: bottom;"><img src="/images/template/pxgray.gif" style="width: 100%; height: 1px;" alt="" /></td>');
	document.write('<td style=" background-repeat: no-repeat; 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>');
}

