// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 4000
 
// Duration of crossfade (seconds)
var crossFadeDuration = 3
 
// Specify the image files
var Pic = new Array() // don't touch this
var Pic2 = new Array()
// to add more images, just continue
// the pattern, adding to the array below
 
Pic[1] = '/images/topfoto/toppic_01.jpg';
Pic[0] = '/images/topfoto/toppic_03.jpg';
Pic[2] = '/images/topfoto/toppic_02.jpg';
Pic[3] = '/images/topfoto/toppic_03.jpg';
Pic[4] = '/images/topfoto/toppic_04.jpg';
Pic[5] = '/images/topfoto/toppic_05.jpg';
Pic[6] = '/images/topfoto/toppic_06.jpg';
Pic[7] = '/images/topfoto/toppic_07.jpg';
Pic[8] = '/images/topfoto/toppic_08.jpg';
Pic[9] = '/images/topfoto/toppic_09.jpg';
Pic[10] = '/images/topfoto/toppic_01.jpg';
// =======================================
// do not edit anything below this line
// =======================================
 
var t
var teller
var j = 0
 
var q = 2;
var preLoad = new Array()
 

 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();

   }

   document.images.SlideShow.src = preLoad[j].src

   
   if (document.all){

      document.images.SlideShow.filters.blendTrans.Play()

   }

    flag=0;
    j = j + 1
   if (j > (p-1)) j=0

   t = setTimeout('runSlideShow()', slideShowSpeed)
}

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 MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function bookmarksite(){
if (document.all)
window.external.AddFavorite(location.href, document.title);
else if (window.sidebar)
window.sidebar.addPanel(document.title, location.href, "")
}
