/*
 *
 * functions.js
 * Resto Pub City (2009)
 *
 * Custom functions for all kind of stuff.
 *
*/

/* Images Rollover */
var IECHECK = 1;

function doImageHovers()
{
	if (IECHECK == '1') {
		$('.tnImage').each(function () {
			var $this = $(this);
			$this.hover(
				function () {
					$this.css('background-position','0px 200px');
					$this.css({cursor:"pointer"});
				},
				function () {
					$this.css('background-position','0px 0px');
					$this.css({cursor:"default"});
				}
			);
		});
	}
	else {
		$('.tnImage').each(function () {
			var $this = $(this);
			$this.hover(
				function () {
					$this.stop().animate({backgroundPosition: '(0px 200px)'}, 200);
				},
				function () {
					$this.stop().animate({backgroundPosition: '(0px 0px)'}, 200);
				}
			);
		});
	}
}


$(document).ready(function(){	
	
	doImageHovers();

});

