if (document.layers) { // preload top bg for NS4
  var NSimg1 = new Image();
  NSimg1.src = "images/headerbgNS.gif";
}

function swapShow(swapID) {
  showID('swap99');
  hideID('swap1','swap2','swap3','swap4','swap5');
  eval("clipLayer('swap"+swapID+"',0.45,0.45,0.45,0.45,250,10);");
}

var intervalID ;
	
function clipLayer(id,moveTop,moveRight,moveBottm,moveLeft,slidetime,frametime) {
	var newWidth  = parseInt(findWidth(id));
	defaultWidth  = newWidth
	var newHeight = parseInt(findHeight(id));
	var newTop    = 0;
	var newRight  = newWidth;
	var newBottm  = newHeight;
	var newLeft   = 0;
	var oldTop    = parseInt(newHeight*moveTop);
	var oldRight  = parseInt(newWidth*(1-moveRight));
	var oldBottm  = parseInt(newHeight*(1-moveBottm));
	var oldLeft   = parseInt(newWidth*moveLeft);

	framesqty = Math.round(slidetime/frametime);
			
	incTop   = Math.round((newTop  -oldTop  )/framesqty);
	incTop   = (incTop   == 0 && newTop   != oldTop  ) ? ((newTop  >oldTop  ) ? 1 : -1) : incTop   ;
	incRight = Math.round((newRight-oldRight)/framesqty);
	incRight = (incRight == 0 && newRight != oldRight) ? ((newRight>oldRight) ? 1 : -1) : incRight ;
	incBottm = Math.round((newBottm-oldBottm)/framesqty);
	incBottm = (incBottm == 0 && newBottm != oldBottm) ? ((newBottm>oldBottm) ? 1 : -1) : incBottm ;
	incLeft  = Math.round((newLeft -oldLeft )/framesqty);
	incLeft  = (incLeft  == 0 && newLeft  != oldLeft ) ? ((newLeft >oldLeft ) ? 1 : -1) : incLeft  ;

	slideit = clipFrame(id,oldTop,oldRight,oldBottm,oldLeft,
			 newTop,newRight,newBottm,newLeft,
			 incTop,incRight,incBottm,incLeft,frametime);
}

function clipFrame(id,oldtop,oldright,oldbottom,oldleft,
		newtop,newright,newbottom,newleft,
		inctop,incright,incbottom,incleft,frametime) {
	showID(id);
	var domStyle = findDOM(id,1);
	if (domStyle.clip.height || domStyle.clip.width)	{
	  domStyle.clip.height    = oldbottom-oldtop ;
	  domStyle.clip.width     = oldright-oldleft ;
	} else {
	  domStyle.clip='rect('+oldtop+' '+oldright+' '+oldbottom+' '+oldleft+')';
	}

	oldtop    += inctop;
	oldright  += incright;
	oldbottom += incbottom;
	oldleft   += incleft;
	oldtop    = (((inctop    > 0) && (oldtop    > newtop   )) || 
	 ((inctop    < 0) && (oldtop    < newtop   ))) ? newtop    : oldtop    ;
	oldright  = (((incright  > 0) && (oldright  > newright )) || 
	 ((incright  < 0) && (oldright  < newright )) ||
	 ((newright  - oldright) <= incright)) ? newright  : oldright  ;

	if  ((inctop    > 0 && oldtop    < newtop   )  ||  (inctop    < 0 && oldtop    > newtop   )  ||
			 (incright  > 0 && oldright  < newright )  ||  (incright  < 0 && oldright  > newright )  ||
			 (incbottom > 0 && oldbottom < newbottom)  ||  (incbottom < 0 && oldbottom > newbottom)  ||
			 (incleft   > 0 && oldleft   < newleft  )  ||  (incleft   < 0 && oldleft   > newleft  ))
	{
		intervalID=setTimeout('clipFrame("'+id+'",'+oldtop+','+oldright+','+oldbottom+','+oldleft+','+newtop+','+newright+','+newbottom+','+newleft+','+inctop+','+incright+','+incbottom+','+incleft+')',frametime);
	} else {
		resetwidth(id);
		clearTimeout(intervalID);
	}
}

var shiftM
var Browser = Browser();
function Browser() {
    bval = "Other";
    if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4)) 
	bval = "Netscape";
    if ((navigator.appName == "Microsoft Internet Explorer") &&	(parseInt(navigator.appVersion) >= 4)) 
	bval = "Explorer";
    return bval;
}

var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
var ns6=document.getElementById&&!document.all
var ns4=document.layers
var is_aol=""

  var newWidth1   = 730;
  var newHeight1  = screen.availHeight - 60;
  var leftMargin1 = (screen.availWidth - newWidth1 - 20)/2;
  var topMargin1  =  20;
  if (is_aol) {
    topMargin1  = 0 ;
    leftMargin1 = 0 ;
  }
  var win1
  function openWindow1() {
    win1 = window.open('','Activia1',"width="+newWidth1+",height="+newHeight1+",top="+topMargin1+",left="+leftMargin1+",resizable=no,scrollbars=yes,toolbar=no,status=no");
    win1.focus();
  }
	

  function writeEM(emName,emDomain) {
    var emAt = '&#64;';
    document.write('<a href="mailto:'+emName+emAt+emDomain+'">');
    document.write(emName+emAt+emDomain+'</a></p>');
  }

function rollOver(thisPic){
	s=pth+'images/btn2.gif'
	thisPic.src = s
}

function rollOut(thisPic){
	s=pth+'images/btn1.gif'
	thisPic.src = s
}