var hide_bar = function() { $("#template_col").hide(); $("#doc_form").removeClass("span9"); $("#doc_form").addClass("span11"); $("#hide_bar_template").css({"background-image" : \'url("../img/hide2.png")\'}) } $(document).ready(function() { if ($(window).width() <= 785 ) { hide_bar(); } $("#hide_bar_template").toggle( function() { hide_bar(); }, function() { $("#template_col").show(); $("#doc_form").removeClass("span11"); $("#doc_form").addClass("span9"); $(this).css("background-image", \'url("../img/hide0.png")\'); } ); }); function InnerDialogLoaded() { /* var B=new window.frames[0].FCKToolbarButton(\'Templates\',window.frames[0].FCKLang.Templates); return B.ClickFrame(); */ var isIE = (navigator.appVersion.indexOf(\'MSIE\') != -1) ? true : false ; var EditorFrame = null ; if ( !isIE ) { EditorFrame = window.frames[0] ; } else { // For this dynamic page window.frames[0] enumerates frames in a different order in IE. // We need a sure method to locate the frame that contains the online editor. for ( var i = 0, n = window.frames.length ; i < n ; i++ ) { if ( window.frames[i].location.toString().indexOf(\'InstanceName=content\') != -1 ) { EditorFrame = window.frames[i] ; } } } if ( !EditorFrame ) { return null ; } var B = new EditorFrame.FCKToolbarButton(\'Templates\', EditorFrame.FCKLang.Templates); return B.ClickFrame(); }; function FCKeditor_OnComplete( editorInstance) { document.getElementById(\'frmModel\').innerHTML = "