$(document).ready(function(){
$('a.gal').lightBox();
$("#zakaz_tabs").tabs();
// раскрытие пунктов каталога
$("h2.switch").click(
function(){
var temp = $(this).parent().find('div.catalog_item_inside');
if ($(temp).is(":hidden"))
{
$(temp).slideDown("slow");
} else {
$(temp).slideUp("slow");
}
}
);
$("h2.switch").hover(
function () {
$(this).css("text-decoration", "underline");
$(this).css("cursor","pointer");
},
function () {
$(this).css("text-decoration", "none");
$(this).css("cursor","default");
}
);
if ( !$('div.catalog_item_inside').hasClass("no_hide") )
{
$('div.catalog_item_inside').hide();
}
// end раскрытие пунктов каталога
$('#sendmail').hide();
$('#sendmail2').hide();
$('a.obr_svjaz').click(
function() {
$('#sendmail').toggle(400);
return false;
}
);
$('a.obr_svjaz2').click(
function() {
$('#sendmail2').toggle(400);
return false;
}
);

$('a.mapLink').click(
function() {
$('.imgr').toggle(400);
return false;
}
);

});
function feedback(s){
$.post('/feedback/',
{fio:$('input[name=fio]',s).val(),
 conn:$('input[name=conn]',s).val(),
 mail:$('input[name=mail]',s).val(),
 mess:$('textarea[name=mess]',s).val(),
 captcha:$('input[name=captcha]',s).val()
},
function (data){
$('#formmail').html(data);
},
'html'
);
}
function feedback2(s){
$.post('/feedback/',
{
    fio:$('input[name=fio]',s).val(),
    mail:$('input[name=mail]',s).val(),
    conn:$('input[name=conn]',s).val(),
    mailquestion:$('input[name=mailquestion]',s).val(),
    mess:$('textarea[name=mess]',s).val()},
function (data){
$('#formmail2').html(data);
},
'html'
);
}

