<!--
   var detect = navigator.userAgent.toLowerCase();
   var OS,browser,version,thestring,textMarginTop;
   var currTxt = "";

   // bottom banner vars
   var rNum = Math.round(Math.random()*6);
   var banner_links = ['#','#2','#3','#4'];
   var banner_names = ['gift1.jpg','gift2.jpg','gift3.jpg','gift4.jpg','gift5.jpg','gift6.jpg','gift7.jpg'];

   function checkIt(string) {
      place = detect.indexOf(string) + 1;
      thestring = string;
   	return place;
   }

   function getDims () {
      if (checkIt('konqueror')) {browser = "Konqueror"; OS = "Linux";}
      else if (checkIt('safari')) browser = "Safari"
      else if (checkIt('omniweb')) browser = "OmniWeb"
      else if (checkIt('opera')) browser = "Opera"
      else if (checkIt('webtv')) browser = "WebTV";
      else if (checkIt('icab')) browser = "iCab"
      else if (checkIt('msie')) browser = "IE"
      else if (!checkIt('compatible')) {browser = "Netscape"; version = detect.charAt(8);}
      else browser = "An unknown browser";

      version = detect.charAt(place + thestring.length);

     	if (checkIt('win')) OS = "Windows";
   	else if (checkIt('mac')) OS = "Mac";
      else if (checkIt('linux')) OS = "Linux";
      else if (checkIt('x11')) OS = "Unix";
     	else OS = "an unknown operating system";

      // Reposition text element in Opera
      if (browser=='Opera' && textMarginTop != null) {
         var textElt = document.getElementById('text');
         textElt.style.marginTop = textMarginTop+'px';
      }
   }

   function hideElt(elt) {document.getElementById(elt).style.visibility = 'hidden';}
   function showElt(elt) {document.getElementById(elt).style.visibility = 'visible';}

   function swapSub(n) {
      if (currTxt != "") {hideElt(currTxt);}
      currTxt = n + '_txt';
      showElt(n + '_txt');

      var tH = document.getElementById(n).offsetHeight;
      if (checkIt('msie') && !checkIt('mac')) {document.getElementById('box_m').style.height = (tH - 55) + 'px';}
      else {document.getElementById('box_m').height = tH - 55;}
   }

   function toggleWin(args) {
      var arg_arr = args.split(',');

      switch(arg_arr[1]) {
         case "0": 
            hideElt(arg_arr[0]);
            hideElt(arg_arr[2]);
            break;
         case "1":
            document.getElementById(arg_arr[2]).style.marginTop = (parseInt(arg_arr[3]) + document.getElementById(arg_arr[0]+'_txt').offsetHeight + 177) + 'px';
            showElt(arg_arr[0]);
            showElt(arg_arr[2]);
            break;
      }
   }

   function launch(page) {openWin = this.open(page,"CtrlWindow","toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,width=800,height=570");}

   function launch_fv(page) {
      if (quicktimeVersion >= requiredVersion) {
         document.location.href='http://www.blackcatcommunications.ca/staging/blackcat/videos/warofworlds2.qtl';
      }  else if (quicktimeVersion > 0) {
         document.write('<div id="qtAlert"><div id="text"><a href="http://www.apple.com/quicktime/download/standalone.html" target="_blank">');
         document.write('<img src="QTreq.gif" width="84" height="21" /> Click here to upgrade your current version.</a></div></div>');
      } else if (quicktimeVersion == 0) {
         document.write('<div id="qtAlert"><div id="text"><a href="http://www.apple.com/quicktime/download/standalone.html" target="_blank">');
         document.write('<img src="QTreq.gif" width="84" height="21" /> Click here to download the Quicktime Player.</a></div></div>');
      } else if (quicktimeVersion == quicktimeVersion_DONTKNOW || quicktimeVersion == null) {
         document.write('<div id="qtAlert"><div id="text" style="margin-left:165px;">');
         document.write('<img src="QTreq.gif" width="84" height="21" /> This browser does not support Javascript-based Quicktime detection.</div></div>');
      }
   }

   function blackcat_DoFSCommand(command, args) { 
      switch(command) {
         case "swapSub": swapSub(args); break;
         case "hideElt": hideElt(args); break;
         case "toggleWin": toggleWin(args); break;
         default: break;
      }
   }
   
//-->
