function BrowserCheck()


{	
	var b = navigator.appName
	if (b == "Netscape") this.b = "ns"
	else if (b == "Microsoft Internet Explorer") this.b = "ie"

	else this.b = b
	this.version = navigator.appVersion

	this.v = parseInt(this.version)
	this.ns = (this.b == "ns" && this.v >= 4)
	this.ns4 = (this.b == "ns" && this.v == 4)

	this.ns5 = (this.b == "ns" && this.v == 5)
	this.ie = (this.b == "ie" && this.v >= 4)
	this.ie4 = (this.version.indexOf('MSIE 4') > 0)

	this.ie5 = (this.version.indexOf('MSIE 5') > 0)
	this.min1 = (this.ns || this.ie)	
	if (this.min1){
		var p = navigator.platform

		//alert (p)
		if (p == "Win32"){this.pc = 1;this.mac = 0}
		if (p == "MacPPC"){this.mac = 1;this.pc = 0}	
	}
	this.min = (this.ns || (this.pc && this.ie))
}

is = new BrowserCheck()



function make_css(){
	is = new BrowserCheck();
	if (is.min1){

	var font = ' font-family: "arial","helvetica",sans-serif;',
		plain_text = ' font-style: normal; font-weight: normal;',
		bold_text = ' font-style: normal; font-weight: bold;',
		italic_text = ' font-style: italic; font-weight: normal;',
		plain_decoration = ' text-decoration:none;',
		_19pt = ' font-size: 19pt;',
		_14pt = ' font-size: 14pt;',
		_12pt = ' font-size: 12pt;',
		_11pt = ' font-size: 11pt;',
		_10pt = ' font-size: 10pt;',
		_9pt = ' font-size: 9pt;',
		_8pt = ' font-size: 8pt;',
		black = ' color: #000000;',
		white = ' color: #FFFFFF;',
		gray = ' color: #666666;',
		bright_red = ' color: #996600;',
		red = ' color: #CC3333;',
		our_blue = ' color: #333399;',
		violet = ' color: #666699;',
		light_violet = ' color: #9999CC;';

	if (is.ie){
		var bottom_link_color = ' color: #9999CC;',
			_7pt = ' font-size: 7pt;';}
	else if (is.ns){
		var bottom_link_color = ' color: #C3C3CC;',
			_7pt = ' font-size: 8pt;';
	}
	if (is.pc){
	
		var verdana_font = ' font-family: "verdana","arial","helvetica", sans-serif;';
	}
	else if (is.mac){
		var verdana_font = ' font-family: "arial","helvetica", sans-serif;',

			_7pt = ' font-size: 10pt;',
			_8pt = ' font-size: 11pt;',
			_9pt = ' font-size: 12pt;',
			_10pt = ' font-size: 12pt;',
			_11pt = ' font-size: 12pt;',
			_12pt = ' font-size: 13pt;';


	}
		document.write('<style TYPE="text/css">\n');
		document.write('<!-- \n');
		//span tags
		document.write('span {' + font + plain_text + ' padding-bottom: 0px}\n');
		document.write('span.CenterLocationTitle {' + _19pt + bold_text + '}\n');
		document.write('span.CenterSectionTitle {' + _14pt + bold_text + '}\n');
		document.write('span.CenterByLine {' + _10pt + italic_text + ' padding-bottom: 15px}\n');
		document.write('span.CenterBodyText {' + _9pt + plain_text + ' padding-bottom: 10px; ' + black + '}\n');
		document.write('span.CenterAlternateBodyText {' + _10pt + plain_text + '}\n');
		document.write('span.CenterDescriptionText {' + _9pt + plain_text + '}\n');
		document.write('span.CenterInternalSectionTitle {' + _10pt + bold_text + '}\n');
		document.write('span.CenterCreditText {' + _9pt + plain_text + '}\n');
		document.write('span.CenterBoldText {' + _9pt + bold_text + '}\n');
		document.write('span.CenterBodyTextWhite {' + _9pt + plain_text + ' color=white;}\n');
		document.write('span.CenterBoldHighlightedText {' + _9pt + bold_text + bright_red + '}\n');
		document.write('span.CenterChannelHeadline {' + _14pt + bold_text + red + '}\n');
		document.write('span.RightSectionTitle {' + _9pt + bold_text + '}\n');
		document.write('span.RightBodyText {' + _9pt + plain_text + '}\n');
		document.write('span.RightBottomBodyText {' + _9pt + plain_text + ' padding-bottom: 10px}\n');
		document.write('span.RightInternalSectionTitle {' + _9pt + bold_text + '}\n');
		document.write('span.HandBookNavTitle {' + _9pt + bold_text + '}\n');
		document.write('span.TopBodyText {' + _10pt + plain_text + '}\n');
		document.write('span.LeftBodyText {' + _10pt + plain_text + '}\n');
		document.write('span.ImageCaption {' + _10pt + plain_text + '}\n');
		document.write('span.HomePageBodyText {' + gray + _9pt + plain_text + '}\n');
		document.write('span.HomePageBodyTextBig {' + gray + _10pt + plain_text + '}\n');
		document.write('span.HomePageHeadlineSmall {' + _11pt + bold_text + '}\n');
		document.write('span.HomePageHeadlineLarge {' + _14pt + bold_text + '}\n');
		document.write('span.HomePageBodyTextSmall {' + _9pt + plain_text + '}\n');
		//ancor tags
		document.write('a {' + _10pt + font + plain_text + our_blue + '}\n');
		document.write('a.HandBookNavLinkLev1 {' + plain_decoration + _9pt + bold_text + '}\n');
		document.write('a.HandBookNavLinkLev2 {' + plain_decoration + _9pt + bold_text + ' color= black;}\n');
		document.write('a.LeftNavLinks {' + _9pt + font + bold_text + '}\n');
		document.write('a.LeftNavLinksLev2 {' + _9pt + font + plain_text + '}\n');
		document.write('a.InLineLink {' + _9pt + plain_text + '}\n');
		document.write('a.InternalNavagationLink {' + _9pt + font + plain_text + '}\n');
		document.write('a.LeftMenuItem{' + verdana_font + plain_text + our_blue + _7pt + '}\n');
		document.write('a.CenterBottomLinks {' + plain_decoration + bold_text + _9pt + light_violet + '}\n');
		document.write('a.CenterBoilerPlateLinks {' + plain_text + _9pt + light_violet + '}\n');
		document.write('a.HomePageBodyText {' + _9pt + plain_text + '}\n');
		document.write('a.HomePageBodyTextBig {' + _10pt + plain_text + '}\n');
		document.write('a.HomePageHeadlineSmall {' + _11pt + bold_text + '}\n');
		document.write('a.HomePageHeadlineLarge {' + _14pt + bold_text + '}\n');
		document.write('a.HomePageBodyTextSmall {' + _9pt + plain_text + '}\n');
		//form elements;
		if (is.ns){
			document.write('form.FormSmallText {' + verdana_font + _7pt + '}\n');
			document.write('form.SubNavForm {' + verdana_font + _8pt + '}\n');}
		else if (is.ie){
			document.write('select.FormSmallText {' + verdana_font + _7pt + '}\n');
			document.write('select.SubNavForm {' + verdana_font + _8pt + '}\n');
			document.write('input.SubNavForm {' + verdana_font + _8pt + '}\n');}
		//other
		document.write('.Question {' + font + _11pt + bold_text + '}\n');
		document.write('ol {' + _10pt + font + plain_text + '}\n');
		document.write('b {' + bold_text + '}\n');
		document.write('.GrayedOut {' + gray + plain_text + '}\n');
		document.write('.right {text-align: right;}\n');
		document.write('.left {text-align: left;}\n');
		document.write('.center {text-align: center;}\n');
		document.write('.MockUpText {' + font + _10pt + bold_text + ' color: red}\n');
		document.write('.bold {' + bold_text + '}\n');
		document.write('.italic {font-style: italic;}\n');
		document.write('.legalese {' + _7pt + font + plain_text + '}\n');
		document.write('.SelectListSmall {' + _9pt + font + '}\n');
		document.write(' -->\n');
		document.write('</style>\n')

	}

}



function window_popup(url, title)


{

	if (arguments[2]){
		//alert(arguments[1])
		var w = arguments[3]
		var h = arguments[2]}
	else{
		var w = 400
		var h = 350}
	var SmallWin = window.open( url, title, "resizable=no,titlebar=no,scrollbars,height=" + h + ",width=" + w )

	



}


function close_window()


{
   SmallWin = window.close( );
}

function getAppVersion(){


    appname= navigator.appName;
    appversion = navigator.appVersion;
    majorver = appversion.substring(0, 1);
    if ( (appname == "Netscape") && ( majorver >= 3 ) ) return 1;


    if ( (appname == "Microsoft Internet Explorer") && (majorver >= 4) ) return 1;


    return 0;
}function get_url() {

    if (getAppVersion()) {

             bookmark_url="/bookmarks/tree.html";
        }


	else {bookmark_url="/bookmarks/"}


}

function openBookmarkWindow(winName,features) {

  get_url();


  window.open(bookmark_url,winName,features);
}

function ReadCookie(){
	var the_cookie = document.cookie;
	var the_string = the_cookie.split(";");
	var values = new Array();
	for (i = 0; i < the_string.length; i++){
		var the_value = the_string[i].split("=");
		if (i ==0){
			values[" " + the_value[0]] = the_value[1];}
		else{
			values[the_value[0]] = the_value[1];}
	}
	return values;


}

function MM_preloadImages() { //v3.0


  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)


    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}




function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}



function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}



function MM_swapImage() { //v3.0

  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

}


function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);
}

