// This document is used to add styles to the pages,without requiring extraneous markup in the code
$(document).ready(function() {
	/* Add classes for www.960.gs and insert gutters for styling/padding of HTML content
	----------------------------------------------------------------------------------------------*/
		/* Insert a "gutter" div for padding 
		-----------------------------------------------------------------*/
		$("#masthead, #content, #footer, .col, #primary-content").wrapInner('<div class="gutter"></div');
	/* Add a "last" class to the last list item in unordered and ordered lists	
	----------------------------------------------------------------------------------------------*/
		$("ul li:last-child, ol li:last-child").addClass("last");
	/* Add a "hilite" class to every other row in a table
	----------------------------------------------------------------------------------------------*/
		$("table tr:nth-child(2n)").addClass("hilite");
	/* Add a "hover" class when mousing over a table row, remove the class when mousing out.
	----------------------------------------------------------------------------------------------*/
		$("table tr").hover(function() {
			$(this).addClass("hover");
			},function(){
				$(this).removeClass("hover");
			});
 });

jQuery('a.popup').live('click', function(){
	newwindow=window.open($(this).attr('href'),'','height=500,width=400');
	if (window.focus) {newwindow.focus()}
	return false;
});

