jQuery(function($){"use strict";function header(){var windowHeight=$(window).height();var windowWidth=$(window).width();if(windowWidth<1200){$("html").removeClass("noIE");} if(windowHeight>850){if($('#header').length){$(window).on('scroll',function(){var winH=$(window).scrollTop();var $pageHeader=$('#header');if(winH>60){$pageHeader.addClass('sticky');}else{$pageHeader.removeClass('sticky');}});}};var slider=$(".home-slider .slides");var slider2=$(".home-slider .slides li");if(windowHeight>450){slider.css("max-height",windowHeight- 200);slider2.css("max-height",windowHeight- 200);};$('.scroll_down').click(function(event){event.preventDefault();$('html, body').animate({scrollTop:windowHeight- 300},300);});};header();$(window).resize(function(){header();});jQuery(".minus_btn").click(function(){var inputEl=jQuery(this).parent().children().next();var qty=inputEl.val();if(jQuery(this).parent().hasClass("minus_btn")) qty++;else qty--;if(qty<0) qty=0;inputEl.val(qty);}) jQuery(".plus_btn").click(function(){var inputEl=jQuery(this).parent().children().next();var qty=inputEl.val();if(jQuery(this).hasClass("plus_btn")) qty++;else qty--;if(qty<0) qty=0;inputEl.val(qty);}) $('.noIE .animated').waypoint(function(){var animation=$(this).data('animation');$(this).addClass('animation-done').addClass(animation);},{triggerOnce:true,offset:'70%'});$('.flexslider').flexslider({animation:'fade',slideshowSpeed:7000,animationSpeed:600,pauseOnHover:false,prevText:"",nextText:""});$(".flex-control-nav").prepend('');$(".flex-control-nav").append('');$(".flex-control-nav .prev").click(function(){$(".flex-prev").trigger('click');});$(".flex-control-nav .next").click(function(){$(".flex-next").trigger('click');});$(".flex-control-nav").wrap("
");$('.flexcarousel').flexslider({animation:"slide",animationLoop:false,itemWidth:275,itemMargin:12,slideshowSpeed:7000,animationSpeed:600,pauseOnHover:false,prevText:"",nextText:""});$('.flexsthumb').flexslider({animation:"slide",controlNav:"thumbnails"});$("#nav .navbar-nav > li .dropdown-toggle").click(function(){$(this).parent().toggleClass("open-nav")});$('input').iCheck({checkboxClass:'icheckbox_minimal',radioClass:'iradio_minimal',increaseArea:'20%'});$('#contact-form').on('submit',function(e){e.preventDefault();$(this).find('.error').removeClass('error');$(this).find('.err_msg').fadeOut(200);var validation=validate_contact(e);for(var i=0;iOops, something went wrong and we couldn't send your message :(
");$('#contact_fail').fadeIn();break;default:console.log(jqXHR,textStatus,errorThrown);}}});} function get_max($el){var max=0;$el.each(function(){var this_h=$(this).outerHeight();if(this_h>max)max=this_h;});return max;} $(".sidebar h5").click(function(e){e.preventDefault();$(this).parent().find(".tgl_c").slideToggle(300);if($(this).hasClass("active")){$(this).removeClass('active');}else{$(this).addClass('active');}});$(".menubtn a").click(function(e){e.preventDefault();if($(this).parent().find(".menu_c").is(':hidden')){$('.menubtn .menu_c').hide();$(this).parent().find(".menu_c").slideToggle(300);}else{$('.menubtn .menu_c').hide();$(this).parent().find(".menu_c").hide();}});$('input').iCheck({checkboxClass:'icheckbox_minimal',radioClass:'iradio_minimal',increaseArea:'20%'});});