// JavaScript Document

function tabActivate( tabName ){

	var tabID = "tab-" + tabName;
	var divID = "div-" + tabName;
	
	$('div-render').style.display = "none";
	$('div-interior').style.display = "none";
	$('div-floorplan').style.display = "none";
	$('div-notes').style.display = "none";
	$( divID ).style.display = "block";
	
	$('tab-render').className = "tab-unit-render";
	$('tab-interior').className = "tab-unit-interior";
	$('tab-floorplan').className = "tab-unit-floorplan";
	$('tab-notes').className = "tab-unit-notes";
	$( tabID ).className = "tab-unit-" + tabName + "-tabon";
	
}