
$(document).ready(function(){
	
	// DO NOT REMOVE OR MOVE //
		$().indxrLayout();

	// Menu rollovers
	// Preload all rollovers    
	var timeout = 0;    

	$("#list img.nav").each(function() {

		// Set the original src
		rollsrc = $(this).attr("src");
		rollON = rollsrc.replace(/.png$/ig,"_active.png");
		$("<img>").attr("src", rollON);
		
		timeout += 100;
		
		$(this).hide().fadeTo(timeout, 1).fadeIn(500);
		
	});
	
	// Navigation rollovers
	$("#list a").mouseover(function(){ 
		imgsrc = $(this).children("img").attr("src");
		matches = imgsrc.match(/_active/);
		
		// don't do the rollover if state is already ON
		if (!matches) {
			imgsrcON = imgsrc.replace(/.png$/ig,"_active.png"); // strip off extension
			$(this).children("img").attr("src", imgsrcON);
		}
		
	});
	$("#list a").mouseout(function(){
		$(this).children("img").attr("src", imgsrc);
	});
	
	// Fade in right column
	$("#rightColumn").hide().fadeTo(800, 1).fadeIn(1000);
		
});
