$(document).ready(function(){
	$(".intext").toggleVal();
	$("#global li, #nav li, #carousel li").click(function(){
    	window.location=$(this).find("a").attr("href");return false;
	});
  

    if($("#carousel").length) {
      $this = $("#carousel");
      $this.find("ul.tabs li").each(function(){
        
        if($(this).text().length < 18) {
          $(this).addClass('override');
          $(this).addClass('small');
        }
      });
    }

});

function checkEmail(myForm) {
  if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.recipientEmail.value)){ 
  document.getElementById('objectResponse').innerHTML="<h3>Loading...</h3>";
  return (true) 
  }
  alert("Feil e-post, test igjen.")
  return (false)
}