function showStaging() {
	var so = new SWFObject("slide.swf", "pan", "520", "362", "6", "#895d52");
		for (i=1; i <= 12; i++) {
			so.addVariable("image"+(i-1), "staging/0" + i + ".jpg");
		}
	so.addVariable("nexturl", "showDesign()");		
	so.write("disp");
	document.getElementById("long_text").innerHTML="<div id='design_text'>"+
	"These before and after photos are excellent examples of the richness home staging creates."+
	"</div>";
	deselectAll();
	setClassName("staging", "staging_selected");
	
}

function showDesign() {
	var so = new SWFObject("slide2.swf", "pan", "520", "362", "6", "#895d52");
		for (i=1; i <= 10; i++) {
			so.addVariable("image"+(i-1), "design/0" + i + ".jpg");
		}
	so.addVariable("nexturl", "showAbout()");		
	so.write("disp");
	document.getElementById("long_text").innerHTML="<div id='design_text'>"+
	"<a href='http://santacruzmagazine.net/summer/casa-bella.html' target='_blank'>"+
	"<img src='SCMag.jpg' border='0' /></a><br /><br />"+
	"Article featuring Michael's restoration of a classic Santa Cruz home.<br /><br />"+
	"Transform any house into a home with outstanding appeal, whether you are selling or enhancing personal space."+
	"</div>";
	deselectAll();
	setClassName("design", "design_selected");
}

function showAbout() {
	document.getElementById("disp").innerHTML="<img src=\"design/010.jpg\">";
	document.getElementById("long_text").innerHTML="<div id='about_text'>Michael comes to Santa Cruz from San Francisco with 25 years of experience in staging, decorating, "+
	"and the interior design business.</div>";
	deselectAll();
	setClassName("about", "about_selected");
}

function showVideo() {
	/*videoSource="<div id=\"vid_holder\"> <OBJECT name=\"vid\" id=\"vid\" width=\"370\" height=\"315\" CLASSID=\"CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6\" type=\"application/x-oleobject\">";
	videoSource+="<PARAM NAME=\"URL\" VALUE=\"http://db.stellamedia.com/dunbar/?video=great_homes/video65&asf=1\">";
	videoSource+="<PARAM NAME=\"SendPlayStateChangeEvents\" VALUE=\"True\">";
	videoSource+="<PARAM NAME=\"AutoStart\" VALUE=\"True\">";
	videoSource+="<PARAM name=\"uiMode\" value=\"full\">";
	videoSource+="<PARAM name=\"volume\" value=\"100\">";
	videoSource+="<PARAM name=\"playcount\" value=\"100\">";
	videoSource+="<embed ";
	videoSource+="type=\"application/x-mplayer2\"";
	videoSource+="pluginspage=\"http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/\"";
	videoSource+="width=\"370\" height=\"315\" src=\"http://db.stellamedia.com/dunbar/?video=great_homes/video65&asf=1&file=file.asx\"";
	videoSource+="filename=\"http://db.stellamedia.com/dunbar/?video=great_homes/video65&asf=1&file=file.asx\" autostart=\"True\" ";
	videoSource+="showcontrols=\"true\" showstatusbar=\"False\" volume=\"100\" playcount=\"100\"";
	videoSource+="showdisplay=\"False\" autorewind=\"True\"> </embed>";
	videoSource+="</OBJECT></div>";
	document.getElementById("disp").innerHTML=videoSource;*/
	window.open("http://www.residentphotography.com/120green/media/shell/shell_big.html", "_blank", "resizable=0, width=907, height=640");
	document.getElementById("long_text").innerHTML=" ";
	deselectAll();
	setClassName("video", "video_selected");
}
function deselectAll () {
	setClassName("staging", "nav");
	setClassName("design", "nav");
	setClassName("about", "nav");
	setClassName("video", "nav");
}
function setClassName(objId, className) { document.getElementById(objId).className = className; }
