$j=jQuery.noConflict();
 
$j(document).ready(function()
{
	fast_load = $j.cookie("benkane_fastload2");
	if(fast_load != "yes")
	{
		$j('#wrapper').hide();
		$j('#home_social').hide();
		$j('#inner_discuss').hide();
		$j('#blog_page_title').hide();
		$j('#books_feature').hide();
		$j('#main').hide();
		$j('#access').hide();
		$j('#menu_credits').hide();
		window.setTimeout(show_wrapper, 2000);
		window.setTimeout(show_access, 2000);
		window.setTimeout(show_menu_credits, 2000);
		window.setTimeout(show_home_social, 4000);
		window.setTimeout(show_inner_discuss, 4000);
		window.setTimeout(show_blog_page_title, 4000);
		window.setTimeout(show_main, 4000);
		window.setTimeout(show_books_feature, 4000);
	}
	$j.cookie("benkane_fastload2", "yes", {path: '/', expires: 30});	/* set cookie for 30 (more) days of fade-free loading*/

	if (!(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) < 5))  /* only do this if browser does not need 'roundies' */
	{
		/* on QandA page hide all the elements and enable click to show/hide the answers */
		$j(".get_posts_post_container").find('.answer').slideToggle('slow');	/* hide all elements (use animation to give visual cue */
		$j(".get_posts_post_container").click(function() 
		{
			$j(this).find('.answer').slideToggle('slow');
		}
		);
	}	
})

function show_wrapper()
{
	$j('#wrapper').fadeIn(1000);
}
function show_access()
{
	$j('#access').fadeIn(1000);
}
function show_menu_credits()
{
	$j('#menu_credits').fadeIn(1000);
}
function show_home_social()
{
	$j('#home_social').fadeIn(1000);
}
function show_inner_discuss()
{
	$j('#inner_discuss').fadeIn(1000);
}
function show_blog_page_title()
{
	$j('#blog_page_title').fadeIn(1000);
}
function show_main()
{
	$j('#main').fadeIn(1000);
}
function show_books_feature()
{
	$j('#books_feature').fadeIn(1000);
}
