Cufon.replace('#Navigation h1', { 
	fontFamily: 'Arial' ,
	hover: true
});
Cufon.replace('#PageCopy h1', { fontFamily: 'Square721' });
Cufon.replace('h2#SectionTitle', { fontFamily: 'Square721' });
Cufon.replace('.DiscogRow h3', { fontFamily: 'Square721' });
Cufon.replace('#RelatedDiscog h3', { fontFamily: 'Square721' });


$(function()
{
	$('.ImageHolder a').lightBox();
	$('.GalleryRow dt a').lightBox();
	$('#SamSlideShow a').lightBox();
});

$(function()
{
	$('#SlideShow').cycle({ 
		fx: 'scrollHorz'
		//delay:  -6000
	});
});

$(function() {
	$('#SamSlideShow').cycle({ 
		fx:     'fade', 
		speed:  'fast', 
		timeout: 0, 
		pager:  '#SliderNav', 
		pagerAnchorBuilder: function(idx, slide) { 
			// return selector string for existing anchor 
			return '#SliderNav li:eq(' + idx + ') a'; 
		} 
	});
});


$(function()
{
	$('#Form textarea').autogrow();				
});

$(function () {
	var container = $('div.sliderGallery');
	var ul = $('ul', container);
	
	var itemsWidth = ul.innerWidth() - container.outerWidth();
	
	$('.slider', container).slider({
		min: 0,
		max: itemsWidth,
		handle: '.handle',
		stop: function (event, ui) {
			ul.animate({'left' : ui.value * -1}, 500);
		},
		slide: function (event, ui) {
			ul.css('left', ui.value * -1);
		}
	});
});


jQuery.fn.fadeToggle = function(speed, easing, callback) {
   return this.animate({opacity: 'toggle'}, speed, easing, callback);

}; 

$(function()
{
	$('a:contains("Video")').addClass("Highlight");
});
