function createEditor(name, value, width, height)
{	
	var oFCKeditor = new FCKeditor(name);
		oFCKeditor.BasePath = "/js/fckeditor/";
		oFCKeditor.ToolbarSet = 'Proman';
		oFCKeditor.Width=width;
		oFCKeditor.Height=height;
		oFCKeditor.Value=value;
		
		oFCKeditor.Create();
}

function popup(url, name, width, height)
{
	var x = (screen.width - width) / 2;
	var y = (screen.height - height) / 2;
	window.open(url, name, 'width=' + width + ', height=' + height + ', top=' + y + ', left=' + x + ', scrollbars=auto');
}

/*$(document).ready(
	function()
	{
		var str = '';
		var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
		
		str += '<script src="' + gaJsHost + 'google-analytics.com/ga.js" type="text/javascript"></script>"';
		$(this).append(str);
		
		
		str += '<script type="text/javascript">';
			str += 'var pageTracker = _gat._getTracker("UA-3954376-1");';
			str += 'pageTracker._initData();';
			str += 'pageTracker._trackPageview();';
		str += '</script>';
		
		$(this).append(str);
	}
);*/