var faqTweenTime = 400;

if ($.browser.msie && $.browser.version.substr(0,1)<8) {

faqTweenTime = 0;

} 

function init_faq(qid){	

    var url=document.URL.split('#')[1];
    if(url == undefined){
        url = '';
    }


if (url == 2) {
	// run this if second article to be shown first
	$(".full_news_div:nth-child(2)").addClass("current");
	$(".full_news_div:not(.full_news_div:nth-child(2))").hide();
	$(".news_links a:nth-child(2)").addClass("selected");
} else {
	//run this if first article to be shown first
	$(".full_news_div:first").addClass("current");
	$(".full_news_div").not(":first").hide();
	$(".news_links a:first").addClass("selected");
}


$(".news_links a").click(function() {
	$(".selected").removeClass("selected");
	$(this).addClass("selected");

	if ( $("#" + this.rel).is(":hidden") )
	{
		$(".current").hide();
		$(".current").removeClass("current");
		$("#" + this.rel).fadeIn();
		$("#" + this.rel).addClass("current");
	}

});

	
}

