// JavaScript Document

<!-- Auto Slideshow -->

var mygallery=new fadeSlideShow({
	wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
	dimensions: [504, 350], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: [
		["ani-header/img01.png"],
		["ani-header/img02.png"],
		["ani-header/img03.png"],
		["ani-header/img04.png"]
		
		 //<--no trailing comma after very last image element!
	],
	displaymode: {type:'auto', pause:1000, cycles:0, wraparound:false},
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 5000, //transition duration (milliseconds)
	descreveal: "always",
	togglerid: ""
});

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;
}

<!-- Auto Slideshow -->

<!-- LIGHTBOX -->

$(document).ready(function(){
			$(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'normal',slideshow:2000, autoplay_slideshow: false});
			$(".gallery:gt(0) a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'normal',slideshow:10000});
			

});

<!-- LIGHTBOX -->
