/**
 * Cross browser print page link enabler for #print
 */


platform = navigator.platform; 
platform = platform.toLowerCase();

var MAC = platform.indexOf('mac')
var NS = (navigator.appName == "Netscape");
var VERSION = parseInt(navigator.appVersion);

function print_page() {  
    if (navigator.appVersion.indexOf("Win")!=-1) {
        window.print();  
    } 
    else if (MAC) {
        alert("You will have to use the print command from the file menu\n"); 
    } 
    else if (NS) {
        window.print(); 
    } 
    else if ((VERSION > 3) && (MAC < 0) ) {
    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
        document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
        WebBrowser1.ExecWB(6, 1); //Use a 1 vs. a 2 for a prompting dialog box
        //WebBrowser1.outerHTML = "";  
    }
    else {
        alert("You will have to use the print command from the file menu\n");
    }
}


