// This script injects the appropriate syntax into the document to // embed Panda3D, either for the ActiveX or Mozilla-based plugin. // It is also possible to write browser-independent code by nesting // tags, but this causes problems when you need to reference // the particular object that is actually running (which object is // it?) for scripting purposes. // This script writes only a single tag, and it can be // assigned the id you specify, avoiding this ambiguity. var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false; function P3D_Generateobj(objAttrs, params, embedAttrs, imageAttrs) { var str = ''; if (isIE && isWin && !isOpera) { str += ' '; } } else { str += ''; } str += '