// Juice - Javascript User Interface Common Elements
// Copyright (C) 2007 IP Labs GmbH <http://www.iplabs.de/>
// $Id: Workarounds.js 96965 2010-05-19 15:48:59Z m.schuh $
function Workarounds(){}Workarounds.w=[];Workarounds.x=0;
Workarounds.areElementsMasked=function(){return Workarounds.x!=0;};
Workarounds.maskElements=function(){var _;var a,b;
if(Workarounds.x>0){Workarounds.x++;return;}Workarounds.x=1;
if(navigator.appVersion.toLowerCase().indexOf("msie 6")>0){_=document.getElementsByTagName("select");
for(a=0,b=_.length;a<b;a++){Workarounds.y(_[a]);}}Workarounds.z();};
Workarounds.maskElementIfNeeded=function(o){if(Workarounds.areElementsMasked())Workarounds.y(o);
};Workarounds.y=function(o){var c;var d,e,f,g;var h;f=o.offsetWidth;f+=2;
g=o.offsetHeight;h=HTMLUtils.getDocumentOffset(o);d=h.x;d-=1;e=h.y;
c=document.createElement("iframe");c.src="javascript:''";c.frameBorder=0;
c.style.background="#fff";c.style.left=d+"px";c.style.top=e+"px";
c.style.width=f+"px";c.style.height=g+"px";c.style.position="absolute";
c.style.opacity="1";c.style.mozOpacity="1";c.style.khtmlOpacity="1";
c.style.filter="alpha(opacity=1)";c.style.zIndex="98";Workarounds.w.push(c);
document.body.appendChild(c);};Workarounds.unmaskElements=function(){var a,c,k;
if(!Workarounds.x){return;}if(Workarounds.x>1){Workarounds.x--;return;
}Workarounds.x=0;k=document.body;for(a=Workarounds.w.length;a>0;
a--){c=Workarounds.w.pop();k.removeChild(c);}Workarounds.A();};
Workarounds.z=function(o){var _,a,b,o,p;
_=document.getElementsByTagName("object");for(a=0,b=_.length;a<b;a++){o=_[a];
p=o.getAttribute("classid");
if(p&&p.toUpperCase()=="CLSID:28B66320-9687-4B13-8757-36F901887AB5")continue;
o.setAttribute("hiddenVisibilityByMaskElements",true);
o.style.visibility="hidden";}_=document.getElementsByTagName("applet");
for(a=0,b=_.length;a<b;a++){o=_[a];
o.setAttribute("hiddenVisibilityByMaskElements",true);
o.style.visibility="hidden";}};Workarounds.A=function(){var _,a,b;
_=document.getElementsByTagName("object");for(a=0,b=_.length;a<b;
a++){if(_[a].getAttribute("hiddenVisibilityByMaskElements")){_[a].style.visibility="visible";
_[a].setAttribute("hiddenVisibilityByMaskElements",false);
}}_=document.getElementsByTagName("applet");for(a=0,b=_.length;a<b;
a++){if(_[a].getAttribute("hiddenVisibilityByMaskElements")){_[a].style.visibility="visible";
_[a].setAttribute("hiddenVisibilityByMaskElements",false);}}};