// JavaScript Document
function FloatMenu(){
	var animationSpeed=1500;
	var animationEasing='easeOutQuint';
	var scrollAmount=$(document).scrollTop();
	var newPosition=menuPosition+scrollAmount;
	if($(window).height()<$('#fl_menu').height()+$('#fl_menu .menu').height()){
		$('#fl_menu').css('top',menuPosition);
	} else {
		$('#fl_menu').stop().animate({top: newPosition}, animationSpeed, animationEasing);
	}
}
$(window).load(function() {
	menuPosition=$('#fl_menu').position().top;
	FloatMenu();
});
$(window).scroll(function () { 
	FloatMenu();
});
jQuery(document).ready(function(){
	var fadeSpeed=500;
	$("#fl_menu").hover(
		function(){ //mouse over
			$('#fl_menu .label').fadeTo(fadeSpeed, 1);
			$("#fl_menu .menu").fadeIn(fadeSpeed);
		},
		function(){ //mouse out
			$('#fl_menu .label').fadeTo(fadeSpeed, 0.75);
			$("#fl_menu .menu").fadeOut(fadeSpeed);
		}
	);
	$(".price_selector").slider({
				range: true,
				min: 0,
				max: 5,
				step: 0.25,
				values: [ 0, 5 ],
				slide: function( event, ui ) {
					
					$("#amount").html( "$ " + ui.values[ 0 ] + " a $ " + ui.values[ 1 ] + (ui.values[ 1 ] == 500 ? "+" : ""));
				}
			});
});
$(document).ready(function() {
        var hide = false;
        $(".pro_cont li").hover(function(){
		$(this).children('div.info_box').stop(true,true).fadeIn();
			}, function() {
			$(this).children('div.info_box').stop(true,true).fadeOut("fast");
        });
	});
	
	
$(document).ready(function() {
        var hide = false;
        $(".nav li").hover(function(){
		$(this).children('ul.women_sub').stop(true,true).fadeIn("fast");
			}, function() {
			$(this).children('ul.women_sub').stop(true,true).fadeOut("fast");
        });
	});
