
/**
 * Web-Dynamic Editor
 * @author web-dynamic
 */

var wdEditor =
{
	instance : [],

	get : function(iname)
	{
		if (typeof this.instance[iname] == 'undefined')
		{
			this.instance[iname] = new _ptools.Editor({
				name         : iname,
				content_name : 'content',
				loadWithAjax : false,
				height 	     : 350,
				width 	     : 635,
				cssfiles     : EDITOR_CSS
			});
		};

		return this.instance[iname];
	}
};

function WysiwygInsert(title, img, alt, code)
{
alert(code);
	Editor.insertAtSelection( code );
};

function switchcat(o, catid)
{
    var oCat = document.getElementById(catid);

    if (o.className == 'plus')
    {
	oCat.style.display = '';
	o.className = 'minus';

	return;
    };

    oCat.style.display = 'none';
    o.className = 'plus';
};

