function TAFWin(){
		vWin = window.open('SiteTAF.cfm','tafWin',
		'width=400,height=350,toolbar=0,directories=0,menubar=0,status=0,resizable=0,location=0,scrollbars=0,copyhistory=0');
}

function videopromoWin(URL){
		vPWin = window.open(URL,'vpWin',
		'width=517,height=413,toolbar=0,directories=0,menubar=0,status=0,resizable=0,location=0,scrollbars=0,copyhistory=0');
}

function noFlashWin(URL){
		zWin = window.open(URL,'noFlashWin',
		'width=400,height=400,toolbar=0,directories=0,menubar=0,status=0,resizable=0,location=0,scrollbars=0,copyhistory=0');
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function sbtvWin(URL){
		zWin = window.open(URL,'SBTVWin',
		'width=466,height=420,toolbar=0,directories=0,menubar=0,status=0,resizable=0,location=0,scrollbars=1,copyhistory=0');
}

/* Function that swaps images. */

function di20(id, newSrc) {
    var theImage = FWFindImage(document, id, 0);
    if (theImage) {
        theImage.src = newSrc;
    }
}

/* Functions that track and set toggle group button states. */

function FWFindImage(doc, name, j) {
    var theImage = false;
    if (doc.images) {
        theImage = doc.images[name];
    }
    if (theImage) {
        return theImage;
    }
    if (doc.layers) {
        for (j = 0; j < doc.layers.length; j++) {
            theImage = FWFindImage(doc.layers[j].document, name, 0);
            if (theImage) {
                return (theImage);
            }
        }
    }
    return (false);
}
function cntctWin(URL){
		sWin = window.open(URL,'InvWin',
		'width=500,height=400,toolbar=0,directories=0,menubar=0,status=0,resizable=0,location=0,scrollbars=0,copyhistory=0');
}

function propAgentContactWin(URL){
		propagentwin = window.open(URL,'PropAgentContactWin',
		'width=500,height=400,toolbar=0,directories=0,menubar=0,status=0,resizable=0,location=0,scrollbars=0,copyhistory=0');
}

function propPhotoWin(URL){
		propphotowin = window.open(URL,'PropPhotoWin',
		'width=500,height=400,toolbar=0,directories=0,menubar=0,status=0,resizable=0,location=0,scrollbars=0,copyhistory=0');
}
function propPanWin(URL){
		propphotowin = window.open(URL,'PropPhotoWin',
		'width=600,height=400,toolbar=0,directories=0,menubar=0,status=1,resizable=0,location=0,scrollbars=0,copyhistory=0');
}

function propTAFWin(URL){
		proptafwin = window.open(URL,'PropTAFWin',
		'width=500,height=350,toolbar=0,directories=0,menubar=0,status=0,resizable=0,location=0,scrollbars=0,copyhistory=0');
}

function propMortgageCalcWin(URL){
		propcalcwin = window.open(URL,'PropMortgageCalcWin',
		'width=500,height=350,toolbar=0,directories=0,menubar=0,status=0,resizable=0,location=0,scrollbars=0,copyhistory=0');
}
function ourAgentsWin(URL){
		ouragentswin = window.open(URL,'OurAgentsWin',
		'width=617,height=350,toolbar=0,directories=0,menubar=0,status=0,resizable=0,location=0,scrollbars=1,copyhistory=0');
}

function picnavWin(URL){
		pWin = window.open(URL,'PNWin',
		'width=500,height=350,toolbar=0,directories=0,menubar=0,status=1,resizable=1,location=0,scrollbars=0,copyhistory=0');
}

function unitWin(URL){
		uWin = window.open(URL,'unWin',
		'width=500,height=400,toolbar=0,directories=0,menubar=0,status=0,resizable=1,location=0,scrollbars=1,copyhistory=0');
}

function largerWin(URL){
		lWin = window.open(URL,'lgWin',
		'width=500,height=400,toolbar=0,directories=0,menubar=0,status=0,resizable=1,location=0,scrollbars=1,copyhistory=0');
}

function linkWin(URL){
	kWin = window.open(URL,'InvWin',
	'width=625,height=450,toolbar=0,directories=0,menubar=0,status=0,resizable=1,location=0,scrollbars=1,copyhistory=0');
	}
	
function NewWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
function NewToolWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable,toolbar=1'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->

