$(document).ready(function(){ 
	//tree menu
	/*$(".tree").treeview({
		animated: "fast",
		persist: "location",
		collapsed: true,
		unique: false
	});*/
	$("#wrapper").css("font-size",$.cookies.get('fsize'));
	//original tree
	$('.tree').find('span').each(function(){
		var t = $(this).parents('li')[0];
		if($(t).hasClass('open')) {
			$(t).children('ul').show();
		}
		$(this).click(function(){
			$(t).children('ul').slideToggle();
		});
	});
	$('.tree').find('li.current_page_item').children('ul').show();
	$('.tree').find('li.current_page_item').parents('ul').show();
}); 
function font(size){
	$("#wrapper").css("font-size",size);
	$.cookies.set("fsize",size,{expires:30,path:'/'});
}
