function setActiveTab(tabviewid,tabid,tabs) { for (var i = 0; i < tabs.length; i++) { jQuery("#" + tabs[i]).attr("class", "tabOff"); jQuery("#" + tabs[i] + "layer").hide(); } jQuery("#" + tabid).attr("class", "tabOn"); jQuery("#" + tabid + "layer").show(); jQuery("#" + tabviewid + '_activetab').val(tabid); // show first tinymce toolbar jQuery(".tinymceMenuBar").hide(); jQuery(document).ready(function() { jQuery("#" + tabid + "layer .tinymceMenuBar:first").show(); }); } function resizeTabView(TabPageArr, TabViewName) { var clientHeight = jQuery(window).height(); //getViewportHeight(); var clientWidth = jQuery(window).width(); // getViewportWidth(); if(top.document.location == document.location) resizeTabViewTo(TabPageArr, TabViewName, clientHeight - 10, clientWidth - 15) else resizeTabViewTo(TabPageArr, TabViewName, clientHeight, clientWidth) } function resizeTabViewTo(TabPageArr, TabViewName, tvHeight, tvWidth) { var tabviewHeight = tvHeight - 12; jQuery("#" + TabViewName).width(tvWidth); jQuery("#" + TabViewName).height(tabviewHeight); for (i=0;i