msie  = ( document.all && document.getElementById);
gecko = (!document.all && document.getElementById);
var currentOpacity = 0;

if(msie) {
    document.write('<div id="logo" style="right: 0px; bottom: 0px; width: 97px; height: 97px; position: absolute; overflow:hidden; visibility:hidden;"></div>');
    //document.write('<div id="seal" style="right: 2px; bottom: 99px; width: 246px; height: 389px; position: absolute; overflow:hidden; visibility:hidden;"></div>');
}

if(gecko) {
    document.write('<div id="logo" style="right: 0px; bottom: 0px; width: 97px; height: 97px; position: fixed; overflow:hidden; visibility:hidden;"></div>');
    //document.write('<div id="seal" style="right: 2px; bottom: 99px; width: 246px; height: 389px; position: fixed; overflow:hidden; visibility:hidden;"></div>');
}

var vldLogo = document.getElementById("logo");
vldLogo.innerHTML = '<img src="images/corner.gif" border="0" alt="mySupport :: Customer Support Ticket System" title="mySupport :: Customer Support Ticket System" onclick="window.location=\'http://www.mysupport.ir/\';" style="cursor: hand; cursor: pointer;">';
vldLogo.style.visibility = 'visible';

function floatLogo() {
    var element = document.getElementById("logo");
    element.style.pixelTop = (document.body.scrollTop + document.body.offsetHeight - 97);
}

window.onscroll=function() {
    if(msie) {
        setTimeout('floatLogo()',150);
        return true;
    }
}







