;(function($){
	Drupal.behaviors.mainMenu={
		attach:function(context,settings){
			var menu=$('.nav-bar li.expanded');
			var supportsTouch = 'ontouchstart' in window || navigator.msMaxTouchPoints;
			var nav=$('#nav');
			if (!supportsTouch) {
				menu.mouseover(function(){
					$(this).addClass('over');
				});
				menu.mouseout(function(){
					$(this).removeClass('over');
				});
			} else {
				menu.find('>a').click(function(event){
					$(this.parentNode).addClass('over');
					event.stopPropagation();
					event.preventDefault();
				});
				$('body').click(function(event){
					menu.removeClass('over');
				});
			}
			$(window).scroll(function(){
				var height=window.screen.availHeight;
				var scroll=document.body.scrollTop;
				if (scroll>100) {
					nav.addClass('fixed');
				} else {
					nav.removeClass('fixed');
				}
			});
		}
	}
	Drupal.behaviors.swipeSlide={
		attach:function(context,settings) {
			var slide=document.getElementById('front-slider');
			var controller=$('.slide-controller span');
			if (slide) {
				window.mySwipe = new Swipe(slide,{
					  speed: 1500,
					  auto: 8000,
					  continuous: true,
					  disableScroll: false,
					  stopPropagation: false,
					}
				);
				controller.each(function(index){
					$(this).click(function(){
						window.mySwipe.slide(index);
					});
				});
			}
		}
	}
	Drupal.behaviors.mobileNav={
		attach:function(context,settings) {
			var menu=$('.mobile-main-menu>.menu');
			var btn=$('.mobile-main-menu .navbar-toggle');
			var nav=$('.navbar-header');
			var expand=$('.mobile-main-menu > .menu > .menu li.expanded > a');
			btn.click(function(){
				$(this).toggleClass('collpased');
			});
			nav.click(function(){
				if (btn.hasClass('collpased')) {
					menu.slideDown();
				} else {
					menu.slideUp();
				}
			});
			expand.click(function(event){
				var that=$(this);
				var menu=that.next();
				that.toggleClass('show-menu');
				if (that.hasClass('show-menu')) {
					menu.slideDown();
					event.preventDefault();
				} else {
					menu.slideUp();
					event.preventDefault();
				}
			});
		}
	};
	Drupal.behaviors.tri={
		attach:function(){
			var tri=$('.tri');
			var div=tri.find('>div');
			function inViewport (el) {
    			var rect = el[0].getBoundingClientRect();
    		return (
	        		rect.top >= 0 &&
	        		rect.left >= 0 &&
	        		rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && /*or $(window).height() */
	        		rect.right <= (window.innerWidth || document.documentElement.clientWidth) /*or $(window).width() */
    			);
			}
			$(window).scroll(function(){
				if (inViewport(tri)){
					for (var i=0;i<3;i++) {
						window.setTimeout((function(i){
							div.eq(i).addClass('inview');
						})(i),i*500)
					}
				}
			});
		}
	};
})(jQuery)

@@ -2586,32 +2586,70 @@
 %0A    %09%09%09);%0A%09%09%09%7D%0A
+%09%09%09if ($('body').hasClass('front'))%7B%0A%09
 %09%09%09$(window).scr
@@ -2656,32 +2656,33 @@
 oll(function()%7B%0A
+%09
 %09%09%09%09if (inViewpo
@@ -2696,16 +2696,17 @@
 )%7B%0A%09%09%09%09%09
+%09
 for (var
@@ -2717,24 +2717,25 @@
 ;i%3C3;i++) %7B%0A
+%09
 %09%09%09%09%09%09window
@@ -2760,16 +2760,17 @@
 ion(i)%7B%0A
+%09
 %09%09%09%09%09%09%09d
@@ -2804,16 +2804,17 @@
 ;%0A%09%09%09%09%09%09
+%09
 %7D)(i),i*
@@ -2819,26 +2819,28 @@
 i*500)%0A%09%09%09%09%09
+%09
 %7D%0A
+%09
 %09%09%09%09%7D%0A%09%09%09%7D);
@@ -2828,36 +2828,42 @@
 %09%09%09%09%7D%0A%09%09%09%09%09%7D%0A%09%09%09
+%09
 %7D);%0A
+%09%09%09%7D%0A
 %09%09%7D%0A%09%7D;%0A%7D)(jQuer

fix js bug