$(document).ready(function() {
	
		
		if(0){
			
	  		$("#top-slider img").css({
	  			width: ($(document).width() +100)
	  		});
	  		
	  		var pano      = $("#top-slider"),
	  		    panoImg   = $("#top-slider img"),
	  		    w         = panoImg.width(),
	  		    panoWidth = pano.width(), // this is the width of the container in pixels
	  		    cx        = (w-panoWidth)/panoWidth,
	  		    lastx     = 0;
	  		
	  		pano.css({
	  		     width  : panoWidth,
	  		     height : panoImg.height(),
	  		     overflow : 'hidden'
	  		});
			
	  		$(document).mousemove(function(e){
	  		
	  		    var x = e.pageX-pano.offset().left; // mouse x coordinate relative to the container
	  		    if (Math.abs(lastx-x)<=1) return; // only do something if the mouse X coordinate moved more than 1 pixel
	  		    
	  		    lastx = x;
	  		    
	  		    panoImg.css({ marginLeft : -cx*(x/2) });
	  		           
	  		});
	  		
	  		$(window).resize(function(){
	  			
	  			$("#top-slider img").css({
	  				width: ($(window).width() + 100)
	  			});
	  			
	  			$("#top-slider").css({
	  				width:$(window).width()
	  			});
	  		});
	  
	  }else{ 		
	  		
	  		$(document).mousemove(function(e){
	  			
	  			var topImage = $("#top-slider img");
	  			
	  			$(topImage).css({ left : (55 - ((e.pageX / $(window).width()) * 10)) + 5 + '%' });
	  		});
			
	  }
});

$(function(){
	$('.menu').find('> li').hover(function(){
		
		var curPos = $(this).position();
		
		$("ul", this).css({left: curPos.left, top: (curPos.top+10)});
		
		$(this).find('ul')
		.removeClass('noJS')
		.stop(true, true).slideToggle('fast');
	});
});
