$(document).ready(function(){
	
	if (jQuery.browser.safari)
	{
		$("li.feature-bookmark").hide();
	}
	
	$('#unit-social-bookmarks').hide();
	
	$('#unit-social-bookmarks .close').click( function() {
		$('#unit-social-bookmarks').fadeOut( 'fast' );
		return false;
	});
	$('#social-bookmarks').click( function() {
		var offset = $('#social-bookmarks').offset();
		
		
		$('#unit-social-bookmarks').css({
			top: (offset.top  - 16 - $('#unit-social-bookmarks').height()) + 'px',
			left: (offset.left - 120) + 'px'
		});

		$('#unit-social-bookmarks').fadeIn('fast');
		$('div#send-to-friend-content:visible').slideUp("fast");
		return false;
	});
	
	$('#social-bookmarks-map').click( function() {
		
		$('div#send-to-friend-content:visible').hide();
		
		var offset = $('#social-bookmarks-map').offset();
		$('#unit-social-bookmarks').css({
			top: (offset.top  - 86 - $('#unit-social-bookmarks').height()) + 'px'
		});
		
		
		
		$('#unit-social-bookmarks').fadeIn('fast');
		
		return false;
	});
	$('#bookmark-me').click ( function() {	
			title = document.title; 
			url = window.location.href;

		    if (window.sidebar) { // Mozilla Firefox Bookmark
		        window.sidebar.addPanel(title, url,"");
		    } else if( window.external ) { // IE Favorite
		        window.external.AddFavorite( url, title); }
		    else if(window.opera && window.print) { // Opera Hotlist
		         return true; }
	
	})
})






