2 overlibmws_iframe.js plug-in module - Copyright Foteos Macrides 2003-2010. All rights reserved.
\r
3 Masks system controls to prevent obscuring of popops for IE v5.5 or higher.
\r
4 Initial: October 19, 2003 - Last Revised: January 26, 2008
\r
5 See the Change History and Command Reference for overlibmws via:
\r
7 http://www.macridesweb.com/oltest/
\r
9 Published under an open source license: http://www.macridesweb.com/oltest/license.html
\r
14 var OLifsP1=null,OLifsSh=null,OLifsP2=null;
\r
16 // IFRAME SHIM SUPPORT FUNCTIONS
\r
17 function OLinitIfs(){
\r
19 if((OLovertwoPI)&&over2&&over==over2){
\r
20 var o=o3_frame.document.all['overIframeOvertwo'];
\r
21 if(!o||OLifsP2!=o){OLifsP2=null;OLgetIfsP2Ref();}return;}
\r
22 o=o3_frame.document.all['overIframe'];
\r
23 if(!o||OLifsP1!=o){OLifsP1=null;OLgetIfsRef();}
\r
24 if((OLshadowPI)&&o3_shadow){o=o3_frame.document.all['overIframeShadow'];
\r
25 if(!o||OLifsSh!=o){OLifsSh=null;OLgetIfsShRef();}}
\r
28 function OLsetIfsRef(o,i,z){
\r
29 o.id=i;o.src='javascript:false;';o.scrolling='no';var os=o.style;os.position='absolute';
\r
30 os.top='0px';os.left='0px';os.width='1px';os.height='1px';os.visibility='hidden';
\r
31 os.zIndex=over.style.zIndex-z;os.filter='Alpha(style=0,opacity=0)';
\r
34 function OLgetIfsRef(){
\r
35 if(OLifsP1||!OLie55)return;
\r
36 OLifsP1=o3_frame.document.createElement('iframe');
\r
37 OLsetIfsRef(OLifsP1,'overIframe',2);
\r
38 o3_frame.document.body.appendChild(OLifsP1);
\r
41 function OLgetIfsShRef(){
\r
42 if(OLifsSh||!OLie55)return;
\r
43 OLifsSh=o3_frame.document.createElement('iframe');
\r
44 OLsetIfsRef(OLifsSh,'overIframeShadow',3);
\r
45 o3_frame.document.body.appendChild(OLifsSh);
\r
48 function OLgetIfsP2Ref(){
\r
49 if(OLifsP2||!OLie55)return;
\r
50 OLifsP2=o3_frame.document.createElement('iframe');
\r
51 OLsetIfsRef(OLifsP2,'overIframeOvertwo',1);
\r
52 o3_frame.document.body.appendChild(OLifsP2);
\r
55 function OLsetDispIfs(o,w,h){
\r
57 os.width=w+'px';os.height=h+'px';os.clip='rect(0px '+w+'px '+h+'px 0px)';
\r
58 o.filters.alpha.enabled=true;
\r
61 function OLdispIfs(){
\r
63 var wd=over.offsetWidth,ht=over.offsetHeight;
\r
64 if(OLfilterPI&&o3_filter&&o3_filtershadow){wd+=5;ht+=5;}
\r
65 if((OLovertwoPI)&&over2&&over==over2){
\r
67 OLsetDispIfs(OLifsP2,wd,ht);return;}
\r
69 OLsetDispIfs(OLifsP1,wd,ht);
\r
70 if((!OLshadowPI)||!o3_shadow||!OLifsSh)return;
\r
71 OLsetDispIfs(OLifsSh,wd,ht);
\r
74 function OLshowIfs(){
\r
75 if(OLifsP1){OLifsP1.style.visibility="visible";
\r
76 if((OLshadowPI)&&o3_shadow&&OLifsSh)OLifsSh.style.visibility="visible";}
\r
79 function OLhideIfs(o){
\r
80 if(!OLie55||o!=over)return;
\r
81 if(OLifsP1)OLifsP1.style.visibility="hidden";
\r
82 if((OLshadowPI)&&o3_shadow&&OLifsSh)OLifsSh.style.visibility="hidden";
\r
85 function OLrepositionIfs(X,Y){
\r
86 if(OLie55){if((OLovertwoPI)&&over2&&over==over2){
\r
87 if(OLifsP2)OLrepositionTo(OLifsP2,X,Y);}
\r
88 else{if(OLifsP1){OLrepositionTo(OLifsP1,X,Y);if((OLshadowPI)&&o3_shadow&&OLifsSh)
\r
89 OLrepositionTo(OLifsSh,X+o3_shadowx,Y+o3_shadowy);}}}
\r