2 var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
3 if (rslt != null ) var version = Number(rslt[1]);
6 window.attachEvent("onload", hookit);
8 // replaced by special indexed logo for now
13 var wrapper = document.getElementById('tawrapper');
15 //wrapper.attachEvent("onclick", fixtextarea);
16 window.onresize = refixtextarea;
21 // png alpha transparency fixes
25 var logoa = document.getElementById('portlet-logo').firstChild;
26 var bg = logoa.currentStyle.backgroundImage;
27 if (bg.match(/\.png/i) != null){
28 var mypng = bg.substring(5,bg.length-2);
29 logoa.style.backgroundImage = "none";
30 logoa.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+mypng+"', sizingMethod='image')";
36 for (i=0; i<document.all.length; i++){
37 if(document.all[i].currentStyle && document.all[i].currentStyle.backgroundImage) {
38 var bg = document.all[i].currentStyle.backgroundImage;
43 if (bg.match(/\.png/i) != null){
44 var mypng = bg.substring(5,bg.length-2);
45 document.all[i].style.backgroundImage = "none";
46 document.all[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+mypng+"', sizingMethod='image')";
53 function fixtextarea() {
54 var wrapper = document.getElementById('tawrapper');
56 wrapper.style.width = 'auto';
57 wrapper.style.width = (wrapper.offsetWidth - 4) + 'px';
60 function refixtextarea () {
61 setTimeout("fixtextarea()",10);
64 // fix ie6 disappering float bug
65 function relativeforfloats() {
66 var bc = document.getElementById('bodyContent');
68 var tables = bc.getElementsByTagName('table');
69 var divs = bc.getElementsByTagName('div');
74 function setrelative (nodes) {
76 while (i < nodes.length) {
77 if(nodes[i].style.float != ('none'|null) ||
78 nodes[i].align != (''|null|'none'))
79 nodes[i].style.position = 'relative';