/**
 * @namespace WorkingEdge.Projects
 * 
 * Dynamic filtering of projects by technologies
 */
if (typeof(WorkingEdge) == "undefined"){WorkingEdge = {};};
WorkingEdge.Projects = {
	/**
	 * @method init
	 * 
	 * Initialises listener for clicks on technology selector options
	 */
	init: function(){
		$('#tech-select').bind('change', WorkingEdge.Projects.onClickOption);
		$('a.lightbox').lightBox();
	},
	
	/**
	 * @method onClickOption
	 * 
	 * Called on clicking an option in the technology selector. Submits the form.
	 * 
	 * @param {Object} e - click event
	 */
	onClickOption: function(e){
		$('#technologies').submit();
	}
};
// Add onload listener
$(document).ready(WorkingEdge.Projects.init);

