function move(x)
{
	if (document.all)
	{
		object1.style.pixelLeft += x;
		object1.style.visibility = "visible";
	}
	else if (document.layers)
	{
		document.object1.left += x;
		document.object1.visibility = "show";
	}

}//end function

function makeStatic()
{
	if (document.all)
	{
		object1.style.pixelTop=document.body.scrollTop+20;
	}
	else
	{
		eval(document.object1.top=eval(window.pageYOffset+20));
	}
	setTimeout("makeStatic()",0);

}//end function

function positionmenu()
{
	move(-132)
	
}//end function

function navigateie(which)
{
	if (linktarget=='')
		window.location=thelink[which]
	else if (linktarget=='new')
		window.open(thelink[which])
	else
	{
		temp_var=eval("window.parent."+linktarget)
		temp_var.location=thelink[which]
	}

}//end function:

function beginMenu(mnuCaption)
{

	//document.write('<body>');
	document.write('<LAYER visibility="hide" top="20" name="object1" bgcolor="#0033CC" left="0" onmouseover="move(132)" onmouseout="move(-132)">');

	if (document.all)
	{
		document.write('<DIV ID="object1" style="visibility:hidden;cursor:hand; Position : Absolute ;Left : 0px ;Top : 20px ;Z-Index : 20" onmouseover="move(132)" onmouseout="move(-132)">')
	}

	document.write('<table border="0" cellpadding="0" cellspacing="1" width="150" bgcolor="#0033CC">');

	if(document.all)
	{
		document.write('<tr><td class="menubar" title="' + mnuCaption + '">');
	}
	else
	{
		document.write('<tr><td class="menubar" title="' + mnuCaption + '">');
	}
	
	document.write('<font size="4" face="Arial">');
	document.write('<b>&nbsp;' + mnuCaption + ' &nbsp;</b>');
	document.write('</font></td>');

	if(document.all)
	{
		document.write('<td align="center" class="sidemenu" rowspan="100" width="16">');
	}
	else
	{
		document.write('<td align="center" class="sidemenu" rowspan="100" width="16">');
	}
	
	document.write('<span style="font-size:13px">');
	document.write('<p align="center">');
	document.write('<font face="Arial Black">');
	document.write('&nbsp;S&nbsp;<br>&nbsp;I&nbsp;<br>&nbsp;D&nbsp;<br>&nbsp;E&nbsp;<br><br>&nbsp;M&nbsp;<br>&nbsp;E&nbsp;<br>&nbsp;N&nbsp;<BR>&nbsp;U&nbsp;');
	document.write('</font></p>');
	document.write('</span>');
	document.write('</td>');
	document.write('</tr>');

	if (document.all||document.layers)
	{
		makeStatic();
	}

	
}//end function:

function endMenu()
{

	document.write('<tr>');
	
	if(document.all)
	{
		document.write('<td class="menubarbottom">');
	}
	else
	{
		document.write('<td bgcolor="#0033CC" class="menubarbottom">');
		document.write('<font size="1" face="Arial">&nbsp;</font>');
	}
	
	document.write('</td>');
	document.write('</tr>');
	document.write('</table>');
	
	if (document.all)
	{
		document.write('</DIV>');
	}

	window.onload=positionmenu

	document.write('</LAYER>');

}//end function:

function writeMenu()
{

	for (i=0;i<=text.length-1;i++)
	if (document.all)
	{
		document.write('<TR><TD class="mnuitem" height="20" onclick="navigateie('+i+')" onmouseover="className=\'mnuitemHL\'" onmouseout="className=\'mnuitemN\'" NOWRAP title="' + text[i] + '"><FONT SIZE=2 FACE=ARIAL>&nbsp;'+text[i]+'</FONT></TD></TR>')
	}
	else
	{
		document.write('<TR><TD class="mnuitem" bgcolor="#F2F3FD"><ILAYER><LAYER HEIGHT="18" onmouseover="this.bgColor=\'#B7BDF2\'" onmouseout="this.bgColor=\'#F2F3FD\'" width="131" NOWRAP title="' + text[i] + '"><FONT SIZE=2 FACE=ARIAL>&nbsp;<A CLASS="mnuLink" HREF="'+thelink[i]+'" target="'+linktarget+'" id="nounderline" title="' + text[i] + '">&nbsp;'+text[i]+'</A></FONT></LAYER></ILAYER></TD></TR>')

	}

}//end function
