$(document).ready(function(){
    if($('a').hasClass('a_selected')){
        $('img.selected').hide();
        $('img.selected').css('top', $('ul.menu5 li a.a_selected').offset().top + 20);
        $('img.selected').css('left', parseInt($('ul.menu5 li a.a_selected').offset().left + ($('ul.menu5 li a.a_selected').width()/2) - 3));
        $('img.selected').fadeIn('slow');
    }else{
        $('img.selected').hide();
    }
    
    $("a.jQueryBookmark").click(function(e){
        e.preventDefault();                                             // this will prevent the anchor tag from going the user off to the link
	var bookmarkUrl   = this.href;
	var bookmarkTitle = this.title;

	if (window.sidebar) {                                           // For Mozilla Firefox Bookmark
            window.sidebar.addPanel(bookmarkTitle, bookmarkUrl, "");
	}else if( window.external || document.all) {                   // For IE Favorite
            window.external.AddFavorite(bookmarkUrl, bookmarkTitle);
	}else if(window.opera) {                                       // For Opera Browsers
            $("a.jQueryBookmark").attr("href", bookmarkUrl);
            $("a.jQueryBookmark").attr("title", bookmarkTitle);
            $("a.jQueryBookmark").attr("rel", "sidebar");
	}else {                                                        // for other browsers which does not support
            alert('Your browser does not support this bookmark action');
            return false;
	}
});

});