PGLoader={GUID:"C1029C96-C060-44EA-9752-502B62E6C8C4",PROGID:"Pgldr.PGLoader",object:null,cdsBase:null,frame:null};
PGLoader.load=function(_1,_2,_3){
this.cdsBase=_1;
this.frame=_3?_3:window;
this.detect(_2);
return (this.object!=null);
};
PGLoader.newID=function(){
var id=Math.ceil(Math.random()*Math.pow(10,4)).toString(16)+"-"+(new Date()).getTime().toString(16);
return id;
};
PGLoader.objectFromTag=function(_5){
try{
var _6="pgldr"+this.newID();
var _7="host"+this.newID();
var _8="<object"+" id=\""+_6+"\""+(_5?" codebase=\""+this.cdsBase+"plugins/pgldr.cab#version=3,2,0,3\"":"")+" classid=\"clsid:"+this.GUID+"\""+" width=\"1\" height=\"1\">"+"</object>";
var _9=this.frame.document;
_9.body.appendChild(_9.createElement("<div style=\"position:absolute;top:0;left:0;\" id=\""+_7+"\"></div>"));
document.getElementById(_7).innerHTML=_8;
return this.frame[_6].object;
}
catch(e){
}
};
PGLoader.install=function(){
try{
this.object=this.objectFromTag(true);
return this.object;
}
catch(e){
}
return null;
};
PGLoader.detect=function(_a){
try{
var _b=null;
if(_b==null){
try{
_b=this.frame.parent.opener.frames.hostframe.PGLoader;
}
catch(e){
_b=null;
}
if(typeof _b!="object"){
_b=null;
}
}
if(_b==null){
try{
_b=this.frame.external.NewLdr();
}
catch(e){
_b=null;
}
}
if(_b==null){
try{
_b=this.objectFromTag(_a);
}
catch(e){
_b=null;
}
}
if(_b==null){
try{
_b=new ActiveXObject(this.PROGID);
}
catch(e){
_b=null;
}
}
}
catch(e){
_b=null;
}
if(_b){
_b.BaseURL=this.cdsBase+"common";
this.object=_b;
}
return (_b!=null);
};
PGLoader.createObject=function(_c){
try{
if(this.object){
return this.object.GetNew(_c,1);
}
}
catch(e){
}
};

