// JavaScript Document
<!--

var currentPage = 1;
var currentZ = 100;

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 switchmenu(mid,state)
{
	myitem = MM_findObj("menu" + mid);
	if (state == 0)
	{
		myitem.src = 'images/menu/menuitem_' + mid + '_green.png';
	}
	else
	{
		myitem.src = 'images/menu/menuitem_' + mid + '_grey.png';
	}
}

t_highlight = 1;

function switchimage(tindex,imagename)
{
	old_t = t_highlight;
	eval("thumb" + old_t + ".src = 'images/thumbs/thumb" + old_t + ".jpg'");
	myitem = MM_findObj("largeimage");
	myitem.src = 'images/large/' + imagename;
	t_highlight = tindex;
	eval("thumb" + t_highlight + ".src = 'images/thumbs/thumb" + t_highlight + "_on.jpg'");
}


function preload_menu()
{
	for (a=1;a<=6;a++)
	{
	eval("image" + a + " = new Image();");
	eval('image' + a + ".src = 'menuitem_" + a + "_green.png';");
	eval("imagedn" + a + " = new Image();");
	eval('imagedn' + a + ".src = 'menuitem_" + a + "_grey.png';");
	}
}

var current_layer;

current_layer=null;

N = (document.all) ? 0 : 1;

var t;

image_slide_object = null;
image_slide_count = 0;
image_slide_current = 0;

image_slide_run = false;

function imageSlide(t, image_slide_target) {

  if(!image_slide_run) {
  image_slide_run = true;

  if(document.getElementById) {
    image_slide_object = document.getElementById(t).style;
  } else {
    if(document.all) {
      image_slide_object = eval('document.all.'+t+'.style');
    }
  }
  
  image_slide_count = 0;

  imageSlideCounter(image_slide_target);
  }

}

function imageSlideCounter(image_slide_target) {
	//alert(image_slide_object.left)
  if(image_slide_target > image_slide_current) {
    image_slide_count = Math.round((image_slide_count+1)*1.4);
    image_slide_current_temp = image_slide_current+image_slide_count;
    if(image_slide_current_temp > image_slide_target) {
      image_slide_current_temp = image_slide_target;
    }
    image_slide_current = image_slide_current_temp;
    image_slide_object.left = 0-image_slide_current;
    setTimeout("imageSlideCounter("+image_slide_target+")",20);
  } else if(image_slide_target < image_slide_current) {
    image_slide_count = Math.round((image_slide_count+1)*1.4);
    image_slide_current_temp = image_slide_current-image_slide_count;
    if(image_slide_current_temp < image_slide_target) {
      image_slide_current_temp = image_slide_target;
    }
    image_slide_current = image_slide_current_temp;
    image_slide_object.left = 0-image_slide_current;
    setTimeout("imageSlideCounter("+image_slide_target+")",20);
  } else {
    image_slide_run = false;
  }
}
-->