function FDCPBridge(_1){
this.count=0;
this.ifc=null;
this.oform;
this.tid=0;
this.fdcp=_1.fdcp;
this.pcallback=null;
this.fd_div_id="fd_page_main";
this.rmEl=new Array();
this.st=new Array();
this.nonescnames=["d","p","r","q","bn","bv"];
this.doesc=function(_2){
oloop:
for(var x in _2){
for(var n=0;n<this.nonescnames.length;n++){
if(x==this.nonescnames[n]){
continue oloop;
}
}
_2[x]=escape(_2[x]);
}
};
this.cleanPrint=function(_5,_6,_7){
if(this.fdcp.clt.getFDDebug()){
alert("DocDomain : ["+document.domain+"]");
}
this.pcallback=_7;
if(this.fdcp.clt.mode==this.fdcp.clt.modes.printerFriendlyViewer){
this.fdcp.loadPrinterFriendlyViewerTemplateScript();
this.fdcp.outputDocument="";
var _8=this.validateAjaxPaths();
if(!_8){
return;
}
var _9=this.fdcp.getCpPostData();
if(_9==null){
return;
}
_9.pfv="y";
var _a=fdcp.clt.onPrint(_9);
if(typeof _a!="undefined"&&_a!=null&&_a==false){
return;
}
var _b=this.getOutputDocument(_9);
if(_b.indexOf("<FORM id=\"EOC\" />")!=-1){
fdcp.outputDocument=_b;
}
this.fdcp.loadPrinterFriendlyViewer();
this.pcallback(true);
return;
}
if(this.fdcp.browserDetect.browser=="Explorer"&&!fdcp.clt.templateTest){
if(this.fdcp.clt.getFDDebug()){
alert("IE Printing");
}
FDCPLoader.fdPrintWrapper();
this.pcallback(true);
return;
}
if(typeof this.ifc!="undefined"&&this.ifc!=null){
document.body.removeChild(this.ifc);
document.body.removeChild(this.oform);
}
var _c=this.fdcp.getCpUrl();
var _d="fDContentFrame";
this.ifc=document.createElement("iframe");
this.ifc.setAttribute("src","about:blank");
this.ifc.setAttribute("id",_d);
this.ifc.setAttribute("NAME",_d);
this.ifc.setAttribute("loaded",false);
this.ifc.onload=function(){
loaded=true;
};
this.ifc.style.width="0px";
this.ifc.style.height="0px";
this.ifc.style.border="0px";
document.body.appendChild(this.ifc);
if(self.frames[_d].name!=_d){
self.frames[_d].name=_d;
}
this.oform=document.createElement("form");
document.body.appendChild(this.oform);
this.oform.action=_c;
this.oform.name="FDForm";
this.oform.method="post";
this.oform.target=_d;
for(var k in _5){
var pc=document.createElement("input");
pc.type="hidden";
pc.name=k;
pc.value=_5[k];
this.oform.appendChild(pc);
}
this.count=0;
if(this.fdcp.clt.getFDDebug()){
alert("CP Submit");
}
this.oform.submit();
this.tid=setInterval(function(){
this.fdcp.bridge.checkcontent();
},1000);
};
this.log=function(_10,_11,url,_13){
if(url==null){
return;
}
try{
var _14="rtype=log&";
_14+="LOG_LEVEL="+_10+"&";
_14+="LOG_MSG="+_11+"&";
if(typeof _13!="undefined"&&_13!=null){
for(var p in _13){
_14+="&"+p+"="+_13[p];
}
}
var _16=fdGetAjaxObj();
if(typeof _16=="undefined"||_16==null){
return;
}
_16.open("POST",url,true);
_16.setRequestHeader("Content-type","application/x-www-form-urlencoded");
_16.send(_14);
}
catch(e){
}
};
this.checkcontent=function(){
try{
if(this.count<10){
if(this.ifc!=null&&typeof this.ifc.contentDocument!="undefined"){
if(typeof this.ifc.contentDocument.forms["EOC"]!="undefined"){
clearInterval(this.tid);
this.fdcp.enPt(false);
if(this.fdcp.clt.getFDDebug()){
alert("CP Content Pass - Print");
}
FDCPLoader.fdPrintWrapper(this.ifc.contentWindow);
this.fdcp.enPt(true);
this.pcallback(true);
return true;
}else{
this.count=this.count+1;
}
}else{
this.count=this.count+1;
}
}else{
clearInterval(this.tid);
this.pcallback(false);
return false;
}
}
catch(e){
if(this.fdcp.clt.getFDDebug()){
alert("CP Content Fail : ["+e.message+"]");
}
this.count=10;
clearInterval(this.tid);
this.pcallback(false);
}
};
this.removeelements=function(){
var _17=this.validateAjaxPaths();
if(!_17){
return false;
}
var _18=this.fdcp.getCpPostData();
if(_18==null){
if(this.fdcp.clt.getFDDebug()){
alert("CP Content Fail");
}
return false;
}else{
if(this.fdcp.clt.getFDDebug()){
alert("CP Content Pass");
}
}
var _19=fdcp.clt.onPrint(_18);
if(typeof _19!="undefined"&&_19!=null&&_19==false){
return false;
}
var _1a=this.getOutputDocument(_18);
if(_1a.indexOf("<FORM id=\"EOC\" />")!=-1){
var _1b=document.getElementById(this.fd_div_id);
if(_1b!=null){
if(this.togEl(true)||this.togEl(true)){
if(typeof this.fdcp.clt.onBeforeCleanPrint!="undefined"){
_1a=this.fdcp.clt.onBeforeCleanPrint(_1a);
}
_1b.style.display="block";
_1b.innerHTML=_1a;
}
}
}
};
this.validateAjaxPaths=function(){
var _1c=new RegExp("^(?:(http[s]?)://([^/:]+)(:[0-9]+)?)?(.*)");
var _1d=this.fdcp.getCpUrl();
var _1e=_1c.exec(_1d);
if(_1e==null){
return false;
}
if(_1e[2]!=""){
var d=_1c.exec(window.location);
if(_1e[1]!=undefined&&_1e[1]+_1e[2]!=d[1]+d[2]){
return false;
}
if(_1e[3]!=d[3]){
return false;
}
}
return true;
};
this.getOutputDocument=function(_20){
var _21="";
for(var x in _20){
var n;
for(n=0;n<this.nonescnames.length;n++){
if(x==this.nonescnames[n]){
break;
}
}
if(n==this.nonescnames.length){
_21+=x+"="+escape(_20[x])+"&";
}else{
_21+=x+"="+_20[x]+"&";
}
}
var _24=fdGetAjaxObj();
if(typeof _24=="undefined"||_24==null){
return "";
}
_24.open("POST",this.fdcp.getCpUrl(),false);
_24.setRequestHeader("Content-type","application/x-www-form-urlencoded");
_24.send(_21);
if(_24.status==200){
return _24.responseText;
}
return "";
};
this.revertback=function(){
var _25=document.getElementById(this.fd_div_id);
if(_25!=null){
_25.innerHTML="";
_25.style.display="none";
}
this.togEl(false);
this.fdcp.CPFailover(true);
};
this.togEl=function(bp){
var d=document;
var _28=d.body;
var _29=new Array();
if(bp){
var i=0;
this.st=[];
for(i=0;i<_28.childNodes.length;i++){
if(typeof _28.childNodes[i].id!="undefined"&&_28.childNodes[i].id==this.fd_div_id){
continue;
}else{
if(_28.childNodes[i].nodeName=="STYLE"||_28.childNodes[i].nodeName=="LINK"){
if(_28.childNodes[i].disabled){
continue;
}else{
_28.childNodes[i].disabled=true;
this.st.push(_28.childNodes[i]);
}
}else{
this.rmEl.push(_28.childNodes[i]);
}
}
}
try{
for(i=0;i<this.rmEl.length;i++){
_28.removeChild(this.rmEl[i]);
_29.push(this.rmEl[i]);
}
}
catch(err){
if(_28.childNodes.length>0){
var e=_28.childNodes[0];
for(i=0;i<_29.length;i++){
_28.insertBefore(_29[i],e);
}
}else{
for(i=0;i<_29.length;i++){
_28.appendChild(_29[i]);
}
}
this.rmEl.length=0;
return false;
}
if(d.styleSheets){
var ss;
for(var i=0;i<d.styleSheets.length;i++){
ss=d.styleSheets[i];
if(this.fdcp.clt.cpc.stylesheets!=undefined){
var _2d=false;
for(var cps=0;cps<this.fdcp.clt.cpc.stylesheets.length;cps++){
if(ss.href==this.fdcp.clt.cpc.stylesheets[cps]){
_2d=true;
break;
}
}
if(!_2d){
if(ss.disabled==false){
ss.disabled=true;
this.st.push(ss);
}
}
}else{
if(ss.disabled==false){
ss.disabled=true;
this.st.push(ss);
}
}
}
}
}else{
for(var i=0;i<this.rmEl.length;i++){
_28.appendChild(this.rmEl[i]);
}
this.rmEl.length=0;
for(var i=0;i<this.st.length;i++){
this.st[i].disabled=false;
}
}
return true;
};
this.loadHandler=function(_2f){
if(navigator.appName.indexOf("Microsoft")!=-1&&parseInt(navigator.appVersion)>=4&&navigator.userAgent.indexOf("Windows")!=-1){
if(document.body!=null){
var div=document.createElement("div");
div.setAttribute("id",this.fd_div_id);
div.style["display"]="none";
document.body.appendChild(div);
div.innerHTML="FD HIDDEN DIV";
}
if(_2f.clt.cpc!=null&&_2f.clt.getcpStat()=="y"){
window.attachEvent("onbeforeprint",this.handleOnBeforePrint);
window.attachEvent("onafterprint",function(){
_2f.bridge.revertback();
_2f.clt.resetMode();
});
}
}
if(typeof Ajax=="undefined"){
var _31=this.fdcp.clt.getCfg("ajaxlib");
if(typeof _31=="undefined"||_31==null){
return;
}
var e=document.createElement("script");
e.src=_31;
e.type="text/javascript";
document.getElementsByTagName("head")[0].appendChild(e);
}
};
this.handleOnBeforePrint=function(){
if(fdcp.clt.mode==fdcp.clt.modes.unset){
fdcp.clt.mode=fdcp.clt.modes.filePrint;
}
fdcp.bridge.removeelements();
};
}
function FDCP(){
this.clt=FDCPLoader.FDCPClient;
this.bridge=new FDCPBridge({fdcp:this});
this.fdser=new FDSerializer(this.clt);
this.tstr=this.clt.getTPath();
this.logUrl=this.clt.getLPath();
this.pfLink=null;
this.linkClicked=false;
this.fdpt=null;
if(this.clt.getFDDebug()){
alert("TPath : ["+this.clt.getTPath()+"] Tmpl : ["+this.clt.getTmpl()+"] Div : ["+this.clt.getDiv()+"]");
}
if(this.clt.insType=="c"){
this.fdpt=new FormatDynamicsPT(this.clt);
}
this.cpEn=function(){
return fdcp.clt.cpc!=null&&fdcp.clt.getcpStat()=="y";
};
this.browserSupported=function(){
if(this.browserDetect.browser=="Opera"){
return false;
}else{
if((this.browserDetect.browser=="Safari")&&(this.browserDetect.OS=="Windows")){
return false;
}else{
return true;
}
}
};
this.getCpUrl=function(){
return this.tstr+"?"+(new Date()).getTime();
};
this.linkPrintHandler=function(_33){
if(_33!=undefined){
this.pfLink=_33;
}
if(this.cpEn()==false||!this.browserSupported()){
this.CPFailover(false);
return true;
}
try{
if(fdcp.linkClicked!=true){
fdcp.linkClicked=true;
var _34=this.getCpPostData();
this.clt.blkwidth=this.fdser.getWidestBlkWidth();
var _35=this.clt.onPrint(_34);
if(typeof _35!="undefined"&&_35!=null&&_35==false){
if(this.clt.getFDDebug()){
alert("onPrint() returned "+_35+", failing over");
}
this.CPFailover(false);
return false;
}
if(_34!=null){
if(this.clt.getFDDebug()){
alert("CPPostData - Pass");
}
this.bridge.cleanPrint(_34,this.clt.getTO(),function(_36){
fdcp.CPFailover(_36);
});
}else{
if(this.clt.getFDDebug()){
alert("CPPostData - Fail (cpdata is null)");
}
this.CPFailover(false);
}
}
}
catch(e){
if(this.clt.getFDDebug()){
alert("CPPostData - Fail (error): "+e.message);
}
fdcp.CPFailover(false);
}
return true;
};
this.getCpPostDataValue;
this.getCpPostData=function(){
if(typeof this.getCpPostDataValue!="undefined"&&this.getCpPostDataValue!=null){
return this.getCpPostDataValue;
}
if(typeof this.clt.getDiv()=="undefined"||this.clt.getDiv()==null||this.clt.getDiv().length==0){
this.bridge.log("ERROR","No division defined",this.logUrl);
return null;
}
if(typeof this.clt.getSegment()=="undefined"||this.clt.getSegment()==null){
this.bridge.log("ERROR","No segment defined",this.logUrl);
return null;
}
var pc=null;
if(typeof fdcp.clt.onBeforeContentSerialization=="function"){
fdcp.clt.onBeforeContentSerialization();
}
try{
pc=this.getPCXPath();
}
catch(e){
this.bridge.log("ERROR","Error parsing primary content.",this.logUrl);
return null;
}
finally{
if(typeof fdcp.clt.onAfterContentSerialization=="function"){
fdcp.clt.onAfterContentSerialization();
}
}
if(pc!=null&&pc.length==0){
pc=null;
}
var _38=null;
try{
_38=this.getImages();
}
catch(e){
this.bridge.log("ERROR","Error parsing for image data.",this.logUrl);
return null;
}
var _39=this.clt.getTmpl();
if(typeof _39=="undefined"||_39==null||_39.length==0){
pc="";
this.tmpl="";
}
var act="Unknown";
if(fdcp.clt.mode==fdcp.clt.modes.filePrint){
act="Chrome";
}else{
if(fdcp.clt.mode==fdcp.clt.modes.printLink||fdcp.clt.mode==fdcp.clt.modes.printerFriendlyViewer){
act="Link";
}
}
var _3b={d:this.clt.getDiv(),a:navigator.appName+" "+navigator.userAgent,s:this.clt.getSegment(),u:window.location.href,p:this.clt.getPFF(),r:this.clt.getRfmt(),q:"1.0",bn:this.browserDetect.browser,bv:this.browserDetect.version,template:_39,ci:_38,act:act};
if(pc!=null){
_3b.pc=pc;
}
var qp=this.clt.getVR();
if(typeof qp!="undefined"&&qp!=null){
for(var ki in qp){
_3b[ki]=qp[ki];
}
}
if(this.clt.getTemplateTest()){
_3b.tt=this.clt.getTemplateTest();
}
this.getCpPostDataValue=_3b;
return _3b;
};
this.getPCXPath=function(){
var _3e=new Array();
for(var i=0;i<this.xpathDefs.length;i++){
var _40=this.xpathDefs[i];
if(_40.selection=="exclude"){
var _41=this.getXPathNodes(_40);
if(_41==null){
return null;
}
for(var j=0;j<_41.length;j++){
_3e.push(_41[j]);
}
}
}
this.fdser.setExcludes(_3e);
var pc=new Object();
var _44=new Object();
var _45="";
for(var i=0;i<this.xpathDefs.length;i++){
var _40=this.xpathDefs[i];
if(_40.selection=="include"){
if(typeof _40.target=="undefined"||_40.target==null||_40.target==""){
_40.target="default";
}
var _46=this.getXPathNodes(_40);
if(_46==null){
return null;
}
if((typeof pc[_40.target]=="undefined"||pc[_40.target]==null)&&_46.length>0){
pc[_40.target]=new Array();
_44[_40.target]=_40.mode;
}
for(var j=0;j<_46.length;j++){
if((_45=="P"&&_46[j].nodeType==3)||(i!=0&&j==0)){
this.fdser.newpg(pc[_40.target]);
}
this.fdser.serializeNode(_46[j],pc[_40.target],null,_40.inlineDiv?"false":"true",_40.mode);
if(_40.pagebreak=="all"){
pc[_40.target].push("<pagebreak />");
}
if(_40.linebreak=="all"){
pc[_40.target].push("<text style=\"color: rgb(0, 0, 0); font-style: normal; font-family: serif; font-weight: 400; font-size: 16px;\"><BR/></text>");
}
_45=_46[j].nodeName;
}
if(_40.pagebreak=="last"){
pc[_40.target].push("<pagebreak />");
}
if(_40.linebreak=="last"){
pc[_40.target].push("<text style=\"color: rgb(0, 0, 0); font-style: normal; font-family: serif; font-weight: 400; font-size: 16px;\"><BR/></text>");
}
}
}
var _47=0;
var _48=new String("");
for(var key in pc){
_48+="<subcontent content_id=\""+key+"\" mode=\""+(typeof _44[key]=="undefined"?"normal":_44[key])+"\"><paragraph>";
for(var i=0;i<pc[key].length;i++){
_48+=pc[key][i];
_47++;
}
_48+="</paragraph></subcontent>";
}
if(_47==0){
return null;
}else{
if(this.clt.getFDDebug()){
alert("ContentCount : ["+_47+"]");
}
}
return "<content>"+_48+"</content>";
};
this.getXPathNodes=function(_4a){
var _4b=document;
var _4c=document;
if(typeof this.contextXpath!="undefined"){
if(this.browserDetect.browser=="Explorer"){
_4b=document;
_4c=frames["contextFrame"].document;
}else{
_4b=this.contextXpath;
_4c=_4b.documentElement;
}
}
var rv=new Array();
try{
var _4e=_4b.evaluate(_4a.query,_4c,null,XPathResult.UNORDERED_NODE_ITERATOR_TYPE,null);
var _4f=_4e.iterateNext();
if(_4a.occurrence=="once"){
if(_4f){
if(_4a.include=="outer"){
rv.push(_4f);
}else{
if(_4a.include=="inner"){
var _50=_4f.childNodes;
var _51="";
for(var j=0;j<_50.length;j++){
rv.push(_50[j]);
}
}
}
}else{
}
}else{
if(_4a.occurrence=="all"){
while(_4f){
if(_4a.include=="outer"){
rv.push(_4f);
}else{
if(_4a.include=="inner"){
var _50=_4f.childNodes;
var _51="";
for(var j=0;j<_50.length;j++){
rv.push(_50[j]);
}
}
}
_4f=_4e.iterateNext();
}
}
}
}
catch(e){
return null;
}
if(rv.length<_4a.required){
if(this.clt.getFDDebug()){
alert("No content found for required xpath: "+_4a.query);
}
return null;
}
return rv;
};
this.sortXPathDefs=function(_53){
var _54=new Array();
var _55=new Array();
var _56=new Array();
var _57=new Array();
for(var i=0;i<_53.length;i++){
var _59=_53[i];
if(_59.selection=="exclude"){
_54.push(_59);
}else{
if(_59.location=="front"){
_55.push(_59);
}else{
if(_59.location=="domOrder"){
_56.push(_59);
}else{
if(_59.location=="back"){
_57.push(_59);
}
}
}
}
}
return _54.concat(_55.concat(_56.concat(_57)));
};
this.replacePrintLinks=function(){
this.xpathDefs=FDCPLoader.cpDef.xpathDefs;
var _5a=new Array();
var _5b=false;
for(var i=0;i<this.xpathDefs.length;i++){
var _5d=this.xpathDefs[i];
if(typeof _5d.context!="undefined"&&_5d.context!="self"){
_5b=true;
}
if(_5d.selection=="printlink"){
var _5e=this.getXPathNodes(_5d);
if(_5e==null){
return null;
}
for(var j=0;j<_5e.length;j++){
_5a.push(_5e[j]);
}
}
}
if(!_5b&&FDCPLoader.FDCPClient.cpc.preloadPF){
FDCPLoader.FDCPClient.cpc.preloadPF=false;
}
var _60=typeof FDCPLoader.FDCPClient.getIframeUrls=="undefined"||typeof FDCPLoader.FDCPClient.getIframeUrls()=="undefined"?[]:FDCPLoader.FDCPClient.getIframeUrls();
if(_5b&&_60.length==1&&_60[0]==window.location.href){
for(var i=0;i<this.xpathDefs.length;i++){
var _5d=this.xpathDefs[i];
_5b.context="self";
}
}else{
if(_5b&&_60.length==1&&FDCPLoader.FDCPClient.cpc.preloadPF){
this.createContextFrame(_60[0]);
}
}
for(var i=0;i<_5a.length;i++){
var _61=_5a[i];
if(_61.nodeName=="A"){
_61.href="#";
_61.onclick=function(){
FDCPUrl();
return false;
};
}else{
if(_61.nodeName=="BUTTON"){
_61.onclick=function(){
FDCPUrl();
return false;
};
}
}
}
};
this.contextFrameLoaded=false;
this.contextFrame;
this.contextXpath;
this.createContextFrame=function(url){
this.contextFrame=document.createElement("iframe");
this.contextFrame.setAttribute("src",url);
this.contextFrame.setAttribute("id","contextFrame");
this.contextFrame.setAttribute("NAME","contextFrame");
if(this.browserDetect.browser=="Explorer"){
this.contextFrame.onreadystatechange=function(){
if(fdcp.contextFrame.readyState=="complete"){
fdcp.contextFrameLoaded=true;
fdcp.contextXpath=frames[fdcp.contextFrame.NAME].document;
}
};
}else{
this.contextFrame.onload=function(){
fdcp.contextFrameLoaded=true;
if(fdcp.browserDetect.browser=="Firefox"&&fdcp.browserDetect.version==3){
fdcp.contextXpath=fdcp.contextFrame.contentDocument;
}else{
fdcp.contextXpath=frames[fdcp.contextFrame.NAME].document;
}
};
}
this.contextFrame.style.width="2000px";
this.contextFrame.style.height="2000px";
this.contextFrame.style.position="absolute";
this.contextFrame.style.top="-3000px";
this.contextFrame.style.border="0px";
document.body.appendChild(this.contextFrame);
};
this.printerFriendlyViewerTemplateLoadStart=0;
this.printerFriendlyViewerTemplatePolledOnce=false;
this.printerFriendlyViewerTemplateLoadTimeout=3*1000;
this.printerFriendlyVieweriFrameTag="<ifra"+"me id='pfContent' src='xxx' width='100%' height='100%'></ifra"+"me>";
this.loadPrinterFriendlyViewer=function(){
if(typeof _fdCpOutput=="undefined"||_fdCpOutput==""){
if(this.printerFriendlyViewerTemplatePolledOnce==false){
this.printerFriendlyViewerTemplatePolledOnce=true;
setTimeout("fdcp.loadPrinterFriendlyViewer()",1);
return;
}
if((new Date()).getTime()>this.printerFriendlyViewerTemplateLoadStart+this.printerFriendlyViewerTemplateLoadTimeout){
this.CPFailover(false);
}else{
setTimeout("fdcp.loadPrinterFriendlyViewer()",100);
return;
}
}else{
this.printerFriendlyViewerTemplatePolledOnce=false;
var _63=(new Date()).getTime()+""+Math.floor((Math.random()*1000000));
_fdCpOutput=_fdCpOutput.replace("\"0\";/*fdUniqueIdReplace*/","\""+_63+"\";/*replaced*/");
try{
FDCPLoader.printPreviewWindow.document.body.innerHTML="";
}
catch(err){
}
if(typeof this.outputDocument=="undefined"||this.outputDocument==""){
FDCPLoader.printPreviewWindow.document.write(_fdCpOutput.replace("<!--Print Content-->",this.printerFriendlyVieweriFrameTag.replace("xxx",this.pfLink)));
}else{
var _64=this.outputDocument;
while(_64.indexOf("$pageId$")!=-1){
_64=_64.replace("$pageId$",_63);
}
FDCPLoader.printPreviewWindow.document.write(_fdCpOutput.replace("<!--Print Content-->",_64));
}
FDCPLoader.printPreviewWindow.document.close();
}
};
this.loadPrinterFriendlyViewerTemplateScript=function(){
var _65=this.clt.getVR();
var _66="";
if(typeof _65!="undefined"&&_65!=null){
for(var ki in _65){
_66+="&"+ki+"="+_65[ki];
}
}
this.printerFriendlyViewerTemplateLoadStart=(new Date()).getTime();
if(typeof _fdCpOutput=="undefined"){
var _68=document.createElement("script");
if(_66!=""){
_68.src="http://"+this.clt.cpHost+"/cpv/viewer?divId="+this.clt.divid+_66;
}else{
_68.src="http://"+this.clt.cpHost+"/cpv/viewer?divId="+this.clt.divid;
}
_68.type="text/javascript";
document.getElementsByTagName("head")[0].appendChild(_68);
}
};
this.getImages=function(){
var _69=new Array();
var _6a="<images>";
if(typeof fdImages!="undefined"){
for(var n=0;n<fdImages.length;n++){
var img=document.getElementById(fdImages[n]);
if(img!=null){
this.fdser.serializeNode(img,_69,false);
}
}
for(var i=0;i<_69.length;i++){
_6a+=_69[i];
}
}
_6a+="</images>";
return _6a;
};
this.enPt=function(_6e){
if(typeof formatDynamicsPT!="undefined"){
for(i=0;i<document.styleSheets.length;i++){
try{
var _6f=document.styleSheets[i];
if(navigator.appName.indexOf("Netscape")!=-1&&formatDynamicsPT.isPtCss(_6f.cssRules[0].style.content)){
_6f.disabled=!_6e;
break;
}
}
catch(e){
}
}
}
};
this.CPFailover=function(_70){
this.linkClicked=false;
if(_70==false){
if(this.pfLink!=null){
var _71=this.clt.getCfg("pfType",null);
if(_71==null||_71.toLowerCase()=="replace"){
window.open(this.pfLink,"_self");
return false;
}else{
window.open(this.pfLink);
return false;
}
}
FDCPLoader.fdPrintWrapper();
}
this.clt.onAfterCleanPrint();
};
this.browserDetect={init:function(){
this.browser=this.searchString(this.dataBrowser)||"An unknown browser";
this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";
this.OS=this.searchString(this.dataOS)||"an unknown OS";
},searchString:function(_72){
for(var i=0;i<_72.length;i++){
var _74=_72[i].string;
var _75=_72[i].prop;
this.versionSearchString=_72[i].versionSearch||_72[i].identity;
if(_74){
if(_74.indexOf(_72[i].subString)!=-1){
return _72[i].identity;
}
}else{
if(_75){
return _72[i].identity;
}
}
}
},searchVersion:function(_76){
var _77=_76.indexOf(this.versionSearchString);
if(_77==-1){
return;
}
return parseFloat(_76.substring(_77+this.versionSearchString.length+1));
},dataBrowser:[{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};
this.loadHandler=function(){
var _78=this.browserDetect.browser=="Explorer"&&this.browserDetect.OS=="Windows";
if(!this.cpEn()){
if(_78&&this.browserDetect.version>=4&&this.clt.insType=="c"){
window.attachEvent("onbeforeprint",function(){
fdcp.fdpt.getFDImage();
});
}
}else{
fdcp.bridge.loadHandler(this);
}
if(!_78&&this.clt.insType=="c"){
fdcp.fdpt.changePrintStyleSheet();
}
};
this.browserDetect.init();
}
var fdcp=new FDCP();
if(typeof FDCPLoader!="undefined"){
fdcp.loadHandler();
}else{
if(window.addEventListener){
window.addEventListener("load",function(){
fdcp.loadHandler();
},false);
}else{
if(window.attachEvent){
window.attachEvent("onload",function(){
fdcp.loadHandler();
});
}
}
}
FDCPLoader.registerModuleLoaded("cp.js");
if(typeof FDCPLoader.FDCPClient.onCpLoad=="function"){
FDCPLoader.FDCPClient.onCpLoad();
}
function FDSerializer(_79){
this.fdclient=_79;
this._bxs="border-style";
this._bbs="border-bottom-style";
this._bts="border-top-style";
this._bls="border-left-style";
this._brs="border-right-style";
this._bxw="border-width";
this._bbw="border-bottom-width";
this._btw="border-top-width";
this._blw="border-left-width";
this._brw="border-right-width";
this._bxc="border-color";
this._bbc="border-bottom-color";
this._btc="border-top-color";
this._blc="border-left-color";
this._brc="border-right-color";
this._ffam="font-family";
this._fsiz="font-size";
this._fwei="font-weight";
this._fsty="font-style";
this._fcol="color";
this._tdec="text-decoration";
this._bgc="background-color";
this._bgi="background-image";
this._bgr="background-repeat";
this._mta="text-align";
this._brcl="border-collapse";
this._brsp="border-spacing";
this._px="padding";
this._pb="padding-bottom";
this._pt="padding-top";
this._pl="padding-left";
this._pr="padding-right";
this._clear="clear";
this._float="float";
this._mb="margin-bottom";
this._mt="margin-top";
this.sm=new Array();
this.sm[this._bxs]="borderStyle";
this.sm[this._bbs]="borderBottomStyle";
this.sm[this._bts]="borderTopStyle";
this.sm[this._bls]="borderLeftStyle";
this.sm[this._brs]="borderRightStyle";
this.sm[this._bxw]="borderWidth";
this.sm[this._bbw]="borderBottomWidth";
this.sm[this._btw]="borderTopWidth";
this.sm[this._blw]="borderLeftWidth";
this.sm[this._brw]="borderRightWidth";
this.sm[this._bxc]="borderColor";
this.sm[this._bbc]="borderBottomColor";
this.sm[this._btc]="borderTopColor";
this.sm[this._blc]="borderLeftColor";
this.sm[this._brc]="borderRightColor";
this.sm[this._ffam]="fontFamily";
this.sm[this._fsiz]="fontSize";
this.sm[this._fwei]="fontWeight";
this.sm[this._fsty]="fontStyle";
this.sm[this._fcol]="color";
this.sm[this._tdec]="textDecoration";
this.sm[this._clear]="clear";
this.sm[this._float]="float";
this.sm[this._bgc]="backgroundColor";
this.sm[this._bgi]="backgroundImage";
this.sm[this._bgr]="backgroundRepeat";
this.sm[this._mta]="textAlign";
this.sm[this._brcl]="borderCollapse";
this.sm[this._brsp]="borderSpacing";
this.sm[this._px]="padding";
this.sm[this._pb]="paddingBottom";
this.sm[this._pt]="paddingTop";
this.sm[this._pl]="paddingLeft";
this.sm[this._pr]="paddingRight";
this.sm[this._mb]="marginBottom";
this.sm[this._mt]="marginTop";
this.sz=new Array();
this.sz["xx-small"]="8pt";
this.sz["x-small"]="10pt";
this.sz["small"]="12pt";
this.sz["medium"]="14pt";
this.sz["large"]="18pt";
this.sz["x-large"]="24pt";
this.sz["xx-large"]="35pt";
this.sz["auto"]="10pt";
this.ftsz=new Array();
this.ftsz[1]="10px";
this.ftsz[2]="12px";
this.ftsz[3]="14px";
this.ftsz[4]="18px";
this.ftsz[5]="24px";
this.ftsz[6]="30px";
this.ftsz[7]="48px";
this._widestblkwidth=0;
this.excludesXpath=new Array();
this.text_only_state={off:0,on:1,once:2};
this.getHeadingLevel=function(_7a){
if(_7a=="H1"){
return "24pt";
}else{
if(_7a=="H2"){
return "18pt";
}else{
if(_7a=="H3"){
return "14pt";
}else{
if(_7a=="H4"){
return "12pt";
}else{
if(_7a=="H5"){
return "10pt";
}else{
if(_7a=="H6"){
return "8pt";
}else{
return "12pt";
}
}
}
}
}
}
};
this.translateStyle=function(_7b){
if(_7b=="float"){
if(fdcp.browserDetect.browser=="Explorer"){
return "styleFloat";
}else{
return "cssFloat";
}
}
var v=this.sm[_7b];
if(v){
return v;
}
return _7b;
};
this.isMT=function(val){
return val==null||typeof val=="undefined"||val=="";
};
this.isRelFont=function(sz){
return sz.indexOf("%")>0||sz.indexOf("em")>0||sz.indexOf("ex")>0;
};
this.getStyleValue=function(_7f,_80,_81){
var _82=this.translateStyle(_80);
if(typeof _81!="undefined"&&_81==true){
if(_7f.style[_82].length>0){
return _7f.style[_82];
}else{
return null;
}
}
if(_80=="width"&&_7f.offsetWidth){
var _83=this.getStyleValue(_7f,this._pl);
var _84=this.getStyleValue(_7f,this._pr);
var _85=_7f.offsetWidth;
if(_83.indexOf("px")!=-1){
_85-=_83.substring(0,_83.length-2);
}
if(_84.indexOf("px")!=-1){
_85-=_84.substring(0,_84.length-2);
}
return _85;
}
if(_80=="height"&&(typeof _7f.offsetHeight!="undefined"&&_7f.offsetHeight!=null)){
if(fdcp.browserDetect.browser=="Firefox"&&fdcp.browserDetect.version==2&&_7f.nodeName=="SPAN"){
var _86=typeof _7f.offsetHeight!="undefined"&&_7f.offsetHeight!=null?_7f.offsetHeight:0;
for(var i=0;i<_7f.childNodes.length;i++){
if(_7f.childNodes[i].nodeType!=3){
_86+=this.getStyleValue(_7f.childNodes[i],"height");
}
}
return _86;
}else{
if(_7f.offsetHeight==0){
if(_7f.childNodes.length==1){
if(typeof this.getStyleValue(_7f.childNodes[0],"float")!="undefined"&&this.getStyleValue(_7f.childNodes[0],"float")!=null){
var _88=this.getStyleValue(_7f.childNodes[0],"float");
var _89=0;
if(_88=="left"){
_89=this.getStyleValue(_7f.childNodes[0],"height");
return _89;
}
}
}
return _7f.offsetHeight;
}else{
var _8a=_7f.offsetHeight;
if(_7f.nodeName=="DIV"||_7f.nodeName=="TD"||_7f.nodeName=="TH"||_7f.nodeName.match(/^H\d$/)!=null){
var _8b=this.getStyleValue(_7f,this._pt);
var _8c=this.getStyleValue(_7f,this._pb);
if(_8b.indexOf("px")!=-1){
_8a-=_8b.substring(0,_8b.length-2);
}
if(_8c.indexOf("px")!=-1){
_8a-=_8c.substring(0,_8c.length-2);
}
}
return _8a;
}
}
return _7f.offsetHeight;
}
if(_7f.currentStyle&&fdcp.browserDetect.browser=="Explorer"){
var _8d=_7f.currentStyle[_82];
if(_80==this._fsiz&&_8d.match(/^\d+$/)!=null){
if(_8d<1){
_8d=1;
}else{
if(_8d>7){
_8d=7;
}
}
_8d=this.ftsz[_8d];
}
return _8d;
}else{
try{
var _8e=document.defaultView.getComputedStyle(_7f,"");
var ret=_8e[_82];
return ret;
}
catch(e){
if(_80!=this._float){
try{
var _8e=document.defaultView.getComputedStyle(_7f.parentNode,"");
var ret=_8e[_82];
return ret;
}
catch(e2){
var _90=_7f.parentNode.currentStyle[_82];
if(fdcp.browserDetect.browser=="Explorer"&&_80==this._fsiz&&_90.match(/^\d+$/)!=null){
_90=this.getIeFtSz(_90);
}
return _90;
}
}else{
return null;
}
}
}
};
this.getIeFtSz=function(_91){
if(_91<1){
_91=1;
}else{
if(_91>7){
_91=7;
}
}
return this.ftsz[_91];
};
this.getBorderStyles=function(_92){
var bxs,bbs,bts,bls,brs;
var bxw,bbw,btw,blw,brw;
var bxc,bbc,btc,blc,brc;
bxs=this.getStyleValue(_92,this._bxs);
bbs=this.getStyleValue(_92,this._bbs);
bts=this.getStyleValue(_92,this._bts);
bls=this.getStyleValue(_92,this._bls);
brs=this.getStyleValue(_92,this._brs);
var _a2=bbs||bts||bls||brs;
if(!bxs&&!_a2){
return "";
}
var _a3="";
if(_a2&&!(bbs==bts&&bts==bls&&bls==brs)){
if(bbs&&bbs!=null&&bbs.length>0){
_a3+=this._bbs+":"+bbs+";";
}
if(bts&&bts!=null&&bts.length>0){
_a3+=this._bts+":"+bts+";";
}
if(bls&&bls!=null&&bls.length>0){
_a3+=this._bls+":"+bls+";";
}
if(brs&&brs!=null&&brs.length>0){
_a3+=this._brs+":"+brs+";";
}
}else{
if(_a2=="none"){
return "";
}else{
if(_a2&&(bbs==bts&&bts==bls&&bls==brs)){
_a3+=this._bxs+":"+bbs+";";
}else{
if(bxs&&bxs!=null&&bxs.length>0){
_a3+=this._bxs+":"+bxs+";";
}
}
}
}
bxw=this.getStyleValue(_92,this._bxw);
bbw=this.getStyleValue(_92,this._bbw);
btw=this.getStyleValue(_92,this._btw);
blw=this.getStyleValue(_92,this._blw);
brw=this.getStyleValue(_92,this._brw);
var _a4=bbw||btw||blw||brw;
bxc=this.getStyleValue(_92,this._bxc);
bbc=this.getStyleValue(_92,this._bbc);
btc=this.getStyleValue(_92,this._btc);
blc=this.getStyleValue(_92,this._blc);
brc=this.getStyleValue(_92,this._brc);
var _a5=bbc||btc||blc||brc;
if(_a4&&!(bbw==btw&&btw==blw&&blw==brw)){
if(bbw&&bbw!=null&&bbw.length>0){
_a3+=this._bbw+":"+bbw+";";
}
if(btw&&btw!=null&&btw.length>0){
_a3+=this._btw+":"+btw+";";
}
if(blw&&blw!=null&&blw.length>0){
_a3+=this._blw+":"+blw+";";
}
if(brw&&brw!=null&&brw.length>0){
_a3+=this._brw+":"+brw+";";
}
}else{
if(_a4&&(bbw==btw&&btw==blw&&blw==brw)){
_a3+=this._bxw+":"+bbw+";";
}else{
if(bxw&&bxw!=null&&bxw.length>0){
_a3+=this._bxw+":"+bxw+";";
}
}
}
if(_a5&&!(bbc==btc&&btc==blc&&blc==brc)){
if(bbc&&bbc!=null&&bbc.length>0){
_a3+=this._bbc+":"+bbc+";";
}
if(btc&&btc!=null&&btc.length>0){
_a3+=this._btc+":"+btc+";";
}
if(blc&&blc!=null&&blc.length>0){
_a3+=this._blc+":"+blc+";";
}
if(brc&&brc!=null&&brc.length>0){
_a3+=this._brc+":"+brc+";";
}
}else{
if(_a5&&(bbc==btc&&btc==blc&&blc==brc)){
_a3+=this._bxc+":"+bbc+";";
}else{
if(bxc&&bxc!=null&&bxc.length>0){
_a3+=this._bxc+":"+bxc+";";
}
}
}
return _a3;
};
this.getPaddingStyle=function(_a6){
var px,pb,pt,pl,pr;
px=this.getStyleValue(_a6,this._px);
pb=this.getStyleValue(_a6,this._pb);
pt=this.getStyleValue(_a6,this._pt);
pl=this.getStyleValue(_a6,this._pl);
pr=this.getStyleValue(_a6,this._pr);
var _ac=pb||pt||pl||pr;
if(!px&&!_ac){
return "";
}
var _ad="";
if(_ac&&!(pb==pt&&pt==pl&&pl==pr)){
if(pb&&pb!=null&&pb.length>0){
_ad+=this._pb+":"+pb+";";
}
if(pt&&pt!=null&&pt.length>0){
_ad+=this._pt+":"+pt+";";
}
if(pl&&pl!=null&&pl.length>0){
_ad+=this._pl+":"+pl+";";
}
if(pr&&pr!=null&&pr.length>0){
_ad+=this._pr+":"+pr+";";
}
}else{
if(_ac=="none"){
return "";
}else{
if(_ac&&(pb==pt&&pt==pl&&pl==pr)){
_ad+=this._px+":"+pb+";";
}else{
if(px&&px!=null&&px.length>0){
_ad+=this._px+":"+px+";";
}
}
}
}
return _ad;
};
this.getMultiplier=function(str){
if(str.indexOf("%")>0){
var num=str.substring(0,str.indexOf("%"));
return num/100;
}
if(str.indexOf("em")>0){
var num=str.substring(0,str.indexOf("em"));
return num;
}
if(str.indexOf("ex")>0){
var num=str.substring(0,str.indexOf("ex"));
return num*0.4;
}
};
this.calculateFontSize=function(_b0){
var _b1=new Array();
var _b2;
var _b3;
_b1.push(this.getStyleValue(_b0,"font-size"));
_b0=_b0.parentNode;
while(_b0!=null){
if(_b0.nodeType==3){
_b0=_b0.parentNode;
continue;
}
if(_b0.nodeName=="BODY"){
_b3="12pt";
break;
}
_b3=this.getStyleValue(_b0,"font-size",true);
if(_b3!=null){
if(this.isRelFont(_b3)){
_b1.push(_b3);
}else{
break;
}
}else{
_b3=this.getStyleValue(_b0,"font-size");
if(this.isRelFont(_b3)==false){
break;
}else{
if(_b3!=_b1[_b1.length-1]){
_b1.push(_b3);
}
}
}
_b0=_b0.parentNode;
}
if(this.sz[_b3]!=null){
_b3=this.sz[_b3];
}
_b2=_b3.substring(_b3.length-2);
_b3=_b3.substring(0,_b3.length-2);
for(var i=0;i<_b1.length;i++){
_b3=_b3*this.getMultiplier(_b1[i]);
}
return Math.round(_b3)+_b2;
};
this.getImageStyle=function(_b5,_b6){
var _b7=_b5.width;
var _b8=_b5.height;
if(!_b7){
_b7=this.getStyleValue(_b5,"width");
}
if(!_b8){
_b8=this.getStyleValue(_b5,"height");
}
var _b9="style=\""+"width:"+_b7+";height:"+_b8+";";
if(_b6==false){
var _ba=this.getBorderStyles(_b5);
if(typeof this.getStyleValue(_b5,"float")!="undefined"&&this.getStyleValue(_b5,"float")!=null){
_b9+="float:"+this.getStyleValue(_b5,"float")+";";
}
if(_ba){
_b9+=_ba;
}
}
_b9+="\"";
return _b9;
};
this.getNodeStyle=function(_bb,blk,_bd){
var _be="style=\"";
var _bf=this.getStyleValue(_bb,this._ffam);
var _c0=this.getStyleValue(_bb,this._fsiz);
var _c1=this.getStyleValue(_bb,this._fwei);
var _c2=this.getStyleValue(_bb,this._tdec);
if(fdcp.browserDetect.browser=="Firefox"){
var _c3=parseInt(_c1);
if(typeof _c3!="undefined"&&!isNaN(_c3)&&_c3==401){
_c1=700;
}
}
var _c4=this.getStyleValue(_bb,this._fsty);
var _c5=this.getStyleValue(_bb,this._fcol);
var reg=new RegExp("MS Sans Serif","i");
_bf=_bf.replace(reg,"sans-serif");
if(_bf.indexOf("\"")>=0){
_bf=_bf.replace(/\"/g,"");
}
if(_bf.indexOf("'")>=0){
_bf=_bf.replace(/\'/g,"");
}
if(this.isRelFont(_c0)){
_c0=this.calculateFontSize(_bb);
}
_be+=this._ffam+":"+_bf+";"+this._fsiz+":"+_c0+";"+this._fwei+":"+_c1+";"+this._fsty+":"+_c4+";"+this._fcol+":"+_c5+";"+(_c2=="none"?"":this._tdec+":"+_c2+";");
if(blk){
var _c7=false;
if(_bb.nodeName=="SPAN"){
var f=this.getStyleValue(_bb,"float");
if(typeof f=="undefined"||f==null&&(f!="right"&&f!="left")){
_c7=true;
}
}
var _c9=this.getStyleValue(_bb,"width",_c7);
var _ca=this.getStyleValue(_bb,"height",_c7);
var _cb=this.getBorderStyles(_bb);
var _cc=this.getPaddingStyle(_bb);
var _cd=this.getStyleValue(_bb,this._mta);
var _ce=this.getStyleValue(_bb,this._bgc);
var _cf=this.getStyleValue(_bb,this._bgi).replace(/\"/g,"'");
var _d0=this.getStyleValue(_bb,this._bgr);
var _d1=this.getStyleValue(_bb,this._clear);
var _d2=this.getStyleValue(_bb,this._float);
var _d3=this.getStyleValue(_bb,this._bbw);
var _d4=this.getStyleValue(_bb,this._btw);
var _d5=this.getStyleValue(_bb,this._blw);
var _d6=this.getStyleValue(_bb,this._brw);
var cf=_c0.substring(0,_c0.length-2);
if(this.isRelFont(_d3)){
_d3=_d3.substring(0,_d3.length-2);
_d3=_d3*cf;
_d3=_d3+"px";
}
if(this.isRelFont(_d4)){
_d4=_d4.substring(0,_d4.length-2);
_d4=_d4*cf;
_d4=_d4+"px";
}
if(this.isRelFont(_d5)){
_d5=_d5.substring(0,_d5.length-2);
_d5=_d5*cf;
_d5=_d5+"px";
}
if(this.isRelFont(_d6)){
_d6=_d6.substring(0,_d6.length-2);
_d6=_d6*cf;
_d6=_d6+"px";
}
if(_d3!=null){
_be+=this._bbw+":"+_d3+";";
}
if(_d4!=null){
_be+=this._btw+":"+_d4+";";
}
if(_d5!=null){
_be+=this._blw+":"+_d5+";";
}
if(_d6!=null){
_be+=this._brw+":"+_d6+";";
}
_be+=this._clear+":"+_d1+";"+(_d2=="left"||_d2=="right"?(this._float+":"+_d2+";"):"");
_be+=_cb+_cc;
if(_c9!=null&&_c9!="auto"&&_c9!="0auto"){
_be+="width: "+_c9+";";
}
if(_ca!=null&&_ca!="auto"&&_ca!="0auto"){
if(_bd&&_bd>0&&(_bb.nodeName=="TD"||_bb.nodeName=="TH")){
_ca-=_bd;
}
_be+="height: "+_ca+";";
}
var mt=this.getStyleValue(_bb,this._mt);
var mb=this.getStyleValue(_bb,this._mb);
if(mt!="auto"&&(mt.charAt(0)=="0"||mt.charAt(0)=="-"||_bb.nodeName=="P"||_bb.nodeName=="UL")){
_be+=this._mt+":"+mt+";";
}
if(mb!="auto"&&(mb.charAt(0)=="0"||mb.charAt(0)=="-")){
_be+=this._mb+":"+mb+";";
}
if(_bb.nodeName=="UL"||_bb.nodeName=="LI"){
var _da=this.getStyleValue(_bb,"lineHeight");
if(_da!="auto"){
_be+="line-height:"+_da+";";
}else{
_be+="line-height: 1.2;";
}
if(_bb.nodeName=="UL"){
var _db="";
if(_bb.currentStyle){
_db=_bb.currentStyle["listStyleType"];
_be+="list-style-type:"+_db+";";
}else{
if(window.getComputedStyle){
_db=document.defaultView.getComputedStyle(_bb,null).getPropertyValue("list-style-type");
_be+="list-style-type:"+_db+";";
}
}
}
}else{
var _da=this.getStyleValue(_bb,"lineHeight");
if(_da!="auto"){
_be+="line-height:"+_da+";";
}
}
if(_ce!="transparent"){
_be+=this._bgc+":"+_ce+";";
}
if(_cf!="none"){
if(fdcp.browserDetect.browser=="Firefox"){
var _dc=_cf.replace("url(","url('");
var _dd=_dc.replace(")","')");
_cf=_dd;
_be+=this._bgi+":"+_cf+";";
}else{
_be+=this._bgi+":"+_cf+";";
}
}
if(_d0!="repeat"){
_be+=this._bgr+":"+_d0+";";
}
_be+=this._mta+":"+_cd+";";
if(_bb.nodeName=="TABLE"){
var v=this.getStyleValue(_bb,this._brcl);
if(!this.isMT(v)){
_be+=this._brcl+":"+v+";";
}
v=this.getStyleValue(_bb,this._brsp);
if(!this.isMT(v)){
_be+=this._brsp+":"+v+";";
}
}
}
return _be+"\"";
};
this.serializeText=function(_df,_e0){
var st=_df.nodeValue;
if(st&&st.replace(/[\r\n]/g,"").match(/^\s*$/)==null){
st="";
if(_e0!="data"){
var st=" "+this.getNodeStyle(_df,false);
if(_df.nodeValue=="<"){
_df.nodeValue="&lt;";
}
if(_df.nodeValue==">"){
_df.nodeValue="&gt;";
}
}
return "<text"+st+">"+C2E(_df.nodeValue)+"</text>";
}
return "";
};
function C2E(str){
var acc="";
for(var i=0;i<str.length;i++){
if(str.charCodeAt(i)>31&&str.charCodeAt(i)<127){
acc+=str.charAt(i);
}else{
acc+="&#"+str.charCodeAt(i)+";";
}
}
acc=acc.replace(/&/g,"&#38;");
acc=acc.replace(/'/g,"&#39;");
acc=acc.replace(/"/g,"&#34;");
acc=acc.replace(/\\/g,"&#92;");
acc=acc.replace(/\+/g,"&#43;");
acc=acc.replace(/</g,"&#60;");
acc=acc.replace(/>/g,"&#62;");
return acc;
}
this.serializeCDATA=function(_e5){
return "<![CDATA["+_e5.nodeValue+"]]>";
};
this.serializeBR=function(_e6,_e7){
return "<text"+(_e7=="data"?"":" "+this.getNodeStyle(_e6,false))+"><"+_e6.nodeName+" /></text>";
};
this.serializeImage=function(_e8,_e9){
var _ea;
var st="";
st=this.getImageStyle(_e8,_e9=="data");
var src=_e8.getAttribute("src");
var alt=_e8.getAttribute("alt");
var _ee=_e8.getAttribute("align");
var _ef=_e8.ownerDocument;
if(src.indexOf("http")==0){
}else{
if(src.charAt(0)=="/"){
var url=_ef.URL;
var _f1=new RegExp("^http(?:s)?://[^/]*");
var res=_f1.exec(url);
var _f3=res[0];
src=_f3+src;
}else{
var url=_ef.URL;
var _f1=new RegExp("^http(?:s)?://[^?]*");
var res=_f1.exec(url);
var _f3=res[0];
_f3=_f3.substring(0,_f3.lastIndexOf("/"));
src=_f3+"/"+src;
}
}
_ea="<image ";
if(_e8.id){
_ea+="id='"+_e8.id+"' ";
}
if(typeof _ee!="undefined"&&_ee!=null){
_ea+="align='"+_ee+"' ";
}
_ea+=st+" src='"+C2E(src)+"' ";
if(typeof alt!="undefined"&&alt!=null&&alt.length>0){
_ea+="alt='"+C2E(alt)+"' ";
}
_ea+="/>";
return _ea;
};
this.serializeParagraph=function(_f4){
return this.serializeBR(_f4);
};
this.serializeGoogleImage=function(_f5){
var _f6;
_f6="<image ";
if(_f5.id){
_f6+="id='"+_f5.id+"' ";
}
var i=new Image();
i.src=_f5.getAttribute("src");
var st=_f5.style.cssText;
var _f9="";
if(fdcp.browserDetect.browser=="Explorer"){
_f9=_f5.currentStyle["top"];
}else{
_f9=_f5.style.top;
}
if(_f9!="auto"&&_f9!=null){
return _f6+" style=' "+"top:"+_f9+";"+st+" ' "+" src=' "+C2E(i.src)+" ' />";
}else{
return _f6+" style=' "+st+" ' "+" src=' "+C2E(i.src)+" ' />";
}
};
this.serializeGoogleMapElement=function(_fa,_fb){
var _fc="";
if(_fa.nodeName=="SCRIPT"){
return _fc;
}
var to=_fb;
if(_fb==this.text_only_state.once){
to=this.text_only_state.off;
}
if(_fa.nodeName.charAt(0)=="/"){
return _fc;
}
if(_fb==this.text_only_state.off&&_fa.nodeName!=""){
_fc="<"+_fa.nodeName+" ";
if(_fa.id){
_fc+="id=\""+_fa.id+"\" ";
}
if(_fa.className){
_fc+="class=\""+_fa.className+"\" ";
}
if(_fa.nodeName=="TABLE"){
if(!this.isMT(_fa.border)){
_fc+="border=\""+_fa.border+"\" ";
}
if(!this.isMT(_fa.cellPadding)){
_fc+="cellpadding=\""+_fa.cellPadding+"\" ";
}
if(!this.isMT(_fa.cellSpacing)){
_fc+="cellspacing=\""+_fa.cellSpacing+"\" ";
}
}else{
if(_fa.nodeName=="TD"){
if(!this.isMT(_fa.colSpan)){
_fc+="colspan=\""+_fa.colSpan+"\" ";
}
if(!this.isMT(_fa.rowSpan)){
_fc+="rowspan=\""+_fa.rowSpan+"\" ";
}
if(!this.isMT(_fa.noWrap)){
_fc+="nowrap=\""+_fa.noWrap+"\" ";
}
if(!this.isMT(_fa.vAlign)){
_fc+="valign=\""+_fa.vAlign+"\" ";
}
}
}
var _fe=this.getStyleValue(_fa,"width");
var _ff=this.getStyleValue(_fa,"height");
var _100="";
if(_fe!=null&&_fe!="auto"&&_fe!="0auto"){
_100+="width: "+_fe+";";
}
if(_ff!=null&&_ff!="auto"&&_ff!="0auto"){
_100+="height: "+_ff+";";
}
if(_fa.style.cssText!=null){
if(_fa.nodeName=="SPAN"){
if(_fa.className=="gmnoprint"){
_fc+="style=\""+"position:absolute;height:30px;width:62px;-moz-user-select: none; position: absolute; left: 2px; bottom: 2px;"+"\" >";
}else{
_fc+=this.getNodeStyle(_fa,true)+">";
}
}else{
if(_fa.id=="mapcontainer"){
_fc+="style=\""+"position:relative;"+_100;
var f=this.getStyleValue(_fa,"float");
if(f=="left"||f=="right"){
_fc+="float:"+f+";\">";
}
}else{
if(fdcp.browserDetect.browser=="Explorer"){
var _fe=_fa.currentStyle["width"];
if(_fe=="100%"){
var _102=_fa.parentNode.currentStyle["width"];
_fa.style.width=_102;
}
var _ff=_fa.currentStyle["height"];
if(_ff=="100%"){
var _103=_fa.parentNode.currentStyle["height"];
_fa.style.height=_103;
}
var _104="";
if(_fa.currentStyle["top"]!="auto"){
_fa.style.top=_fa.currentStyle["top"];
}
if(_fa.currentStyle["left"]!="auto"){
_fa.style.left=_fa.currentStyle["left"];
}
if(_fa.currentStyle["position"]!="auto"){
_fa.style.position=_fa.currentStyle["position"];
}
if(_fa.currentStyle["z-index"]!="auto"){
_fa.style.zindex=_fa.currentStyle["zindex"];
}
_fc+="style=\""+_100+_fa.style.cssText+"; "+"\" >";
}else{
if(document.defaultView.getComputedStyle(_fa,null).getPropertyValue("z-index")!="auto"){
_fa.style.zindex=document.defaultView.getComputedStyle(_fa,null).getPropertyValue("z-index");
}
if(document.defaultView.getComputedStyle(_fa,null).getPropertyValue("position")!="auto"){
_fa.style.position=document.defaultView.getComputedStyle(_fa,null).getPropertyValue("position");
}
if(document.defaultView.getComputedStyle(_fa,null).getPropertyValue("top")!="auto"){
_fa.style.top=document.defaultView.getComputedStyle(_fa,null).getPropertyValue("top");
}
if(document.defaultView.getComputedStyle(_fa,null).getPropertyValue("left")!="auto"){
_fa.style.left=document.defaultView.getComputedStyle(_fa,null).getPropertyValue("left");
}
if(_fa.getAttribute("style")!=null){
_fc+="style=\""+_fa.getAttribute("style")+_100+_fa.style.cssText+"; "+"\" >";
}else{
_fc+="style=\""+_100+_fa.style.cssText+"; "+"\" >";
}
}
}
}
}else{
_fc+=this.getNodeStyle(_fa,true)+">";
}
}
for(var i=0;i<_fa.childNodes.length;i++){
var _106=_fa.childNodes[i];
if(this.isExcluded(_106)){
continue;
}
if(_106.nodeType==3){
_fc+=this.serializeText(_106);
}else{
if(_106.nodeType==4){
_fc+=this.serializeCDATA(_106);
}else{
if(_106.nodeType==1){
if(_106.nodeName=="BR"){
_fc+=this.serializeBR(_106);
}else{
if(_106.nodeName=="P"){
_fc+=this.serializeInlineElement(_106,this.text_only_state.off);
}else{
if(_106.nodeName=="IMG"||_fa.nodeName=="IMAGE"){
_fc+=this.serializeGoogleImage(_106);
}else{
_fc+=this.serializeGoogleMapElement(_106,this.text_only_state.off);
}
}
}
}
}
}
}
if(_fb==this.text_only_state.off&&_fa.nodeName!=""){
_fc+="</"+_fa.nodeName+">";
}
return _fc;
};
this.serializeInlineElement=function(node,_108,_109,mode){
if(typeof _109=="undefined"){
_109=null;
}
var _10b="";
if(node.nodeName=="SCRIPT"){
return _10b;
}
var _10c=this.getStyleValue(node,"height");
var to=_108;
if(_108==this.text_only_state.once){
to=this.text_only_state.off;
}
if(node.nodeName.charAt(0)=="/"){
return _10b;
}
if(parseInt(this.getStyleValue(node,"width"))>=500){
var _10e=this.getStyleValue(node,"width");
if(parseInt(_10e)>this.getWidestBlkWidth()){
this.setWidestBlkWidth(_10e);
}
}
if(_108==this.text_only_state.off&&node.nodeName!=""){
if(node.nodeName=="LI"){
if(node.parentNode!=null&&node.parentNode.nodeName!="UL"&&node.parentNode.nodeName!="OL"){
_10b+="<UL style=\"margin-top:0px;margin-bottom:0px;\">";
}
}
_10b+="<"+node.nodeName;
if(node.id){
_10b+=" id=\""+node.id+"\"";
}
if(node.type){
_10b+=" type=\""+node.type+"\"";
}
if(node.className){
_10b+=" class=\""+node.className+"\"";
}
if(node.checked){
_10b+=" checked=\""+node.checked+"\"";
}
if(mode!="data"){
if(node.nodeName=="TABLE"){
if(!this.isMT(node.border)){
_10b+=" border=\""+node.border+"\"";
}
if(!this.isMT(node.cellPadding)){
_10b+=" cellpadding=\""+node.cellPadding+"\"";
_109=node.cellPadding;
}
if(!this.isMT(node.cellSpacing)){
_10b+=" cellspacing=\""+node.cellSpacing+"\"";
}
}else{
if(node.nodeName=="TD"){
if(!this.isMT(node.colSpan)){
_10b+=" colspan=\""+node.colSpan+"\"";
}
if(!this.isMT(node.rowSpan)){
_10b+=" rowspan=\""+node.rowSpan+"\"";
}
if(!this.isMT(node.noWrap)){
_10b+=" nowrap=\""+node.noWrap+"\"";
}
if(!this.isMT(node.vAlign)){
_10b+=" valign=\""+node.vAlign+"\"";
}
}
}
_10b+=" "+this.getNodeStyle(node,true,_109);
}
_10b+=">";
}
for(var i=0;i<node.childNodes.length;i++){
var _110=node.childNodes[i];
if(this.isExcluded(_110)){
continue;
}
if(_110.nodeName=="DIV"&&(_110.id=="mapcontainer"||_110.id=="nearby_map")){
_10b+=this.serializeGoogleMapElement(_110,to);
}else{
if(this.getStyleValue(_110,"display")=="none"){
continue;
}
if(_110.nodeType==3){
_10b+=this.serializeText(_110,mode);
}else{
if(_110.nodeType==4){
_10b+=this.serializeCDATA(_110);
}else{
if(_110.nodeType==1){
if(_110.nodeName=="BR"){
_10b+=this.serializeBR(_110,mode);
}else{
if(_110.nodeName=="P"){
_10b+=this.serializeInlineElement(_110,to,undefined,mode);
}else{
if(_110.nodeName.match(/^H\d$/)!=null){
_10b+=this.serializeInlineElement(_110,to,undefined,mode);
}else{
if(_110.nodeName=="IMG"||node.nodeName=="IMAGE"||(_110.nodeName=="INPUT"&&_110.type=="image")){
_10b+=this.serializeImage(_110,mode);
}else{
_10b+=this.serializeInlineElement(_110,to,_109,mode);
}
}
}
}
}
}
}
}
}
if(_108==this.text_only_state.off&&node.nodeName!=""){
_10b+="</"+node.nodeName+">";
if(node.nodeName=="LI"){
if(node.parentNode!=null&&node.parentNode.nodeName!="UL"&&node.parentNode.nodeName!="OL"){
_10b+="</UL>";
}
}
}
return _10b;
};
this.newpg=function(_111){
if(_111.length>0&&_111[_111.length-1]!="</paragraph><paragraph>"){
_111.push("</paragraph><paragraph>");
}
};
this._serNode=function(node,_113,_114,mode){
var v;
var is_h=false;
if(this.isExcluded(node)){
return;
}
if(this.getStyleValue(node,"display")=="none"){
return;
}
var _118=this.getStyleValue(node,"height");
if((typeof _118=="undefined"||_118==null||_118==0)&&!(node.nodeName=="BR")){
return;
}
if(typeof _114=="undefined"||_114==null){
_114=this.text_only_state.off;
}
if(node.nodeType==3){
v=this.serializeText(node,mode);
if(v!=null&&v.length>0){
_113.push(v);
}
}else{
if(node.nodeType==4){
_113.push(this.serializeCDATA(node));
}else{
if(node.nodeType==1){
if(node.nodeName=="SCRIPT"){
return;
}
if(node.nodeName=="BR"){
_113.push(this.serializeBR(node,mode));
}else{
if(node.nodeName=="IMG"||node.nodeName=="IMAGE"||(node.nodeName=="INPUT"&&node.type=="image")){
_113.push(this.serializeImage(node,mode));
}else{
if(node.nodeName=="P"){
if(_113.length>0){
this.newpg(_113);
}
}else{
if(node.nodeName=="TR"){
this.newpg(_113);
}else{
if(node.nodeName.match(/^H\d$/)!=null){
is_h=true;
this.newpg(_113);
}
}
}
var _119=node.offsetWidth;
var _11a=new Boolean(true);
var _11b=this.fdclient.getBlockThreshold();
if((typeof _119!="undefined"&&_119!=null&&_119>_11b)||_114>0){
_11a=false;
}
if(((node.nodeName=="DIV"&&_11a)||node.nodeName=="TABLE"&&_114!=this.text_only_state.on)||node.nodeName=="UL"||node.nodeName=="OL"||node.nodeName=="LI"){
if(node.nodeName=="UL"||node.nodeName=="LI"||node.nodeName=="OL"){
_114=0;
}
if(node.nodeName=="DIV"&&(node.id=="mapcontainer"||node.id=="nearby_map")){
_113.push(this.serializeGoogleMapElement(node,_114));
}else{
_113.push(this.serializeInlineElement(node,_114,undefined,mode));
}
}else{
try{
if(node.nodeName=="SPAN"){
if(node.getAttribute("inlineDiv")=="true"){
var _11c=node.firstChild;
_113.push(this.serializeInlineElement(_11c,_114,undefined,mode));
}else{
if(node.getAttribute("inlineDiv")=="false"){
this.newpg(_113);
this._serNode(node.nextSibling,_113,this.text_only_state.on,mode);
}else{
if(node.getAttribute("formatdynamics")=="content"){
for(var m=node.firstChild;m!=null;m=m.nextSibling){
this._serNode(m,_113,this.text_only_state.off,mode);
}
}else{
for(var m=node.firstChild;m!=null;m=m.nextSibling){
this._serNode(m,_113,this.text_only_state.off,mode);
}
}
}
}
}else{
if(node.nodeName=="DIV"){
if(_113.length>0){
this.newpg(_113);
}
}
for(var m=node.firstChild;m!=null;m=m.nextSibling){
this._serNode(m,_113,_114,mode);
}
if(node.nodeName=="P"){
this.newpg(_113);
}
}
}
catch(e){
for(var m=node.firstChild;m!=null;m=m.nextSibling){
this._serNode(m,_113,this.text_only_state.once,mode);
}
}
}
if(is_h){
this.newpg(_113);
}
}
}
}
}
}
};
this.serializeNode=function(node,_11f,_120,_121,mode){
var _123=this.text_only_state.off;
if(_121=="true"){
_123=this.text_only_state.on;
}
this._serNode(node,_11f,_123,mode);
};
this.isExcluded=function(node){
for(var i=0;i<this.excludesXpath.length;i++){
if(node==this.excludesXpath[i]){
return true;
}
}
var _126=this.fdclient.getCfg("excludes");
if(typeof _126=="undefined"||_126==null){
return false;
}
var _127="";
var _128="";
var id="";
if(typeof node.nodeName!="undefined"&&node.nodeName!=null){
_127=node.nodeName.toLowerCase();
}
if(typeof node.className!="undefined"&&node.className!=null){
_128=node.className.toLowerCase();
}
if(typeof node.id!="undefined"&&node.id!=null){
id=node.id.toLowerCase();
}
for(var i=0;i<_126.length;i++){
var e=_126[i].toLowerCase();
var _12b=_128.split(/\s+/);
for(var cl in _12b){
if(_12b[cl]==e||("."+_12b[cl])==e){
return true;
}
if((_127+"."+_12b[cl])==e){
return true;
}
if(id==e||("#"+id)==e){
return true;
}
if((_127+"."+id)==e||(_127+"#"+id)==e){
return true;
}
}
}
return false;
};
this.setExcludes=function(_12d){
this.excludesXpath=_12d;
};
this.getWidestBlkWidth=function(){
return this._widestblkwidth;
};
this.setWidestBlkWidth=function(_12e){
this._widestblkwidth=_12e;
};
this.fullClientSerialize=function(_12f,_130){
_130=typeof _130=="undefined"?new Array():_130;
var _131=new Array();
for(var i=0;i<_12f.length;i++){
var _133=_12f[i].cloneNode(false);
_131.push(this.recurseMap(_12f[i],_133,_130));
}
var rv="";
for(var i=0;i<_131.length;i++){
rv+=_131[i].innerHTML;
}
for(var x in this.serializedVmlReplacements){
rv=rv.replace(x,this.serializedVmlReplacements[x]);
}
return rv;
};
this.recurseMap=function(_136,_137,_138){
if(typeof _136.childNodes!="undefined"&&_136.childNodes.length>0){
for(var i=0;i<_136.childNodes.length;i++){
var _13a=false;
var _13b=[];
if(_136.childNodes[i].nodeName!="svg"&&_136.childNodes[i].nodeName!="path"){
_13b=typeof _136.childNodes[i].className=="undefined"?[]:_136.childNodes[i].className.split(" ");
}
for(var j=0;j<_13b.length;j++){
for(var k=0;k<_138.length;k++){
_13a=_13a||_138[k]==_13b[j];
}
}
if((_136.childNodes[i].nodeType==1||_136.childNodes[i].nodeType==3)&&!_13a){
var _13e;
var _13f=this.arrayContains(_136.childNodes[i].nodeName,this.serializeableVmlElements);
if(typeof _136.childNodes[i].namespaceURI!="undefined"&&_136.childNodes[i].namespaceURI!=null&&_136.childNodes[i].namespaceURI.indexOf("svg")!=-1){
_13e=this.cloneSvg(_136.childNodes[i]);
}else{
if(_13f){
_13e=this.cloneVml(_136.childNodes[i]);
}else{
_13e=_136.childNodes[i].cloneNode(false);
}
}
if(typeof _13e.className!="undefined"){
try{
_13e.className="";
}
catch(e){
}
}
_137.appendChild(_13e);
if(_136.childNodes[i].nodeType==1&&!_13f){
this.copyAppliedStyle(_136.childNodes[i],_13e);
}
if(!_13f){
this.recurseMap(_136.childNodes[i],_13e,_138);
}
}
}
}
return _137;
};
this.serializeableVmlElements=["shape","stroke"];
this.serializedVmlReplacements={};
this.cloneVml=function(_140){
var _141=(new Date()).getTime()+""+Math.floor(Math.random()*10000);
this.serializedVmlReplacements[_141]=_140.outerHTML;
var rv=document.createTextNode(_141);
return rv;
};
this.cloneSvg=function(_143){
var _144=document.createElementNS("http://www.w3.org/2000/svg",_143.nodeName);
for(var i=0;i<_143.attributes.length;i++){
_144.setAttributeNS(null,_143.attributes[i].nodeName,_143.attributes[i].nodeValue);
}
return _144;
};
this.arrayContains=function(_146,_147){
for(var i=0;i<_147.length;i++){
if(_147[i]==_146){
return true;
}
}
return false;
};
this.fullSerializeDefaultStyles={"background-attachment":"scroll","background-color":"transparent","background-image":"none","background-position":"0% 0%","background-repeat":"repeat","border-left-color":"rgb(0, 0, 0)","border-top-color":"rgb(0, 0, 0)","border-right-color":"rgb(0, 0, 0)","border-bottom-color":"rgb(0, 0, 0)","border-left-style":"none","border-top-style":"none","border-right-style":"none","border-bottom-style":"none","border-left-width":"0px","border-top-width":"0px","border-right-width":"0px","border-bottom-width":"0px","background":"transparent none repeat scroll 0% 0%","overflow":"visible","overflow-x":"visible","overflow-y":"visible","-moz-background-clip":"-moz-initial","-moz-background-origin":"-moz-initial","-moz-background-inline-policy":"-moz-initial","display":"block","visibility":"visible","opacity":"1","border-collapse":"separate","border-spacing":"0px 0px","clip":"auto","font-size-adjust":"none","font-weight":"400","list-style-image":"none","list-style-position":"outside","list-style-type":"disc","text-align":"left","text-indent":"0px","text-decoration":"none","z-index":"auto","vertical-align":"baseline","color":"rgb(0, 0, 0)","padding-top":"0px","padding-left":"0px","padding-right":"0px","padding-bottom":"0px","font-style":"normal","font-variant":"normal"};
this.fullSerializeIgnoreStyles=["captionSide","clear","content","counterIncrement","counterReset","cursor","direction","emptyCells","letterSpacing","markerOffset","maxHeight","maxWidth","minHeight","minWidth","outlineColor","outlineStyle","outlineWidth","pageBreakAfter","pageBreakBefore","quotes","tableLayout","textTransform","unicodeBidi","whiteSpace","wordSpacing","outlineOffset","imeMode","zoom","scrollbarDarkShadowColor","scrollbar3dLightColor","msBlockProgression","widows","orphans","styleFloat","clipTop","clipBottom","clipLeft","clipRight","blockDirection","outlineStyle","outlineColor","hasLayout"];
this.copyAppliedStyle=function(src,dest){
var sss="";
var _14c=this.fullSerializeCacheCheck(src);
if(_14c!=""){
sss=this.cacheReplaceStyle(src,_14c);
}else{
var _14d;
if(fdcp.browserDetect.browser=="Explorer"){
_14d=dest.currentStyle;
}else{
_14d=document.defaultView.getComputedStyle(dest,"");
}
for(var _14e in _14d){
if(_14e.indexOf("Moz")!=0&&!this.arrayContains(_14e,this.fullSerializeIgnoreStyles)){
var _14f;
var _150="";
for(var j=0,len=_14e.length;j<len;++j){
if(_14e.charAt(j)==_14e.charAt(j).toUpperCase()){
_150=_150+"-"+_14e.charAt(j).toLowerCase();
}else{
_150=_150+_14e.charAt(j);
}
}
var stc;
if(fdcp.browserDetect.browser=="Explorer"){
stc=src.currentStyle[_150];
}else{
stc=document.defaultView.getComputedStyle(src,null).getPropertyValue(_150);
}
var _154=_14d[_14e];
var _155=_150 in this.fullSerializeDefaultStyles;
if(typeof _154!="undefined"&&typeof _154!="function"&&_154!=""&&(!(_155)||(_155&&stc!=this.fullSerializeDefaultStyles[_150]))){
sss+=_150+":"+stc+";";
}
}
}
if(src.nodeName=="IMG"&&src.parentNode.nodeName=="A"){
sss+="border:none;";
}
this.fullSerializeCache.push({parent:src.parentNode,className:src.className,name:src.nodeName,value:sss});
}
if(fdcp.browserDetect.browser=="Explorer"){
dest.style.cssText=sss;
}else{
dest.setAttribute("style",sss);
}
};
this.fullSerializeCache=new Array();
this.fullSerializeCacheCheck=function(_156){
if(typeof _156.id!="undefined"&&_156.id!=""){
return "";
}
var _157=_156.className;
var _158=_156.parentNode;
var _159=_156.nodeName;
for(var i=0;i<this.fullSerializeCache.length;i++){
var _15b=this.fullSerializeCache[i];
if(_158==_15b.parent&&_157==_15b.className&&_159==_15b.name){
return _15b.value;
}
}
return "";
};
this.cacheReplaceStyle=function(src,_15d){
var _15e=src.style.cssText;
var _15f=_15e.split(";");
var _160=_15f.length;
if(_15e.charAt(_15e.length-1)==";"){
_160--;
}
for(var i=0;i<_160;i++){
var _162=_15f[i].indexOf(":");
var _163=_15f[i].substr(0,_162).replace(/^\s+|\s+$/g,"");
var _164=_15f[i].substr(_162+1);
var _165=new RegExp("(^|;)\\s*"+_163+"\\s*:[^;]*(;|$)","i");
var _166=_15d;
_15d=_15d.replace(_165,"$1"+_163+":"+_164+";");
if(_166==_15d){
_15d+=_163+":"+_164+";";
}
}
_15d=this.cacheYankMissingStyleAttributes(["display","z-index"],_15d,_15e);
if(src.nodeName=="IMG"){
var _165=new RegExp("(^|;)\\s*width\\s*:[^;]*(;|$)","i");
if(_15d.match(_165)){
_15d=_15d.replace(_165,"$1width:"+src.width+"px;");
}else{
_15d+=";width:"+src.width+"px;";
}
_165=new RegExp("(^|;)\\s*height\\s*:[^;]*(;|$)","i");
if(_15d.match(_165)){
_15d=_15d.replace(_165,"$1height:"+src.height+"px;");
}else{
_15d+=";height:"+src.height+"px;";
}
}
return _15d;
};
this.cacheYankMissingStyleAttributes=function(_167,_168,_169){
for(var i=0;i<_167.length;i++){
var _16b=new RegExp("(^|;)\\s*"+_167[i]+"\\s*:[^;]*(;|$)","i");
if(_168.match(_16b)&&!_169.match(_16b)){
_168=_168.replace(_16b,"$1");
}
}
return _168;
};
this.arrayRemove=function(_16c,from,to){
var rest=_16c.slice((to||from)+1||_16c.length);
_16c.length=from<0?_16c.length+from:from;
return _16c.push.apply(_16c,rest);
};
}
function FormatDynamicsPT(_170){
this.clnt=_170;
this.pcol=document.location.protocol+"//";
this.cstr=_170.getTHost()+"/pt/t/";
this.dtstr=(new Date()).getTime();
this.div="d="+this.clnt.getDiv();
this.ua="&a="+escape(navigator.appName+" "+navigator.userAgent);
this.seg="&s="+escape(this.clnt.getSegment());
this.ustr="&u="+escape(window.location.href);
this.pf="&p="+this.clnt.getPFF();
this.version="&q=1.1";
this.rtype="&rt="+this.clnt.getRType();
this.qstr=this.div+this.ua+this.seg+this.ustr+this.pf+this.version;
this.turl=this.pcol+this.cstr+this.dtstr+"?"+this.qstr;
this.pthosts=this.clnt.getPtHosts();
this.autoRefreshCSS=this.clnt.getAutoRefreshCSS();
this.autoRefreshTime=this.clnt.getAutoRefreshTime();
this.isPtCss=function(_171){
var _172=this.pthosts.split(",");
for(var i=0;i<_172.length;i++){
if(_171.indexOf(_172[i])!=-1){
return true;
}
}
return false;
};
this.changePrintStyleSheet=function(){
var _174=this.pcol+this.cstr+new Date().getTime()+"?"+this.qstr;
for(i=0;i<document.styleSheets.length;i++){
try{
var _175=document.styleSheets[i];
var _176=navigator.userAgent.toLowerCase();
if((navigator.appName.indexOf("Netscape")!=-1||_176.indexOf("firefox")!=-1||_176.indexOf("safari")!=-1)&&this.isPtCss(_175.cssRules[0].style.content)){
_175.cssRules[0].style.content="url("+_174+");";
return;
}else{
if(this.isPtCss(_175.cssRules[0].style.getPropertyValue("content"))){
if(navigator.appName.indexOf("Opera")!=-1){
_175.deleteRule(0);
}else{
if(navigator.appName.indexOf("Konqueror")==-1){
_175.cssRules[0].style.setProperty("content","url("+tUrl+")",null);
}
}
return;
}
}
}
catch(err){
}
}
try{
var _176=navigator.userAgent.toLowerCase();
if((navigator.appName.indexOf("Netscape")!=-1||_176.indexOf("firefox")!=-1||_176.indexOf("safari")!=-1)){
var s=document.createElement("style");
s.type="text/css";
s.rel="stylesheet";
s.media="print";
s.appendChild(document.createTextNode("body:before {content: url("+this.turl+")};"));
document.getElementsByTagName("head")[0].appendChild(s);
}
}
catch(err){
}
};
this.getFDImage=function(){
if(this.clnt.getRType()=="s"){
var hs=document.documentElement.getElementsByTagName("head");
var h=null;
if(hs&&hs.length>0){
h=hs[0];
var _17a=document.createElement("script");
_17a.type="text/javascript";
_17a.src=this.turl+"&rnd="+Math.random();
}
}else{
var _17b=new Image();
_17b.src=this.turl;
}
};
}


