// ----------------------------------------------------------------------------
// markItUp!
// ----------------------------------------------------------------------------
// Copyright (C) 2008 Jay Salvat
// http://markitup.jaysalvat.com/
// ----------------------------------------------------------------------------
// BBCode tags 
// http://en.wikipedia.org/wiki/Bbcode
// ----------------------------------------------------------------------------
// Feel free to add more tags 
// ----------------------------------------------------------------------------
mySettings = {
	previewParserPath:	"~/sets/bbcode/bbcode_preview.php", // path to your BBCode parser
	markupSet: [
		{name:'Bold', key:'B', openWith:'[b]', closeWith:'[/b]'},
		{name:'Italic', key:'I', openWith:'[i]', closeWith:'[/i]'},
		{name:'Underline', key:'U', openWith:'[u]', closeWith:'[/u]'},
		{name:'Stroke', key:'S', openWith:'[s]', closeWith:'[/s]'},
		{separator:'---------------' },
		{name:'Picture', key:'P', replaceWith:'[img][![Url]!][/img]'},
		{name:'Link', key:'L', openWith:'[url=[![Url]!]]', closeWith:'[/url]', placeHolder:'Your text to link here...'},
		{separator:'---------------' },
		{name:'Size', key:'S', dropMenu:[
		  {name:'Very Big', openWith:'[size=7]', closeWith:'[/size]' },
		  {name:'Big', openWith:'[size=6]', closeWith:'[/size]' },
			{name:'Very Large', openWith:'[size=5]', closeWith:'[/size]' },
			{name:'Large', openWith:'[size=4]', closeWith:'[/size]' },
			{name:'Normal', openWith:'[size=3]', closeWith:'[/size]' },
			{name:'Small', openWith:'[size=2]', closeWith:'[/size]' },
			{name:'Very Small', openWith:'[size=1]', closeWith:'[/size]' },
			{name:'Tiny', openWith:'[size=0]', closeWith:'[/size]' }
		]},
		{name:'Colors', className:'colors', dropMenu:[
					{name:'Yellow',	openWith:'[color=yellow]', 	closeWith:'[/color]', className:"col1-1" },
					{name:'Orange',	openWith:'[color=orange]', 	closeWith:'[/color]', className:"col1-2" },
					{name:'Red', 	openWith:'[color=red]', 	closeWith:'[/color]', className:"col1-3" },
					
					{name:'Blue', 	openWith:'[color=blue]', 	closeWith:'[/color]', className:"col2-1" },
					{name:'Purple', openWith:'[color=purple]', 	closeWith:'[/color]', className:"col2-2" },
					{name:'Green', 	openWith:'[color=green]', 	closeWith:'[/color]', className:"col2-3" },
					
					{name:'White', 	openWith:'[color=white]', 	closeWith:'[/color]', className:"col3-1" },
					{name:'Gray', 	openWith:'[color=gray]', 	closeWith:'[/color]', className:"col3-2" },
					{name:'Black',	openWith:'[color=black]', 	closeWith:'[/color]', className:"col3-3" }
				]
		},
		{name:'Superscript', openWith:'[sup]', closeWith:'[/sup]'},
		{name:'Subscript', openWith:'[sub]', closeWith:'[/sub]'},
		{separator:'---------------' },
		{name:'Left alignment', openWith:'[left]', closeWith:'[/left]'},
		{name:'center alignment', openWith:'[center]', closeWith:'[/center]'},
		{name:'Right alignment', openWith:'[right]', closeWith:'[/right]'},
		{name:'Indent', openWith:'[indent]', closeWith:'[/indent]'},
		{separator:'---------------' },
		  {name:'Bulleted list', openWith:'[list]\n', closeWith:'\n[/list]'}, 
      {name:'Numeric list', openWith:'[list=[![Starting number]!]]\n', closeWith:'\n[/list]'}, 
      {name:'List item', openWith:'[*] '}, 
    {separator:'---------------' },
		  {name:'Quotes', openWith:'[quote]', closeWith:'[/quote]'},
		{separator:'---------------' },
		  {name:'Preview', className:"preview", call:'preview' },
		  {name:'Smileys', className:'smiley', dropMenu:[
					{name:'Smile',	replaceWith:':\-\)', className:"smile" },
					{name:'Neutral',	replaceWith:':\|', className:"neutral" },
					{name:'Tongue',	replaceWith:':P', className:"tongue" },
					{name:'Wink',	replaceWith:';)', className:"wink" },
					{name:'Bigsmile',	replaceWith:':D', className:"bigsmile" },
          {name:'Bigwink',	replaceWith:';D', className:"bigwink" },
          
          {name:'Bigeyes',	replaceWith:'8)', className:"bigeyes" },
          {name:'Laugh',	replaceWith:'XD', className:"laugh" },
          {name:'Surprise',	replaceWith:':O', className:"surprise" },
          {name:'Angry',	replaceWith:'>:(', className:"angry" },
          {name:'Frown',	replaceWith:':(', className:"frown" },
          {name:'Anime',	replaceWith:'\^_\^', className:"anime" },
          
          {name:'Boggle',	replaceWith:'o.O', className:"boggle" },
          {name:'Cool',	replaceWith:'B)', className:"cool" },
          {name:'Evil',	replaceWith:'>:)', className:"evil" },
          {name:'Saint',	replaceWith:'O:)', className:"saint" },
          {name:'Confuse',	replaceWith:':?', className:"confuse" },
          {name:'Sleepy',	replaceWith:':zzz:', className:"sleepy" },
          
          {name:'Worry',	replaceWith:':s', className:"worry" },
          {name:'Teeth',	replaceWith:'<g>', className:"teeth" },
          {name:'Sneaky',	replaceWith:'>;)', className:"sneaky" },
          {name:'Blue',	replaceWith:':blue:', className:"blue" },
          {name:'Star',	replaceWith:':star:', className:"star" },
          {name:'Heart',	replaceWith:':heart:', className:"heart" },

          {name:'Sweatdrop',	replaceWith:'^^;', className:"sweatdrop" },
          {name:'Irritated',	replaceWith:':\/', className:"irritated" },
          {name:'Beer',	replaceWith:':beer:', className:"beer" },
          {name:'Puke',	replaceWith:':puke:', className:"puke" },
          {name:'Angel', 	replaceWith:':angel:', className:"smiley_angel" },
          {name:'pray',	replaceWith:':pray:', className:"pray" }
					
				]
		},
      {name:'Clean', className:"clean", replaceWith:function(markitup) { return markitup.selection.replace(/\[(.*?)\]/g, "") }}
		  
	]
}

// ----------------------------------------------------------------------------
// markItUp! ':wall:' => 'wall.gif',
//           ':rolleyes:' => 'rolleyes.gif',
// ----------------------------------------------------------------------------
// Copyright (C) 2008 Jay Salvat
// http://markitup.jaysalvat.com/
// ----------------------------------------------------------------------------
myBbcodeSettings = {
  nameSpace:          "bbcode", // Useful to prevent multi-instances CSS conflict
  previewParserPath:  "~/sets/bbcode/preview.php",
  markupSet: [
      {name:'Bold', key:'B', openWith:'[b]', closeWith:'[/b]'}, 
      {name:'Italic', key:'I', openWith:'[i]', closeWith:'[/i]'}, 
      {name:'Underline', key:'U', openWith:'[u]', closeWith:'[/u]'}, 
      {separator:'---------------' },
      {name:'Picture', key:'P', replaceWith:'[img][![Url]!][/img]'}, 
      {name:'Link', key:'L', openWith:'[url=[![Url]!]]', closeWith:'[/url]', placeHolder:'Your text to link here...'},
      {separator:'---------------' },
      {name:'Colors', openWith:'[color=[![Color]!]]', closeWith:'[/color]', dropMenu: [
          {name:'Yellow', openWith:'[color=yellow]', closeWith:'[/color]', className:"col1-1" },
          {name:'Orange', openWith:'[color=orange]', closeWith:'[/color]', className:"col1-2" },
          {name:'Red', openWith:'[color=red]', closeWith:'[/color]', className:"col1-3" },
          {name:'Blue', openWith:'[color=blue]', closeWith:'[/color]', className:"col2-1" },
          {name:'Purple', openWith:'[color=purple]', closeWith:'[/color]', className:"col2-2" },
          {name:'Green', openWith:'[color=green]', closeWith:'[/color]', className:"col2-3" },
          {name:'White', openWith:'[color=white]', closeWith:'[/color]', className:"col3-1" },
          {name:'Gray', openWith:'[color=gray]', closeWith:'[/color]', className:"col3-2" },
          {name:'Black', openWith:'[color=black]', closeWith:'[/color]', className:"col3-3" }
      ]},
      {name:'Size', key:'S', openWith:'[size=[![Text size]!]]', closeWith:'[/size]', dropMenu :[
          {name:'Big', openWith:'[size=200]', closeWith:'[/size]' },
          {name:'Normal', openWith:'[size=100]', closeWith:'[/size]' },
          {name:'Small', openWith:'[size=50]', closeWith:'[/size]' }
      ]},
      {separator:'---------------' },
      {name:'Bulleted list', openWith:'[list]\n', closeWith:'\n[/list]'}, 
      {name:'Numeric list', openWith:'[list=[![Starting number]!]]\n', closeWith:'\n[/list]'}, 
      {name:'List item', openWith:'[*] '}, 
      {separator:'---------------' },
      {name:'Quotes', openWith:'[quote]', closeWith:'[/quote]'}, 
      {name:'Code', openWith:'[code]', closeWith:'[/code]'}, 
      {separator:'---------------' },
      {name:'Clean', className:"clean", replaceWith:function(h) { return h.selection.replace(/\[(.*?)\]/g, "") } },
      {name:'Preview', className:"preview", call:'preview' }
   ]
}
