// hide main slideshow
// this is to fix flicker problems in IE
document.write("<style type='text/css'>.slideshow { display: none; }</style>");

$(function() {
	// show slideshow once dom is ready
	// part of flicker IE fix
	$('.slideshow').css('display', 'block');
	
	// apply lightbox to all <a> tags with 
	// a rel attribute that contains 'lightbox'
	$('a[rel*=lightbox]').lightbox();
	
	// use jQuery to set the opactiy of the
	// lightbox overlay. This is to ensure
	// all CSS is valid
//	$('#overlay').css('opacity', '0.6');
	
	// prepare jcarousel for #sub-content
//	$('#sub-content .carousel').jcarousel({scroll: 1});
//	$('#sub-content .carousel .caption').css({
//		marginLeft:'60px', 
//		marginRight:'60px'
//	});
	
	// prepare jcarousel for #extra-content
//	$('#extra-content .carousel').jcarousel({scroll: 4});
});