// JavaScript Document

function comment_setreply(author,contentid) {

	content = "[quote][b]" + author + " said:[/b]\n\n" + $(contendid).innerHTML + "[/quote]\n\n ";
	tinyMCE.setContent(content, {format : 'bbcode'});

}

window.addEvent('domready', function(){
	var Tips1 = new Tips($$('.ntips'), {
		className: 'ntipsc',
		initialize:function(){
			this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
		},
		onShow: function(toolTip) {
			this.fx.start(1);
		},
		onHide: function(toolTip) {
			this.fx.start(0);
		}
	});
});

function dotagsearch(textbox) {
		window.location = '/news/tag/' + $(textbox).value.clean().toLowerCase() + '/';
}

function displaycs() {
	alert("Sorry, this feature is not yet available. We are sorry for the inconvenience.\n\nWe are adding multiple new features every day!");
	return false;	
}