/** error handling **/

var isLt4 = (parseInt(navigator.appVersion) < 4) ? 1 : 0;
var isNS4 = (document.layers) ? 1 : 0;

var isDOM = (document.getElementById) ? 1 : 0;

var isIE = 0;
var isIE40 = 0;
var isIE50 = 0;
var isIE55 = 0;
var isIE60 = 0;
var isIE70 = 0;

/*@cc_on
 isIE = true;
 @if (@_jscript_version >= 5.7) isIE70 = true;
 @elif (@_jscript_version >= 5.6)  isIE60 = true;
 @elif (@_jscript_version >= 5.2)  isIE55 = true;
 @elif (@_jscript_version >= 5.0)  isIE50 = true;
 @elif (@_jscript_version >= 4.0)  isIE40 = true;
 @end
 if(isIE70 && navigator.userAgent.toLowerCase().indexOf('msie 6.0') != -1) { isIE70 = false; isIE60 = true; }
 @*/
document.write("\n" + '<script type="text/javascript" src="/studio/codebase/js/fastinit.js"></script>' + "\n");

function addLoadEvent(func){
    /*
     var oldonload = window.onload;
     if (typeof window.onload != 'function') {
     window.onload = func;
     } else {
     window.onload = function() {
     if (oldonload) oldonload();
     func();
     }
     }
     */
    FastInit.addOnLoad(func);
}


