

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function tmt_findObj(n){
	var x,t; if((n.indexOf("?"))>0&&parent.frames.length){t=n.split("?");
	x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");
	}else{x=document.getElementById(n)}return x;
}

function tmt_divBoxIn(tl,dur,incr){
	var nn4=(document.layers)?true:false;transNo=parseInt(0);arHidden=new Array(1,3,14,16);
	var t=(document.getElementById)?tmt_findObj(tl):MM_findObj(tl);
	if(document.all&&t){t.style.filter="revealTrans(duration=" + dur + ",transition=0)";endState="hidden";
	for(i=0;i<arHidden.length;i++){if(arHidden[i]==transNo){endState="visible";t.style.visibility="hidden";}}
	t.filters.revealTrans.apply();t.style.visibility = endState;t.filters.revealTrans.play();return;}
	if(navigator.appName=="Netscape"&&t){intval=100;if(incr==0){if(nn4&&t){
	t.origLeft=t.Left=t.clip.left;t.origTop=t.Top=t.clip.top;t.origRight=t.Right=t.clip.right;
	t.origBottom=t.Bottom=t.clip.bottom;t.Width=t.clip.width;t.Height=t.clip.height;}else{
	t.style.overflow='hidden';t.Left=t.Top=0;t.Right=t.Width=t.offsetWidth;t.Bottom=t.Height=t.offsetHeight;}
    mSecs=dur*1000;visits=(mSecs/intval);fullW=t.Width;fullH=t.Height;halfW=fullW/2;halfH=fullH/2;
    alternateW=alternateH=true;incW=halfW/visits;incrementW=(incW>=1)?parseInt(incW):0;
    xtraPixW=Math.round((incW-incrementW)*visits);incH=halfH/visits;
    incrementH=(incH>=1)?parseInt(incH):0;xtraPixH=Math.round((incH-incrementH)*visits);        
    if(xtraPixW>0){if(xtraPixW<=visits){if(alternateW){t.Left++;t.Right--;
	if(nn4){t.clip.left=t.Left;t.clip.right=t.Right;}else{
    t.style.clip="rect("+t.Top+"px "+t.Right+"px "+t.Bottom+"px "+t.Left+"px)";}
    xtraPixW--;}alternateW=!alternateW;}else{t.Left++;t.Right--;
	if(nn4){t.clip.left=t.Left;t.clip.right=t.Right;}else{
	t.style.clip="rect("+t.Top+"px "+t.Right+"px "+t.Bottom+"px "+t.Left+"px)";}
    xtraPixW--;}}t.Left+=incrementW;t.Right-=incrementW;
	if(nn4){t.clip.left=t.Left;t.clip.right=t.Right;}else{
    t.style.clip="rect("+t.Top+"px "+t.Right+"px "+t.Bottom+"px "+t.Left+"px)";}
    if(xtraPixH>0){if(xtraPixH<=visits){if(alternateH){t.Top++;t.Bottom--;
	if(nn4){t.clip.top=t.Top;t.clip.bottom=t.Bottom;}else{
	t.style.clip="rect("+t.Top+"px "+t.Right+"px "+t.Bottom+"px "+t.Left+"px)";}
    xtraPixH--;}alternateH=!alternateH;}else{t.Top++;t.Bottom--;
	if(nn4){t.clip.top=t.Top;t.clip.bottom=t.Bottom;}else{
	t.style.clip="rect("+t.Top+"px "+t.Right+"px "+t.Bottom+"px "+t.Left+"px)";}
	xtraPixH--;}}t.Top+=incrementH;t.Bottom-=incrementH;
	if(nn4){t.clip.top=t.Top;t.clip.bottom=t.Bottom;}else{
    t.style.clip="rect("+t.Top+"px "+t.Right+"px "+t.Bottom+"px "+t.Left+"px)";}
    visits--;}else{if(xtraPixW>0){if(xtraPixW<=visits){if(alternateW){
    t.Left++;t.Right--;if(nn4){t.clip.left=t.Left;t.clip.right=t.Right;}else{
    t.style.clip="rect("+t.Top+"px "+t.Right+"px "+t.Bottom+"px "+t.Left+"px)";}
    xtraPixW--;}alternateW=!alternateW;}else{t.Left++;t.Right--;
	if(nn4){t.clip.left=t.Left;t.clip.right=t.Right;}else{
	t.style.clip="rect("+t.Top+"px "+t.Right+"px "+t.Bottom+"px "+t.Left+"px)";}
    xtraPixW--;}}t.Left+=incrementW;t.Right-=incrementW;
    if(nn4){t.clip.left=t.Left;t.clip.right=t.Right;}else{
	t.style.clip="rect("+t.Top+"px "+t.Right+"px "+t.Bottom+"px "+t.Left+"px)";}
    if(xtraPixH>0){if(xtraPixH<=visits){if(alternateH){t.Top++;t.Bottom--;
	if(nn4){t.clip.top=t.Top;t.clip.bottom=t.Bottom;}else{
	t.style.clip="rect("+t.Top+"px "+t.Right+"px "+t.Bottom+"px "+t.Left+"px)";}
    xtraPixH--;}alternateH=!alternateH;}else{t.Top++;t.Bottom--;
	if(nn4){t.clip.top=t.Top;t.clip.bottom=t.Bottom;}else{
	t.style.clip = "rect("+t.Top+"px "+t.Right+"px "+t.Bottom+"px "+t.Left+"px)";}
    xtraPixH--;}}t.Top+=incrementH;t.Bottom-=incrementH;
    if(nn4){t.clip.top=t.Top;t.clip.bottom=t.Bottom;}else{
	t.style.clip="rect("+t.Top+"px "+t.Right+"px "+t.Bottom+"px "+t.Left+"px)";}
    visits--;}t.Width=t.Right-t.Left;t.Height=t.Bottom-t.Top;if(t.Height<=0&&t.Width<=0){
    if(nn4){t.visibility="hide";t.clip.left=t.origLeft;t.clip.top=t.origTop;
	t.clip.right=t.origRight;t.clip.bottom=t.origBottom;
    }else{t.style.visibility='hidden';t.style.clip="rect(auto)";}
	}else{setTimeout('tmt_divBoxIn("'+tl+'",'+dur+',1)',intval);}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
