function report(status, text) {
if (status)
jQuery("
").appendTo("#infocontainer").delay(200).fadeIn().delay(3500).fadeOut();
else
jQuery("").appendTo("#infocontainer").delay(200).fadeIn().delay(3500).fadeOut();
}
jQuery("#fbLike0").hover(function(){
jQuery("#fbLike0").stop(true, false).animate({left:"0"},"medium");
},function(){
jQuery("#fbLike0").stop(true, false).animate({left:"-306"},"medium");
},500);
jQuery("#fbLike1").hover(function(){
jQuery("#fbLike1").stop(true, false).animate({right:"0"},"medium");
},function(){
jQuery("#fbLike1").stop(true, false).animate({right:"-306"},"medium");
},500);
jQuery(document).on("submit", "form[class!=send]", function(){
var form = jQuery(this);
jQuery(form).find(".button").hide();
jQuery(form).find(".loader").show();
jQuery(form).ajaxSubmit({
target:'#answerForm',
success: function(){
jQuery(form).find(".button").show();
jQuery(form).find(".loader").hide();
}
});
return false;
});
function resize() {
jQuery('#content, #content2').css('min-height', jQuery(window).height()-jQuery('#header').outerHeight()-jQuery('#content3').outerHeight()-jQuery('#header_green').outerHeight()-jQuery('#image').outerHeight()-jQuery('#slider').outerHeight()-jQuery('#footer').outerHeight()-jQuery('#footer2').outerHeight()+'px');
}
resize();
jQuery('.image-popup').magnificPopup({
delegate: 'a.mgallery-photo',
type: 'image',
closeOnContentClick: true,
closeBtnInside: false,
fixedContentPos: true,
mainClass: 'mfp-no-margins mfp-with-zoom', // class to remove default margin from left and right side
image: {
verticalFit: true
},
gallery: {
enabled: true,
navigateByImgClick: true,
preload: [0,1] // Will preload 0 - before current, and 1 after the current image
},
zoom: {
enabled: true,
duration: 300 // don't foget to change the duration also in CSS
}
});
new WOW().init();