var cur = '';
function show_podmenu(id){
        document.getElementById(id).style.display = "block";
        cur = id;
    }
function hide_podmenu(){
        if(cur != '') document.getElementById(cur).style.display = "none";
    }
/*подсветка второго пункта меню */
var cur1 = '';
function show_podsvetka(id){
        document.getElementById(id).style.color = "#0099FF";
        cur1 = id;
    }
function hide_podsvetka(){
        if(cur1 != '') document.getElementById(cur1).style.backgroundImage = "";
        if(cur1 != '') document.getElementById(cur1).style.color = "";
    }

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

show_flash = function (width,height,name) {
document.write('<div id="flash_for_ukr" >');
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
document.write(' id="eselcornerSmallObject" width="'+width+'" height="'+height+'">');
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+name+'"/>');
document.write(' <param name="wmode" value="transparent" />');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value=""/>');
document.write('<embed src="'+name+'" name="eselcornerSmallObject" wmode="transparent" quality="high" width="'+width+'" height="'+height+'" flashvars="" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
}


