/**
 * @author christopher
 */

 var ContextTabs = {
 	tabs: [
		"upcomingevents",
		"featureddining"
	],
	
	root: "/media/structure/",
	
	activate: function(who) {
		for(var i=0;i<this.tabs.length;i++) {
			var t = this.tabs[i];
			if (t != who) {
				var e = "contextTab_" + t;
				var off_img = this.root + "title_" + t + "_off.png";
				getElement(e).src = off_img;
				var box = "contextInfoBox_" + t;
				hide(box);
			}
		}
		getElement("contextTab_" + who).src = this.root + "title_" + who + ".png";
		show("contextInfoBox_" + who);
	}
 }
