$(document).ready(init);
function init() {
	if (window.location.hash != "") {
		$('.tabtops > li').removeClass('tabshowing');
		$('.tabtops > li[rel=' + window.location.hash.substr(1) + ']').addClass('tabshowing');
	}
	$('.tabtops > li').each(function(i) { $(this).click(function () { showPaneByTab(this); });	 } );
	$('.tabtops').each(function(i) {
	  var s = $(this).children("li.tabshowing");
	  if (s.size() == 0) {
	    showPaneByTab($("li:first-child", this));
	  } else {
	    showPaneByTab(s);
	  }
	});
}
function showPaneByTab(e) {
	showPane($("#" + $(e).attr("rel")));
	$(e).parent().children().removeClass('tabshowing');
	$(e).addClass('tabshowing');
}
function showPane(selected) {
	selected.parent().children().hide();
	selected.show();
}

function showhide(divId) {
	$("#" + divId).toggle();
}
function check(msg) {
	return confirm(msg);
}