var DHTML = (document.getElementById || document.all || document.layers);

$(document).ready(function() {
	$('div.demo-show:eq(0)> div').hide(); 
	$('div.demo-show:eq(0)> h3').click(function() {
	$(this).next().slideToggle('fast');
	switchImage(whichid);
	});
});

function switchImage(whichid) {
	if (!DHTML) return;
	imagesrc = document.images[whichid].src;
		if (imagesrc.indexOf("Open")!=-1) {
		document.images[whichid].src = "/images/boxClosed.jpg";
	} else {
		document.images[whichid].src = "/images/boxOpen.jpg";
	}
}

var state = 'none';

function showhide(layer_ref) {

if (state == 'block') {
state = 'none';
}
else {
state = 'block';
}
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.display = state");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[layer_ref].display = state;
}
if (document.getElementById &&!document.all) {
hza = document.getElementById(layer_ref);
hza.style.display = state;
}
} 