﻿/// <reference path="../jquery-1.3.2.js"/>

if(typeof(Impulse) == 'undefined') Impulse = {};
if(typeof(Impulse.Explore) == 'undefined') Impulse.Explore = {};

Impulse.Explore.Catalog = {
	init: function() {
		Impulse.Explore.Catalog.initProducts();
	},
	initProducts: function() {
		$("table.product_listing > tbody > tr").hover(
			function() {
				$(this).find('td').css('background-color', '#464e56');
			},
			function() {
				$(this).find('td').css('background-color', '#323b44');
		});
//		$('table.product_listing > tbody').find('tr').bind('mouseenter', function() {
//			$(this).find('td').css('background-color', '#464e56');
//		});
//		$('table.product_listing > tbody').find('tr').bind('mouseleave', function() {
//			$(this).find('td').css('background-color', '#323b44');
//		});
		$('a.region_restricted').tooltip({
			showURL: false,
			extraClass: 'region_tooltip'
		});
	}
};

$(document).ready(function() {
	Impulse.Explore.Catalog.init();
});