$(function() {
	$('#subMenu > ul > li > a').wrap('<span></span>').prepend('&raquo; ')
	$('#subMenu > ul > li > ul > li a, \
	   #subMenu > ul > li > ul > li span, \
	   #subMenu > ul > li > ul > li > ul > li a').prepend('&rsaquo;&rsaquo; ');
	$('#subMenu li, \
	   .sports .box, .box li').hover(
		function() { $(this).addClass('active')/*.prev().addClass('prev').next().next().addClass('next')*/ },
		function() { $(this).removeClass('active')/*.prev().removeClass('prev').next().next().removeClass('next')*/ }
	);
	$('.productCategory a').prepend('&raquo; ');
	$('.box > a').hover(
		function() {
			$(this).css({'z-index':'100'})
			$(this).animate({left:'10px'},100);
		},
		function() {
			$(this).animate({left:'-5px'},100).animate({left:'0'},100);
		}
	);
	$('.thumbs div').hover(
		function() { $(this).addClass('active') },
		function() { $(this).removeClass('active') }
	);
	//$('.productsColors a, .productSwitching div a').tooltip('#tip',-40,-40);
	$('.productsColors a').click(
		function() {
			$('#product').attr('src', $(this).attr('href'));
			$('.zoom a').attr('href', $(this).attr('rel'));
			$('.productsColors').children('a').removeClass('active');
			$('.thumbs').children('div').removeClass('current');
			$(this).addClass('active');
			return false;
		}
	);
	$('.catalog .item').hover(
		function() { $(this).addClass('item-active') },
		function() { $(this).removeClass('item-active') }		
	)
	$('.thumbs div').click(
		function() {
			$('#product').attr('src', $(this).children('a').attr('href'));
			$('.zoom a').attr('href', $(this).children('a').attr('rel'));
			$('.productsColors').children('a').removeClass('active');
			$('.thumbs').children('div').removeClass('current');
			$(this).addClass('current');
			return false;
		}
	);
})
function popCentered(fileURL,windowName,contentWidth,contentHeight) {
	var x = (screen.width) ? ( screen.width - contentWidth ) / 2 : 0;
	var y = (screen.height) ? ( screen.height - contentHeight ) / 2 : 0;
	var settings = 'height=' + contentHeight + ',width=' + contentWidth + ',top='+y+',left='+x+',resizable=no,status=no,menubar=no,scrollbars=no';
	myWin = window.open(fileURL,"_blank",settings);
}