//                isNS4 = (document.layers) ? true : false;
//                isIE4 = (document.all && !document.getElementById) ? true : false;
//                isIE5 = (document.all && document.getElementById) ? true : false;
                isNS6 = (!document.all && document.getElementById) ? true : false;

		var isNav4;
		
		if (parseInt(navigator.appVersion) >= 4) {
			isNav4 = (navigator.appName == "Netscape");
		}

		if (isNav4){ var doc = "document."; var sty = "";}
		else { var doc = "document.all."; var sty = ".style";}

		function on(img) { eval("document." + img + ".src = " + img + "_on.src"); }	
		function off(img){ eval("document." + img + ".src = " + img + ".src"); }		
				
		function show(lyr) { 
		if (isNS6){
                    foo=document.getElementById(lyr);
                    foo.style.visibility = "visible";
		  } else{
                    eval(doc + lyr + sty + ".visibility = 'visible'"); 
		  }
                }		
		function hide(lyr) { 
		if (isNS6){
                    foo=document.getElementById(lyr);
                    foo.style.visibility = "hidden";
 		  } else{
                    eval(doc + lyr + sty + ".visibility = 'hidden'"); 
		  }
                }		

		
		if (isNav4 && !isNS6){
			document.captureEvents(Event.RESIZE);
			window.onresize=myResizeFunction;
		}
		
		var ws = window.innerWidth;
		var hs = window.innerHeight;		

		function myResizeFunction()
			{
			if (isNav4 && !isNS6)
				{
				if ((window.innerWidth != ws) || (window.innerHeight != hs)) 
					window.location.href = window.location.href;
				}
			}	
				
		function ontext(text) { eval('document.' + text + '_a.src = arrow_on.src'); }
		function offtext(text) { eval('document.' + text + '_a.src = arrow.src'); }
		
		
		function openpage(page)
		{
			if (page == 'gpc' || page == 'gpc2') {
				if (document.layers) {
					window.open(loc + 'toolbox/gpc/ne_gpc.html','no','height=480,width=712')
				} 
				else {
					window.open(loc + 'toolbox/gpc/index.html','no','height=480,width=712')
				}
			}
			if (page == 'bm' || page == 'bm2') {
				if (document.layers) {
					window.open(loc +'toolbox/bm/ne_bm.html','no','height=480,width=712')
				}
				else {
					window.open(loc +'toolbox/bm/index.html','no','height=480,width=712')
				}
			}
			if (page == 'gloss') {
				window.open(loc + 'glossary/index.html', 'glossary', 'width=520,height=400')
			}
		}
		
		function frameset_bm(page) {
			if ( page == 'calculators') {
				parent.frames[0].location = loc + 'top_nav.html';
				parent.frames[1].location = loc + 'toolbox/calculators.html';
			} else {
				parent.frames[0].location = loc + 'employee_benefits/top_nav.html';
				parent.frames[1].location = loc + 'employee_benefits/' + page + '.html';
			}
		}
		
		function frameset_wc(page) {
			parent.frames[0].location = loc + 'wc/top_nav.html';
			parent.frames[1].location = loc + 'wc/' + page + '.html';
		}
		
		function popWin() {
			window.open( loc + 'popWin.html', '', 'width=275,height=275,screenX=200,screenY=300,top=300,left=200,scrollbars=no');
		}
		
                function newWindow(page)
                {
                  if (page =='v1')
                  winContent = window.open('audio/docbutler_hi.html', 'Video', 'right=20, top=20,width=340,height=290, toolbar=no,scrollbars=no, resizable=no')         
                  else if (page =='v2')
                  winContent = window.open('audio/docbutler.html', 'Video', 'right=20, top=20,width=340,height=290, toolbar=no,scrollbars=no, resizable=no')         
                  else if (page =='v3')
                  winContent = window.open('audio/docjc.html', 'Video', 'right=20, top=20,width=650,height=394, toolbar=no,scrollbars=no, resizable=no')         
                  else if (page =='m1')
                  winContent = window.open('audio/1.mp3', 'Audio', 'right=20, top=20,width=340,height=10, toolbar=no,scrollbars=no, resizable=no')         
                  else if (page =='m2')
                  winContent = window.open('audio/2.mp3', 'Audio', 'right=30, top=25,width=340,height=10, toolbar=no,scrollbars=no, resizable=no')         
                  else if (page =='m3')
                  winContent = window.open('audio/3.mp3', 'Audio', 'right=40, top=30,width=340,height=10, toolbar=no,scrollbars=no, resizable=no')         
                  else if (page =='m4')
                  winContent = window.open('audio/4.mp3', 'Audio', 'right=50, top=35,width=340,height=10, toolbar=no,scrollbars=no, resizable=no')         
                  else if (page =='m5')
                  winContent = window.open('audio/5.mp3', 'Audio', 'right=60, top=40,width=340,height=10, toolbar=no,scrollbars=no, resizable=no')         
                  else if (page =='m6')
                  winContent = window.open('audio/6.mp3', 'Audio', 'right=70, top=45,width=340,height=10, toolbar=no,scrollbars=no, resizable=no')         
                  else if (page =='m7')
                  winContent = window.open('audio/7.mp3', 'Audio', 'right=80, top=50,width=340,height=10, toolbar=no,scrollbars=no, resizable=no')         
                  else if (page =='m8')
                  winContent = window.open('audio/8.mp3', 'Audio', 'right=90, top=55,width=340,height=10, toolbar=no,scrollbars=no, resizable=no')         
                  else if (page =='m9')
                  winContent = window.open('audio/9.mp3', 'Audio', 'right=100, top=60,width=340,height=10, toolbar=no,scrollbars=no, resizable=no')         
                  else if (page =='m10')
                  winContent = window.open('audio/10.mp3', 'Audio', 'right=110, top=65,width=340,height=10, toolbar=no,scrollbars=no, resizable=no')         
                }




