$(document).ready(function() {
	
	// Preload all rollovers
	$("#tabs img").each(function() {
		// Set the original src
		rollsrc = $(this).attr("src");
		rollON = rollsrc.replace(/.gif$/ig,"-on.gif");
		$("<img>").attr("src", rollON);
	});
	
	// Navigation rollovers
	$("#tabs a").mouseover(function(){
		imgsrc = $(this).children("img").attr("src");
		matches = imgsrc.match(/-on/);
		
		// don't do the rollover if state is already ON
		if (!matches) {
		imgsrcON = imgsrc.replace(/.gif$/ig,"-on.gif"); // strip off extension
		$(this).children("img").attr("src", imgsrcON);
		}

	});
	$("#tabs a").mouseout(function(){
		$(this).children("img").attr("src", imgsrc);
	});
	

	//$("#content > ul").tabs();


	$('#photo-gallery a').lightBox({fixedNavigation:true});

	

});