// Hack for Mac FF
function com_srausc_contactus_macfirefox() {
    if( $('#TB_window').length > 0 ) {
        $('#hero object').hide();
        $('#hero #flashcontainer-backup').show();
    }
    else {
        $('#hero object').show();
        $('#hero #flashcontainer-backup').hide();
    }
    setTimeout("com_srausc_contactus_macfirefox()", 500);
}

// News Ticker
function com_doctorsofusc_home_feed_timer(cursor) {
    if (cursor != com_doctorsofusc_home_feed.cursor) return;
    com_doctorsofusc_home_feed.next();
}
var com_doctorsofusc_home_feed = { "cursor" : -1, "items" : [], "next" : function(){
    if (typeof this.items == 'undefined' || this.items.length == 0) {
        $('#news span.container-item').html('Error loading the news.');
		$('#news a.next').remove();
        return;
    }
    this.cursor++;
    if (this.cursor >= this.items.length) this.cursor = 0;
    var item = this.items[this.cursor];
	var itemDesc = item.description.replace(/<p>/, '');
    var itemHtml = '<a href="' + item.id + '">' + item.title + '</a>';
    $('#news span.container-item').html(itemHtml);
    setTimeout("com_doctorsofusc_home_feed_timer(" + this.cursor + ")", 5000);
} };
