deferScript.defer("ready", function() {
	
	$(".achAddons .toggleTrigger").click(function() {

      	var toggleContent = $(this).attr('href');
		var toggleLabel = $(this).attr('title');
		var toggleLabelHide = toggleLabel.split('/')[0];
		var toggleLabelShow = toggleLabel.split('/')[1];
		var toggleLabelShow = toggleLabelShow.substr(0,toggleLabelShow.indexOf(' '))
		
		if ($(this).hasClass('toggleTriggerActive')) {
			$(toggleContent).hide();
			$(this).removeClass('toggleTriggerActive');
			$(this).text(toggleLabelShow);
		} else {
			$(toggleContent).show();
			$(this).addClass('toggleTriggerActive');
			$(this).text(toggleLabelHide);
		}

		return false;
	});
	
	$('.achAddons .itemList').each(function(){
		
		var currentTallestImageHeight = 0;
		var currentTallestDescHeight = 0;
		
		$(this).addClass('equalized');
		
		$(this).find('.thumbnail img').each(function(i){
			if ($(this).outerHeight() > currentTallestImageHeight) { currentTallestImageHeight = $(this).outerHeight(); }
		});
		
		$(this).find('.desc').each(function(i){
			if ($(this).outerHeight() > currentTallestDescHeight) { currentTallestDescHeight = $(this).outerHeight(); }
		});
		
		if ($.browser.msie && $.browser.version == 6.0) { $(this).find('.thumbnail').css({'height': currentTallestItemHeight}); }
		
		$(this).find('.thumbnail').css({'height': currentTallestImageHeight}); 
		$(this).find('.unit').css({'height': currentTallestImageHeight + currentTallestDescHeight}); 
						
	});
	
	$('.achAddons a[href=#top]').click(function(){
		$('html, body').animate({scrollTop:0}, 'slow');
		return false;
	});

});




