<!--

// VDB Creative, LLC.  
// Sell Stapleton.com javascript resources


// Opens Map window

function openMap(theURL,winName,features) 
	
	{ 
	
	shopwindow = window.open(theURL,winName,'menubar=0,scrollbars=yes,resizable=0,height=450,width=650,left=40,top=40');
	shopwindow.focus();
	
	}
	
	

	
// Opens IDX window

function openIDX(theURL,winName,features) 
	
	{ 
	
	shopwindow = window.open(theURL,winName,'toolbar=yes,menubar=yes,scrollbars=yes,resizable=0,height=450,width=700');
	shopwindow.focus();
	
	}
	
//  Popup Window Functionality

function openWindow(theURL,winName,features) 
	
	{ 
	
	shopwindow = window.open(theURL,winName,features);
	shopwindow.focus();
	
	}

// Form Handler

function formHandler(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
}
	
// Rollover Images


function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		builders_orig_01_over = newImage("images/builders_orig_01-over.gif");
		preloadFlag = true;
	}
}



// -->
