// Reloads the page in Netscape 4.x if the user resizes the window

          var saveInnerWidth;
          var saveInnerHeight;

          if(!saveInnerWidth && document.layers) {
           window.onresize = resizeIt;
           saveInnerWidth = window.innerWidth;
           saveInnerHeight = window.innerHeight;
          }

          function resizeIt() {
           if (saveInnerWidth < window.innerWidth || saveInnerWidth > window.innerWidth ||
            saveInnerHeight > window.innerHeight || saveInnerHeight < window.innerHeight ) {
            window.history.go(0);
           }
          }


// Detects the user's browser and loads the appropriate stylesheet

          var browser = navigator.appName;
		  var agt = navigator.userAgent.toLowerCase();
          var version = parseInt(navigator.appVersion);

          if (browser == "Netscape" && version <= 4) {
           document.write('<link rel=stylesheet type="text/css" href="includes/css/win_nn4.css">');
          }
		  else if (browser == "Netscape" && version > 4) {
           document.write('<link rel=stylesheet type="text/css" href="includes/css/win_nn.css">');
          }	  
		  else if (agt.indexOf("mac") != -1 && agt.indexOf("aol") != -1) {
           document.write('<link rel=stylesheet type="text/css" href="includes/css/mac_aol.css">');
          }	
		  else if (browser.indexOf("WebTV")!=-1) {
           document.write('<link rel=stylesheet type="text/css" href="includes/css/webtv.css">');
          }	  
          else {
           document.write('<link rel=stylesheet type="text/css" href="includes/css/win.css">');
          }
		  
		  

// on and off behaviors for rollover images             
               
          function imgOn(imgName) {
             if (document.images) {
                document[imgName].src = eval(imgName + "on.src");
             }
          }
          function imgOff(imgName) {
             if (document.images) {
                document[imgName].src = eval(imgName + "off.src");
             }
          }
		  function imgOff2(imgName) {
             if (document.images) {
                document[imgName].src = eval(imgName + "off2.src");
             }
          }
		  
// Generic window launcher 

          function openNewWindow(URLtoOpen, windowName, windowFeatures) { 
             newWindow=window.open(URLtoOpen, windowName, windowFeatures); newWindow.focus();
		  }
		  
// I Want To short cut drop-down box

          function shortcut() {
		  
		     if (document.IWantToForm.URL_list.options[document.IWantToForm.URL_list.selectedIndex].value == "") {
			   return false;
			 }
			 else if (document.IWantToForm.URL_list.options[document.IWantToForm.URL_list.selectedIndex].value == "utv_demo.html") {
			   openNewWindow('utv_demo.html', 'utv_demo', 'width=600,height=420,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=0');
			   return false;
			 }
			 else {
               window.location.href = document.IWantToForm.URL_list.options[document.IWantToForm.URL_list.selectedIndex].value;
			   return false;
			 }
          }
		  
