function click (e) {
  if (!e)
    e = window.event;
  if ((e.type && e.type == "contextmenu") || (e.button && e.button == 2) || (e.which && e.which == 3)) {
    pos = (document.layers || (document.getElementById && !document.all)) ? e.pageY :     document.body.scrollTop + event.clientY;
    // falls Maus im Headerbereich
    if (pos < 140) {
      window.alert("Hier finden Sie die IEC Logos zum Download: http://ieconline.de/logo-download\nPlease, use the following page to download the IEC logo: http://ieconline.de/logo-download-en");
      return false;
    }
  }
}

document.oncontextmenu = click;




function init () {
	/* Vorbelegung Suchfeld */
	if (document.getElementById('tx-macinasearchbox-searchform-input'))
		document.getElementById('tx-macinasearchbox-searchform-input').value = 'Suchbegriff';
	if (document.getElementById('tx-university-searchform-searchfield_small'))
		document.getElementById('tx-university-searchform-searchfield_small').value = 'Studienprogramm';		
}

function clearSearchfield(field) {
	if (document.getElementById(field).value == 'Suchbegriff' || document.getElementById(field).value == 'Studienprogramm') {
		document.getElementById(field).value = '';
		document.getElementById(field).style.color = '#000';
	}
}


if(document.getElementById('tx_mwimagemap_img_1047'))
	document.getElementById('tx_mwimagemap_img_1047') = new Image();
	
/* Bilder auf Landerkarte highlighten */
function highlightCountry(image) {
	document.getElementById('tx_mwimagemap_img_1047').src = 'fileadmin/user_upload/hochschulstudium/land/00_imagemap/' + image;
}
function allCountries() {
	document.getElementById('tx_mwimagemap_img_1047').src = 'fileadmin/user_upload/hochschulstudium/land/00_imagemap/Karte_Alle.jpg';
}
