//*********************************************************
// Script: ramdass.js - Ram Dass Custom JavaScript
// Creator: A.C. Bravo
// Created: 04/17/2010
//
// Description: 
// 1. Add banner timed rotation for the six custom front page images
//
// Revision History:
//*********************************************************
// 1. Banner Rotation (<a link code commented out)
var imgCt1 = 6;
var imgs1 = new Array("http://ramdass.namastecms.com/images/front-page-slide-1.jpg","http://ramdass.namastecms.com/images/front-page-slide-2.jpg", "http://ramdass.namastecms.com/images/front-page-slide-3.jpg","http://ramdass.namastecms.com/images/front-page-slide-4.jpg", "http://ramdass.namastecms.com/images/front-page-slide-5.jpg","http://ramdass.namastecms.com/images/front-page-slide-6.jpg");
var lnks1 = new Array();
var alt1 = new Array();
var currentAd1 = 0;
function cycle1() {
	if (currentAd1 == imgCt1) {
		currentAd1 = 0;
	}
	var banner1 = document.getElementById('adBanner1');
	banner1.src=imgs1[currentAd1]
	banner1.alt=alt1[currentAd1]
	//var link1 = document.getElementById('adLink1');
	//document.getElementById('adLink1').href=lnks1[currentAd1]
	currentAd1++;
}
//window.setInterval("cycle1()",9000); - removed since we are using the FadeSlideShow now
// End of Banner Rotation

// Start of FadeSlideShow - Ram Dass images
var mygallery=new fadeSlideShow({
	wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow
	dimensions: [700, 210], //width/height of gallery in pixels. Should reflect dimensions of largest image
	imagearray: [
		["/images/front-page-slide-1.jpg", "", "", ""],
		["/images/front-page-slide-2.jpg", "", "", ""],
		["/images/front-page-slide-3.jpg", "", "", ""],
		["/images/front-page-slide-4.jpg", "", "", ""],
		["/images/front-page-slide-5.jpg", "", "", ""],
		["/images/front-page-slide-6.jpg", "", "", ""] //<--no trailing comma after very last image element!
	],
	displaymode: {type:'auto', pause:5000, cycles:0, wraparound:false},
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 1000, // was 500 - transition duration (milliseconds)
	descreveal: "ondemand",
	togglerid: ""
})

//Add code for dropdown menu

