
// uses image objects - works with NS 3 or later, or IE 4 or later	


function ImgObject (name,inActSrc,actSrc,selSrc) {  

	
 
 	this.title = name; // title must match name attribute in image tag
 	
	this.swapInactive = swapInactive; //this and next three are method associations 
  	this.swapActive = swapActive;  
	this.swapSelected = swapSelected;

		
	this.inAct = new Image();  
	this.inAct.src = inActSrc;  
	
	this.act = new Image();
  	this.act.src = actSrc;  
	
	this.sel = new Image();  
	this.sel.src = selSrc;

 }

albumImages = new ImgObject('albums', "images/home_albums.jpg","images/home_albums_over.jpg", "images/home_albums_over.jpg");
weddingImages = new ImgObject('weddings', "images/home_weddings.jpg","images/home_weddings_over.jpg", "images/home_weddings_over.jpg");
eventImages= new ImgObject('events', "images/home_events.jpg","images/home_events_over.jpg", "images/home_events_over.jpg");
portraitImages = new ImgObject('portraits', "images/home_portraits.jpg","images/home_portraits_over.jpg", "images/home_portraits_over.jpg");
pricingImages = new ImgObject('pricing', "images/home_pricing.jpg","images/home_pricing_over.jpg", "images/home_pricing_over.jpg");
contactImages = new ImgObject('contact', "images/home_contact.jpg","images/home_contact_over.jpg", "images/home_contact_over.jpg");

weddingPageImages = new ImgObject('weddingsPage', "../images/page_weddings.jpg","../images/page_weddings_over.jpg", "../images/page_weddings_over.jpg");
eventPageImages= new ImgObject('eventsPage', "../images/page_events.jpg","../images/page_events_over.jpg", "../images/page_events_over.jpg");
portraitPageImages = new ImgObject('portraitsPage', "../images/page_portraits.jpg","../images/page_portraits_over.jpg", "../images/page_portraits_over.jpg");
pricingPageImages = new ImgObject('pricingPage', "../images/page_pricing.jpg","../images/page_pricing_over.jpg", "../images/page_pricing_over.jpg");
contactPageImages = new ImgObject('contactPage', "../images/page_contact.jpg","../images/page_contact_over.jpg", "../images/page_contact_over.jpg");


nextButtonImages = new ImgObject('nextPhoto', "../images/next.jpg","../images/next_over.jpg", "../images/next.jpg");
previousButtonImages = new ImgObject('previousPhoto', "../images/previous.jpg","../images/previous_over.jpg", "../images/previous.jpg");

function swapInactive() {

		window.document.images[this.title].src = this.inAct.src;
}	

function swapActive() {  

		
		window.document.images[this.title].src = this.act.src;
		
}	


function swapSelected() {  

	
		
		window.document.images[this.title].src = this.sel.src;

}	
 


function goToTop()
{
	top.location.href = "default.html";
}


 
 