// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this header

// =======================================
// Place this script in the head of your
// page and set the following variables.
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 1500

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'IMAGES/SlideShow/C_800.jpg'
Pic[1] = 'IMAGES/SlideShow/C_900.jpg'
Pic[2] = 'IMAGES/SlideShow/C_1100.jpg'
Pic[3] = 'IMAGES/SlideShow/C_1200.jpg'
Pic[4] = 'IMAGES/SlideShow/C_880.jpg'
Pic[5] = 'IMAGES/SlideShow/C_1090.jpg'
Pic[6] = 'IMAGES/SlideShow/C_850.jpg'
Pic[7] = 'IMAGES/SlideShow/C_1380.jpg'
Pic[8] = 'IMAGES/SlideShow/C_500.jpg'
Pic[9] = 'IMAGES/SlideShow/C_780.jpg'
Pic[10] = 'IMAGES/SlideShow/C_600.jpg'
Pic[11] = 'IMAGES/SlideShow/C_460.jpg'
Pic[12] = 'IMAGES/SlideShow/C_630.jpg'
Pic[13] = 'IMAGES/SlideShow/C_430.jpg'
// clare removed Pic[14] = 'IMAGES/SlideShow/C_310.jpg'
Pic[14] = 'IMAGES/SlideShow/C_016.jpg'
Pic[15] = 'IMAGES/SlideShow/D_800.jpg'
Pic[16] = 'IMAGES/SlideShow/D_900.jpg'
Pic[17] = 'IMAGES/SlideShow/D_1100.jpg'
Pic[18] = 'IMAGES/SlideShow/D_1200.jpg'
Pic[19] = 'IMAGES/SlideShow/D_1380.jpg'
Pic[20] = 'IMAGES/SlideShow/D_480.jpg'
Pic[21] = 'IMAGES/SlideShow/D_848.jpg'
Pic[22] = 'IMAGES/SlideShow/D_500.jpg'
Pic[23] = 'IMAGES/SlideShow/D_460.jpg'
Pic[24] = 'IMAGES/SlideShow/D_600.jpg'
Pic[25] = 'IMAGES/SlideShow/D_630.jpg'
// clare removed Pic[26] = 'IMAGES/SlideShow/D_330.jpg'
Pic[26] = 'IMAGES/SlideShow/C_1020.jpg'
//clare removed Pic[27] = 'IMAGES/SlideShow/BAccess01.jpg'
Pic[27] = 'IMAGES/SlideShow/C_017.jpg'
// clare removed Pic[28] = 'IMAGES/SlideShow/BAccess02.jpg'
Pic[28] = 'IMAGES/SlideShow/C_017B.jpg'
Pic[29] = 'IMAGES/SlideShow/CPM610_CP610PMS.jpg'
Pic[30] = 'IMAGES/SlideShow/CPM760_CP760PMS.jpg'
Pic[31] = 'IMAGES/SlideShow/CPM910_CP910PMS.jpg'
Pic[32] = 'IMAGES/SlideShow/CPM610_CP610CT.jpg'
Pic[33] = 'IMAGES/SlideShow/CPM760_CP760CT.jpg'
Pic[34] = 'IMAGES/SlideShow/CPM910_CP910CT.jpg'
Pic[35] = 'IMAGES/SlideShow/C_1000.jpg'
Pic[36] = 'IMAGES/SlideShow/C_2300.jpg'
Pic[37] = 'IMAGES/SlideShow/C_300.jpg'
Pic[38] = 'IMAGES/SlideShow/C_800B.jpg'
Pic[39] = 'IMAGES/SlideShow/C_900B.jpg'
Pic[40] = 'IMAGES/SlideShow/C_1100B.jpg'
Pic[41] = 'IMAGES/SlideShow/C_1200B.jpg'
Pic[42] = 'IMAGES/SlideShow/D_1000.jpg'
Pic[43] = 'IMAGES/SlideShow/D_860.jpg'

// =======================================
// do not edit anything below this line
// =======================================

isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
isHot=false;

function ddInit(e){
  topDog=isIE ? "BODY" : "HTML";
  whichDog=isIE ? document.all.theLayer : document.getElementById("theLayer");  
  hotDog=isIE ? event.srcElement : e.target;  
  while (hotDog.id!="titleBar"&&hotDog.tagName!=topDog){
    hotDog=isIE ? hotDog.parentElement : hotDog.parentNode;
  }  
  if (hotDog.id=="titleBar"){
    offsetx=isIE ? event.clientX : e.clientX;
    offsety=isIE ? event.clientY : e.clientY;
    nowX=parseInt(whichDog.style.left);
    nowY=parseInt(whichDog.style.top);
    ddEnabled=true;
    document.onmousemove=dd;
  }
}

function dd(e){
  if (!ddEnabled) return;
  whichDog.style.left=isIE ? nowX+event.clientX-offsetx : nowX+e.clientX-offsetx; 
  whichDog.style.top=isIE ? nowY+event.clientY-offsety : nowY+e.clientY-offsety;
  return false;  
}

function ddN4(whatDog){
  if (!isN4) return;
  N4=eval(whatDog);
  N4.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
  N4.onmousedown=function(e){
    N4.captureEvents(Event.MOUSEMOVE);
    N4x=e.x;
    N4y=e.y;
  }
  N4.onmousemove=function(e){
    if (isHot){
      N4.moveBy(e.x-N4x,e.y-N4y);
      return false;
    }
  }
  N4.onmouseup=function(){
    N4.releaseEvents(Event.MOUSEMOVE);
  }
}

function hideMe(){
  if (isIE||isNN) whichDog.style.visibility="hidden";
  else if (isN4) document.theLayer.visibility="hide";
}

function showMe(){
  if (isIE||isNN) whichDog.style.visibility="visible";
  else if (isN4) document.theLayer.visibility="show";
}

document.onmousedown=ddInit;
document.onmouseup=Function("ddEnabled=false");

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)";
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
      document.images.SlideShow.filters.blendTrans.Apply();      
   }
   if (!isN4) document.images.SlideShow.src = preLoad[j].src;
   if (isN4) document.layers['theLayer'].document.images['SlideShow'].src = preLoad[j].src;
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play();
   }
   j = j + 1;
   if (j > (p-1)) j=0;
   t = setTimeout('runSlideShow()', slideShowSpeed);
}

