// JavaScript Document -- REQUIRES jQUERY ++ "getRealPos" FROM "global.js"
jQuery(function(){
	//productnav pop-ups;
	$('.product_list li').each(function(){
		$(this).hover(function(){
			//mouseover
			var productTitle = $(this).children('h3').text();
			var thisOffset = getRealPos(this, $('#main'));
			var popup = {
				x: thisOffset.x+230+'px',
				y: thisOffset.y-6+'px'
			};
			$("#name_popup").css({left: popup.x, top: popup.y}).addClass('active').children('span').text(productTitle);
		}, function(){
			//mouseout
			$("#name_popup").removeClass('active').children('span').text('default');
		});
	});
});
