var LibManager={includePath:"",cacheParam:"",included:[],loadedVars:"",init:function(){
var _1=document.getElementsByTagName("script");
for(var i=0;i<_1.length;i++){
var _3=_1[i].src;
if(_3.match(/LibManager\.js/i)){
this.includePath=_3.replace(/LibManager\.js(.*)?$/i,"");
this.cacheParam=this.getScriptParam(_1[i],"cacheParam");
break;
}
}
},getScriptParam:function(_4,_5,_6){
var _7=null;
if(typeof (_4)=="string"){
var _8=document.getElementsByTagName("script");
for(var i=0;i<_8.length;i++){
var _9=new RegExp(_4+".js","i");
if(_8[i].src.match(_9)){
_7=_8[i];
break;
}
}
if(_7==null){
setTimeout("LibManager.getScriptParam(\""+_4+"\", \""+_5+"\","+_6+")",100);
return;
}
}else{
_7=_4;
}
var _9=new RegExp("\\?.*"+_5+"=([a-zA-Z0-9]+).*","i");
_7.src.match(_9);
var _10="";
if(typeof (RegExp.$1)!="undefined"){
_10=RegExp.$1;
}
if(typeof (_6)=="function"){
_6(_10);
}else{
return _10;
}
},isIncluded:function(_11){
var _12=_11.toLowerCase();
for(var i=0;i<this.included.length;i++){
if(this.included[i]==_12){
return true;
}
}
return false;
},require:function(_13){
if(!this.isIncluded(_13)){
var _14=this.includePath+_13.replace(/\./g,"/")+".js";
if(this.cacheParam.length){
_14+=this.cacheParam;
}
var _15=document.getElementsByTagName("head").item(0);
var _16=document.createElement("script");
_16.src=_14;
_16.type="text/javascript";
_15.appendChild(_16);
this.included[this.included.length+1]=_13.toLowerCase();
}
},isLoaded:function(_17,_18){
var _19="";
for(var i=0;i<_17.length;i++){
if(!this.loadedVars.match(/checkVars[i]/i)){
try{
typeof (eval(_17[i]));
this.loadedVars+=","+_17[i];
}
catch(e){
if(_19.length){
_19+=",";
}
_19+="'"+_17[i]+"'";
}
}
}
if(_19.length){
setTimeout("LibManager.isLoaded( ["+_19+"],"+_18+" )",20);
}else{
_18();
}
}};
LibManager.init();

