


function ScribbleLive()
{

    try
    {
        if( LiveBlog )
        {
            var lb = new LiveBlog( 
                ScribbleLive.arguments[0],
                ScribbleLive.arguments[1],
                ScribbleLive.arguments[2],
                ScribbleLive.arguments[3],
                ScribbleLive.arguments[4],
                ScribbleLive.arguments[5],
                ScribbleLive.arguments[6],
                ScribbleLive.arguments[7]
                );
            lb.PollForNew();
            return;
        }
    }
    catch( err )
    {
        try
        {
            if( ScribbleLive_LiveBlogs )
            {
                ScribbleLive_LiveBlogs.push( ScribbleLive.arguments );
            }
        }
        catch( err )
        {
            ScribbleLive_LiveBlogs = new Array();
            ScribbleLive_LiveBlogs.push( ScribbleLive.arguments );
        }
    }



    var OnLoadFunction = function()
        {
            var iLiveBlog;
            
            for( var i = 0; i < ScribbleLive_LiveBlogs.length; i++ )
            {
                iLiveBlog = new LiveBlog
                    ( 
                        ScribbleLive_LiveBlogs[i][0],
                        ScribbleLive_LiveBlogs[i][1],
                        ScribbleLive_LiveBlogs[i][2],
                        ScribbleLive_LiveBlogs[i][3],
                        ScribbleLive_LiveBlogs[i][4],
                        ScribbleLive_LiveBlogs[i][5],
                        ScribbleLive_LiveBlogs[i][6],
                        ScribbleLive_LiveBlogs[i][7]
                    );
                iLiveBlog.PollForNew();
            }       
        }

    

    var Scripts = document.getElementsByTagName("script");
    
    var LiveBlogLoading = false;
    
    for( var i = 0; i < Scripts.length; i++ )
    {
        if( Scripts[i].src == "http://www.scribblelive.com/js/LiveBlog.aspx" )
        {
            LiveBlogLoading = true;
            break;
        }
    }
    
    if( !LiveBlogLoading )
    {
        var LiveBlogScript = document.createElement("script");
        LiveBlogScript.type = "text/javascript";
        LiveBlogScript.src = "http://www.scribblelive.com/js/LiveBlog.aspx";
        
        if( LiveBlogScript.attachEvent )
        {
            var Interval = setInterval( function()
                {
                    if( eval("typeof LiveBlog" ) == "function" )
                    {
                        clearInterval( Interval );
                        OnLoadFunction();
                    }
                }, 500 );
        }
        else if( LiveBlogScript.addEventListener )
        {
            LiveBlogScript.addEventListener( "load", OnLoadFunction, false );
        }
        
        document.getElementsByTagName("head")[0].appendChild( LiveBlogScript );
    }
    
  
    
}


