﻿    function Mout(s)
    {
      if (document.getElementById(s))
      {
        document.getElementById(s).style.textIndent = "0px";         
        document.getElementById(s).style.padding = "0px";
        document.getElementById(s).style.fontFamily = "arial,helvetica,sans-serif";
        document.getElementById(s).style.fontStyle = "normal";
        document.getElementById(s).style.fontSize = "12px";
        document.getElementById(s).style.fontWeight = "bold";
        document.getElementById(s).style.textAlign = "center";
        document.getElementById(s).style.borderWidth = "2px";
        document.getElementById(s).style.borderTopColor = "#7777dd";
        document.getElementById(s).style.borderLeftColor = "#7777dd";
        document.getElementById(s).style.borderBottomColor = "#222277";
        document.getElementById(s).style.borderRightColor = "#222277";
        document.getElementById(s).style.color = "#ffffff";
        document.getElementById(s).style.backgroundColor = "#0D3692";
        document.getElementById(s).style.height = "24px";
        if (s.substring(0,2) == 'mo')
        {
          document.getElementById(s).style.width = "164px";
        }
        else
        {
          switch(s)
          {
            case 'ub1':
							document.getElementById(s).style.width = "74px";
							break;
            case 'ub2':
							document.getElementById(s).style.width = "104px";
							break;
            case 'ub3':
							document.getElementById(s).style.width = "134px";
							break;

          }
        }
        
        window.focus();
      }
    }

    function Mover(s)
    {
      if (document.getElementById(s))
      {      
          document.getElementById(s).style.borderTopColor = "#9999ff";
          document.getElementById(s).style.borderLeftColor = "#9999ff";
          document.getElementById(s).style.borderBottomColor = "#444499";
          document.getElementById(s).style.borderRightColor = "#444499";
          document.getElementById(s).style.color = "#ffff00";
          document.getElementById(s).style.backgroundColor = "#2255bb";
          document.getElementById(s).style.cursor = "pointer";
      }  
    }
    
    function MM_openBrWindow(theURL,winName,features) 
    { //v2.0
			window.open(theURL,winName,features);
		}




/* slideshow animation */

var nx;
var nw = 250;
var p1 = 0;
var p2;
    
function anim() {
    if(p1 < 16) {
        p2 = (p1==15) ? 1 : p1 + 1 ; 
        if (nw < 250) {
            document.getElementById('ssloc').innerHTML = '<img src="images/slideshow/ss' + p1 + '.png" height="200" width="' + (250 - nw) + 
            '"><img src="images/slideshow/ss' + p2 + '.png" height="200" width="' + nw + '">';
            nw += 10; 
            nx = setTimeout('anim()', 10);                   
        }
        else {
        		document.getElementById('ssloc').innerHTML = '<img src="images/slideshow/ss' + p2 + '.png" height="200" width="250">';
            nw = 10;
            p1 ++;
            nx = setTimeout('anim()', 5000); 
        }
    }    
    else {
      p1 = 1;
      anim(); 
    }       
}


/* preload slideshow images */

function loadss() 
{    
    i1 = new Image(250,250);
    i1.src = "images/slideshow/ss1.png";
    i2 = new Image(250,250);
    i2.src = "images/slideshow/ss2.png";
    i3 = new Image(250,250);
    i3.src = "images/slideshow/ss3.png";
    i4 = new Image(250,250);
    i4.src = "images/slideshow/ss4.png";
    i5 = new Image(250,250);
    i5.src = "images/slideshow/ss5.png";
    i6 = new Image(250,250);
    i6.src = "images/slideshow/ss6.png";
    i7 = new Image(250,250);
    i7.src = "images/slideshow/ss7.png";
    i8 = new Image(250,250);
    i8.src = "images/slideshow/ss8.png";
    i9 = new Image(250,250);
    i9.src = "images/slideshow/ss9.png";
    i10 = new Image(250,250);
    i10.src = "images/slideshow/ss10.png";
    i11 = new Image(250,250);
    i11.src = "images/slideshow/ss11.png";
    i12 = new Image(250,250);
    i12.src = "images/slideshow/ss12.png";
    i13 = new Image(250,250);
    i13.src = "images/slideshow/ss13.png";
    i14 = new Image(250,250);
    i14.src = "images/slideshow/ss14.png";
    i15 = new Image(250,250);
    i15.src = "images/slideshow/ss15.png";
   
    i15.onLoad = anim();
  
} 

