var browser=navigator.appName;
if (browser == "Microsoft Internet Explorer")
{
    // fuck ie, tell the user to use a browser and not that crap
    var div = document.createElement('div');
    var id  = document.createAttribute('id');
    var cl  = document.createAttribute('class');
    id.nodeValue = 'iewarn';
    cl.nodeValue = 'iewarn';
    div.setAttributeNode(id);
    div.setAttributeNode(cl);
    
    var img = document.createElement('img');
    var img_src = document.createAttribute('src');
    img_src.nodeValue = 'http://media.dunkelstern.de/images/layout/warning.gif';
    img.setAttributeNode(img_src);
    div.appendChild(img);
    
    var txt = document.createTextNode(' Achtung');
    var strong = document.createElement('strong');
    strong.appendChild(txt);
    div.appendChild(strong);
    
    var msg = document.createTextNode(': Sie verwenden einen kaputten Browser, bitte verwenden Sie einen ');
    div.appendChild(msg);
    
    var a = document.createElement('a');
    var a_href = document.createAttribute('href');
    var a_txt  = document.createTextNode('funktionierenden und Standardkompatiblen Browser!');
    a_href.nodeValue = 'http://www.mozilla.com/firefox/';
    a.setAttributeNode(a_href);
    a.appendChild(a_txt);
    div.appendChild(a);

    var small = document.createElement('span');
    var small_cl = document.createAttribute('class');
    small_cl.nodeValue = 'small';
    small.setAttributeNode(small_cl);    
    var a_cl = document.createElement('a');
    var a_cl_txt1 = document.createTextNode(' (');
    var a_cl_txt2 = document.createTextNode('Ausblenden');
    var a_cl_txt3 = document.createTextNode(')');
    var a_cl_href = document.createAttribute('href');
    small.appendChild(a_cl_txt1);
    a_cl.appendChild(a_cl_txt2);
    a_cl.onclick = function() { document.getElementById('iewarn').style.display = 'none'; };
    a_cl_href.nodeValue = '#';
    a_cl.setAttributeNode(a_cl_href);    
    small.appendChild(a_cl);
    small.appendChild(a_cl_txt3);
    div.appendChild(small);
    
    document.getElementById('body').appendChild(div);
}	    
