if(!document.all)
{
$(window).resize(function() { if($('body').width() < 1120){ $('body').css({ 'margin-left':'-110px' }); } });
$(window).resize(function() { if($('body').width() >= 1280){ $('body').css({ 'margin-left':'0px' }); } });
if($('body').width() < 1120){ $('body').css({ 'margin-left':'-110px' }); }
}
else
{
$(window).resize(function() { if($('body').width() < 1120){ $('#body-main-table').css({ 'margin-left':'-110px' }); } });
$(window).resize(function() { if($('body').width() >= 1280){ $('#body-main-table').css({ 'margin-left':'0px' }); } });
if($('body').width() < 1120){ $('#body-main-table').css({ 'margin-left':'-110px' }); }
}
$(document).ready(function(){

if(navigator.userAgent.indexOf ('Opera') != -1){ $("#body-main-table").css({'margin-top':'-20px'}); $(".infBlock_img").css({'margin-bottom':'15px'});}

$(".searchBlock_3").bind("click", function(){
										   $("#searchBlock_form").submit();}
);


$("#searchBlock_text").bind({
			focus: function()
				{
					if($(this).attr("value")=="поиск"){ $(this).attr("value", ""); }
					},
			blur: function()
				{
					if($(this).attr("value")==""){ $(this).attr("value", "поиск"); }
					}
		}

);

$("#top-under-menu-right .bmm").bind({
		mouseenter: function()
			{
				$(this).animate({ opacity: 0.88 });
				},
		mouseleave: function()
			{
				$(this).animate({ opacity: 1 });
				},
		click: function()
			{
				var myloc = $("a", this).attr("href");
				document.location.href = myloc;
				}
});

$(".infBlock_img").bind({
		mouseenter: function()
			{
				$(this).animate({ opacity: 0.85 });
				},
		mouseleave: function()
			{
				$(this).animate({ opacity: 1 });
				},
		click: function()
			{
				var myloc = $(this).attr("href");
				document.location.href = myloc;
				}
});

$("#fotoDiv-right .fcon").bind({
		click: function()
			{
				var myloc = $(this).attr("href");
				document.location.href = myloc;
				}
});
if(navigator.userAgent.indexOf ('IE 6') == -1){
$("#top-under-menu-right .bmm:eq(0)").show('drop', {}, 300, function()
					{
						$(this).next("#top-under-menu-right .bmm").show('drop', {}, 300, arguments.callee);	
					}
			);
}
else
{
$("#top-under-menu-right .bmm").show(0);
}

slideshower(
	slideshow_id = "#slideshower",
	slideshow_dropdown = 3000,
	slideshow_delay = 1000
	);

if(navigator.userAgent.indexOf ('IE 6') != -1) DD_belatedPNG.fix('*');
});

