/**
 * sitesearch javascript functions
 * 
 * Created: 27.04.2009
 * 
 * @author Arne-Wigand Baganz
 * @copyright W3 Solutions GmbH
 * @version $Id: idealo.js 384 2008-01-11 15:36:12Z cstein $
 */
var Sitesearch = {
	sort : function(formName, sortorder) {
		document.forms[formName].elements['sort'].value = sortorder;
		document.forms[formName].submit();

		return false;
	},

	switchDisplay : function(id) {
		if (document.getElementById(id).style.display == 'none') {
			document.getElementById(id).style.display = 'block';
		} else {
			document.getElementById(id).style.display = 'none';
		}
	},

	showDisplay : function(id) {
		document.getElementById(id).style.display = 'block';
	},

	hideDisplay : function(id) {
		document.getElementById(id).style.display = 'none';
	}
}