
//*********************************************************************
//功能：动画加载计算高度并改变DIV的高度
//*********************************************************************
//var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
///function myFlash_DoFSCommand(command, args)                {
//  var myFlashObj = InternetExplorer ? myFlash : document.myFlash;
//  document.getElementById("leftlink").style.height = args;
//}
//if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
//  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
//  document.write('<SCRIPT LANGUAGE=VBScript\> \n');
//  document.write('on error resume next \n');
//  document.write('Sub myFlash_FSCommand(ByVal command, ByVal args)\n');
//  document.write(' call myFlash_DoFSCommand(command, args)\n');
//  document.write('end sub\n');
//  document.write('</SCRIPT\> \n');
//} 
function SetHeight()
{
	var url = "menu.xml";
	var pars = "";
	var myAjax = new Ajax.Request(
									url,
									{
										method:"get",
										parameters: pars,
										onComplete: showResponse
									});
}

	function showResponse(originalRequest)
	{
		var Height;
		var Allnode=originalRequest.responseText;
		Allnode = Allnode.split("<menu");
		Height = (Allnode.length-1)*35+72+74;
		if (document.getElementById("leftlink")!=null)
			document.getElementById("leftlink").style.height = Height;

	}
