function loadViewer(newView) {
	var newPage = "../views/" + newView;
	$("#showcase").load(newPage);
}
function navSwitch() {
       /*
       $("#nav a").click(function() {
               var newView = $(this).attr("href");
               loadViewer(newView);
               $("#nav tr").removeClass("on");
               $(this).parents("tr").addClass("on");
               return false;
       });
       */
}

function viewerSwitch() {
	$("#viewer ul li a").click(function() {
		var newImg = "" + $(this).attr("href");
		$("#viewer img").attr("src", newImg);
		$("#viewer ul li a").removeClass("on");
		$(this).addClass("on");
		return false;
	});
}
$(document).ready(function() {
	navSwitch();
	viewerSwitch();
});
