// WINOPEN CODE
function winOpen(f, n, w, h) {
  w = window.open(f,n,'width='+w+',height='+h+',left='+(screen.width/2-w/2)+',top='+(screen.height/2-h/2)+',toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no');
  w.focus();
}
function winFlashOpen(f, n, w, h) {
  w = window.open(f,n,'width='+w+',height='+h+',left='+(screen.width/2-w/2)+',top='+(screen.height/2-h/2)+',toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no');
  w.focus();
}

// flash hack
var bo_ns_id = 0;
function startIeFix() {
    if (isIE()) {
        document.write('<div id="bo_ns_id_' + bo_ns_id + '"><!-- ');
    }
}

function endIeFix() {  
    if (isIE()) {
        document.write('</div>');
        var theObject = document.getElementById("bo_ns_id_" + bo_ns_id++);
        var theCode = theObject.innerHTML;
        theCode = theCode.substring(4 ,9+theCode.indexOf("</object>"))
        document.write(theCode);
    }
}

function isIE() {
    var strBrwsr= navigator.userAgent.toLowerCase();
    if (strBrwsr.indexOf("msie") > -1 && strBrwsr.indexOf("mac") < 0) {
        if(parseInt(strBrwsr.charAt(strBrwsr.indexOf("msie")+5)) < 6) {
            return false;
        }
        if (strBrwsr.indexOf("win98") > -1
        || strBrwsr.indexOf("win 9x 4.90") > -1
        || strBrwsr.indexOf("winnt4.0") > -1
        || strBrwsr.indexOf("windows nt 5.0") > -1) {
            return false;
        }
        return true;
    } else {
        return false;
    }
}
