7 lines
21 KiB
JavaScript
7 lines
21 KiB
JavaScript
|
|
/*================================================================
|
||
|
|
ORC_JS, JavaScript Class Framework
|
||
|
|
version:3.00.70827
|
||
|
|
Copyright 2007 by SourceTec Software Co.,LTD
|
||
|
|
For more information, see:www.sothink.com
|
||
|
|
================================================================*/
|
||
|
|
if(typeof _STNS=="undefined"){if(!Array.prototype.push){Array.prototype.push=function(){for(var i=0;i<arguments.length;i++){this[this.length]=arguments[i];}return this.length;};}if(!Array.prototype.pop){Array.prototype.pop=function(){if(this.length){var o=this[this.length-1];this.length--;return o;}};}if(!Array.prototype.shift){Array.prototype.shift=function(){if(this.length){var o=this[0];for(var i=0;i<this.length-1;i++){this[i]=this[i+1];}this.length--;return o;}};}if(!Function.prototype.call){Function.prototype.call=function(_5){var _5=_5||window;_5.__tmp=this;var _6=_5.__tmp(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10]);_5.__tmp=null;return _6;};}_STNS={sVer:"3.0",bDebug:false,fvThrow:function(e){return;},bBufImg:true,oImgs:{},fvBufImgs:function(){if(!_STNS.bBufImg){return;}if(!_STNS.bLoaded){var s="";for(var i in _STNS.oImgs){if(_STNS.oImgs[i]!=2){s+=_STNS.fsGetTag("div","style=\"display:none\"",_STNS.fsGetImgTag(i,-1,-1));}_STNS.oImgs[i]=2;}document.write(s);}},bIsIE:false,bIsMIE:false,bIsFX:false,bIsOP:false,bIsSF:false,oNav:null,bRTL:false,sDocMd:null,sURL:window.location.href+"",sDIR:null,bLocal:false,fsGetDocMd:function(w){var w=w||window;switch(w.document.compatMode){case "QuirksMode":case "BackCompat":return "quirks";case "CSS1Compat":return "css1";default:return document.compatMode;}},_foGetNav:function(){var _n=navigator,_u=_n.userAgent,_a=_n.appName,_p=_n.platform,n,v,p;if(/(Opera)[ \/]([\d\.]+)/.test(_u)||/(Netscape)\d*\/([\d\.]+)/.test(_u)||/(MSIE) ([\d\.]+)/.test(_u)||/(Safari)\/([\d\.]+)/.test(_u)||/(Konqueror)\/([\d\.]+)/.test(_u)||/(Gecko)\/(\d+)/.test(_u)){n=RegExp.$1.toLowerCase();v=RegExp.$2;}else{if(_a=="Netscape"&&_n.appVersion.charAt(0)=="4"){n="netscape4";v=parseFloat(_n.appVersion);}else{n="unknow";v=0;}}if(n=="netscape"){switch(_a){case "Microsoft Internet Explorer":n="msie";v=/(MSIE) ([\d\.]+)/.exec(_u)[2];break;case "Netscape":n="gecko";v=/(Gecko)\/(\d+)/.exec(_u)[2];}}if(/^(Win)/.test(_p)||/^(Mac)/.test(_p)||/^(SunOS)/.test(_p)||/^(Linux)/.test(_p)||/^(Unix)/.test(_p)){p=RegExp.$1.toLowerCase();}else{p=_p;}return {name:n,version:v,platform:p};},fiGetCT:function(w){var w=w||window;if(_STNS.bIsIE){return (_STNS.fsGetDocMd(w)=="css1"?w.document.documentElement:w.document.body).scrollTop;}else{return w.pageYOffset;}},fiGetCL:function(w){var w=w||window;if(_STNS.bIsIE){return (_STNS.fsGetDocMd(w)=="css1"?w.document.documentElement:w.document.body).scrollLeft;}else{return w.pageXOffset;}},fiGetCW:function(w){var w=w||window;if(_STNS.bIsIE){return (_STNS.fsGetDocMd(w)=="css1"?w.document.documentElement:w.document.body).clientWidth;}else{if(w.scrollbars&&w.scrollbars.visible||w.innerHeight<document.documentElement.offsetHeight){return w.innerWidth-20;}}return w.innerWidth;},fiGetCH:function(w){var w=w||window;if(_STNS.bIsIE){return (_STNS.fsGetDocMd(w)=="css1"?w.document.documentElement:w.document.body).clientHeight;}else{if(w.scrollbars&&w.scrollbars.visible||w.innerWidth<document.documentElement.offsetWidth){return w.innerHeight-20;}}return w.innerHeight;},foGetMediaInfor:function(s){_STNS.fvThrow(new Error("_STNS.runTime error:call foGetMediaInfor that has not been implemented"));},oLibs:{},sLibPth:"",fvInitLib:function(){var scs,sc,s,t,ls,pth;if(_STNS.bIsFX&&!_STNS.faGetElesByTagName("body").length){var hds=_STNS.faGetElesByTagName("head");sc=hds[0].lastChild;}else{scs=_STNS.faGetElesByTagName("script");sc=scs[scs.length-1];}if(sc){s=sc.src;}if(s){_STNS.sLibPth=s.substr(0,s.lastIndexOf("/")+1);t=_STNS.fcoGetAttribute(sc,"sothinkdebug");if(t=="true"){pth=_STNS.fsGetAbsPth(_STNS.sLibPth+"debug/stdebug.js");if(!_STNS.oLibs[pth]){_STNS.oLibs[pth]={state:1,defer:0};}}t=_STNS.fcoGetAttribute(sc,"sothinklib");if(t){ls=t.split(";");for(var i=0;i<ls.length;i++){if(!ls[i]){continue;}if(!_STNS.fbIsFile(ls[i])){ls[i]+=".js";}pth=_STNS.fsGetAbsPth(_STNS.sLibPth+ls[i]);if(_STNS.oLibs[pth]){continue;}_STNS.oLibs[pth]={state:1,defer:0};}}}else{_STNS.fvThrow(new Error("_STNS.runTime error:can't get lib path"));}},fvInc:func
|