

function showHide(div)
{
	var thisstatus = document.getElementById(div).style.display;
	if(thisstatus==''){
		newstatus = 'none';
	}else{
		newstatus = '';
	}	

	document.getElementById(div).style.display = newstatus;
}

function show(div)
{
	document.getElementById(div).style.display = '';
}
function hide(div)
{
	document.getElementById(div).style.display = 'none';
}

function imgswift(theid,theimg)
{
	document.getElementById(theid).src= "/img/"+theimg;
}


$(document).ready(function(){
	
	//$(".accordion h3:first").addClass("active");
	//$(".accordion p:not(:first)").hide();
 	$(".accordion p").hide();

	$(".accordion h3").click(function(){
		$(this).next("p").slideToggle("slow")
		.siblings("p:visible").slideUp("slow");
		$(this).toggleClass("active");
		$(this).siblings("h3").removeClass("active");
	});
 
});


function setTitle(foo){
	var idToUse = foo;
 
	// The key to it all
	document.title = document.getElementById(idToUse).innerHTML+" - ScandNet";
}
