$(function(){

	$('.mass-prod-minis').has('table').show(200);

	
	
	$('#mass-slides').cycle({
			timeout: 	6000,
      pager:  	'#mass-controls'
	});
	
	$("a[rel='lightbox']").colorbox();
	
	$('.mass-list > div:odd').addClass('odd');

	$('#mass-lc ul').jcarousel({ buttonNextHTML: null,  buttonPrevHTML: null, wrap: 'none', initCallback:
		function(carousel) {
			$('#lc-prev').bind('click', function() {
				carousel.prev();
				return false;
			});
			$('#lc-next').bind('click', function() {
				carousel.next();
				return false;
			});
		}
	});
	
	$('.mass-prod-img-slider').jcarousel({ buttonNextHTML: null,  buttonPrevHTML: null, wrap: 'none', initCallback:
		function(carousel) {
			$('#mass-img-prev').bind('click', function() {
				carousel.prev();
				return false;
			});
			$('#mass-img-next').bind('click', function() {
				carousel.next();
				return false;
			});
		}
	});

	Cufon.replace("h1", {textShadow: '1px 1px #fff'});
	Cufon.replace("#mass-menu li a", {textShadow: '1px 1px #fff', hover: true});
	
	$('h1').addClass('cufon1');
	$('#mass-menu a').addClass('cufon2');
	//HeightFix();
});

function HeightFix()
{
	var HEIGHT = 0;
	
	HEIGHT = $('div.left_column').height();
	
	
	if ($('div.center_column').height() > HEIGHT)
		HEIGHT = $('div.center_column').height();
	
	
	if ($('div.right_column').height() > HEIGHT)
		HEIGHT = $('div.right_column').height();
	
	HEIGHT = HEIGHT;
	
	$('div.center_column').attr('style','min-height: '+HEIGHT+'px;');
	$('div.left_column').attr('style','min-height: '+HEIGHT+'px;');
	$('div.right_column').attr('style','min-height: '+HEIGHT+'px;');
}
