<!--

  function openInfo() {
    var p = window.open('popup.html', 'infoWin', 'height=200,width=400,resizeable=yes,scrollbars=yes')
    p.focus()
  }

  function cacheImg (i) {
    var newImg = new Image()
    newImg.src = i
    return newImg
  }

  function openWin (url, n, feat) {
    var newWin = window.open(url, n, feat)
    newWin.focus()
  }

  function MM_showHideLayers(l, v) {
    if (v) document.getElementById(l).style.visibility = "visible"
    else document.getElementById(l).style.visibility = "hidden"
  }

  function init() {
    if (window.location.href.indexOf("index.php") != -1)
    {
      var im = new Array()
      im[0] = "images/menurollovers/top-1-on.gif"
      im[1] = "images/menurollovers/top-2-on.gif"
      im[2] = "images/menurollovers/top-3-on.gif"
      im[3] = "images/menurollovers/top-4-on.gif"
      im[4] = "images/menurollovers/top-5-on.gif"
      im[5] = "images/menurollovers/top-6-on.gif"
      im[6] = "images/menurollovers/top-6-on.gif"
      im[7] = "images/menurollovers/bottom-2-on.gif"
      im[8] = "images/menurollovers/bottom-3-on.gif"
      im[9] = "images/menurollovers/bottom-4-on.gif"
      im[10] = "images/menurollovers/bottom-5-on.gif"

      for (i in im)
        cacheImg(im[i])
    }

  }

  window.onload = init



//-------------------------------------
//SLIDE SHOW
//-------------------------------------

var imgs = [
		{img:'08.jpg', imgHeight:188, imgWidth:250},
		{img:'09.jpg', imgHeight:167, imgWidth:250},
		{img:'10.jpg', imgHeight:195, imgWidth:250},
		{img:'11.jpg', imgHeight:211, imgWidth:250},
		{img:'01.jpg', imgHeight:171, imgWidth:250},
		{img:'02.jpg', imgHeight:188, imgWidth:250},
		{img:'03.jpg', imgHeight:188, imgWidth:250},
		{img:'04.jpg', imgHeight:188, imgWidth:250},
		{img:'05.jpg', imgHeight:188, imgWidth:250},
		{img:'06.jpg', imgHeight:188, imgWidth:250},
		{img:'07.jpg', imgHeight:188, imgWidth:250}
];


var count = 0;
var timer, opTimer;
var d = document;
var op1 = 1;
var op2 = 0;
var h = 0;

function setSlideShow ()
{
    for (var i=0; i <imgs.length; i++)
        if (imgs[i].imgHeight > h) h = imgs[i].imgHeight;

    slideShow();
}

function slideShow ()
{

    //set placer image height
    d.getElementById('slideDiv').style.height = parseInt(h);

    //set reference
    one = d.getElementById('slide1');
    two = d.getElementById('slide2');

    //set opacity variables
    op1 = 1;
    op2 = 0;

    //bring images in
    one.src = "images/collection/"+imgs[count].img;
    one.height = imgs[count].imgHeight;
    one.width = imgs[count].imgWidth;

    if (count < imgs.length-1) count++;
    else count = 0;

    two.src = "images/collection/"+imgs[count].img;
    two.height = imgs[count].imgHeight;
    two.width = imgs[count].imgWidth;


    //set opacity
    setOpacity('slide1', 'slide2');

}

function setOpacity (img1, img2)
{
    clearInterval(opTimer);
    op1 -= .1;
    op2 += .1;

    if (op1 <= 0 && op2 >= 1)
    {
        d.getElementById(img1).style.filter = "alpha(opacity=0)";
        d.getElementById(img1).style.opacity = 0;

        d.getElementById(img2).style.filter = "alpha(opacity=100)";
        d.getElementById(img2).style.opacity = 1;

        //do this again, every 2 seconds
        timer = setTimeout("slideShow()", 2500);

    }
    else
    {
        d.getElementById(img1).style.filter = "alpha(opacity="+op1*100+")";
        d.getElementById(img1).style.opacity = op1;
        d.getElementById(img1).style.MozOpacity = op1;

        opTimer = setInterval("setOpacity('"+img1+"','"+img2+"')", 100);
    }


}

-->