function includeGreyBoxJavaScript() {
   document.write('<script type="text/javascript"> var GB_ROOT_DIR = "http://webappdbd.iso-ne.com/inc/greybox/"; </script>');
   document.write('<script type="text/javascript" src="/inc/greybox/AJS.js"></script>');
   document.write('<script type="text/javascript" src="/inc/greybox/AJS_fx.js"></script>');
   document.write('<script type="text/javascript" src="/inc/greybox/gb_scripts.js"></script>');
   document.write('<link href="/inc/greybox/gb_styles.css" rel="stylesheet" type="text/css" />');
}
includeGreyBoxJavaScript();

var GB_ROOT_DIR = "http://www.iso-ne.com/inc/greybox/";
//addJavascript('/inc/greybox/AJS.js');
//addJavascript('/inc/greybox/AJS_fx.js');
//addJavascript('/inc/greybox/gb_scripts.js');

//DROP-DOWN NAVIGATION
function dropNav(object) {
    window.location.href = object.options[object.selectedIndex].value;
}

//DROP-DOWN NAVIGATION FOR OTHER APPLICATIONS
function dropNavOtherApps(object) {
    var myUrl = object.options[object.selectedIndex].value;
    if (myUrl == 'noSelection'){
        alert('Please select an Application.')
    } else if (myUrl == 'https://smd.iso-ne.com/') {
        GB_showCenter('SMD Application Bookmark','/smd_intermediate.html', 700, 600);
    } else {
        window.open(myUrl,'','width=800,height=500,location=1,resizable=1,status=1,scrollbars=1,toolbar=1');
    }
}

// NOTE: This method of adding JS to the head will not work in IE6.
// That is why the old document.write method os employed in the 
// includeGreyBoxJavaScript() function above. This code works fine in 
// Mozilla. It is the accepted modern method and is here for future 
// use or for use in non IE browsers.
function addJavascript(jsname) {
    var th = document.getElementsByTagName('head')[0];
    var s = document.createElement('script');
    s.setAttribute('type','text/javascript');
    s.setAttribute('src',jsname);
    th.appendChild(s);
} 

var time = null
function direct_to_smd() {
    newWindow = window.open("https://smd.iso-ne.com",'','width=800,height=500,location=1,resizable=1,status=1,scrollbars=1,toolbar=1');
    parent.parent.GB_hide();
    newWindow.focus();
} 


