	$(document).ready(function(){
		//$('#imageContainer a').lightBox(); 

		$('.animate').mouseenter(function() {
			$(this).animate({marginBottom: "10px"}, { queue:false, duration:250 });
		});
		
		$('.animate').mouseleave(function() {
			$(this).animate({marginBottom: "0px"}, { queue:false, duration:250 });
}); 
		
	/*	$('#order-from a').click(function() {
			if ( !$(this).hasClass('selected') ) {
				$('#order-from a').removeClass('selected');
				$(this).addClass('selected');
			}
			$('#overlay').remove();
			if ( !$('#order-from .hint').hasClass('hidden') )
				!$('#order-from .hint').addClass('hidden');
			return false;
		});*/
		$('.date-choise table tbody td.d').click(function() {debugger
			$('.date-choise table tbody td.d').removeClass('selected');
			$('.date-choise table tbody tr').removeClass('s');
			$(this).addClass('selected');
			$(this).parent().addClass('s');
		});
		
		$('.date-choise .close').click(function() {
			$('.date-choise').addClass('hidden');
			return false;
		});
		
		$('.make-order, .i-cal').click(function() {
			$('.date-choise').toggleClass('hidden');
			return false;
		});
		
		$('.b-radius-g td.count input').focus(function() {
			$(this).parent().parent().addClass('s');
		});
		
		$('.b-radius-g td.count input').blur(function() {
			$(this).parent().parent().removeClass('s');
		});

		$('.scroll-r').click(function() {
			var tape = $(this).parent().find('.tape');
			var container = tape.parent();
			var cwidth = container.width();
			var tWidth = tape.width();
			var tleft = tape.offset().left - container.offset().left - 3;
			var newLeft = tleft-171;
			if (tWidth > (cwidth - tleft + 5)) {
				tape.animate({left: newLeft + "px"}, { queue:false, duration:250 });	
			}
			return false;
		});

		$('.scroll-l').click(function() {
			var tape = $(this).parent().find('.tape');
			var container = tape.parent();
			var cwidth = container.width();
			var tWidth = tape.width();
			var tleft = tape.offset().left - container.offset().left - 3;
			var newLeft = tleft+171;
			if (tleft < 0) {
		
				tape.animate({left: newLeft + "px"}, { queue:false, duration:250 });	
			}
			return false;
		});
		
		$('#compleate-order').click(function() {
			$('#overlay, .order-recive').removeClass('hidden');
			return false;
		});
		
		$('.order-recive .close, .order-recive .close-big').click(function() {
			$('#overlay, .order-recive').addClass('hidden');
			return false;
		});
		
		$('.footer .banners a').mouseenter(function() {
			$(this).find('.b-icon').animate({bottom: "27px"}, { queue:false, duration:350 });
		});
		
		$('.footer .banners a').mouseleave(function() {
			$(this).find('.b-icon').animate({bottom: "10px"}, { queue:false, duration:350 });
		});
		
	});
