function FitMainFlash()
{
	document.getElementById('murzilka_main_div').style.width='100%';//(document.getElementById('murzilka_main_div').style.width == '100%' ? '101%' : '100%');
}

function PrintImg()
{
	var pr = '<html><head><style>.noprint{display:none;}</style></head><body onload="window.print();">' + jQuery('#content').html() + '</body></html>';
	newWin=window.open('','printWindow','Toolbar=0,Location=0,Directories=0,Status=0,Menubar=0,Scrollbars=0,Resizable=0');
	newWin.document.open();
	newWin.document.write(pr);
	newWin.document.close();
}

jQuery.noConflict()(function(){
//$(document).ready(function(){
	jQuery("a[href$=jpg]").click( function(){ hs.expand(this); return false;});
	jQuery("a[href$=JPG]").click( function(){ hs.expand(this); return false;});
	jQuery("a[href$=gif]").click( function(){ hs.expand(this); return false;});
	jQuery("a[href$=GIF]").click( function(){ hs.expand(this); return false;});
	jQuery("a[href$=png]").click( function(){ hs.expand(this); return false;});
	jQuery("a[href$=PNG]").click( function(){ hs.expand(this); return false;});
	jQuery("a[href$=jpeg]").click( function(){ hs.expand(this); return false;});
	jQuery("a[href$=JPEG]").click( function(){ hs.expand(this); return false;});


/*TopMenu*/
	var closeTimer;
	function closeTime()
	{
		closeTimer = window.setTimeout(closeMenu, 200); 
	}

	function cancelCloseTime()
	{
		if (closeTimer != null)
		{
			window.clearTimeout(closeTimer);
			closeTimer = null;
		}
	}

	function closeMenu()
	{
		jQuery(".popup_menu").slideUp('fast');
	}

	jQuery('.top_menu > table > tbody > tr > td > a').hover(
		function ()
		{
			next=jQuery(this).next();
			if(next.is('.popup_menu'))
			{
				if(next.is(':visible'))
					cancelCloseTime();
				else
				{
					closeMenu();
					next.css('left', jQuery(this).offset().left-jQuery('div.top_menu').offset().left);
					next.css('top',/*jQuery(this).offset().top+jQuery(this).height()+5*/46);
					next.slideDown('fast');
					cancelCloseTime();
				}
			}
		},
		function ()
		{
			closeTime();
		}
	);

	jQuery('.popup_menu').mouseover(function(){cancelCloseTime();});

	jQuery('.popup_menu').mouseout(function(){closeTime();});

	document.onclick = closeMenu;
/*/TopMenu*/

	jQuery('div.top_menu').supersleight({shim: '/design/images/blank.gif'});
	jQuery('.b3').supersleight({shim: '/design/images/blank.gif'});
	jQuery('div.stimg').supersleight({shim: '/design/images/blank.gif'});
	jQuery('div#footer_main').supersleight({shim: '/design/images/blank.gif'});
	jQuery('img.image_in_menu').supersleight({shim: '/design/images/blank.gif'});
	jQuery('div.top_murzilkograd').supersleight({shim: '/design/images/blank.gif'});
	jQuery('.png').supersleight({shim: '/design/images/blank.gif'});
});

