	
	var NN  = (document.layers) ? 1 : 0;
	var IE  = (document.all) ? 1: 0;
	var NN6 = (!document.all && document.getElementById) ? 1: 0;
	var prev_color = '';
	
	function hover(id)
	{	
		if(id) {
			if (IE == 1) {
				document.all["menu"+id].style.background = '#b1c3ed';
				    if(document.all["lnk"+id]) {
				    prev_color = document.all["lnk"+id].style.color;
				    document.all["lnk"+id].style.color = 'white';
				}
			}
			//if (NN == 1) eval('document.menu'+id+'.background = "url(/img/menu_bg_pr.gif) repeat-x";');
			if (NN6 == 1) {
				document.getElementById("menu"+id).style.background = '#b1c3ed';
				    if(document.getElementById("lnk"+id)) {
				    prev_color = document.getElementById("lnk"+id).style.color;
				    document.getElementById("lnk"+id).style.color = 'white';
				}
			}
		}
	}
	
	function leave(id)
	{
		if(id) {
			if (IE == 1) {
				document.all["menu"+id].style.background = 'white';
				    if(document.all["lnk"+id]) {
				    document.all["lnk"+id].style.color = prev_color;
				}
			}
			//if (NN == 1)  eval("document.menu"+id+".background = 'url(/img/menu_bg.gif) repeat-x';");
			if (NN6 == 1) {
				document.getElementById("menu"+id).style.background = 'white';
				    if(document.getElementById("lnk"+id)) {
				    document.getElementById("lnk"+id).style.color = prev_color;
				}
			}
		}
	}
	
	function qmhover(id)
	{
		if(id) {
			if (IE == 1) {
				document.all[id].style.background = '#b1c3ed';
				prev_color = document.all[id].style.color;
				document.all[id].style.color = 'white';
			}
			//if (NN == 1)  eval("document."+id+".background = '#C4CDDF'");
			if (NN6 == 1) {
				document.getElementById(id).style.background = '#C4CDDF';
				prev_color = document.getElementById(id).style.color;
				document.getElementById(id).style.color = 'white';
			}
		}
	}
	
	function qmout(id)
	{
		if(id) {
			if (IE == 1) {
				document.all[id].style.background = '#ffffff';
				document.all[id].style.color = prev_color;
			}
			//if (NN == 1)  eval("document."+id+".background = '#AFBCD4';");
			if (NN6 == 1) {
				document.getElementById(id).style.background = '#ffffff';
				document.getElementById(id).style.color = prev_color;
			}
		}
	}