
function displaySub () {
	$(this).find('ul').show();
}
function hideSub () {
	$(this).find('ul').hide();
}

$(function () {
	$('#navigation li:has(li)').hover( displaySub, hideSub );
});

	

//this is used for the popup windows

function openWin( windowURL, windowName, windowFeatures ) { 

		return window.open( windowURL, windowName, windowFeatures ) ; 

	} 

	

// this is used to hide and show the save search option just below the form on the prop results page



function show_hide(field) {

if (document.getElementById(field).style.display == 'block') document.getElementById(field).style.display = 'none'

else if (document.getElementById(field).style.display == 'none') document.getElementById(field).style.display = 'block'

}





function show_hides(field) {

if (document.getElementById(field).style.display == 'none') document.getElementById(field).style.display = 'block'

else if (document.getElementById(field).style.display == 'block') document.getElementById(field).style.display = 'none'

}
