//set itemID
var itemID = document.location.href.match(/\#\w+$/);
	itemID = (itemID)?itemID.toString():null;
//news FX init
function newsFXInit(){
	var offSet
	//hightlight an item if coming from another page to a specific item
	if( itemID != null){
		$("h4", itemID).addClass( "highlight" );
	}
//scoll to a faq
	$("#newsListing dt a").click(function(){
		var linkRel = $(this).attr("rel");
		offSet = $(linkRel).offset().top;
		$( "div.newsItem h4" ).removeClass( "highlight" );
		$(this).attr("href","javascript:return false;")
		$( linkRel ).find("h4").addClass( "highlight" );
		$("html,body").animate({scrollTop: offSet}, 990);
		return(false);
	});
//scroll to the top
	$("a.toplink").click(function(){
        offSet = "-"+$(this).offset().top
        $("html,body").animate({scrollTop: offSet}, 990);
        $( "div.faq h3" ).removeClass( "highlight" );
		return(false);
	});
}

jQuery(newsFXInit);