window.addEvent("domready", function() {

	var PostShareItems = $$('.PostBar .Share');
	var PostBookmarkItems = $$('.PostBar .Bookmark');
	
	PostShareItems.each(function(PostShareItem, i) {
		PostShareItem.setStyle('display', 'block');
		PostShareItem.getFirst().addEvent("click", function(e) {
			new Event(e).stop();
		});
	});
	
	PostBookmarkItems.each(function(PostBookmarkItem, i) {
		if (window.opera && window.print) {
		
		} else {
			PostBookmarkItem.setStyle('display', 'block');
			PostBookmarkItem.getFirst().addEvent("click", function(e) {
				new Event(e).stop();

				if (window.sidebar) {
					window.sidebar.addPanel($$('h2')[0].innerHTML + ' - Tangled World', window.location,'');
				} else if( window.external ) {
					window.external.AddFavorite(window.location,$$('h2')[0].innerHTML + ' - Tangled World');
				}
			});
		}
	});
	
	if ($('CommentsForm')) {
		var commentsValidator = new fValidator("CommentsForm"); 
		$('CommentsAjax').value='1';
	}

});

