// Check if the browser is a IE-variant
var isIE = (navigator.appVersion.indexOf('MSIE') != -1) ? true : false;





function showAdvancedSearch() {
	document.getElementById('hidden1').style.display    = (isIE) ? 'block' : 'table-row';
	document.getElementById('hidden2').style.display    = (isIE) ? 'block' : 'table-row';
	document.getElementById('hidden3').style.display    = (isIE) ? 'block' : 'table-row';
	document.getElementById('toggleShow').style.display = 'inline';
	document.getElementById('toggleHide').style.display = 'none';
}

function hideAdvancedSearch() {
	document.getElementById('hidden1').style.display    = 'none';
	document.getElementById('hidden2').style.display    = 'none';
	document.getElementById('hidden3').style.display    = 'none';
	document.getElementById('toggleHide').style.display = 'inline';
	document.getElementById('toggleShow').style.display = 'none';
}

function showExtraInfoRow(id) {
	document.getElementById('text_' + id).style.display = (isIE) ? 'block' : 'table-row';
	document.getElementById('title_' + id).onclick       = function(event) { hideExtraInfoRow(id); };
	document.getElementById('img_' + id).onclick         = function(event) { hideExtraInfoRow(id); };
	document.getElementById('title_' + id).onclick       = function(event) { hideExtraInfoRow(id); };
}

function hideExtraInfoRow(id) {
	document.getElementById('text_' + id).style.display = 'none';
	document.getElementById('title_' + id).onclick       = function(event) { showExtraInfoRow(id); };
	document.getElementById('img_' + id).onclick         = function(event) { showExtraInfoRow(id); };
	document.getElementById('title_' + id).onclick       = function(event) { showExtraInfoRow(id); };
}


