$(document).ready(function(){
  
  $(function() {
	// Use this example, or...
	$('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel
	
});
  
    $(".thumbNavblock").hover(
 function() {
  curr = $(this).find("img").attr("src");
  if($.browser.msie && $.browser.version<7){
  over ='../imgs/thumb_highlight.gif';}
  else{over ='../imgs/work_thumb_overlay.png';}
  $(this).find("img").attr({ src: over});
 },
 function() {
  $(this).find("img").attr({ src: curr});
 }
)



$("#fleuron").fadeIn(2000);
$("#previewImage").fadeIn(500);
  });
  
  function replace(arg){
  switch(arg)
  {
  case 1:
  $('#imageViewer').load('page.html' , function(){lt();});
  break
  case 2:
  $('#imageViewer').load('page2.html', function(){lt();});
  break
  case 3:
  $('#imageViewer').load('page3.html', function(){lt();});
  break
  case 4:
  $('#imageViewer').load('page4.html', function(){lt();});
  break
  case 5:
  $('#imageViewer').load('page5.html', function(){lt();});
  break
  case 6:
  $('#imageViewer').load('page6.html', function(){lt();});
  break
  case 7:
  $('#imageViewer').load('page7.html', function(){lt();});
  break
  case 8:
  $('#imageViewer').load('page8.html', function(){lt();});
  break
  }
  }
  
  function lt(){
  $(function() {
	// Use this example, or...
	$('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel
	$("#previewImage").fadeIn(500);
	
});
 } 