/* overlibmws_debug.js plug-in module - Copyright Foteos Macrides 2003-2007. All rights reserved. For support of the OLshowProperties() debugging function. Initial: July 26, 2003 - Last Revised: January 1, 2007 See the Change History and Command Reference for overlibmws via: http://www.macridesweb.com/oltest/ Published under an open source license: http://www.macridesweb.com/oltest/license.html */ OLloaded=0; var OLzIndex; OLregCmds('allowdebug'); // DEFAULT CONFIGURATION if(OLud('allowdebug'))var ol_allowdebug=''; // END CONFIGURATION var o3_allowdebug=''; function OLloadDebug(){ OLload('allowdebug'); } function OLparseDebug(pf,i,ar){ var k=i; if(ar[k]==ALLOWDEBUG){ if(k<(ar.length-1)&&typeof ar[k+1]=='string')OLparQuo(ar[++k],pf+'allowdebug');return k;} return -1; } function OLshowProperties(){ var ar=arguments,sho,shoS,vis,lvl=0,istrt=0,theDiv='showProps',txt='', fac='Verdana,Arial,Helvetica',siz=(OLns4?'1':'67%'), fon='>':''); if(ar.length==0)return; if(ar.length%2&&typeof ar[0]=='string'){istrt=1;theDiv=ar[0];} if(!(sho=OLmkLyr(theDiv,self)))return; shoS=(OLns4)?sho:sho.style; lvl=OLgetLayerLevel(theDiv); if(typeof sho.position=='undefined'){ sho.position=new OLpageLocDebug(10+lvl*20,10,1); if(typeof OLzIndex=='undefined')OLzIndex=OLgetDivZindex('overDiv',self); shoS.zIndex=OLzIndex+1+lvl;} txt='
' +'' +''+'Item' +clo+''+'Value'+clo+''; for(var i=istrt;i'+''+ar[i]+': ' +clo+''+ar[++i]+clo+''; txt+='
'+theDiv+clo +'X'+clo +'
'; if(OLns4){sho.document.open();sho.document.write(txt);sho.document.close(); }else{if(OLie4&&OLieM)sho.innerHTML='';sho.innerHTML=txt;} OLshowAllVisibleLayers(); } function OLgetLayerLevel(lyr){ var i=0; if(typeof document.popups=='undefined'){document.popups=new Array(lyr); }else{var l=document.popups;for(i=0;i