setInterval(
    function(){
        var newFrameName = location.hash.replace('#', 'F');
        if ( newFrameName && newFrameName !== currentHash ) {
        	_gaq.push(['_trackPageview', location.hash]);
        	
            $('#content').css('margin-left', '0');
            $('#content').children().css('display', 'none');
            $(document.getElementById(newFrameName)).css('display', 'block');
            $(document.getElementById(currentHash)).css('display', 'block');
            $(document.getElementById(newFrameName)).insertAfter(document.getElementById(currentHash));

            $('#content').animate({ 
                marginLeft: '-=450' 
            }, 500);

            currentHash = newFrameName;
            return true;
        }
        return false;
    }, 250
);


function showScrollOn( ref ){
    ref.css('overflow-y', 'auto');
}


function hideScroll(){
    $('.app_holder, #latest_news_holder').css('overflow-y', 'hidden');
}


$(function() {
	$("a[href*='http://']:not([href*='"+location.hostname+"'])").click(function() {
		window.open(this.href);
		return false;
	});
	$("a[href*='/']:not([href*='http://'])").each(function(){
		this.href = '#'+this.href.match(/\/([^\/]+)\/$/)[1];
	});
});
