$(document).ready(function() {
	html.links();
	html.nicEdit();
});

html = {
	links: function() {
		$("a[rel=external]").attr({target: "_blank"}).addClass("external");
	},
	
	nicEdit: function() {
		$("textarea.nice").each(function() {
			new nicEditor({buttonList: ["bold", "italic", "underline", "left", "center", "right", "ol", "ul", "subscript", "superscript", "image", "link", "unlink", "xhtml"], iconsPath: "/images/nicEditorIcons.gif"}).panelInstance(this);
		});
	}
}