/*
	@author		Kevin Bühl
	@email		kevin@buehl.biz
	@web		www.4b42.com
*/
function shownav(id, pos)
{
	$.post("/includes/themes/4b42/php/cont/nav.php", { link_block:id, pos:pos },function(data)
	{
		$("section nav").html(data);									/* Script stolen from 4b42 */
		/*$("section nav").show("slide", { direction: "left" }, 1000);	/* Script stolen from 4b42 */
		$("section nav").show();										/* Script stolen from 4b42 */
		return false;
	});
	$.post("/includes/themes/4b42/php/core/cookie.php", { nav:id, pos:pos },function(data)
	{
		return false;
	});
	return false;
}

function show_content(path, query, cont, id)
{
	$.post("/includes/themes/4b42/php/cont/content.php", { path:path, query:query, cont:cont, id:id },function(data)
	{
		$("section section").html(data);
		$("section section").show;
		return false;
		/* Script stolen from 4b42 */
	});
	$.post("/includes/themes/4b42/php/core/cookie.php", { path:path, query:query, cont:cont, id:id },function(data)
	{
		return false;
	});
	return false;
}

/* funciton for login to reload the content automaticaly */
function show_nav_cont()
{
	$.post("/includes/themes/4b42/php/core/cookie.php", { readnavdata:"1" },function(data)
	{
		shownav(data);
	});
	$.post("/includes/themes/4b42/php/core/cookie.php", { readcontdata:"1" },function(data)
	{
		show_content(data);
	});
}
