
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);

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function jumpToBuilding(self) {
//	alert('foobar');
//	alert(document.location);
/*
	var tmp = String(document.location);
	if (tmp.indexOf("address=") != -1) {
		var start = tmp.indexOf("address=");
		var end = substr(tmp, start).indexOf("=") + start;
		alert(substr(tmp, start, end - start));
	}
	
	document.location = document.location + "&address=%" + self.options[self.selectedIndex].text + "%";
*/
//	document.location = 
}

function change(id){ 
     ID = document.getElementById(id); 
     
     if(ID.style.display == "") 
          ID.style.display = "none"; 
     else 
          ID.style.display = ""; 
      }

	img1 = "Pattaya-Real-Estate/noolparemale.gif"; 
	img2 = "Pattaya-Real-Estate/noolalla.gif"; 
	function chng(c_img) { 
	if (document[c_img].src.indexOf(img1)!= -1) document[c_img].src = img2; 
	else document[c_img].src = img1; 
}