/*	--	Author: Robin Nicholl
	--	Date: 2009-02-26
	--	jQuery functions enabling:
		- 'tabs' widget
		- 'expandulike' expanding divs, with + and - signs applied to prependeded <span>&nbsp;</span>
		- 'squeezebox' quasi-accordion (sections don't auto-collapse when new item clicked), with right and down arrows applied to prependeded <span>&nbsp;</span>
		*/
$(function() {
	$("#tabs").tabs();
});

function stripe_table() {
	$(".striped tr:even td").toggleClass("grey_td");
	$(".light_striped tr:even td").toggleClass("light_grey_td");
	$(".stripedrow tr:even th").toggleClass("grey_td");
	$(".stripedrow tr:even td").toggleClass("grey_td");
}

$(document).ready(function(){
	$(".expandulike-hidden").hide();
	$(".expandulike .e-clicker").prepend("<span>&nbsp;</span>");
	$(".expandulike .e-clicker").click(function(){
		$(this).toggleClass("open");
		$(this).next().toggle();
	});
	$(".squeezebox-hidden").hide();
	$(".squeezebox .s-clicker").prepend("<span>&nbsp;</span>");
	$(".squeezebox .s-clicker").click(function(){
		$(this).toggleClass("open");
		$(this).next().slideToggle("fast");
	});
	
	stripe_table();
});