// sniffvar isWin = window.navigator.platform.toLowerCase().indexOf('win') != -1 ? 1:0;var isMac = window.navigator.platform.toLowerCase().indexOf('mac') != -1 ? 1:0;var isDOM = document.getElementById ? 1:0;var isIE = document.all ? 1:0;var isIE4 = isIE && !isDOM ? 1:0;var isIE5 = isIE && isDOM ? 1:0;var isNS = navigator.appName=='Netscape';var isNS4 = isNS && !isDOM ? 1:0;var isNS6 = isNS && isDOM ? 1:0;var isOp = window.opera ? 1:0;var isDyn = isDOM||isIE||isNS4;var isFirefox = window.navigator.userAgent.toLowerCase().indexOf('firefox') != -1 ? 1:0;//validate searchfunction validateSearchText() {	if(document.getElementById("search").txtfield.value == "" || document.getElementById("search").txtfield.value == "Search" ) {alert('Please enter search keyword'); return false;} 	else return true;	}function validateSearchTextFooter() {	if(document.getElementById("foot_search").txtfield_foot.value == "" || document.getElementById("foot_search").txtfield_foot.value == "Search" ) {alert('Please enter search keyword'); return false;} 	else return true;	}	// pop windowvar l,t,z;function popWin(url,n,w,h,o) {	if (w>screen.availWidth-12) w=screen.availWidth-12;	if (h>screen.availHeight-48) h=screen.availHeight-48;	l=(screen.availWidth-w-12)/2;	t=(screen.availHeight-h-48)/2;	z=window.open(url,n,'width='+w+',height='+h+',left='+l+',top='+t+','+o);}function openWin(url,n,w,h) {	window.open(url,n,'width='+w+',height='+h+',location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=yes');}function openCloseWin(url) {	window.opener.location.replace(url);	window.close();}function openPhotoGallery(url) {	window.open(url,'width=690,height=600,location=no,menubar=no,scrollbars=no,status=yes,toolbar=no,resizable=yes');}function includeJS() {	if (arguments.length>0) INCLUDE=arguments;	if (typeof INCLUDE!="undefined"){		for(var i=0;i<INCLUDE.length;i++){			document.writeln("<scr"+"ipt src='/js/"+INCLUDE[i]+".js' type='text/javascript'></scr"+"ipt>");		}	}}document.writeln("<scr"+"ipt src='/shared/media/mplayer.js' type='text/javascript'></scr"+"ipt>");// cookie, tracking, util and media player scriptsincludeJS("photo_galleries", "util", "cookie", "mlsnet_player","webtools");