// JavaScript Document

function changePhoto(image) {
	document.getElementById("contentimage").src = "images/photo-"+image+".jpg";
	switch(image) {
		case 1:
			document.getElementById("title").childNodes[0].nodeValue = "La Jolla Skyrise Condo";
			document.getElementById("paragraph").childNodes[0].nodeValue = "A vacation home that blends sophistication, warmth and comfort with a mixture of dark, medium and light finishes never to challenge the impeccable ocean view seen from both the living room and Master Bedroom.";
			break;
		case 2:
			document.getElementById("title").childNodes[0].nodeValue = "La Jolla Skyrise Condo";
			document.getElementById("paragraph").childNodes[0].nodeValue = "A vacation home that blends sophistication, warmth and comfort with a mixture of dark, medium and light finishes never to challenge the impeccable ocean view seen from both the living room and Master Bedroom.";
			break;
		case 3:
			document.getElementById("title").childNodes[0].nodeValue = "Rancho Bernardo, California - Wedding";
			document.getElementById("paragraph").childNodes[0].nodeValue = "A beautiful space to make an impact on a young couple with a small budget. Soft linens and brilliant red florals were signature elements of their memorable celebration.";
			break;
		case 4:
			document.getElementById("title").childNodes[0].nodeValue = "Rancho Bernardo, California - Wedding";
			document.getElementById("paragraph").childNodes[0].nodeValue = "A beautiful space to make an impact on a young couple with a small budget. Soft linens and brilliant red florals were signature elements of their memorable celebration.";
			break;
		case 5:
			document.getElementById("title").childNodes[0].nodeValue = "Rancho Bernardo, California - Wedding";
			document.getElementById("paragraph").childNodes[0].nodeValue = "A beautiful space to make an impact on a young couple with a small budget. Soft linens and brilliant red florals were signature elements of their memorable celebration.";
			break;
		case 6:
			document.getElementById("title").childNodes[0].nodeValue = "Reno, Nevada - Bath";
			document.getElementById("paragraph").childNodes[0].nodeValue = "A new meaning to \"Take the Plunge!\"  Bold, Beautiful and Bigger, this master bath revolves around this soothing whirlpool that is flanked by nature and a breathtaking lake view.";
			break;
		case 7:
			document.getElementById("title").childNodes[0].nodeValue = "Reno, Nevada - Kitchen";
			document.getElementById("paragraph").childNodes[0].nodeValue = "Open plan kithen and living area combined makes the island strategically placed for entertaining where the chef is the center of attention.";
			break;
		case 8:
			document.getElementById("title").childNodes[0].nodeValue = "Oceanside, California - Living Area";
			document.getElementById("paragraph").childNodes[0].nodeValue = "This Oceanside Residence at one with formality and sophistication. Traditional style made more complete with new window treatments, wall colors and a few select furniture pieces.";
			break;
		case 9:
			document.getElementById("title").childNodes[0].nodeValue = "Carlsbad, California - Kitchen";
			document.getElementById("paragraph").childNodes[0].nodeValue = "This residence undergoes a complete makeover...all details of this 70's home enhanced with changes in entry, new wall color, crown molding, floors baths, kitchen upgrade and enlarged windows create a connection to the newly landscaped exterior and ocean view.";
			break;
		case 10:
			document.getElementById("title").childNodes[0].nodeValue = "Carlsbad, California - Bath";
			document.getElementById("paragraph").childNodes[0].nodeValue = "This residence undergoes a complete makeover...all details of this 70's home enhanced with changes in entry, new wall color, crown molding, floors baths, kitchen upgrade and enlarged windows create a connection to the newly landscaped exterior and ocean view.";
			break;
		case 11:
			document.getElementById("title").childNodes[0].nodeValue = "Eastlake, California - Living Area";
			document.getElementById("paragraph").childNodes[0].nodeValue = "After long days at the firm, at home in the comfort achieved with a change in wall color, new art and reupholster.";
			break;
		case 12:
			document.getElementById("title").childNodes[0].nodeValue = "Eastlake, California -  Living Area";
			document.getElementById("paragraph").childNodes[0].nodeValue = "After long days at the firm, at home in the comfort achieved with a change in wall color, new art and reupholster.";
			break;
		case 13:
			document.getElementById("title").childNodes[0].nodeValue = "Eastlake, California - Living Area";
			document.getElementById("paragraph").childNodes[0].nodeValue = "After long days at the firm, at home in the comfort achieved with a change in wall color, new art and reupholster.";
			break;


	}
}

function changeThumb(source,image) {
	source.src = "images/"+image;	
}

function preLoad() {
	if (document.images) {
	pic1= new Image(55,55); 
	pic1.src="images/thumb-photo-1-on.jpg";
	
	pic2= new Image(55,55); 
	pic2.src="images/thumb-photo-2-on.jpg";
	
	pic3= new Image(55,55); 
	pic3.src="images/thumb-photo-3-on.jpg";
	
	pic4= new Image(55,55); 
	pic4.src="images/thumb-photo-4-on.jpg";
	
	pic5= new Image(55,55); 
	pic5.src="images/thumb-photo-5-on.jpg";
	
	pic6= new Image(55,55); 
	pic6.src="images/thumb-photo-6-on.jpg";
	
	pic7= new Image(55,55); 
	pic7.src="images/thumb-photo-7-on.jpg";
	
	pic8= new Image(493,329); 
	pic8.src="images/photo-1.jpg";
	
	pic9= new Image(493,329); 
	pic9.src="images/photo-2.jpg";
	
	pic10= new Image(493,329); 
	pic10.src="images/photo-3.jpg";
	
	pic11= new Image(493,329); 
	pic11.src="images/photo-4.jpg";
	
	pic12= new Image(493,329); 
	pic12.src="images/photo-5.jpg";
	
	pic13= new Image(493,329); 
	pic13.src="images/photo-6.jpg";
	
	pic14= new Image(493,329); 
	pic14.src="images/photo-7.jpg";	
	}
}