$(function() {
	   $("ul.tabs").tabs("div.tabContent > div");
	   $("a[rel^='prettyPhoto']").prettyPhoto();
	   $('#homeImage').cycle({
	   	cleartypeNoBg: true,
		cleartype:true
	   });
	   $('#homeQuotes').cycle({
	   	delay:  9000, 
    	speed:  900,
		random: 1,
		cleartypeNoBg: true,
		cleartype:true 
		});
	   $('.navLink').each ( function() {
		   if ($(this).children().text() == currentPage) {
			   	$(this).css({backgroundPosition: '0 0', fontSize: '20px', cursor: 'default'}).children().css({ cursor: 'default'});
				$(this).next().css({
					backgroundPosition: '0 0'
				});
				$(this).prev().css({
					backgroundPosition: '0 0'
				});
		   } else {
			   	$(this).css({backgroundPosition: '0 700px'});
			   	$(this).prev().css({backgroundPosition: '0 700px'});
			   	$(this).next().css({backgroundPosition: '0 700px'});
				$(this).hover( function() {
					$(this).css({backgroundPosition: '0 0', fontSize: '20px'});
					$(this).next().css({
					backgroundPosition: '0 0'
				});
					$(this).prev().css({
					backgroundPosition: '0 0'
				});
											 }, function() {
					$(this).css({backgroundPosition: '0 700px', fontSize: '16px'});
					$(this).next().css({
					backgroundPosition: '0 700px'
				});
					$(this).prev().css({
					backgroundPosition: '0 700px'
				});									
				});

		   }
	   });
	   

	$('#menuMid ul li:not(.sideMenuSpacer)').hover( function() {
			if ($(this).is(':last-child')) {
				$(this).animate({
					backgroundPosition: '-285px 0',
					fontSize: '20px'
				}, 500);
			} else {
				$(this).animate({
					backgroundPosition: '-240px 0',
					fontSize: '20px'
				}, 500);
			}
	}, function() {
		$(this).animate({backgroundPosition: '-500px 0', fontSize: '18px'}, 500);
	});
	$('.orderBtn').hover( function() {
			$(this).css({backgroundPosition: '0 -46px'});
		}, function () {
			$(this).css({backgroundPosition: '0 0'});
	});
 });
