/* GENERAL FUNCTIONS
-----------------------------------------------------*/
(function($) {
	function currentSection() {
		var loc = String(window.location).split('/');
		if(!loc[3]) loc[3] = '/';
		$("#head ul li a").each(function() {
			var h = this.href.split('/')[3];
			if((h && loc[3].indexOf(h)==0) || (loc[3]=='/' && !h)) $(this).parent().addClass('selected');
		});
	}
		  
	$(document).ready(function() {
		currentSection();
		$("tbody tr").filter("tr:odd").addClass("odd").end().filter("tr:even").addClass("even"); 				// TABLE STRIPING	
		$("a[@href^='http://'],a[@href$='.doc'],a[@href$='.pdf'],a[@href$='.jpg']").attr("target", "_blank");	// EXTERNAL LINKS IN NEW WINDOW
	});
})(jQuery);