1 <script type
="text/javascript" charset
="utf-8">
3 var CSSClass
={};CSSClass
.is
=function(e
,c
){if(typeof e
=="string")e
=document
.getElementById(e
);var classes
=e
.className
;if(!classes
)return false;if(classes
==c
)return true;return e
.className
.search("\\b"+c+
"\\b")!=-1;};CSSClass
.add
=function(e
,c
){if(typeof e
=="string")e
=document
.getElementById(e
);if(CSSClass
.is(e
,c
))return;if(e
.className
)c
=" "+c
;e
.className+
=c
;};CSSClass
.remove
=function(e
,c
){if(typeof e
=="string")e
=document
.getElementById(e
);e
.className
=e
.className
.replace(new RegExp("\\b"+c+
"\\b\\s*","g"),"");};
6 corrections
: function () {
8 top
.document
.getElementsByTagName('frameset')[0].rows
= "117,30%,0,200";
11 // check for layouttabel and add layouttable classes to body
12 var tagname
= 'nolayouttable';
13 if (document
.getElementById('middle-column')) {
14 var lc
= document
.getElementById('left-column');
15 var rc
= document
.getElementById('right-column');
17 tagname
= 'haslayouttable rightandleftcolumn';
19 tagname
= 'haslayouttable onlyleftcolumn';
21 tagname
= 'haslayouttable onlyrightcolumn';
23 tagname
= 'haslayouttable onlymiddlecolumn';
27 function setbodytag (tagname
) {
28 var bd
= document
.getElementsByTagName('body')[0];
30 CSSClass
.add(bd
, tagname
);
32 setTimeout(function() { setbodytag(tagname
) }, 30);
36 setTimeout(function() { setbodytag(tagname
) }, 30);