/**
 * @author christopher
 */

 var RecentGallery = {
 	
	galleries: [
		{ "photos": 0 }
	],
	
	GalleryRoot: "http://gallery.bonnevillecincinnati.com/",
	photo_box: 0,
	
	// <div class="Pic_Vid_container">
	// 		<img src="/media/gallery/photo/1.jpg"> 
	// 		<div class="Pic_Vid_text">B-105 at Big's in Harrison</div>
	// </div>
	
	init: function() {
		this.photo_box = getElement("photo_box");
		for(var i=0;i<this.galleries.photos.length;i++) {
			var g = this.galleries.photos[i];
			
			var img = Element("img");
			img.src = this.GalleryRoot + g.thumb;
			
			var t = FilledElement("div",g.title,"Pic_Vid_text");
			
			var d = FilledElement("div",[ img, t ], "Pic_Vid_container");
			
			var a = FilledElement("a",d);
			a.href = "/Gallery/Grid/" + g.title;
			
			this.photo_box.appendChild(a);
		}
	}
 }

 
 function Init_RecentGallery() {
 	RecentGallery.init();
 }

