//LOGINFORMULIER
	var loginteller= 0;
	$(window).keyup(function(event) {
		//if(event.shiftKey){
			var shiftf2 = (String.fromCharCode(event.keyCode));
			if(shiftf2=='q') {
				if(loginteller%2 == 0) {
					$("div#loginpanel").animate({
						height: "400px"
					})
					.animate({
						height: "390px"
					}, "fast");
					$("div.panel_button").show();
				}
				else {
					$("div#loginpanel").animate({
						height: "0px"
					}, "fast");
					$("div.panel_button").hide();
				}
				loginteller++;
			}
		//}
	});
	
	$("#hide_button").live("click",function(){
		$("div#loginpanel").animate({
			height: "0px"
		}, "fast");
		$("div.panel_button").hide();
		loginteller++;
	});
	
	$("#login_btn").live("click",function(){
		var namex = $("#username").val();
		var passwordx = $("#password").val();
		$.post(rooturl+"/php/login/checkuser.php",{name:namex,password:passwordx},function(data){
			if(data) {
				window.location = rooturl+"/splash.php";
			}
		});
	});

	// END LOGINFORMULLIER
