function show_banner(b_file, b_url, b_width, b_height, b_color, b_mode, b_ver)
{
	var rnd = Math.round(Math.random()*1048576);
	var withLink = true;

	if(!b_url) withLink = false;

	document.write('<object type="application/x-shockwave-flash" data="'+b_file+'?rnd='+rnd); if (withLink) document.write('&path='+b_url); document.write('" width="'+b_width+'" height="'+b_height+'">');
	document.write('<param name="movie" value="'+b_file+'?rnd='+rnd); if(withLink) document.write('&path='+b_url); document.write('"/>');
	if(b_mode == true) document.write('<param name="wmode" value="transparent"/>');
	document.write('<param name="quality" value="high"/>');
	if(b_color) document.write('<param name="bgcolor" value="'+b_color+'"/>');
	document.write('</object>');
}


function fixPNG(element)
{
  	if (/MSIE (5\.5|6|7|8).+Win/.test(navigator.userAgent))
  	{
    	var src;
      	src = element.currentStyle.backgroundImage.match(/url\("(.+\.png)"\)/i);
      	if (src)
      	{
        	src = src[1];
        	element.runtimeStyle.backgroundImage="none";
      	}
    	if (src) element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
  	}
}
jsHover = function()
{
		var hEls = document.getElementById("menu_p").getElementsByTagName("LI");
//		alert(hEls.length)
		for (var i=0; i<hEls.length; i++)
		{
			if (hEls[i].childNodes[2]!=null && hEls[i].childNodes[2].nodeName=='UL')
			hEls[i].style.backgroundImage="url('http://mu-obu.ru/netcat_files/Image/mdot1.gif')";
			else 
			hEls[i].style.backgroundImage="url('http://mu-obu.ru/netcat_files/Image/mdot2.gif')";
			hEls[i].style.backgroundPosition="-10px 5px";
			hEls[i].style.backgroundRepeat="no-repeat";
			hEls[i].style.paddingLeft='20px';
			hEls[i].onclick= function(event) { 
				if (this.childNodes[2]!=null && this.childNodes[2].nodeName=='UL'){
						if (this.childNodes[2].style.display=='block') this.childNodes[2].style.display='none';
						else this.childNodes[2].style.display='block'
						if (navigator.userAgent.indexOf("Firefox")<0) {
							window.event.cancelBubble=true;
							window.event.returnValue = false;
						}
						if(navigator.userAgent.indexOf("Firefox")>=0){
							event.stopPropagation();
							event.preventDefault();
						}
				}
				if (this.childNodes[2]==null && this.childNodes[0].nodeName=='A')
				{
						if (navigator.userAgent.indexOf("Firefox")<0) {
							window.event.cancelBubble=true;
							window.event.returnValue = true;
						}
						if(navigator.userAgent.indexOf("Firefox")>=0){
							event.stopPropagation();
//							event.preventDefault();
						}
				}
			}
		}
}
if (window.attachEvent) {
	window.attachEvent("onload", jsHover);
} 
else {
	if (navigator.userAgent.indexOf("Opera")==-1)
	{
		window.addEventListener("load", jsHover, true);
	} 
	else {
		document.addEventListener("onload", jsHover, true);
	}
}


//if (window.attachEvent && navigator.userAgent.indexOf("Opera")==-1) window.attachEvent("onload", jsHover);

//if (/MSIE .+Win/.test(navigator.userAgent))
//{
//	document.write("<style>@import url(/css/menu_ie2.css); </style>");
//}
//else
//{
	document.write("<style>@import url(/css/menunew.css); </style>");
//}
