over = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" over";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp("over"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", over);





var d=document; 
 
 function SetCookie( Name, Value, Expire ) 
 { 
 document.cookie = Name + "=" + escape( Value ) ; 
 } 
 
 function WriteCookies() 
 { 
var d=document; 
SetCookie( "PropertyType", d.getElementById('PropertyType').value ); 
SetCookie( "SearchBedsRange",  d.getElementById('SearchBedsRange').value ); 
SetCookie( "Area",  d.getElementById('Area').value ); 
SetCookie( "SearchPriceRange",  d.getElementById('SearchPriceRange').value ); 
 } 
 
  
 function GetValue( Offset ) 
 { 
 var End = document.cookie.indexOf (";", Offset); 
 if( End == -1 ) 
 End = document.cookie.length; 
 return unescape( document.cookie.substring( Offset, End) ); 
 } 
  
 function GetCookie( Name ) 
 { 
 var Len = Name.length; 
  
 var i = 0; 
 while( i < document.cookie.length ) 
 { 
 var j = i + Len + 1; 
 if( document.cookie.substring( i, j) == (Name + "=") ) 
 return GetValue( j ); 



 i = document.cookie.indexOf( " ", i ) + 1; 
 if( i == 0) 
 break; 
 } 
 var a = ""; 
 return a; 

 } 
 


function GetCookies() 
 { 

 var tmpPropertyType = GetCookie( "PropertyType"); 
 var tmpSearchBedsRange = GetCookie( "SearchBedsRange" ); 
 var tmpArea = GetCookie("Area");
 var tmpSearchPriceRange = GetCookie("SearchPriceRange"); 



 if (tmpPropertyType) {  
 d.getElementById('PropertyType').value = tmpPropertyType; 
 }

 if (tmpSearchBedsRange) { 
 d.getElementById('SearchBedsRange').value = tmpSearchBedsRange; 
 } 

 if (tmpArea) { 
 d.getElementById('Area').value = tmpArea; 
 } 

 if (tmpSearchPriceRange) { 
 d.getElementById('SearchPriceRange').value = tmpSearchPriceRange; 
 } 
   


 }











