function defineOtherLayers() {
	// dObj = new LayerObj('id');
	//dMenuL = Array(4); for(i=0;i<4;i++) dMenuL[i] = new LayerObj('divMenuL_'+i);
	//featuredPropertiesLeft = new LayerObj('featuredPropertiesLeft');
	//dBulletText.initResizeContainer(250,55);
		dTabBar = new LayerObj('tabBar');
		dDavidTest = new LayerObj('davidTest');
//	dSearchBox = new LayerObj('divSearchBox');
//	dSearchBoxMid = new LayerObj('divSearchBoxMid');
//	dSpacerBox = new LayerObj('divSpacerBox');
//	dSpacerBoxMid = new LayerObj('divSpacerBoxMid');
	
	
	
//	dSpacerBoxTop = 385;
	//dContent.initResizeContainer(OrigWidth, OrigHeight);
	// dObj.initResize(OrigLeft, OrigTop, OrigWidth, OrigHeight, constrain true/false);
}

function registerOtherEvents() {
	// dObj.obj.onclick = clickfunction;
	for(i=0;i<4;i++) {
//		var obj = getObj('menuL_'+i+'_plate');
//		obj.onmouseover = menuOverL;
//		obj = getObj('menuL_'+i+'_plate');
//		obj.onmouseout = menuOutL;
	}
}

function otherMainContent() {
	// Main layout code sequence

	dTabBar.setWidth(dMain.width);
	if (dMain.width < 850){
		dDavidTest.setWidth(dMain.width);
		dDavidTest.setHeight(dMain.height-50);
		dDavidTest.setPos(0,dTabBar.height-2);
	} else {
		dDavidTest.setWidth(dMain.width);
		dDavidTest.setHeight(dMain.height-150);
		if (dMain.height < 600){
			dDavidTest.setTop(dTabBar.height-2);	
		} else {
		  dDavidTest.setCenter();
		}
	}
	
	
	
	//dAuctionText.setWidth(dMain.width - 480);
	//dAuctionText.initResize(0,0,480,300,true);
	//dAuctionText.setSize(dMain.width -380,dMain.height * .6);
	//dAuctionText.textResize(14,18);
	//dBulletText.setLeft(dAuctionText.width + 100);
	//dBulletText.setTop(dMain.height * .1);
	//dFeaturedBottom.setTop(dMain.height - 105);
	//dLinkAuctions.setTop(dMain.height - 28);
	//dFeaturedAuctionLabel.setTop(dMain.height - 125);
	//if (dMain.height > 680){
//		featuredPropertiesLeft.setHeight(450);	
//	} else {
//		featuredPropertiesLeft.setHeight(240);	
//	}
	dContent.setVisible(true);
	// dObj.resize(center true/false);
	// dObj.textResize(OrigFontSize, OrigLineHeight);
}

function showRealtorLogos() {
	var h = dSpacerBoxMid.height;
	if(h<60) {
		loopRealtorLogos(1);
	}else if(h<130) {
		loopRealtorLogos(3);
	}else if(h<200) {
		loopRealtorLogos(5);
	}else if(h<270) {
		loopRealtorLogos(7);
	}else if(h>=270) {
		loopRealtorLogos(9);
	}
}

function loopRealtorLogos(startHidden) {
	for(i=1;i<startHidden;i++) {
		var top = (Math.floor((i-1)/2)*70)+10;
		getObj('imgRealtorLogo_'+numToStr(i,2)).style.top = top + 'px';
		getObj('imgRealtorLogo_'+numToStr(i,2)).style.visibility = 'visible';
	}
	for(i=startHidden;i<9;i++) {
		getObj('imgRealtorLogo_'+numToStr(i,2)).style.top = 0 + 'px';
		getObj('imgRealtorLogo_'+numToStr(i,2)).style.visibility = 'hidden';
	}
}



