

ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false

layerRef = (ns4) ? "document" : "document.all";
styleRef = (ns4) ? "" : ".style";

function show(id)
 {
  if (ns4) document.layers[id].visibility = "show"
  else if (ie4) document.all[id].style.visibility = "visible"
 }

function hide(id)
 {
  if (ns4) document.layers[id].visibility = "hide"
  else if (ie4) document.all[id].style.visibility = "hidden"
 }

// rollover for navigation

function switchImg(where,what,newImg)
 {
  if(ns4)
   {
    document.layers[where].document.images[what].src = newImg.src;
   } else
   {
    document.images[what].src = newImg.src;
   }
 }

function switchImg2(where,what,newImg)
 {
  if(ns4)
   {
    document.layers[where].document.images[what].src = newImg.src;
   } else
   {
    document.images[what].src = newImg.src;
   }
 }

// Netscape Resize Css Fix

function CSSfix()
 {
  if (document.self.CSSfix.initWindowWidth != window.innerWidth || document.self.CSSfix.initWindowHeight != window.innerHeight)
   {
    document.location = document.location;
   }
 }

function CSSfixCheckIn()
 {
  if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4))
   {
    if (typeof document.self == 'undefined')
     {
      document.self = new Object;
     }
    if (typeof document.self.self_scaleFont == 'undefined')
     {
      document.self.CSSfix = new Object;
      document.self.CSSfix.initWindowWidth = window.innerWidth;
      document.self.CSSfix.initWindowHeight = window.innerHeight;
     }
    window.onresize = CSSfix;
   }
 }

CSSfixCheckIn()

// Scroll Function Init

function init()
 {
  DynLayerInit()
  scrollA = new MiniScroll(scrollWindowA,scrollContentA)
 }

//Slide behaviors 

startPath = -350
endPath = 0

layerRef = (ns4) ? "document" : "document.all";
styleRef = (ns4) ? "" : ".style";

//function to slide out related contentwin DIV

function slideIt()
 {
  if (startPath < endPath )
   {
    startPath = startPath + 10;
    eval(layerRef + '.contentwin' + styleRef + '.left = ' + startPath);
    //temp variable to continue loop
    looper = startPath;
    setTimeout("slideIt(looper, endPath)", 1);
   }
 }

var related = 0
var flash = 0

function moveIt()
 {
  if(related == 0)
   {
    related = 1;
    eval(layerRef + '.contentwin' + styleRef + '.top = ' + '-350');
   }
   else 
   {
    related = 0;
    eval(layerRef + '.contentwin' + styleRef + '.top = ' + '-350');
   }
 }

function flashIt()
 {
  if(flash == 0)
   {
    flash = 1;
    eval(layerRef + '.flashwin' + styleRef + '.top = ' + '-350');
   }
   else 
   {
    flash = 0;
    eval(layerRef + '.flashwin' + styleRef + '.top = ' + '-350');
   }
 }

