$(function() {
		$('#create-user').click(function() {
			window.location = "/forum/profile.php?mode=register"
		})
		.hover(
			function(){ 
				$(this).addClass("ui-state-hover"); 
			},
			function(){ 
				$(this).removeClass("ui-state-hover"); 
			}
		).mousedown(function(){
			$(this).addClass("ui-state-active"); 
		})
		.mouseup(function(){
				$(this).removeClass("ui-state-active");
		});
		
		$('#add-tutorial').click(function() {
		window.location = "/index.php?page=addtutorial"
		})
		.hover(
			function(){ 
				$(this).addClass("ui-state-hover"); 
			},
			function(){ 
				$(this).removeClass("ui-state-hover"); 
			}
		).mousedown(function(){
			$(this).addClass("ui-state-active"); 
		})
		.mouseup(function(){
				$(this).removeClass("ui-state-active");
		});

	});

function show() {
var lentaid = document.getElementById("bgtop");
if(lentaid.style.display == "none") { lentaid.style.display = "block"; }
else { lentaid.style.display = "none"; }
}

$(document).ready(function(){

	//Hide (Collapse) the toggle containers on load
	$(".contentc").hide(); 

	//Switch the "Open" and "Close" state per click
	$(".topc").toggle(function(){
		$(this).addClass("active");
		}, function () {
		$(this).removeClass("active");
	});

	//Slide up and down on click
	$(".topc").click(function(){
		$(this).next(".contentc").slideToggle("fast");
	});

});

function increase_decrease(type) {
            var obj = document.getElementById('text');
            if(type) {
               if(currentSize < max) {currentSize++;}
            }
            else {
               if(currentSize > min) {currentSize--;}
            }
            obj.style.fontSize = currentSize + "px";
         }