$(function(){var tinyOptions={theme:"advanced",mode:"none",skin:"default",plugins:"contextmenu,fullscreen,spellchecker,table,paste",plugin_preview_width:"500",plugin_preview_height:"600",apply_source_formatting:true,force_br_newlines:false,force_p_newlines:true,remove_trailing_nbsp:false,theme_advanced_path:false,relative_urls:false,inline_styles:true,browsers:"msie,gecko,opera,safari,",extended_valid_elements:"style[]",cleanup_callback:"myCustomCleanup",convert_urls:false,table_cell_limit:1000,table_col_limit:20,theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",theme_advanced_statusbar_location:"bottom",theme_advanced_resizing:true,theme_advanced_resizing_use_cookie:false,theme_advanced_resize_horizontal:false,theme_advanced_blockformats:"p,h1,h2,h3,pre",width:"100%",spellchecker_rpc_url:"/common/js/tiny_mce/plugins/spellchecker/rpc.php",init_instance_callback:function(inst){inst.focus();}};var OneRowOptions={theme_advanced_buttons1:"link,unlink,image,table,separator,"
+"formatselect,forecolor,separator,"
+"bold,italic,underline,strikethrough,separator,"
+"bullist,numlist,outdent,indent,separator,"
+"justifyleft,justifycenter,justifyright,justifyfull,separator,"
+"spellchecker,code,fullscreen,pasteword",theme_advanced_buttons2:""};var TwoRowOptions={theme_advanced_buttons1:"link,unlink,image,table,delete_table,separator,"
+"formatselect,forecolor,separator,"
+"bold,italic,underline,strikethrough,separator",theme_advanced_buttons2:"bullist,numlist,outdent,indent,separator,"
+"justifyleft,justifycenter,justifyright,justifyfull,separator,"
+"spellchecker,code,fullscreen,pasteword",theme_advanced_buttons3:""};$("#Content-Body .olt-comments-threaded li.oli > ul:hidden").each(function(){if(($(this).parents("ul").length)%6===0){var count=$(this).find("li.oli").length;var that=this;$("<p class='CommentShowHide'><a href='#' class='a-action'>Show / Hide "+count+" more comments</a></p>").insertBefore(this).click(function(){$(that).toggle();$(that).find("img.dynImage").dynamicImages();return false;});}});$("#Content-Body .olt-comments-threaded a.CommentReply, #Content-Body .olt-comments-threaded a.a-cancel").live("click",function(){var level=($(this).parents("ul").length%6);if(level>3||level===0){rowOptions=TwoRowOptions;}else{rowOptions=OneRowOptions;}
if(!$.isMobile()&&!$.testingActive){var finalOptions=$.extend(tinyOptions,rowOptions);tinyMCE.init(finalOptions);$(this).parents(".olFooter").children("form").find("textarea.input-wysiwyg").each(function(){tinyMCE.execCommand("mceToggleEditor",true,$(this).attr("id"));});}
$(this).parents(".olFooter").children("form").toggle();return false;});$("#Content-Body .editcommentForm").each(function(){var level=($(this).parents("ul").length%6);if(level>3||level===0){rowOptions=TwoRowOptions;}else{rowOptions=OneRowOptions;}
if(!$.isMobile()&&!$.testingActive){var taId=$(this).find("textarea.input-wysiwyg").attr("id");var finalOptions=$.extend(tinyOptions,rowOptions);tinyMCE.init(finalOptions);tinyMCE.execCommand("mceToggleEditor",true,taId);}
$(this).find("a.a-cancel").click(function(){form_cancel();return false;});$(this).parents("ul").show();$(this).show();return false;});});