// JavaScript Document
function dropdown(mySel)
{
  var myWin, myVal;
  myVal = mySel.options[mySel.selectedIndex].value;
  if(myVal)
	 {
	 if(mySel.form.target)myWin = parent[mySel.form.target];
	 else myWin = window;
	 if (! myWin) return true;
	 myWin.location = myVal;
	 }
  return false;
}

var mygallery=new simpleGallery({
	wrapperid: "showroom", //ID of main gallery container,
	dimensions: [1000, 500], //width/height of gallery in pixels. Should reflect dimensions of the images exactly   _new
	imagearray: [
		["images/188Embarcadero/188Embarcadero.jpg", "188Embarcadero.htm", "", "188 Embarcadero"],
		["images/60Spear/60Spear.jpg", "60Spear.htm", "", "60 Spear"],
		["images/Ameritrade/Ameritrade.jpg", "Ameritrade.htm", "", "Ameritrade"],
		["images/BasicAmericanFoods/BasicAmericanFoods.jpg", "BasicAmericanFoods.htm", "", "Basic American Foods"],
		["images/LaStrada/LaStrada.jpg", "LaStrada.htm", "", "La Strada"],
		["images/NewYorkLife/NewYorkLife.jpg", "NewYorkLife.htm", "", "New York Life"],	
		["images/Nintendo/Nintendo.jpg", "Nintendo.htm", "", "Nintendo"],
		["images/Shokolaat/Shokolaat.jpg", "Shokolaat.htm", "", "Shokolaat"],
		["images/Sonnenschein/Sonnenschein.jpg", "Sonnenschein.htm", "", "Sonnenschein"],
		["images/WsSalon/WsSalon.jpg", "WsSalon.htm", "", "W's Salon"]
	],
	autoplay: [true, 2500, 2], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int]
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 500, //transition duration (milliseconds)
	oninit:function(){ //event that fires when gallery has initialized/ ready to run
		//Keyword "this": references current gallery instance (ie: try this.navigate("play/pause"))
	},
	onslide:function(curslide, i){ //event that fires after each slide is shown
		//Keyword "this": references current gallery instance
		//curslide: returns DOM reference to current slide's DIV (ie: try alert(curslide.innerHTML)
		//i: integer reflecting current image within collection being shown (0=1st image, 1=2nd etc)
	}
})
