




		
	$(document).ready(function() {
		
		
		
		$('div.contents a.product-big').addClass('fancybox');
		$('.plinks a').addClass('fancybox');
		
		$('a.fancybox').fancybox( {
				'zoomSpeedIn': 300,
				'zoomSpeedOut': 300,
				'overlayOpacity': 0.7,
				'zoomOpacity': true
		});
		
	//	$(".productTag2").equalHeights();

		
		/* alternate rows in table */
		$('table.prices tr:even').addClass('even');
		$('table.prices tbody tr:first-child').addClass('firstrow'); /*First row*/
		$('table.prices tbody tr:last-child').addClass('lastrow'); /*Last Row*/
		
		
		/* preload popup background */
		$('<img>').attr('src','images/backgrounds/popup.png');
				
		/* remove right margin from last box in a row */
		$('.row > .box:last-child').css('margin-right',0);
				
		/* NEW TABS */
		$('ul.tabs').tabs('div.panes div');
		
		/* first dropdown header - change margin */
		$('.drop > ul > li:first-child > a.dropnavhead').addClass('dropnavheadfirst');
		
				
		/* go button hover */
		$('button').hover( function() { $(this).addClass('hover'); }, function() { $(this).removeClass('hover'); });
			
		//$('.plinks a').click(function() {
//			var i = $(this).attr('href');
//			$('.pimg img').fadeOut('fast',function() { $(this).attr('src',i).fadeIn('fast'); });
//			return false;
//		});
		
		
		
		/* related products select all */
		$('.select_all').click(function() { $(this).parents('div').eq(0).find(':checkbox').each(function() { this.checked = true; }); return false; });
		
		/* pool input boxes */
		$('.oTsearch input').focus(function() { if($(this).val() == 'Enter Keyword or Item#') $(this).val(''); });
		$('.oTsearch input').blur(function() { if($(this).val() == '') $(this).val('Enter Keyword or Item#'); });
		
		$('.newsletter input').focus(function() { if($(this).val() == 'Enter Email Address') $(this).val(''); });
		$('.newsletter input').blur(function() { if($(this).val() == '') $(this).val('Enter Email Address'); });
							
	});	