<!--

function searchResultScore() {
	if($("div#selectionResult div.resultItem:visible").size() == 0) {
		$('#noResult').show();
	} else {
		$('#noResult').hide();
	}
}

function changeView(zahl) {
	return true;
}

$(window.document).ready(function() {
	
	$('#noResult').hide();
	$('#selectionReset').hide();
									
	// Suche initialisieren
	$('div#selectionResult div.resultItem').quicksearch({
		position: 'before',
		attached: 'div#selectionResult',
		loaderText: '',
		inputText: '',
		delay: 0
	});
	
	$('#selectionReset').click(function(){
		$('#loadingResult').show();
		$('form#selectReferenceForm input').each( function() {
			$(this).removeAttr('checked');
		});
		$('div#selectionResult div.resultItem').each( function() {
			$(this).removeAttr('style');
		});
		$('#loadingResult').fadeOut(1000);
		$('#noResult').hide();
		
		if (!(window.navigator.userAgent.indexOf('MSIE') != -1)) {
			$('#selectionReset').fadeOut(500);
		} else {
			$('#selectionReset').hide();
		}
		
		return false;
	});
		
	$("#selectReferenceForm input").click(function() {
		
		$('#loadingResult').show();
		$('#noResult').hide();
		
		var $searchString = "";
		var searchCount = 0;
		var tmpString = "";
		var entries = false;
		
		// Branche
		if ($('#selectReferenceForm .first input[type=radio]:checked').val() != null && $('#selectReferenceForm .first input[type=radio]:checked').val() != "") {
			$searchString += $('#selectReferenceForm .first input[type=radio]:checked').val() + " ";
		}		
		if($('#selectReferenceForm .first input[type=radio]:checked').val() == "") {
			$searchString += "allbranches ";
		}
				
		// Leistung
		$('#selectReferenceForm .center input[type=checkbox]:checked').each(function() {
			$searchString += $(this).val() + " ";
		});
		
		// Loesungen	
		$('#selectReferenceForm .last input[type=checkbox]:checked').each(function() {
			$searchString += $(this).val() + " ";
		});	
		
		if($searchString != "") {
			$('input#searchForm').val($searchString).keydown();			
			$('#selectionReset').fadeIn(500);
		}		
		
		$('#loadingResult').fadeOut(1000);
	});	
	
});
-->
