
function writeDiv(number, left, width, height, css)
{
var curDivId = 'menu'+number;

	if(!(document.layers))
	{
		document.write('<div name="'+curDivId+'" id="'+curDivId+'" style="position: absolute; border:0; top:123px; left:'+left+'px; width:'+width+'px; height:'+height+'px; visibility: hide; visibility: hidden; z-index:1;">');
	}
	else
	{
		document.write('<div name="'+curDivId+'" id="'+curDivId+'">');
	}
	

	document.write('<table cellspacing="0" cellpadding="0" border="0" width="140" class="bg9">');
	document.write('<tr>'+
					'<td class="' + css + '"><img src="/img/1x1.gif" width="1" height="1" alt="" border="0"></td>'+
					'<td class="' + css + '"><img src="/img/1x1.gif" width="1" height="1" alt="" border="0"></td>'+
					'<td class="' + css + '"><img src="/img/1x1.gif" width="1" height="1" alt="" border="0"></td>'+
				'</tr>');
			for (i in eval(curDivId))
			{
			document.write('<tr>'+
				'<td class="' + css + '"><img src="/img/1x1.gif" width="1" height="3" alt="" border="0"></td>'+
				'<td class="bg9"><img src="/img/1x1.gif" width="'+(width-2)+'" height="1" alt="" border="0"></td>'+
				'<td class="' + css + '"><img src="/img/1x1.gif" width="1" height="1" alt="" border="0"></td>'+
			'</tr>'+
			'<tr>'+
				'<td class="' + css + '"><img src="/img/1x1.gif" width="1" height="1" alt="" border="0"></td>'+
				'<td><a href="'+eval('menuLink'+number)[i]+'" class="menu"><img src="/img/1x1.gif" width="5" height="1" alt="" border="0">'+eval('menu'+number)[i]+'</a></td>'+
				'<td class="' + css + '"><img src="/img/1x1.gif" width="1" height="1" alt="" border="0"></td>'+
			'</tr>'+
			'<tr>'+
				'<td class="' + css + '"><img src="/img/1x1.gif" width="1" height="3" alt="" border="0"></td>'+
				'<td class="bg9"><img src="/img/1x1.gif" width="1" height="1" alt="" border="0"></td>'+
				'<td class="' + css + '"><img src="/img/1x1.gif" width="1" height="1" alt="" border="0"></td>'+
			'</tr>');

				if(i==(eval(curDivId).length-1))
				{
				document.write('<tr>'+
					'<td class="' + css + '"><img src="/img/1x1.gif" width="1" height="1" alt="" border="0"></td>'+
					'<td class="' + css + '"><img src="/img/1x1.gif" width="1" height="1" alt="" border="0"></td>'+
					'<td class="' + css + '"><img src="/img/1x1.gif" width="1" height="1" alt="" border="0"></td>'+
				'</tr>');
				}
				else
				{
				document.write('<tr>'+
					'<td class="' + css + '"><img src="/img/1x1.gif" width="1" height="1" alt="" border="0"></td>'+
					'<td class="bg2"><img src="/img/1x1.gif" width="1" height="1" alt="" border="0"></td>'+
					'<td class="' + css + '"><img src="/img/1x1.gif" width="1" height="1" alt="" border="0"></td>'+
				'</tr>');
				}
			}
	document.write('</table></div>');
}
	
