function launch( url, params ) {
  self.name = 'opener';
  var remote = window.open( url, 'remote', params );
}

function launchCentered( url, width, height, options) {
  var left = ( screen.width - width ) / 2;
  var top = ( screen.height - height ) / 2;
  var options = "top="+top+",left="+left+",width="+width+",height="+height+","+options;
  launch( url, options );
}

function loadPage(link, confirmText) {
	if(confirmText) {
		if(!confirm(confirmText))
			return false;
	}
	window.location = link;
}

/*
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			hover=0;
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
*/

$(function() {
	$(".collapsed div").hide();
	$("a.nolink").parent().children('ul').not('.nohide').hide();

	$(".collapsed h2 a").click(function() {

		$(this).parent().parent().children('div').slideToggle();
		return false;
	});


	$("a.nolink").click(function() {
		$(this).parent().children('ul').slideToggle();
		return false;
	});
	
	//Nifty("div#left,div#middle,td#right","same-height,big");
	//Nifty("div.headeri","big");
	
});