;(function($) {
"use strict";
var navbar=$('.header_menu, .middle_menu_area, .header_white_menu');
var nav_offset_top = $('.header_menu, .middle_menu_area, .header_white_menu').offset().top + 60;
/*-------------------------------------------------------------------------------
Navbar
-------------------------------------------------------------------------------*/
navbar.affix({
offset: {
top: nav_offset_top,
}
});
navbar.on('affix.bs.affix', function() {
if (!navbar.hasClass('affix')){
navbar.addClass('animated slideInDown');
}
});
navbar.on('affixed-top.bs.affix', function() {
navbar.removeClass('animated slideInDown');
});
/*------- search form js -------*/
$('.search_dropdown a').on('click', function(){
if( $(this).parent().hasClass('open') ){
$(this).parent().removeClass('open')
}
else{
$(this).parent().addClass('open')
$('.offcanvas_closer').addClass('show')
}
return false
});
// var navbar2=$('.middle_menu_area');
// /*-------------------------------------------------------------------------------
// Navbar
// -------------------------------------------------------------------------------*/
//
// navbar2.affix({
// offset: {
// top: 1,
// }
// });
//
//
// navbar2.on('affix.bs.affix', function() {
// if (!navbar2.hasClass('affix')){
// navbar2.addClass('animated slideInDown');
// $('body').addClass('fixed');
// }
// });
//
// navbar2.on('affixed-top.bs.affix', function() {
// navbar2.removeClass('animated slideInDown');
// $('body').removeClass('fixed');
//
// });
// stick menu function
// var nav_offset_top = $('.header_menu').offset().top;
//
// if ( nav_offset_top == 0 ){
// nav_offset_top = 1
// }
//
// $('.header_menu').affix({
// offset: {
// top: nav_offset_top,
// }
// });
/*----------------------------------------------------*/
/* Main Slider js
/*----------------------------------------------------*/
function main_slider(){
if ( $('#main_slider').length ){
$("#main_slider").revolution({
sliderType:"standard",
sliderLayout:"auto",
delay:4000,
disableProgressBar:"on",
navigation: {
onHoverStop: 'off',
touch:{
touchenabled:"on"
},
arrows: {
style:"zeus",
enable:true,
hide_onmobile:true,
hide_under:767,
hide_onleave:true,
hide_delay:200,
hide_delay_mobile:1200,
tmp:'
',
left: {
h_align: "left",
v_align: "center",
h_offset: 50,
v_offset: 0
},
right: {
h_align: "right",
v_align: "center",
h_offset: 50,
v_offset: 0
}
},
},
responsiveLevels:[4096,1199,992,767,480],
gridwidth:[1170,1000,750,700,300],
gridheight:[760,760,760,600,500],
lazyType:"smart",
fallbacks: {
simplifyAll:"off",
nextSlideOnWindowFocus:"off",
disableFocusListener:false,
}
})
}
}
main_slider();
/*----------------------------------------------------*/
/* Main Slider js
/*----------------------------------------------------*/
function main_slider3(){
if ( $('#main_slider3').length ){
$("#main_slider3").revolution({
sliderType:"fullwidth",
sliderLayout:"auto",
delay:4000,
disableProgressBar:"on",
navigation: {
onHoverStop: 'off',
touch:{
touchenabled:"on"
},
arrows: {
style:"zeus",
enable:true,
hide_onmobile:true,
hide_under:767,
hide_onleave:true,
hide_delay:200,
hide_delay_mobile:1200,
tmp:'',
left: {
h_align: "left",
v_align: "center",
h_offset: 50,
v_offset: 0
},
right: {
h_align: "right",
v_align: "center",
h_offset: 50,
v_offset: 0
}
},
},
responsiveLevels:[4096,1199,992,767,480],
gridwidth:[1170,1000,750,700,300],
gridheight:[655,655,760,600,500],
lazyType:"smart",
fallbacks: {
simplifyAll:"off",
nextSlideOnWindowFocus:"off",
disableFocusListener:false,
}
})
}
}
main_slider3();
/*----------------------------------------------------*/
/* Main Slider js
/*----------------------------------------------------*/
function main_slider4(){
if ( $('#main_slider4').length ){
$("#main_slider4").revolution({
sliderType:"fullwidth",
sliderLayout:"auto",
delay:4000,
disableProgressBar:"on",
navigation: {
onHoverStop: 'off',
touch:{
touchenabled:"on"
},
arrows: {
style:"zeus",
enable:true,
hide_onmobile:true,
hide_under:767,
hide_onleave:true,
hide_delay:200,
hide_delay_mobile:1200,
tmp:'',
left: {
h_align: "left",
v_align: "center",
h_offset: 50,
v_offset: 0
},
right: {
h_align: "right",
v_align: "center",
h_offset: 50,
v_offset: 0
}
},
},
responsiveLevels:[4096,1199,992,767,480],
gridwidth:[1170,1000,750,700,300],
gridheight:[680,680,760,600,500],
lazyType:"smart",
fallbacks: {
simplifyAll:"off",
nextSlideOnWindowFocus:"off",
disableFocusListener:false,
}
})
}
}
main_slider4();
/*----------------------------------------------------*/
/* Main Slider js
/*----------------------------------------------------*/
function main_slider5(){
if ( $('#main_slider5').length ){
$("#main_slider5").revolution({
sliderType:"fullwidth",
sliderLayout:"auto",
delay:5000,
disableProgressBar:"on",
navigation: {
onHoverStop: 'off',
touch:{
touchenabled:"on"
},
arrows: {
style:"zeus",
enable:true,
hide_onmobile:true,
hide_under:767,
hide_onleave:true,
hide_delay:200,
hide_delay_mobile:1200,
tmp:'',
left: {
h_align: "left",
v_align: "center",
h_offset: 50,
v_offset: 0
},
right: {
h_align: "right",
v_align: "center",
h_offset: 50,
v_offset: 0
}
},
},
responsiveLevels:[4096,1199,992,767,480],
gridwidth:[1170,1000,750,700,300],
gridheight:[630,630,760,600,500],
lazyType:"smart",
fallbacks: {
simplifyAll:"off",
nextSlideOnWindowFocus:"off",
disableFocusListener:false,
}
})
}
}
main_slider5();
// if($(window).width() <= 992){
// $('.submenu a').on('click', function() {
// $('.submenu').toggleClass('open');
// $(this).parent().find('> ul').slideToggle(350);
// return false
// });
// }
/*----------------------------------------------------*/
/* Submenu js
/*----------------------------------------------------*/
// var dropToggle =$('.submenu').has('ul').children('a');
//
// if($(window).width() <= 992){
// dropToggle.on('click',function(){
// dropToggle.not(this).closest('li').find('ul').slideUp(700);
// $(this).closest('li').children('ul').slideToggle(700);
// return false;
// });
// }
//
// $( '.submenu a[href="#"]' ).click( function(e) {
// e.preventDefault();
// });
// function sideNav(){
// if ( $('.carrers_left').length ){
// var sideNavTop = $('.carrers_left').offset().top;
// $('.carrers_left').affix({
// offset: {
// top: sideNavTop,
// bottom: function () {
// return (this.bottom = $('footer').outerHeight(!0) + 110);
// }
// }
// })
// }
// }
// sideNav();
})(jQuery)