$(document).ready(function(){
						   
	$("#logo").click(function(){ window.location.href  = 'http://www.q-solve.nl/'; });

	//$("#bottom_nav li:last").css("backgroundImage","none");

	
	$(".success-message").fadeOut(3000);

	$("#nav").treeview({persist: "location", collapsed: true});
		
	$('#vertical-menu').css('visibility','visible');

	if($('#content').height() > $('#menu').height())
	{
		$('#menu').css('height', $('#content').height());
	}
	if($('#content').height() > $('#nieuws').height())
	{
		$('#nieuws').css('height', $('#content').height());
	}
	

});


function insert_smiley(text)
{


	var target 			  = document.getElementById('message');

	var Start			  = target.selectionStart;
	var End 	 		  = target.selectionEnd;
	
	target.value		  = target.value.substr(0, Start) + text + target.value.substr(End, target.value.length); 
	target.selectionStart = (Start == End)? Start + text.length:Start;
	target.selectionEnd   = Start + text.length;
	
	target.focus();
}


	


//--><!]]>
