jQuery(function ($) {

		

/* jQuery Tools - Overlay */

	$("#header a[rel], #footnotes a[rel], #singleMainContent .shipping_info a, #singleMainContent .add_to_wishlist_inactive a, #floatswrap .order_table a[rel], #singleMainContent .supplinfo a").each(function(i) {

			

		$(this).overlay({

			effect: 'apple'

		});			

	});		

	



/* Multiple Product Pages - Image Hover */

	$('#floatswrap .contentWrap').hover(function(){

		var $go = $(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*/

	$("#singleMainContent .related .tabs").tabs("div.panes > div", { event:'mouseover' });

	

/* Single Product Page - Adjacent Products */

	$('.adjacentProd').hover(function(){

		var $showME = $(this).find('.adjacentImg');

		$showME.stop(false,true).fadeIn("slow");

	}, function(){

		var $showME = $(this).find('.adjacentImg');

		$showME.stop(false,true).fadeOut("slow");

	});

	

/* Single Product Page - Main Product Image Tabs Add current class  */

	$("#singleMainContent .thumbTabs li:first-child .thumbTab, #singleMainContent .inner_thumbTabs li:first-child .thumbTab").addClass('current');

	$("#singleMainContent .thumbTabs .thumbTab, #singleMainContent .inner_thumbTabs .thumbTab").mouseover(function() {

		$(this).addClass('current').parent().siblings().children().removeClass('current');
		var url = $(this).attr('rev');
		$(".contentWrap img").attr("src",url);
	});

	

});	



$(window).load(function(){



/* EQUAL HEIGHTS (fire this when everything has loaded for correct height calculation) */

	$.fn.equalHeights = function() {

		var maxheight = 0;

		$(this).children().each(function(){

			maxheight = ($(this).height() > maxheight) ? $(this).height() : maxheight;

		});

		$(this).children().css('height', maxheight);

	}

	$('#floatswrap .eqcol').equalHeights();



});



/* FONT REPLACEMENT */

Cufon.replace('.widget-title, #singleMainContent .prod-title, .entry-title, .comments_title, .respond_title, .trackback_title', {

hover: true

});
