//DLIB4 (C)1998-2002 Pixolut Industries
c={n4:(document.layers),
n6:(document.getElementById && !document.all),
i4:(document.all && !document.getElementById),
i5:(document.all && document.getElementById)};
d={lL:[],
cL:function(name, left, top, width, height, visible, content){var z=d.lL.length;var l;this.lL[z]=name;
if(c.n4){document.writeln('<layer name="'+name+'" left='+left+' top='+top+' width='+width+' height='+height+' visibility='+(visible?'"show"':'"hide"')+' z-index='+z+' >');document.writeln(content);document.writeln('</layer>');l=this.gL(name);l.width=width;l.height=height;}
if(c.i4||c.i5||c.n6){document.writeln('<div id="'+name+'" style="position:absolute; overflow:none; left:'+left+'px; top:'+top+'px; width:'+width+'px; height:'+height+'px;'+' visibility:'+(visible?'visible;':'hidden;')+' z-index:'+z+'" >');document.writeln(content);document.writeln('</div>');
if(c.n6){document.all=document.getElementsByTagName("*");d.mL(name,left,top);}}d.c(name,0,0,width,height);},
hL:function(name){var l=this.gL(name);if(c.n4)l.visibility="hide";if(c.i4||c.i5||c.n6)l.visibility="hidden";},
sL:function(name){var l=this.gL(name);if(c.n4)l.visibility="show";if(c.i4||c.i5||c.n6)l.visibility="visible";},
mL:function(name, x, y){var l=this.gL(name);if(c.n4)l.moveTo(x, y);else if(c.i4||c.i5){l.pixelLeft=x;l.pixelTop= y;}else if(c.n6){l.left=x+"px";l.top= y+"px";}},
c:function(name, clipleft, cliptop, clipright, clipbottom){var l=this.gL(name);if(c.n4){l.clip.left=clipleft;l.clip.top=cliptop;l.clip.right=clipright;l.clip.bottom=clipbottom;}else if(c.i4||c.i5||c.n6)l.clip='rect('+cliptop+'px, '+clipright+'px, '+clipbottom+'px, '+clipleft +'px)'},
gWW:function(){if(c.n4)return(window.innerWidth);else if(c.i4||c.i5)return(document.body.clientWidth);else if(c.n6)return parseInt(window.innerWidth);else return(null);},
gWH:function(){if(c.n4)return(window.innerHeight);else if(c.i4||c.i5)return(document.body.clientHeight);else if(c.n6)return parseInt(window.innerHeight);else return(null);},
sZ:function(name, z){var l=this.gL(name);if(c.n4)l.zIndex=z;if(c.i4||c.i5||c.n6)l.zIndex=z;},
gL:function(name){if(c.n4)return(document.layers[name]);else if(c.i4||c.n6||c.i5){l=eval('document.all.'+name+'.style');return(l);}else return(null);},
sBC:function(name,col){var l= this.gL(name);if(c.n4)l.bgColor=col;else if(c.i4||c.n6||c.i5)l.backgroundColor = col;}};



