function dom_init() {


	// PNG FIX
	$(document).pngFix();
  
  
	// MAINMENU	
	$('#navi1 ul.level1').nmcDropDown({
		trigger: 'hover',
		show: {height: 'show'},
		hide: {height: 'hide'},
		show_speed: 0,
		show_delay: 0,
		hide_speed: 0,
		hide_delay: 0
	});
	
	// CLEAR SEARCH
	$('.searchquery').click(function() {
		var value = $(this).val();
		if (value == 'Suche') {
			$(this).val('');
		}
	});
	
	// RESET SEARCH
	$('.searchquery').blur(function() {
		var value = $(this).val();
		if(value == '') {
			$(this).val('Suche');
		}
	});

	$('.searchbutton').click(function() {
		var search = $('.searchquery').val();
		$('.searchquery').val(search + ' site:ziegler-gruppe.de');
	});
	
	
	// LOAD FLASH
	var nr = Math.floor(Math.random()*4) + 1;
	var flashfile = 'http://www.ziegler-gruppe.de/workspace/flash/z' + nr + '.swf';	
	var hasflash = $.flash.available;
	
	if (hasflash) {
		$('#flashheader').flash({		
		 	swf: flashfile,
		 	height: 335,
		 	width: 898,
			params: {
				play: true,
				loop: false
			}
		});
	} else {
		$('#flashheader').attr('class','noflash');
	}


  
}
