function popitup(url,width,height) {
	newwindow=window.open(url,'editwindow','height=' + height + ',width=' + width +',scrollbars=1,resizable=1');
	if (window.focus) {
		newwindow.focus()
	}
	return false;
}

function showEditor(name)
{
	$('.editor_div').hide();
	$('.text_content').show();
	$('#editor_' + name).show();
	if (!tinyMCE.get(name))
		tinyMCE.execCommand('mceAddControl', false, name);
}

function hideEditor(name)
{
	$('.editor_div').hide();
	if (tinyMCE.get(name))
		tinyMCE.execCommand('mceRemoveControl', false, name);

}

function lltiny(id)
{
	if (!tinyMCE.get(id))
		tinyMCE.execCommand('mceAddControl', false, id);
	else
		tinyMCE.execCommand('mceRemoveControl', false, id);
}


$(document).ready(function(){
	$("#slider").easySlider({
		auto: true,
		continuous: true,
		speed: 600,
		pause: 5000,
		controlsShow: false
	});
});
