/**
 * @author fred
 */


 function submitForm(id) {
 //alert(id);
 document.forms[id].submit();

 } 




/* Funktion zum Oeffnen eines Popup-Fensters, oeffnet sich zentriert */
function popup(url,name,param) {
	var sizeX = 0;
	var sizeY = 0;
	var winX=screen.availWidth;
	var winY=screen.availHeight;
	
	var tmpArray = param.split(",");
	
	for(i=0;i<tmpArray.length;i++) {
		if(tmpArray[i].indexOf("width") != -1) { tmpArray2 = tmpArray[i].split("="); sizeX = tmpArray2[1];}
		if(tmpArray[i].indexOf("height") != -1) { tmpArray2 = tmpArray[i].split("="); sizeY = tmpArray2[1];}
	}
	
	var centerX=eval(winX/2-sizeX/2);
	var centerY=eval(winY/2-sizeY/2);
	
	param +=',top='+centerY+',left='+centerX;
	var winChild = window.open('/'+url,name,param+',dependent=yes');
	winChild.focus();
}

		$(function() {
	$(".iframe").fancybox({
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true
	});
});



/*
$(document).ready(function()
		{
	
			
			$("#sitemap").hide();

			
			//sitemap
			
			$("#btn_sitemap").bind("mouseenter",function(){ 
				showSiteMap();
				
				
			});
			
			$(".siteNavItem a img").bind("mouseenter",function(){ 
				hideSiteMap();
				
				
			});
			
			$("#sitemap").bind("mouseleave",function(){ 
				hideSiteMap();
			});

			
			$('.itracoSelect').selectbox({debug: true});


			

		 
		  
		  $.nyroModalSettings({
		        debug: false,
		        height: 630,
		        width: 566
		        
		      });
			  
			  
			  
			  
		  
		 });
*/
function showNavPopUp(id) {
	closeAllPopUps();
		 	
		 	$('#popUp_'+id).animate({
			        height: 'show',
			        opacity: 'show'
					
			    }, 'fast');
		

}

function hideNavPopUp(id) {
 	
 	$('#popUp_'+id).animate({
	        height: 'hide',
	        opacity: 'hide'
			
	    }, 'fast');
	
	
 }



function abbinder1() {
	
	if (document.documentElement && !document.documentElement.scrollTop)
		hoehe = document.body.scrollTop + $(window).height();
		else if (document.documentElement && document.documentElement.scrollTop)
			hoehe = document.documentElement.scrollTop + $(window).height();
		else if (document.body && document.body.scrollTop)
			hoehe = document.body.scrollTop + $(window).height();
	
	//hoehe = document.body.scrollTop + $(window).height();
	var offsethoehe = parseInt( (hoehe) - 41 );
	
	
	$('.ac11').css({ top: ((offsethoehe - $('.autocomplete').height() + 2 )) + 'px' });
	
	resizeTimer1 = setTimeout('abbinder1()', 500);
}





	$(document).ready(function () {
		 abbinder1();
		 });
		
		
		var resizeTimer1 = null;
		if (resizeTimer1) clearTimeout(resizeTimer1);
		 resizeTimer1 = setTimeout('abbinder1()', 500);
		 
		 
		
		 
		 
		 
		
