<!-- include this in order to pick up mystn styles (colors, fonts) -->

// usually, top.easytop will be set, but if it's not, it may be that 
// this is a popup window, in which case we need to set it to 
// window.opener.

if ((typeof(top.easytop) == "undefined") &&
    (typeof(window.opener) != "undefined"))
// use parent.window.opener due to Mac ie jscript error on a framed screen
{ top.easytop = parent.window.opener.top.easytop; } 
// mystn admin has one screen that's a frameset. in that one case, 
// we need to reference window opener as parent.window.opener.
if ((typeof(top.easytop) == "undefined") &&
    (typeof(parent.window.opener) != "undefined"))
{ top.easytop = parent.window.opener.top.easytop; }
// if it's still not set, i don't know what the problem is!
if (typeof(top.easytop) == "undefined")
{ top.easytop = self; }

var fontfamily = 'font-family: '       + top.easytop.font + ';' ;
      // note: the semi-color is at the end of the var. this is the only 
      // one i'll do this on. This is so that for japanese, since we don't 
      // want to specify the font family, we can just blank out this var 
      // and still use it in the style sheet.
var fontcolor  = 'font-color: '        + top.easytop.fgcolor;
var color      = 'color: '             + top.easytop.fgcolor;
var bgcolor    = 'background-color: '  + top.easytop.bgcolor;
var linkcolor  = 'color: '             + top.easytop.link;
var vlinkcolor = 'color: '             + top.easytop.vlink;

// easytop won't always be defined, so default values here if necessary
if (typeof(top.easytop.font) == "undefined")
{ fontfamily = 'font-family: helvetica, arial, san-serif'; }
if (typeof(top.easytop.fgcolor) == "undefined")
{ fontcolor  = 'font-color: black';
  color      = 'color: black'; }
if (typeof(top.easytop.bgcolor) == "undefined")
{ bgcolor    = 'background-color: #006699'; }
if (typeof(top.easytop.link) == "undefined")
{ linkcolor  = 'color: white'; }
if (typeof(top.easytop.vlink) == "undefined")
{ vlinkcolor = 'color: white'; }

if (typeof(top.easytop.LANG) == "undefined") // try to set it
{
  var language = top.window.location.pathname.match(/deutsch|english|french|japanese|spanish/);
  if (language == null) {
    language = "english";      // default
  }
  top.easytop.LANG = language;
}

// if (top.easytop.jflag || top.easytop.isJOMuser || top.easytop.LANG == 'japanese')
if (top.easytop.isJOMuser || top.easytop.LANG == 'japanese')
{ fontfamily = ''; }

var html = '';
html += '<STYLE type="text/css">\n';
html += 'BODY { ' + fontfamily + '\n';
html += '       font-size:   10pt ;}\n';

html += 'SPAN.rel{position:relative;}\n';
html += 'SPAN.abs{position:absolute;}\n';
html += 'SPAN.qmark{position:absolute;}\n';
html += 'SPAN.absHid{position:absolute; visibility:hidden;}\n';
html += 'SPAN.hidden{visibility:hidden;}\n';
html += 'SPAN.large{font-size:large;}\n';
html += 'SPAN.largetext{font-size:large;' + fontfamily + '}\n';
html += 'SPAN.xlarge{font-size:x-large;}\n';
html += 'SPAN.text{font-size:medium; font-weight:700;}\n';
html += 'SPAN.filler{left:-20; position:relative;}\n';
html += 'SPAN.textalign{position:relative; top:3;}\n';
// to avoid causing JOIS problems.....
var ff_input = 'font-family:courier; '; 
if (top.easytop.jflag || top.easytop.isJOMuser) { ff_input = ''; }
html += 'SPAN.input{' + ff_input + 'font-size: small;}\n';
html += 'SPAN.blue{color: #006699;}\n';
html += 'SPAN.backwhite{background-color: white;}\n';
html += 'SPAN.xsmallbutton{font-size:xx-small; ' + color + '; ' + 
         fontfamily + '}\n'; // frog ns font size is x-small. orig color white
html += 'SPAN.display{font-size:small; ' + color + '; ' + fontfamily + '}\n'; 
                // frog ns is font size medium. orig is color white
html += 'SPAN.srch{font-size:small; ' + color + '; ' + fontfamily + '}\n'; 
                // frog ns font size is medium. orig color is white
html += 'SPAN.tab{font-size:small; ' + color + '; font-weight:700; ' + 
         fontfamily + '}\n'; 
                // frog ns font size is medium. orig color is black.
html += 'SPAN.cat{font-size:x-small; ' + color + '; font-weight:700; ' + 
         fontfamily + '}\n'; 
                // frog ns is font size small. orig is font color white
html += 'SPAN.xsmall{font-size:';
        if(navigator.appName == "Netscape")
        { html += 'x-small'; }
        else { html += 'xx-small'; }
        html += ';  ' + fontfamily + '}\n';
html += 'SPAN.medium{font-size:';
        if(navigator.appName == "Netscape")
        { html += 'medium'; }
        else { html += 'small'; }
        html += '; ' + fontfamily + '}\n';
html += 'SPAN.small{font-size:';
        if(navigator.appName == "Netscape")
        { html += 'small'; }
        else { html += 'x-small'; }
        html += '; ' + fontfamily + '}\n';
html += 'SPAN.browse{font-size:';
        if(navigator.appName == "Netscape")
        { html += 'x-small'; }
        else { html += 'xx-small'; }
        html += '; color:black; ' + fontfamily + '}\n';
html += 'SPAN.regtext{font-size:';
        if(navigator.appName == "Netscape")
        { html += 'small'; }
        else { html += 'x-small'; }
        html += '; ' + fontfamily + '}\n';

html += 'TD{' + fontfamily + ' font-size:';
        if(navigator.appName == "Netscape")
        { html += 'small'; }
        else { html += 'x-small'; }
        html += ';}\n';
html += 'TD.blue{color: #006699; font-weight: bold}\n';
html += 'TD.cat{ ' + fontfamily + ' font-size:x-small;}\n'; 
                    // frog ns font size is small
html += 'TD.head{font-size:';
        if(navigator.appName == "Netscape")
        { html += 'small'; }
        else { html += 'x-small'; }
        html += '; color:white; ' + fontfamily + '}\n';
html += 'TD.mystnhead{font-size:';
        if(navigator.appName == "Netscape")
        { html += 'small'; }
        else { html += 'x-small'; }
        html += '; ' + color + '; ' + fontfamily + '}\n';
html += 'TD.hd{font-size:small;font-weight:900; color:black; ' + 
         fontfamily + ' }\n'; // frog orig color is black
html += 'TD.title{font-size:small; color: black; ' + fontfamily + ' }\n'; 
                              // frog orig color is black
html += 'TD.unlink{font-size:x-small; ' + color + '; font-weight:700; ' + 
         fontfamily + '}\n'; // frog ns font size is small. orig color is 030303
html += 'TD.catheader{font-size:';
        if(navigator.appName == "Netscape")
        { html += 'small'; }
        else { html += 'x-small'; }
        html += '; font-weight:700; color:black; ' + fontfamily + '}\n';
html += 'TD.catsubheader{font-size:';
        if(navigator.appName == "Netscape")
        { html += 'small'; }
        else { html += 'x-small'; }
        html += '; font-weight:700; color:black; ' + fontfamily + '}\n';
html += 'TD.dispinfo{font-size:x-small; font-weight:700; ' + bgcolor + '; ' + 
         color + '; ' + fontfamily + '}\n'; 
                   // frog ns font size is small. orig bg color is 006699. 
                   // frog orig color is white

html += 'A.buttonlink{text-decoration:none; color: #006699; }\n';
html += 'A.browseindex{ color:black; text-decoration:none}\n';
html += 'A.link{color: #006699;}\n';
html += 'A.visited{color: #006699;}\n';
html += 'A.navlink{text-decoration:none; ' + vlinkcolor + '; font-size:';
        if(navigator.appName == "Netscape")
        { html += 'small'; }
        else { html += 'x-small'; }
        html += '; ' + fontfamily + '}\n';
html += 'A.addterm{text-decoration:none; color:black; font-size:';
        if(navigator.appName == "Netscape")
        { html += 'small'; }
        else { html += 'x-small'; }
        html += '; ' + fontfamily + '}\n';
html += 'A.logoff{text-decoration:none; color:yellow; font-size: large';


// to avoid causing JOIS problems.....
var ff_pre = 'font-family:lucida console, lucida sans typewriter, courier; '; 
if (top.easytop.jflag || top.easytop.isJOMuser) { ff_pre = ''; }
html += 'PRE { ' + ff_pre + 'font-size:';
        if(navigator.appName == "Netscape")
        { html += 'small'; }
        else { html += 'x-small'; }
        html += ';}\n';
// kelly note: I don't know that the following style is really doing anything. 
// The select boxes on Netscape on the advanced search page look fine but, 
// even with this style, on IE they look different from the new to the old. 
// the old has larger text, but this style doesn't seem to effect it.
html += 'SELECT {' + fontfamily + ' font-size: ';
        if(navigator.appName == "Netscape")
        { html += 'x-small'; }
        else { html += 'small'; }
        html += ';}\n';

// From Kelly: Put a newline after the closing style tag and I assure you 
// that Netscape will make your life he** over it! I don't know why, but 
// after almost an entire day of tracking it down, I figured out that 
// including the newline will cause javascript errors in other files in 
// netscape, but the locations of the javascript errors are seemingly 
// bogus. In other words, you will go tracking down errors all over the 
// place and be unable to locate them. In short, just don't put a newline 
// at the end of the following line!!
html += '</STYLE>'; // NO NEWLINE!!!

document.write(html);

