/* overlibmws_print.js plug-in module - Copyright Foteos Macrides 2002-2007. All rights reserved. For support of the PRINT feature. Initial: April 25, 2005 - 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 OLprintCmds='print,printbutton,noautoprint,printcolor,printfont,printsize,printtext,' +'printbuttontext,printtitle,printfontclass,printcssfile,printxml,printdoctype,printroot,' +'printtype,printcharset,printurl,printjob',OLprJob=null;OLregCmds(OLprintCmds); // DEFAULT CONFIGURATION if(OLud('print'))var ol_print=0; if(OLud('printbutton'))var ol_printbutton=0; if(OLud('noautoprint'))var ol_noautoprint=0; if(OLud('printcolor'))var ol_printcolor="#eeeeff"; if(OLud('printfont'))var ol_printfont="Verdana,Arial,Helvetica"; if(OLud('printsize'))var ol_printsize=1; if(OLud('printtext'))var ol_printtext='Print'; if(OLud('printbuttontext'))var ol_printbuttontext='Print'; if(OLud('printtitle'))var ol_printtitle="Click to Print"; if(OLud('printfontclass'))var ol_printfontclass=""; if(OLud('printcssfile'))var ol_printcssfile=""; if(OLud('printxml'))var ol_printxml=""; if(OLud('printdoctype'))var ol_printdoctype= ''; if(OLud('printroot'))var ol_printroot=""; if(OLud('printtype'))var ol_printtype="text/html"; if(OLud('printcharset'))var ol_printcharset="iso-8859-1"; if(OLud('printurl'))var ol_printurl=""; if(OLud('printjob'))var ol_printjob=""; // END CONFIGURATION var o3_print=0,o3_printbutton=0,o3_noautoprint,o3_printcolor="",o3_printfont="",o3_printsize=1, o3_printtext="",o3_printbuttontext="",o3_printtitle="",o3_printfontclass="",o3_printcssfile="", o3_printxml="",o3_printdoctype="",o3_printroot="",o3_printtype="",o3_printcharset="", o3_printurl="",o3_printjob=""; function OLloadPrint(){ OLload(OLprintCmds); } function OLparsePrint(pf,i,ar){ var k=i,t=OLtoggle,q=OLparQuo; if(k0&&i<8)?OLpct[i]:OLpct[0];} } function OLchkPrint(){if(!o3_sticky)o3_print=0;else over.print=null;} function OLprintCapLGF(){ var n=(OLovertwoPI&&over2&&over==over2)?2:1; return(o3_print&&!o3_printbutton?'': (OLns4?'><':'')+OLlgfUtil(0,1,'','a',o3_printcolor,o3_printfont,o3_printsize))+o3_printtext +(o3_printfontclass?'':(OLns4?OLlgfUtil(1,1,'','a'):''))+'':''); } function OLprintFgLGF(){ var n=(OLovertwoPI&&over2&&over==over2)?2:1;return (o3_print&&(!o3_cap||o3_printbutton)? '
':''); } function OLprint(n){ if(n!=2&&OLovertwoPI&&over2&&over==over2)cClick2(); if(!(over&&over.print))return false;if(o3_printjob){eval(o3_printjob);return false;} if(o3_printurl){if(!window.print||o3_noautoprint) alert('Print (Control-P) the OLprint Window when it appears, then close it.');OLprJob= window.open(o3_printurl,'OLurlJob','resizable=1,status=1,screenX=0,left=0,screenY=0,top=0'); OLprJob.focus();if(OLprJob){if(window.print&&!o3_noautoprint){OLprJob.print(); setTimeout("OLprJob.close();OLprJob=null;",2);}}return false;} var sx=(OLshadowPI&&o3_shadow?o3_shadowx:0),sy=(OLshadowPI&&o3_shadow?o3_shadowy:0), lm=20+(sx<0?Math.abs(sx):0),rm=20+(sx>0?sx:0),tm=20+(sy<0?Math.abs(sy):0),bm=20+(sy>0?sy:0), pWd=o3_width,pHt=(OLns4?over.clip.height:over.offsetHeight),iWd=pWd+lm+rm,iHt=pHt+tm+bm, fs=(OLfilterPI&&OLie55&&o3_filter?o3_filtershadow:0),Fn='{return false;}', o2=(OLovertwoPI?OLp1or2c+','+OLp1or2co+','+OLp1co+',scroll,function':''); t=o3_printxml+o3_printdoctype+o3_printroot+'OLprint Job' +(o3_printcssfile?'':'') +'' +'' +(sx||sy?'
':'') +'
'+over.print +'
'; OLprJob=window.open('','OLprintJob','resizable=0,width='+iWd+',height='+iHt +',status=0,location=0,toolbar=0,menubar=0,scrolling=0,screenX=0,left=0,screenY=0,top=0'); OLprJob.document.write(t);OLprJob.document.close();return false; } OLregRunTimeFunc(OLloadPrint); OLregCmdLineFunc(OLparsePrint); OLprintPI=1; OLloaded=1;