$(document).ready(function() {
						   
$(".showhide").css({"display":"none"});
						   
r1 = $(".contentIn").height();		
if (r1 < 636)
$(".contentIn").height(636);

r2 = $("#HTML").height();		
if (r2 > 2000)
{
$(".mainBgBottom1").css('background-position' , 'center bottom');
$(".mainBgBottom2").css('background-position' , 'center bottom');
$(".mainBgBottom3").css('background-position' , 'center bottom');
}
else 
{
$(".mainBgBottom1").css('background-position' , 'center 943px');
$(".mainBgBottom2").css('background-position' , 'center 943px');
$(".mainBgBottom3").css('background-position' , 'center 1166px');
}

$('.linkZakaz a')   
	.append('<span class="hover" id="rsscolor"/>').each(function () {
		var $span = $('> span.hover', this).css('opacity', 0);
		if ($.browser.msie) {
			}
			else
			$(this).hover(function () {
				$span.stop().fadeTo(300, 1);
				}, function () {
				$span.stop().fadeTo(300, 0);
	});
});
	
    $('.add').click(function(){
        //$(this).$("div:nth-child(1)").fadeIn(1000);
        $('.blockForm').fadeOut(1000);
        $(this).next('.inForma').find('.blockForm').fadeIn(500);
    });
    $('.close').click(function(){
        $('.blockForm').fadeOut(1000);
    });

	$("table caption").wrapInner("<div class='q1'><div class='q2'></div></div>");
	$("table.data").attr('cellspacing', 0);
	$("table.data").attr('cellpadding', 0);
	$("table.data").attr('border', 0);
	$("table.data tr>td:nth-child(1)").addClass('qwe');
	$("table.data th:last").addClass('qwe1');
});

