
		NWCurTab = "dating";
		
		// screen constants
		NW_SCR_SMLL = 0; //	<= 800px
		NW_SCR_MEDM = 1; //	>= 1024px
		NW_SCR_MEDL = 2; //	
		NW_SCR_LARG = 3;
		NW_SCR_HUGE = 4;
		
		
		
		
		//NW_ENV = new object();
		
		
		function NWSwitch(section) {
			if (NWCurTab != "") { document.getElementById("NWT_"+NWCurTab).className = ""; }
			
			var element = document.getElementById("NWT_"+section);
			element.className = "current";
			NWCurTab = section;
		}
	
		function switchLayout(type) {
		
			obj = document.getElementById("outer_container");
			obj2 = document.getElementById("nw_bottom_bdr");
		
			if (type == 0) { obj.className = "layout_fluid"; obj2.style.width = "100%"; }
			else if (type == 1) { obj.className = "layout_1024"; obj2.style.width = "990px"; }
			else if (type == 2) { obj.className = "layout_800"; obj2.style.width = "800px"; }
		
			nw_update_rsz_aware();
		}
	
	
		function nw_init() {
			//NW_ENV.screen = new object();
			//NW_ENV.screen.width = screen.width;
			//NW_ENV.screen.height = screen.height;
			window.onresize = nw_update_rsz_aware;
			nw_update_rsz_aware();
		}
	
		nw_num_featured = 0;
	
		function nw_update_rsz_aware() {
		
			hdrobj = document.getElementById("hdrimg");
			avail = document.getElementById("main_header").clientWidth;
			if (hdrobj) {
			if (avail >= 1600) { hdrobj.innerHTML = "<img src='featured_pic.php?width=937&height=262&r="+Math.random()+"' width='937px' height='262px' alt='%sitename%' />"; }
			else if (avail >= 1300) { hdrobj.innerHTML = "<img src='featured_pic.php?width=837&height=262&r="+Math.random()+"' width='837px' height='262px' alt='%sitename%' />"; }
			else if (avail >= 1200) { hdrobj.innerHTML = "<img src='featured_pic.php?width=697&height=262&r="+Math.random()+"' width='697px' height='262px' alt='%sitename%' />"; }
			else if (avail >= 1050) { hdrobj.innerHTML = "<img src='featured_pic.php?width=508&height=262&r="+Math.random()+"' width='508px' height='262px' alt='%sitename%' />"; }
			else if (avail >= 900) { hdrobj.innerHTML = "<img src='featured_pic.php?width=380&height=262&r="+Math.random()+"' width='380px' height='262px' alt='%sitename%' />"; }
			else if (avail < 1024) { hdrobj.innerHTML = "<img src='featured_pic.php?width=280&height=262&r="+Math.random()+"' width='280px' height='262px' alt='%sitename%' />"; }
			}
		
			obj = document.getElementById("nw_rsz_aware");
			if (obj) {
			//obj.onresize = function() { alert("reached resize on div"); }
				num = Math.floor(obj.clientWidth/124);
				nw_num_featured = num;
				getRandomMembers();
			}
		}
