// JavaScript Document
jQuery.noConflict();
jQuery(document).ready(function($) {
	var width_li=($(window).width());
	 $(".liclass").css("width",width_li);


	/*$('div.people li').hover(
	  function() { var person = $(this).attr('id'); fnShowProfile(people[person][0], people[person][1], people[person][2], people[person][3]) },
	  function() { fnReturnProfile() }		
	);*/
	
	
	if ($('.mainbody.home').length > 0) { 
    // var m1 = 0.01;
    // var m2 = 0.01;
    // var m3 = 0.025;
		var m1 = 0.01;
		var m2 = 0.0125;
		var m3 = 0.015;
		var m1 = 0.01;
		var m2 = 0.0125;
		
	} else {
		var m3 = 0.015;
	};
	
	$('.mainbody').parallax({
	  'elements': [
	    {
	      'selector': 'div.back',
	      'properties': {
	        'x': {
	          'background-position-x': {
	            'initial': -10,
	            'multiplier': m1,
	            'invert': true
	          }
	        }
	      }
	    },
			 {
	      'selector': 'div.middle',
	      'properties': {
	        'x': {
	          'background-position-x': {
	            'initial': -10,
	            'multiplier': m1,
	            'invert': true
	          }
	        }
	      }
	    },
			 {
	      'selector': 'div.front',
	      'properties': {
	        'x': {
	          'background-position-x': {
	            'initial': 0,
	            'multiplier': m3
	          }
	        }
	      }
	    },
			 {
	      'selector': 'div.moblie',
	      'properties': {
	        'x': {
	          'background-position-x': {
	            'initial': -10,
	            'multiplier': 0.0125,
	            'invert': true
	          }
	        }
	      }
	    },
			{
	      'selector': 'div.bgmoblie',
	      'properties': {
	        'x': {
	          'background-position-x': {
	           
	          'multiplier':0.015,
	            'unit': '%'
	          }
	        }
	      }
	    },
	    {
	      'selector': 'div.mobile1',
	      'properties': {
	        'x': {
	          'background-position-x': {
	            'initial': 7,
	          'multiplier':0.00125,
	            'unit': '%'
							
	          }
	        }
	      }
	    },
			{
	      'selector': 'div.mobile2',
	      'properties': {
	        'x': {
	          'background-position-x': {
	            'initial': -250,
	          	'multiplier': 0.012,
	           
							 'invert': true
	          }
	        }
	      }
	    },
			{
	      'selector': 'div.mobile3',
	      'properties': {
	        'x': {
	          'background-position-x': {
	            'initial': -380,
	            'multiplier': 0.006,
	            'invert': true
	          }
	        }
	      }
	    },
	   {
	      'selector': 'div.mobile4',
	      'properties': {
	        'x': {
	          'background-position-x': {
	             'initial': -400,
	          	'multiplier': 0.0125,
	           'invert': true
	          }
	        }
	      }
	    },
			{
	      'selector': 'div.mobile5',
	      'properties': {
	        'x': {
	          'background-position-x': {
	            'initial': 50,
	            'multiplier':0.00125,
	            'unit': '%'
	          }
	        }
	      }
	    }
			
	  ]
	});
	

	/*$(window).scroll(function() {
		if ($(window).scrollTop() > 345) { 
			$(".floating_menu_outer").css('position', 'fixed');
			$(".floating_menu_outer").css('top', '50px');
		} else {
			$(".floating_menu_outer").css('position', 'absolute');
			$(".floating_menu_outer").css('top', '-9px');
		};
	});
	

	var scrollElement = 'html, body';
	$('html, body').each(function () {
		var initScrollTop = $(this).attr('scrollTop');
		$(this).attr('scrollTop', initScrollTop + 1);
		if ($(this).attr('scrollTop') == initScrollTop + 1) {
			scrollElement = this.nodeName.toLowerCase();
			$(this).attr('scrollTop', initScrollTop);
			return false;
		}    
	});
	
	// Smooth scrolling for internal links
	$("a[href^='#']").click(function(event) {
		event.preventDefault();
		
		var $this = $(this),
		target = this.hash,
		$target = $(target);
		
		$(scrollElement).stop().animate({
			'scrollTop': $target.offset().top 
		}, 500, 'swing', function() {
			window.location.hash = target;
		});
		
	});*/
});
 
