$j(window).load(function(){

	$j('#login-box').hide();
$j('#reveal').fadeIn('slow', function(){
	$j('#login-box').fadeIn('slow');	
	});

$j('#close_but').click(function(){
	$j('#popup_container').fadeOut('fast');
	reset();
	return false;
	});
	
$j('.hide').hide();
$j('[title]').removeAttr('title');

$j(function (tomatoeLoad) {
  var img = new Image();
  
  // wrap our new image in jQuery, then:
  $j(img)
    // once the image has loaded, execute this code
    .load(function () {
      // set the image hidden by default    
      $j(this).hide();
    
      // with the holding div #loader, apply:
      $j('#tomatoes')
        // remove the loading class (so no background spinner), 
        .removeClass('loading')
        // then insert our image
       
    
      // fade our image in to create a nice effect
      
    })
    
    // if there was an error loading the image, react accordingly
    .error(function () {
      // notify the user that the image could not be loaded
    })
    
    // *finally*, set the src attribute of the new image to our image
    .attr('src', 'https://www.littleitalie.com/home/images/tomatoe-sprite.png');
});


$j(function (seasoningLoad) {
  var img = new Image();  
  $j(img)
    .load(function () {
      $j(this).hide();
      $j('#seasoning')
        .removeClass('loading')
    })
    .error(function () {
      // notify the user that the image could not be loaded
    })
	.attr('src', 'https://www.littleitalie.com/home/images/sprite-cruet.png');
});
$j(function (hamLoad) {
  var img = new Image();  
  $j(img)
    .load(function () {
      $j(this).hide();
      $j('#ham')
        .removeClass('loading')
    })
    .error(function () {
      // notify the user that the image could not be loaded
    })
	.attr('src', 'https://www.littleitalie.com/home/images/sprite-ham.jpg');
});
$j(function (fishLoad) {
  var img = new Image();  
  $j(img)
    .load(function () {
      $j(this).hide();
      $j('#fish')
        .removeClass('loading')
    })
    .error(function () {
      // notify the user that the image could not be loaded
    })
	.attr('src', 'https://www.littleitalie.com/home/images/sprite-fish.png');
});
$j(function (cheeseLoad) {
  var img = new Image();  
  $j(img)
    .load(function () {
      $j(this).hide();
      $j('#cheese')
        .removeClass('loading')
    })
    .error(function () {
      // notify the user that the image could not be loaded
    })
	.attr('src', 'https://www.littleitalie.com/home/images/sprite-cheese.png');
});
$j(function (pastaLoad) {
  var img = new Image();  
  $j(img)
    .load(function () {
      $j(this).hide();
      $j('#pasta')
        .removeClass('loading')
    })
    .error(function () {
      // notify the user that the image could not be loaded
    })
	.attr('src', 'https://www.littleitalie.com/home/images/sprite-pasta.png');
});

/* The cloud labels
$j('a#cheese').hover(
function(){
	$j('span#cheesetitle').fadeIn('slow');
}, 
function (){
	$j('span#cheesetitle').fadeOut('fast');
}	
	);

$j('a#ham').hover(
function(){
	$j('span#hamtitle').fadeIn('slow');
}, 
function (){
	$j('span#hamtitle').fadeOut('fast');
}	
	);
	
$j('a#seasoning').hover(
function(){
	$j('span#seasoningtitle').fadeIn('slow');
}, 
function (){
	$j('span#seasoningtitle').fadeOut('fast');
}	
	);
	
$j('a#fish').hover(
function(){
	$j('span#fishtitle').fadeIn('slow');
}, 
function (){
	$j('span#fishtitle').fadeOut('fast');
}	
	);
	
$j('a#tomatoes').hover(
function(){
	$j('span#tomatoestitle').fadeIn('slow');
}, 
function (){
	$j('span#tomatoestitle').fadeOut('fast');
}	
	);
	
$j('a#pasta').hover(
function(){
	$j('span#pastatitle').fadeIn('slow');
}, 
function (){
	$j('span#pastatitle').fadeOut('fast');
}	
	);

*/
});


