function vIE(){return (navigator.appName=='Microsoft Internet Explorer')?parseFloat((new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})")).exec(navigator.userAgent)[1]):-1;}
var ie_ver = vIE();
if(ie_ver <= 7 && ie_ver != -1) {
        window.attachEvent('onload', ieSunset);

        var ieSunsetElement;
        function ieSunset() {
                ieSunsetTopInsert = window.document.createElement('<div style="width:100%; height:24px; background:#5a3434;"></div>');
                document.body.insertBefore(ieSunsetTopInsert, document.body.firstChild);
                var ieSunsetConteiner = '<div style="background:#5a3434 url(/js/ieSunset.gif) repeat-x left bottom; width:100%; height:24px; position:absolute; left:0px; top:0px; overflow:hidden; z-index:1000000000;"></div>';
                ieSunsetElement = window.document.createElement(ieSunsetConteiner);
                document.body.appendChild(ieSunsetElement);
                ieSunsetElement.appendChild(window.document.createElement('<div style="background:#5a3434 url(/js/ieSunset.gif) no-repeat left top; width:16px; height:24px; margin:0 8px;float:left;"></div>'));
                ieSunsetElement.appendChild(window.document.createElement('<div style="background:transparent url(/js/ieSunset.gif) no-repeat right top; width:8px; height:24px; margin:0 8px;float:right; cursor:hand; cursor:pointer;" onclick="ieSunsetElement.parentNode.removeChild(ieSunsetElement); ieSunsetTopInsert.parentNode.removeChild(ieSunsetTopInsert);" title="Закрыть"></div>'));
                var ieSunsetText = window.document.createElement('<div style="margin:2px 0; height:19px; float:left; color:#eee; font-family:arial,verdana,helvetica,sans-serif; font-size:12px; overflow:hidden; line-height:18px;" title="программное обеспечение для просмотра веб-сайтов"></div>');
                ieSunsetElement.appendChild(ieSunsetText);
                ieSunsetText.appendChild(window.document.createTextNode('Ваш веб-обозреватель сильно устарел. Для корректной и безопасной работы, пожалуйста, '));
                var ieSunsetUpgradeLink = window.document.createElement('<a href="http://dustweb.ru/ieSunset/" style="color:white;" target="_blank"></a>');
                ieSunsetText.appendChild(ieSunsetUpgradeLink);
                ieSunsetUpgradeLink.appendChild(window.document.createTextNode('обновите свой браузер'));
        }
}

