// Inset bar
$(function() {
// OPACITY OF BUTTON SET TO 50%
$("#inset li").css("opacity","0.25");
		
// ON MOUSE OVER
$("#inset li").hover(function () {
										  
// SET OPACITY TO 100%
$(this).stop().animate({
opacity: 1.0
}, "fast");
},
		
// ON MOUSE OUT
function () {
			
// SET OPACITY BACK TO 50%
$(this).stop().animate({
opacity: 0.5
}, "slow");
});
});


// localscroll
	jQuery(function( $ ){
	
	$.localScroll.defaults.axis = 'y';
	
	// Scroll initially if there's a hash (#something) in the url 
	$.localScroll.hash({
		target: '#content', // Could be a selector or a jQuery object too.
		queue:true,
		duration:1500
	});
	
	
	$.localScroll({
		target: '#content', // could be a selector or a jQuery object too.
		queue:true,
		duration:1000,
		hash:true,
		onBefore:function( e, anchor, $target ){
			// The 'this' is the settings object, can be modified
		},
		onAfter:function( anchor, settings ){ 
			// The 'this' contains the scrolled element (#content)
		}
	});
});
	
// Formular

<!--
	function isEmailValid(email){
		var e = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
		return e.test(email);
	}
	/*
	function sendForm(){
		
		
		jQuery("#imessageOK, #imessageERROR").hide();
		jQuery(".required").removeClass("required");
		if(jQuery("#IhrName").val()==""){jQuery("#IhrName").addClass("required");window.scroll(0,0);return false;}if(jQuery("#IhreEmail-Adresse").val()==""){jQuery("#IhreEmail-Adresse").addClass("required");window.scroll(0,0);return false;}if(!isEmailValid(jQuery("#IhreEmail-Adresse").val())){jQuery("#IhreEmail-Adresse").addClass("required");window.scroll(0,0);return false;}if(jQuery("#IhreNachricht").val()==""){jQuery("#IhreNachricht").addClass("required");window.scroll(0,0);return false;}jQuery("#Nachrichtabsenden").val("Please Wait...");		var AddDetails; AddDetails+="&IhrName="+encodeURIComponent(jQuery("#IhrName").val());AddDetails+="&IhreEmail-Adresse="+encodeURIComponent(jQuery("#IhreEmail-Adresse").val());AddDetails+="&IhreNachricht="+encodeURIComponent(jQuery("#IhreNachricht").val());jQuery("input:checkbox[name=Ichinteressieremichfr]:checked").each(function(){
				AddDetails+="&Ichinteressieremichfr[]="+encodeURIComponent(this.value);
			});		
		alert("Add sending function here...\n\nOr become FAARY member to download full package!")	}*/
-->

