

<!--
$(document).ready(function() {
    $('#mycarousel').jcarousel({
        vertical: true,
        scroll: 2
    });
 $('.close2,.close').click(function(){
  $('.recommend-div').fadeOut('slow');
 });
 $('#ico-recommend, .recommend').click(function(){
  $('.recommend-div').fadeIn('slow');
  $('input[type=text]').val('');
  return false;
 });
 $('form').submit(function(){
 $('.error').remove();
 mail=$('input[name=to_email]').val();
 mail2=$('input[name=from_email]').val();
 var emailReg = /^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,4}$/;
 if (!emailReg.test(mail)||!emailReg.test(mail2))
 $('#send').before('<span class="error">Nieprawidłowy adres e-mail</span>');
 else{
  $.ajax({
    type: "POST",
 dataType: "json",
    url: $(this).attr('action'),
    data: $(this).serialize(),
    success: function(msg){
 if(msg.code!=-1) $('#send').before('<span class="error">'+msg.msg+'</span>');
 else{
    $('#recommend-div').fadeOut('slow',function(){
    $('#recommend-thx').fadeIn('slow');
    });
   }
  }
    });
 }
 return false;
 });
$('.contact form').submit(function(){
 $('.contact form span').text('');
   mail=$('input[name=email]').val();
 var emailReg = /^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,4}$/;
 if (!emailReg.test(mail)){
 $('.err_email').fadeIn('slow');
 $('.contact form span').prepend('Nieprawidłowy adres e-mail.');
 return false;
 }
 else{
  $.ajax({
    type: "POST",
    dataType: "json",
    url: $(this).attr('action'),
    data: $(this).serialize(),
    success: function(msg){
  if(msg.code!=-1) $('#largeForm span').append(msg.msg);
 else{
 $('#largeForm *').slideUp('slow',function(){
 $('#largeForm *').remove();
$('#largeForm').append('<p>Dziękujemy za skontaktowanie się z nami</p>');
 });
 }
   }
  }); }
  });
/*POPRAWA BUGA LISTY NA GŁÓWNEJ*/
$('#content .mainList li a').hover(function(){
if($('h2 img'))$(this).parent().css('background-color','#242424');
},function(){
if($('h2 img'))$(this).parent().css('background-color','inherit');
});
});
//-->

