var editors = [];

$(function() {
	$(".gallery-category a").lightBox({
		overlayBgColor:'#000',
		overlayOpacity:0.8,
		fixedNavigation:true,
		imageLoading: base + '/files/images/lightbox-ico-loading.gif',
		imageBtnPrev:base + '/files/images/lightbox-btn-prev.gif',
		imageBtnNext: base + '/files/images/lightbox-btn-next.gif',
		imageBtnClose: base + '/files/images/lightbox-btn-close.gif',
		imageBlank: base + '/files/images/lightbox-blank.gif',
		containerBorderSize:10,
		containerResizeSpeed:400,
		txtImage:'',
		txtOf:'z',
		keyToClose:'c',
		keyToPrev:'p',
		keyToNext:'n'
	});

	editors[0] =  new YAHOO.widget.Editor('frm-rightContent', 
	{ 
		handleSubmit: true, 
		dompath: true, //Turns on the bar at the bottom 
		animate: true //Animates the opening, closing and moving of Editor windows 
	});
	if (editors[0].get("toolbar"))
	{
		editors[0].get("toolbar").titlebar = $('#frm-rightContent').attr("title");
		yuiImgUploader(editors[0], "frm-rightContent", upload, "editor");
		editors[0].render();
	}
	
	editors[1] =  new YAHOO.widget.Editor('frm-leftContent', 
	{ 
		handleSubmit: true, 
		dompath: true, //Turns on the bar at the bottom 
		animate: true //Animates the opening, closing and moving of Editor windows 
	});
	if (editors[1].get("toolbar"))
	{
		editors[1].get("toolbar").titlebar = $('#frm-leftContent').attr("title");
		yuiImgUploader(editors[1], "frm-leftContent", upload, "editor");
		editors[1].render();
	}
});
			

