 $(function() {  
     $("#controller").jFlow({  
         slides: "#slides",  
         width: "680px",  
         height: "600px",  
         duration: 600
     });  
 });  
 
   $(document).ready(function(){
    $("#accordion").accordion({ autoHeight:true});
  });
 
 
// set up imageswitch fading for header image
$(document).ready( function(){
	$("#nav a").hover(function(e){
		$("#ImgObject").ImageStop(true,true);
		$("#ImgObject").ImageSwitch({ 
							Type:"FadeIn",
							NewImage:$(this).attr("rel"),
							EffectOriginal: false,
							Speed: 500});
		e.preventDefault();
	}); 
});
  

// set expose for photo gallery
$(function() { 
    // assign a click event to the exposed element, using normal jQuery coding 
    $("#photoAlbum").mouseover(function() { 
 
        // perform exposing for the clicked element 
        $(this).expose({api: true}).load(); 
 
    });    
    $("#photoAlbum").mouseout(function() { 
 
        // perform exposing for the clicked element 
        $(this).expose().close(); 
 
    }); 
});


