slideshow.create = function( name, shouldPlay, imgName, textid, textid2 ){
	slideshow.show = slideshow.all[name];
	
	slideshow.show.image = document.images[imgName];
	slideshow.show.textid = textid;
	slideshow.show.textid2 = textid2;
	
	readHash(location.hash, shouldPlay);
}


slideshow.prototype.post_update_hook = function(){
	var imgLink = this.image.parentNode;
	if( imgLink ){
		imgLink.href = "http://gage.he.net/~woodvill/z_views/Slideshow.php?slideshow=" + this.name.substring("slideshow.all.".length) + "#" + this.current;
		
	}
	
}

//----------INITIALIZATION------------------
function readHash(hash, shouldPlay){
  slideshow.show.update(); 

  var initSlide = 0;
  if( hash ){
	hash = hash.substring( hash.indexOf("#") + 1 );
	
	initSlide = parseInt( hash );
	
	if( isNaN(initSlide) ){
		initSlide = 0;
	}	
  }
 
  slideshow.show.goto_slide(initSlide);
  if( shouldPlay ){
	slideshow.show.play();
  }
  else{
	slideshow.show.pause();
  }
}


slideshow.all = {}
//----------VILLAGE------------------
slideshow.all.village = new slideshow("slideshow.all.village");

s = new slide();
s.src =  "http://gage.he.net/~woodvill/z_img/village_shop.jpg";
s.text = "Woodinville Village will give you a whole new way to shop for necessities and luxuries. Unique boutique shops and national retail stores will beckon along inviting pedestrian walkways that wind through the Village and converge around a central public courtyard. There will be plenty of places to rest your feet and plan your next stop.<br /><br /><br /><br /><br />";
slideshow.all.village.add_slide(s);

s = new slide();
s.src =  "http://gage.he.net/~woodvill/z_img/village_dine.jpg";
s.text = "If all that shopping works up an appetite, Woodinville Village will give you ample opportunity to refuel, whether it?s with coffee and a muffin, wine and cheese, or something more substantial. Our restaurants will run the gamut from casual family fare to formal elegance.<br /><br /><br /><br /><br /><br /><br />";
slideshow.all.village.add_slide(s);

s = new slide();
s.src =  "http://gage.he.net/~woodvill/z_img/village_people.jpg";
s.text = "Woodinville Village will be scaled for human interaction, with walkways and gathering spaces reminiscent of central town plazas in the villages of Europe. An amphitheatre will house summer concerts, and the central plaza will have plenty of sunshine (when Mother Nature cooperates) and seating. Lush landscaping and the natural beauty of the area will provide a four-season backdrop to it all. The public spaces within the Village will seamlessly link to the existing trails, field and amenities on the other side of the Valley.";
slideshow.all.village.add_slide(s);

//----------RESIDENCES------------------
slideshow.all.living = new slideshow("slideshow.all.living");
s = new slide();
s.linkID = "link0";
s.src =  "http://gage.he.net/~woodvill/z_img/view_winter_1_sm.jpg";
s.title = "Winter";
s.text = "Woodinville Village has been master-planned to give residences the best sight lines to take in the surrounding splendor.<br /><br /><br />";
slideshow.all.living.add_slide(s);

s = new slide();
s.linkID = "link0";
s.src =  "http://gage.he.net/~woodvill/z_img/view_winter_2_sm.jpg";
s.title = "Winter";
s.text = "Woodinville Village has been master-planned to give residences the best sight lines to take in the surrounding splendor.<br /><br /><br />";
slideshow.all.living.add_slide(s);

s = new slide();
s.linkID = "link1";
s.src =  "http://gage.he.net/~woodvill/z_img/view_spring_1_sm.jpg";
s.title = "Spring";
s.text = "Incredible views of the Sammamish River Valley, Mount Rainier, and the rolling hills of neighboring communities are right out your window.<br /><br />";
slideshow.all.living.add_slide(s);

s = new slide();
s.linkID = "link1";
s.src =  "http://gage.he.net/~woodvill/z_img/view_spring_2_sm.jpg";
s.title = "Spring";
s.text = "Incredible views of the Sammamish River Valley, Mount Rainier, and the rolling hills of neighboring communities are right out your window.<br /><br />";
slideshow.all.living.add_slide(s);

s = new slide();
s.linkID = "link2";
s.src =  "http://gage.he.net/~woodvill/z_img/view_summer_1_sm.jpg";
s.title = "Summer";
s.text = "Sunsets, kayaks meandering along the river and Mount Rainier dominating the skyline are favorite sights of summer.<br /><br /><br />";
slideshow.all.living.add_slide(s);

s = new slide();
s.linkID = "link2";
s.src =  "http://gage.he.net/~woodvill/z_img/view_summer_2_sm.jpg";
s.title = "Summer";
s.text = "Sunsets, kayaks meandering along the river and Mount Rainier dominating the skyline are favorite sights of summer.<br /><br /><br />";
slideshow.all.living.add_slide(s);

s = new slide();
s.linkID = "link3";
s.src =  "http://gage.he.net/~woodvill/z_img/view_fall_1_sm.jpg";
s.title = "Fall";
s.text = "Watch the leaves change and enjoy the fresh air. You simply won?t find another project in the Pacific Northwest with such a unique balance of urban energy and natural serenity.";
slideshow.all.living.add_slide(s);

s = new slide();
s.linkID = "link3";
s.src =  "http://gage.he.net/~woodvill/z_img/view_fall_2_sm.jpg";
s.title = "Fall";
s.text = "Watch the leaves change and enjoy the fresh air. You simply won?t find another project in the Pacific Northwest with such a unique balance of urban energy and natural serenity.";
slideshow.all.living.add_slide(s);


//----------RETAIL------------------
slideshow.all.retail = new slideshow("slideshow.all.retail");

s = new slide();
s.linkID = "link0";
s.src =  "http://gage.he.net/~woodvill/z_img/retail_location_sm.jpg";
s.title = "Location";
s.text = "Woodinville Village is sited on 24 acres minutes from Seattle and Bellevue and fronting the area?s main arterial, Highway 202. Average daily traffic on Highway 202 is over 25,000 and is increasing dramatically with new highway enhancements.";
slideshow.all.retail.add_slide(s);

s = new slide();
s.linkID = "link1";
s.src =  "http://gage.he.net/~woodvill/z_img/retail_demo_sm.jpg";
s.title = "Demographics";
s.text = "Woodinville Village is within easy reach of 6 out of 10 of the wealthiest zip codes in the Puget Sound region, in addition to being in the heart of one of the most popular tourist districts in the Pacific Northwest.<br /><br /><br />";
slideshow.all.retail.add_slide(s);

s = new slide();
s.linkID = "link2";
s.src =  "http://gage.he.net/~woodvill/z_img/retail_quality_sm.jpg";
s.title = "Quality";
s.text = "The master plan for the development includes over 150,000 square feet of retail and commercial space. Plans and materials are of the highest quality and are designed to create the ideal backdrop for your brand.<br /><br />";
slideshow.all.retail.add_slide(s);

//----------MAPS------------------
slideshow.all.maps = new slideshow("slideshow.all.maps");
s = new slide();
s.src =  "http://gage.he.net/~woodvill/z_img/maps_regional.gif";
s.text = "<br />";
s.text2 = "<h2>Puget Sound Map</h2><div class=\"locMapFrameLinksPuget\"><a href=\"javascript:openwindow3()\">Print Map</a></div>";
slideshow.all.maps.add_slide(s);

s = new slide();
s.src =  "http://gage.he.net/~woodvill/z_img/maps_local.gif";
s.text = "<h2>Key</h2><table width=\"150\" cellpadding=\"0\" cellspacing\"0\"><tr valign=\"top\"><td><img src=\"http://gage.he.net/~woodvill/z_img/key_dot_red.jpg\" alt=\"\" /></td><td><b>Wine &amp; Dine</b></td></tr><tr valign=\"top\"><td>1.</td><td>Chateau Ste. Michelle Winery</td></tr><tr valign=\"top\"><td>2.</td><td>Redhook Ale Brewery</td></tr><tr valign=\"top\"><td>3.</td><td>Columbia Winery</td></tr><tr valign=\"top\"><td>4.</td><td>Purple Caf? and Wine Bar</td></tr><tr valign=\"top\"><td>5.</td><td>Willows Lodge and Barking Frog Restaurant/The Herbfarm Restaurant</td></tr><tr valign=\"top\"><td>6.</td><td>Silver Lake Winery</td></tr><tr valign=\"top\"><td>7.</td><td>Armadillo BBQ</td></tr><tr valign=\"top\"><td>8.</td><td>Facelli Winery</td></tr><tr valign=\"top\"><td><img src=\"http://gage.he.net/~woodvill/z_img/key_dot_grn.jpg\" alt=\"\" /></td><td><b>Shop</b></td></tr><tr valign=\"top\"><td>9.</td><td>Molbak?s</td></tr><tr valign=\"top\"><td>10.</td><td>Woodinville Farmers Market</td></tr><tr valign=\"top\"><td>11.</td><td>Top Food</td></tr><tr valign=\"top\"><td>12.</td><td>QFC</td></tr><tr valign=\"top\"><td><img src=\"http://gage.he.net/~woodvill/z_img/key_dot_pink.jpg\" alt=\"\" /></td><td><b>Play</b></td></tr><tr valign=\"top\"><td>13.</td><td>Hollywood Schoolhouse</td></tr><tr valign=\"top\"><td>14.</td><td>Woodinville Athletic Club</td></tr><tr valign=\"top\"><td>15.</td><td>Loews Cineplex</td></tr><tr valign=\"top\"><td>16.</td><td>DeYoung Park</td></tr></table>";
s.text2 = "<h2>Local Area Map</h2><div class=\"locMapFrameLinksLocal\"><a href=\"javascript:openwindow2()\">Print Map</a></div>";
slideshow.all.maps.add_slide(s);

s = new slide();
s.src =  "http://gage.he.net/~woodvill/z_img/map_village.gif";
s.text = "<h2>Key</h2><table width=\"150\"><tr valign=\"top\"><td><img src=\"http://gage.he.net/~woodvill/z_img/key_or.gif\" alt=\"\" /></td><td>Restaurants</td></tr><tr valign=\"top\"><td><img src=\"http://gage.he.net/~woodvill/z_img/key_pink.gif\" alt=\"\" /></td><td>Wineries</td></tr><tr valign=\"top\"><td><img src=\"http://gage.he.net/~woodvill/z_img/key_grn.gif\" alt=\"\" /></td><td>Townhomes</td></tr><tr valign=\"top\"><td><img src=\"http://gage.he.net/~woodvill/z_img/key_yel.gif\" alt=\"\" /></td><td>Residential condominiums over ground floor retail</td></tr><tr valign=\"top\"><td><img src=\"http://gage.he.net/~woodvill/z_img/key_red.gif\" alt=\"\" /></td><td>Residential lofts over ground floor retail</td></tr><tr valign=\"top\"><td><img src=\"http://gage.he.net/~woodvill/z_img/key_blue.gif\" alt=\"\" /></td><td>Hotel over ground floor retail</td></tr><tr valign=\"top\"><td><img src=\"http://gage.he.net/~woodvill/z_img/key_gray.gif\" alt=\"\" /></td><td>Future phase</td></tr></table>";
s.text2 = "<h2>Woodinville Village Map</h2><div class=\"locMapFrameLinks\"><a href=\"javascript:openwindow1()\">Print Map</a></div>";
slideshow.all.maps.add_slide(s);

//----------ABOUT AERIAL PHOTOS------------------
slideshow.all.aerial = new slideshow("slideshow.all.aerial");

s = new slide();
s.linkID = "link0";
s.src =  "http://gage.he.net/~woodvill/z_img/aerial_5-15-07_sm.jpg";
s.title = "5-15-07";
slideshow.all.aerial.add_slide(s);


s = new slide();
s.linkID = "link1";
s.src =  "http://gage.he.net/~woodvill/z_img/aerial_2-16-07_sm.jpg";
s.title = "2-16-07";
slideshow.all.aerial.add_slide(s);

s = new slide();
s.linkID = "link2";
s.src =  "http://gage.he.net/~woodvill/z_img/aerial_1-20-07_sm.jpg";
s.title = "1-20-07";
slideshow.all.aerial.add_slide(s);

s = new slide();
s.linkID = "link3";
s.src =  "http://gage.he.net/~woodvill/z_img/aerial_12-16-06_sm.jpg";
s.title = "12-16-06";
slideshow.all.aerial.add_slide(s);

s = new slide();
s.linkID = "link4";
s.src =  "http://gage.he.net/~woodvill/z_img/aerial_11-14-06_sm.jpg";
s.title = "11-14-06";
slideshow.all.aerial.add_slide(s);

s = new slide();
s.linkID = "link5";
s.src =  "http://gage.he.net/~woodvill/z_img/aerial_10_22_06_sm.jpg";
s.title = "10-22-06";
slideshow.all.aerial.add_slide(s);

s = new slide();
s.linkID = "link6";
s.src =  "http://gage.he.net/~woodvill/z_img/aerial_08_15_06_sm.jpg";
s.title = "08-15-06";
slideshow.all.aerial.add_slide(s);

s = new slide();
s.linkID = "link7";
s.src =  "http://gage.he.net/~woodvill/z_img/aerial_7-24-06_sm.jpg";
s.title = "7-24-06";
slideshow.all.aerial.add_slide(s);

s = new slide();
s.linkID = "link8";
s.src =  "http://gage.he.net/~woodvill/z_img/aerial_6-18-06_sm.jpg";
s.title = "6-18-06";
slideshow.all.aerial.add_slide(s);



