

function ieCSSWorkarounds (  ) {
        if ( navigator.appName == 'Microsoft Internet Explorer' ) {
            var uploadImgCtl = document.getElementById ( 'newimage' );
            if ( uploadImgCtl != null ) {
                uploadImgCtl.style.marginLeft = 0;
            }
            
            if ( ( navigator.appVersion.indexOf ( 'MSIE 6' ) != -1 ) || ( navigator.appVersion.indexOf ( 'MSIE 5' ) != -1 ) ) {
                document.getElementById ( 'contentHeightDiv' ).style.height = '<?php echo ( $submenu->getNumItems ( ) ) * 1; ?>em';
                
                var headings = document.getElementsByTagName ( 'H1' );
                for ( var i = 0; i < headings.length; i++ ) {
                    headings[i].fontSize = 'large';
                }
            }
            
            if ( ( navigator.appVersion.indexOf ( 'MSIE 6' ) != -1 ) || ( navigator.appVersion.indexOf ( 'MSIE 7' ) != -1 ) || ( navigator.appVersion.indexOf ( 'MSIE 5' ) != -1 ) ) {
                var sidebarDiv = document.getElementById ( 'sidebarDiv' );
                sidebarDiv.style.paddingTop = '1em';
                
                var curNode = sidebarDiv.firstChild;
                while ( curNode != null ) {
                    if ( ( curNode.nodeType == 1 ) && ( curNode.tagName == 'UL' ) ) {
                        curNode.style.marginLeft = '1em';
                        break;
                    }
                    curNode = curNode.nextSibling;
                }
                
            }
            
            if ( navigator.appVersion.indexOf ( 'MSIE 5' ) != -1 ) {
                document.getElementById ( 'contentDiv' ).style.backgroundColor = '#ffe8ba';
                document.getElementById ( 'footerDiv' ).style.backgroundColor = '#ffe8ba';
                
                var headerDiv = document.getElementById ( 'headerDiv' );
                
                var mainMenu = null;
                var curNode = headerDiv.firstChild;
                while ( curNode != null ) {
                    if ( ( curNode.nodeType == 1 ) && ( curNode.tagName == 'UL' ) ) {
                        mainMenu = curNode;
                        break;
                    }
                    curNode = curNode.nextSibling;
                }
                
                if ( mainMenu != null ) {
                    mainMenu.style.backgroundColor = '#878787';
                    var curNode = mainMenu.firstChild;
                    while ( curNode != null ) {
                        if ( ( curNode.nodeType == 1 ) && ( curNode.tagName == 'LI' ) ) {
                            curNode.style.backgroundColor = 'transparent';
                            
                            var itemCurNode = curNode.firstChild;
                            while ( itemCurNode != null ) {
                                if ( ( itemCurNode.nodeType == 1 ) && ( itemCurNode.tagName == 'A' ) ) {
                                    itemCurNode.style.color = '#444444'
                                    break;
                                }
                                itemCurNode = itemCurNode.nextSibling;
                            }
                            
                        }
                        curNode = curNode.nextSibling;
                    }
                    
                    
                }
            }
        }
    }

