function nurZahlen(el)
{
  //var val = el.value.replace(/[^\.^,\d]/g, '');
  var val = el.value.replace(/[^\.^,\d]/g, '');
  el.value = val;
}

function validEmail(email) {
  var strReg = "^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$";
  var regex = new RegExp(strReg);
  return(regex.test(email));
}
  
// Nachdem das Dokument fertig geladen ist...
$(document).ready(function () {
	
	/*
	// Kontaktformular Expose Effekt
    var wizard = $("#kontaktform").expose({
		color: '#000',
		loadSpeed: 200, 
		opacity: 0.6,
		lazy: true}); 
    
	wizard.click(function() { 
        $(this).expose().load(); 
    });
     */  	
	// Scrollable Effekt
	$("#flowpanes").scrollable({size: 1}).circular().mousewheel(400).navigator({
		// select #flowtabs to be used as navigator
		navi: "#flowtabs",
		// select A tags inside the navigator to work as items (not direct children)
		naviItem: 'a',
		// assign "current" class name for the active A tag inside navigator
		activeClass: 'current'
	});
	
	// Tooltip für das Menü
	$("#mainmenu img[title]").tooltip({
		tip: '#tooltipmain',
		position: 'top center',
		relative: 'true',
		offset: [0,0],
		lazy: 'true',
		effect: 'fade'
		}); 
	
 	
	// Main Menu Hover
	$('#mainmenu a').css("opacity", .6);
	$('#mainmenu img').hover(
		function() {
			$(this).parent("a").css({'opacity':'1'});
			$(this).css({'filter':'alpha(opacity=100', '-ms-filter':'"progid:DXImageTransform.Microsoft.Alpha(opacity=100)"'});
		}, 
		function () {
			$(this).parent("a").css({'opacity':'.6'});
			$(this).css({'filter':'Alpha(opacity=60)', '-ms-filter':'"progid:DXImageTransform.Microsoft.Alpha(opacity=60)"'});
		}
	);

});

