/*
 *
 * jQuery Functions 
 * Resto Pub City (2009)
 *
 * Powered by jQuery (http://www.jquery.com)
 * Written by Simon Bouchard (http://www.simonbouchard.com)
 *
*/

/* Image Loading Effect */
var i = 0; 
var int=0; 

function ImageLoading() {
	var images = $('.load').length;
	if (i >= images) {
		clearInterval(int);
		delete int;
	}
	$('.load:hidden').eq(0).fadeIn(200);
	i++;
}

function LoadImageLoading() {
	$('.load').hide()
	setInterval("ImageLoading(i)",500);
}

/* Image Fade Effect */
function LoadFadeImage() {
	$(".fade").fadeTo(125, 0.9); 
	
	$(".fade").hover(function(){
		$(this).fadeTo(75, 1.0); 
	},
	
	function(){
		$(this).fadeTo(125, 0.9);
	});
}

$(document).ready(function(){	
	
	LoadFadeImage();
	LoadImageLoading();

	/* CUFON */
	Cufon.now();

});  

