jQuery(function ($) {
		
/* jQuery Tools - Overlay */
	jQuery("#header a[rel], #footnotes a[rel], #logina a, #singleMainContent .shipping_info a, #singleMainContent .add_to_wishlist_inactive a, #floatswrap .order_table a[rel], #singleMainContent .supplinfo a").each(function(i) {
			
		jQuery(this).overlay({
			effect: 'apple'
		});			
	});		
	

/* Multiple Product Pages - Image Hover */
	jQuery('#floatswrap .contentWrap').hover(function(){
		var $go = jQuery(this).find('.hover_link');
		$go.stop().animate({opacity:'0'},{queue:false,duration:500});
	}, function(){
		var $go = $(this).find('.hover_link');
		$go.stop().animate({opacity:'1'},{queue:false,duration:500});
	});

/* Single Product Page - jQuery Tools - Tabs*/
	jQuery("#singleMainContent .related .tabs").tabs("div.panes > div", { event:'mouseover' });
	
/* Single Product Page - Adjacent Products */
	jQuery('.adjacentProd').hover(function(){
		var $showME = jQuery(this).find('.adjacentImg');
		$showME.stop(false,true).fadeIn("slow");
	}, function(){
		var $showME = jQuery(this).find('.adjacentImg');
		$showME.stop(false,true).fadeOut("slow");
	});
	
/* Single Product Page - Main Product Image Tabs Add current class  */
	jQuery("#singleMainContent .thumbTabs li:first-child .thumbTab, #singleMainContent .inner_thumbTabs li:first-child .thumbTab").addClass('current');
	jQuery("#singleMainContent .thumbTabs .thumbTab, #singleMainContent .inner_thumbTabs .thumbTab").mouseover(function() {
		jQuery(this).addClass('current').parent().siblings().children().removeClass('current');
	});
	
});	

jQuery(window).load(function(){

/* EQUAL HEIGHTS (fire this when everything has loaded for correct height calculation) */
	jQuery.fn.equalHeights = function() {
		var maxheight = 0;
		jQuery(this).children().each(function(){
			maxheight = (jQuery(this).height() > maxheight) ? jQuery(this).height() : maxheight;
		});
		jQuery(this).children().css('height', maxheight);
	}
	jQuery('#floatswrap .eqcol').equalHeights();

});

/* FONT REPLACEMENT */
