/********************************************************************
 * openWYSIWYG settings file Copyright (c) 2006 openWebWare.com
 * Contact us at devs@openwebware.com
 * This copyright notice MUST stay intact for use.
 *
 * $Id: wysiwyg-settings.js,v 1.4 2007/01/22 23:05:57 xhaggi Exp $
 ********************************************************************/

/*
 * Full featured setup used the openImageLibrary addon
 */
var full = new WYSIWYG.Settings();
full.ImagesDir = "http://payam.persiangig.com/OPEN/images/";
full.PopupsDir = "http://payam.persiangig.com/OPEN/popups/";
full.CSSFile = "http://payam.persiangig.com/OPEN/styles/wysiwyg.css";
full.Width = "250px"; 
full.Height = "250px";
// customize toolbar buttons
full.addToolbarElement("font", 3, 1); 
full.addToolbarElement("fontsize", 3, 2);
full.addToolbarElement("headings", 3, 3);
// openImageLibrary addon implementation
full.ImagePopupFile = "http://payam.persiangig.com/OPEN/addons/imagelibrary/insert_image.php";
full.ImagePopupWidth = 600;
full.ImagePopupHeight = 245;


var curLoc=window.location.href.replace(/my\/\?.*/g, "")
/*
 * Small Setup Example
 */
var small = new WYSIWYG.Settings();
small.ImagesDir = curLoc + "/images/";
small.PopupsDir = curLoc + "/popups/";
small.CSSFile = curLoc + "/styles/wysiwyg.css";
small.Width = "500px";
small.Height = "400px";
small.DefaultStyle = "font-family: Tahoma; font-size: 12px; background-color: white; direction: rtl; padding:0 0 0 5px;";
small.Toolbar[0] = new Array("font", "fontsize", "bold", "italic", "underline", "seperator", "forecolor", "backcolor", "seperator", "justifyright", "justifycenter", "justifyleft", "justifyfull"); // small setup for toolbar 1
small.Toolbar[1] = new Array("copy", "paste", "seperator", "unorderedlist", "orderedlist", "seperator", "superscript", "subscript", "seperator", "createlink", "insertimage", "seperator", "viewSource", "seperator", "preview"); // small setup for toolbar 1
//small.Toolbar[1] = ""; // disable toolbar 2
small.StatusBarEnabled = false;
//full.ImagePopupFile = "http://payam.persiangig.com/OPEN/addons/imagelibrary/insert_image.php";
small.ImagePopupWidth = 700;
small.ImagePopupHeight = 445;



