var domainName = 'http://www.sundance-spas.co.uk';
function goto_URL(object) {
    window.location.href = object.options[object.selectedIndex].value;
}
var winDealer = null;
function locateDealer(){
	if(winDealer != null){
		if(!winDealer.closed){
			winDealer.close();
		}
	}
	winDealer = window.open(domainName + '/LocateDealer/jacuzzi-hot-tub-dealer-locator.html','Sundance','toolbar=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,status=no,width=600,height=520');	
}

function drawFlashMovie(movieWidth, movieHeight, movieName, bgColor){
	text = '';
	text = text + '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + movieWidth + '" height="' + movieHeight + '">';
    text = text + '<param name="movie" VALUE="' + movieName + '">';
    text = text + '<param name="quality" value="high">';
    text = text + '<param name="allowScriptAccess" value="sameDomain" />';
    text = text + '<embed SRC="' + movieName + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="' + bgColor + '" width="' + movieWidth + '" height="' + movieHeight + '" name="SundanceFlash" align="middle" allowScriptAccess="sameDomain" ></embed>';
	text = text + '</object>';
	document.write(text);
}