/* Copyright (c) by Andrew DiFiore Jr. All rights reserved. */
var requiredVersion = 6; 			// min version we want to allow
var useFlash = false;				// true = load Flash, false = load HTML

if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
	if (navigator.plugins && navigator.plugins["Shockwave Flash"] && (verIndex = navigator.plugins["Shockwave Flash"].description.indexOf(".")) != -1) {
	    var flashVersion = parseInt(navigator.plugins["Shockwave Flash"].description.substring(verIndex-1, verIndex));
	    if (flashVersion >= requiredVersion) useFlash = true;
	}
} else {
	document.write('<script language="VBScript" type="text/vbscript">\n');
	document.write('on error resume next\n');
	document.write('useFlash = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & requiredVersion))\n');
	document.write('<\/script>\n');
} 

defaultStatus = "Circle Mortgage GROUP - Dale R. Siegel";

function openWindow(url, name, rs, sc, mn, tb, w, h, cent) { 
	popupWin = null;
	if (rs) resize = "resizable,"; else resize = "";
	if (sc) scrolls = "scrollbars,"; else scrolls = "";
	if (mn) menu = "menubar,"; else menu = "";
	if (tb) tool = "toolbar,"; else tool = "";
	if (cent) { 
		chasm = screen.availWidth;
		mount = screen.availHeight;	  
		popupWin = window.open(url, name, resize + scrolls + menu + tool + 'width=' + w + ',height=' + h + ',left=' + ((chasm - w - 10) * .5) + ',top=' + ((mount - h - 30) * .5));
	} 
	else popupWin = window.open(url, name, resize + scrolls + menu + tool + 'width=' + w + ',height=' + h + ',left=20, top=20');
}

