$(function(){
	if ($.browser.msie){
		try{
		document.execCommand("BackgroundImageCache",false,true);
		} catch(err){}
	}
	// Set target="_blank" for all links in the sidebar
	$('#sb li a').attr("target","_blank");
	$('.frnd a').attr("target","_blank");
	// Bookmark
    $('a.bookmark').click(function(){ // 'a.bookmark, a[@rel="bookmark"]'
        return Bookmark.add(this);
    });

	var Bookmark = {
		title   : document.title,
		url     : document.location,

		add : function (anchor){
			if (window.sidebar) {
				  window.sidebar.addPanel(this.title, this.url, '');
			}
			else if (window.external) {
				  window.external.AddFavorite(this.url, this.title);
			}
			else if (window.opera) {
				  anchor.rel = 'sidebar';
				  anchor.href = '';
				  return true;
			}
			else {
				  alert("Unfortunately your browser doesn\'t support this feature.\nIn order to bookmark this site please do so manually through your browser.");
			}
			return false;
		}
	}
});

function mn(){
	$('#mm dt[id!=tm1]').hover(
		function(){$(this).next().show()},
		function(){$(this).next().hide()}
	);
	$('#mm dd').hover(
		function(){$(this).show()},
		function(){$(this).hide()}
	);
};
