Index: cm1/index.php =================================================================== --- cm1/index.php (revision 39725) +++ cm1/index.php (working copy) @@ -471,7 +471,13 @@ class tx_templavoila_cm1 extends t3lib_SCbase { } }); } - ').$this->doc->getDynTabMenuJScode(); + '); + + if(t3lib_div::int_from_ver(TYPO3_version) < 4005000) { + $this->doc->getDynTabMenuJScode(); + } else { + $this->doc->loadJavascriptLib('js/tabmenu.js'); + } // Setting up the context sensitive menu: $CMparts = $this->doc->getContextMenuCode(); Index: mod1/db_new_content_el.php =================================================================== --- mod1/db_new_content_el.php (revision 39725) +++ mod1/db_new_content_el.php (working copy) @@ -144,7 +144,13 @@ class tx_templavoila_dbnewcontentel { $this->doc->loadJavascriptLib('contrib/prototype/prototype.js'); } - $this->doc->JScodeLibArray['dyntabmenu'] = $this->doc->getDynTabMenuJScode(); + + if(t3lib_div::int_from_ver(TYPO3_version) < 4005000) { + $this->doc->JScodeLibArray['dyntabmenu'] = $this->doc->getDynTabMenuJScode(); + } else { + $this->doc->loadJavascriptLib('js/tabmenu.js'); + } + $this->doc->form='