
Lycos.use("tinymce/plugins/video/editor_plugin");Lycos.use("tinymce/plugins/cuttag/editor_plugin");function webonCustomCallback(editor_id,elm,command,user_interface,value){var linkElm,imageElm,inst;switch(command){case"mceImage":inst=tinyMCE.getInstanceById(editor_id);var instId=subInstId=0;if(inst.formElement.id.match(/^cot/)){instId="webonwebsite";subInstId="table";top.jsWindow=window;}
else{var regEx=new RegExp(/[^\d]+([\d]+)(?:_([\d]+))?/);var matchup=regEx.exec(inst.formElement.id);instId=matchup[1];if(matchup[2]!=undefined)
subInstId=matchup[2];}
tinyMCE.webonInstance=editor_id;Lycos.ui.mediapicker.pick('callerid='+instId+"."+subInstId,null,'image');return true;case"mceLink":Lycos.ui.linkpicker.pick("site="+top.manager.instId,function(href,target){tinyMCE.themes['advanced']._insertLink(href,target);return true;});return true;case"forecolor":inst=tinyMCE.getInstanceById(editor_id);Lycos.ui.colorpicker.pick(null,function(){var color=Lycos.ui.colorpicker.gatherColor();inst.execCommand('forecolor',false,'#'+color);dontRemoveIt=true;});return false;case"mceVideo":inst=tinyMCE.getInstanceById(editor_id);var instId=subInstId=0;if(inst.formElement.id.match(/^cot/)){instId="webonwebsite";subInstId="table";top.jsWindow=window;}
else{var regEx=new RegExp(/[^\d]+([\d]+)(?:_([\d]+))?/);var matchup=regEx.exec(inst.formElement.id);instId=matchup[1];if(matchup[2]!=undefined)
subInstId=matchup[2];}
tinyMCE.webonInstance=editor_id;Lycos.ui.mediapicker.pick('callerid='+instId+"."+subInstId,null,'video');dontRemoveIt=true;return true;case"mceAudio":inst=tinyMCE.getInstanceById(editor_id);var instId=subInstId=0;if(inst.formElement.id.match(/^cot/)){instId="webonwebsite";subInstId="table";top.jsWindow=window;}
else{var regEx=new RegExp(/[^\d]+([\d]+)(?:_([\d]+))?/);var matchup=regEx.exec(inst.formElement.id);instId=matchup[1];if(matchup[2]!=undefined)
subInstId=matchup[2];}
tinyMCE.webonInstance=editor_id;Lycos.ui.mediapicker.pick('callerid='+instId+"."+subInstId,null,'audio');dontRemoveIt=true;return true;}
return false;}