﻿    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 = "#cc9999";
        document.getElementById(s).style.borderLeftColor = "#cc9999";
        document.getElementById(s).style.borderBottomColor = "#330000";
        document.getElementById(s).style.borderRightColor = "#330000";
        document.getElementById(s).style.color = "#ffd9d9";
        document.getElementById(s).style.backgroundColor = "#552020";
        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 = "104px";
							break;
            case 'ub2':
							document.getElementById(s).style.width = "124px";
							break;
            case 'ub3':
							document.getElementById(s).style.width = "144px";
							break;
          }
        }
        
        window.focus();
      }
    }

    function Mover(s)
    {
      if (document.getElementById(s))
      {      
        document.getElementById(s).style.borderTopColor = "#eebbbb";
        document.getElementById(s).style.borderLeftColor = "#eebbbb";
        document.getElementById(s).style.borderBottomColor = "#593333";
        document.getElementById(s).style.borderRightColor = "#593333";
        document.getElementById(s).style.color = "#ffeeee";
        document.getElementById(s).style.backgroundColor = "#8f6666";
        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 < 21) {
        p2 = (p1==20) ? 1 : p1 + 1 ; 
        if (nw < 250) {
            document.getElementById('ssloc').innerHTML = '<img src="images/slideshow/ss' + p1 + '.jpg" height="250" width="' + (250 - nw) + 
            '"><img src="images/slideshow/ss' + p2 + '.jpg" height="250" width="' + nw + '">';
            nw += 10; 
            nx = setTimeout('anim()', 10);                   
        }
        else {
        		document.getElementById('ssloc').innerHTML = '<img src="images/slideshow/ss' + p2 + '.jpg" height="250" 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.jpg";
    i2 = new Image(250,250);
    i2.src = "images/slideshow/ss2.jpg";
    i3 = new Image(250,250);
    i3.src = "images/slideshow/ss3.jpg";
    i4 = new Image(250,250);
    i4.src = "images/slideshow/ss4.jpg";
    i5 = new Image(250,250);
    i5.src = "images/slideshow/ss5.jpg";
    i6 = new Image(250,250);
    i6.src = "images/slideshow/ss6.jpg";
    i7 = new Image(250,250);
    i7.src = "images/slideshow/ss7.jpg";
    i8 = new Image(250,250);
    i8.src = "images/slideshow/ss8.jpg";
    i9 = new Image(250,250);
    i9.src = "images/slideshow/ss9.jpg";
    i10 = new Image(250,250);
    i10.src = "images/slideshow/ss10.jpg";
    i11 = new Image(250,250);
    i11.src = "images/slideshow/ss11.jpg";
    i12 = new Image(250,250);
    i12.src = "images/slideshow/ss12.jpg";
    i13 = new Image(250,250);
    i13.src = "images/slideshow/ss13.jpg";
    i14 = new Image(250,250);
    i14.src = "images/slideshow/ss14.jpg";
    i15 = new Image(250,250);
    i15.src = "images/slideshow/ss15.jpg";
    i16 = new Image(250,250);
    i16.src = "images/slideshow/ss16.jpg";
    i17 = new Image(250,250);
    i17.src = "images/slideshow/ss17.jpg";
    i18 = new Image(250,250);
    i18.src = "images/slideshow/ss18.jpg";
    i19 = new Image(250,250);
    i19.src = "images/slideshow/ss19.jpg";
    i20 = new Image(250,250);
    i20.src = "images/slideshow/ss20.jpg";
    
    i20.onLoad = anim();
  
} 
