// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults


function ShowNotice() {
	var t=setTimeout("HideNotice()",6000)
}

function HideNotice() {
	
	new Effect.Fade("notice", { duration: 2 })
	
}


SetDisplay = function() {
	
	var myWidth = 0, myHeight = 0;
	  if( typeof( window.innerWidth ) == 'number' ) {
	    //Non-IE
	    myWidth = window.innerWidth;
	    myHeight = window.innerHeight;
	  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	    //IE 6+ in 'standards compliant mode'
	    myWidth = document.documentElement.clientWidth;
	    myHeight = document.documentElement.clientHeight;
	  }
	//margin: 0 0 0 50%; left: -562px;
	if(myWidth < 1200){
		document.getElementById('main').style.left = '50px';
		document.getElementById('main').style.marginLeft = '0px';
	} else {
		document.getElementById('main').style.left = '-562px';
		document.getElementById('main').style.marginLeft = '50%';
	}
	
		
}



function CheckPUL() {
	
	if(document.getElementById('pul').checked == false) {
		alert("Jag har läst och accepterar att Seagreens sparar mina uppgifter.")
		return false
	}
	else {
		return true
	}
}