$(document).ready(function(){
    var badBrowser = jQuery.browser;
    //load none of this for ie6
    if (!(badBrowser.msie && jQuery.browser.version.substr(0,3)=="6.0")) {
        var baseURL = window.location.protocol + "//" + window.location.host + "/";

        //Hover function to load announcement
        $('#twit-announcement').hover(
            function() {
                $(this).css({background: "#FCFFF5 url(" + baseURL +  "theme/twitarmy/images/buglewithtext.png) no-repeat", width: "295px", left: "697px", top: "69px", border: "1px solid #000", borderBottom: "none"});
                $('#bugle_background').show();
                $('#bugle_text').show();
                url = baseURL + "theme/twitarmy/announcement.html";
                $.get(url, null, function(data){
                    $('#bugle_text').html(data);
                });
            },
            function() {
                $('#bugle_background').hide();
                $('#bugle_text').hide();
                $(this).css({background: "url(" + baseURL +  "theme/twitarmy/images/bugle.png) no-repeat", width: "80px", left: "921px", top: "69px", border:"none"});
            }
        );
    }
});
