// Add "Load in IE engine" to the top of each page
// Requires that the neptune plugin is installed
// http://www.meadroid.com/neptune/about.htm

document.addEventListener("load",function() {
    var div = document.createElement("div");
    div.style.position = "absolute";
    div.style.left = "0";
    div.style.top = "0"
    div.style.width = "150px";
    div.style.height = "20px";
    div.style.backgroundColor = "#000000";
    div.style.color = "#ffffff";
    div.style.zIndex = "100000";
    div.style.textAlign = "center";
    div.style.fontSize = "12px;";
    div.style.fontFamily = "sans-serif";
    div.style.fontWeight = "normal";
    div.style.lineHeight = "20px";

    var s = document.createElement("script");
    s.type = "application/x-javascript";
    s.appendChild( document.createTextNode( "function ieload() { var w = window.open(); w.document.write('<html><head><title>' + window.location.href + ' in IE engine</title></head><body><embed type=\"application/x-meadco-neptune-ax\" width=\"100%\" height=\"100%\" param-location=\"' + window.location.href + '\"></embed></body></html>'); }" ) );
    
    var a = document.createElement("a");
    a.href = "javascript:void(0)";
    a.onclick = "ieload()";
    a.appendChild( document.createTextNode("Load in IE engine") );
    a.style.color = "#fff";
    a.style.textDecoration = "none";
    a.style.fontSize = "12px";
    a.style.fontFamily = "sans-serif";
    a.style.backgroundColor = "#000000";
    a.style.fontWeight = "normal";
    div.appendChild(s);
    div.appendChild(a);
    document.body.appendChild(div);

}, false);
