$(document).ready(function() {
	createChoice()
	generateMarkup()
	recallSettings()
 }); 

function handTabHandlers() {
	$("#handTabs li a").click(function(e) {
		e.preventDefault()
		var x= $("#handTabs li a").index(this)
		hand(x+1)
		$("#handTabs li").removeClass("here")
		$(this).parent().addClass("here")
	})
}

function skillTabHandlers() {
	$("#skillTabs li a").click(function(e) {
		e.preventDefault()
		var x=$("#skillTabs li a").index(this)
		skill(x+1)
		$("#skillTabs li").removeClass("here")
		$(this).parent().addClass("here")
	})
}

function createChoice() {
	$("ul#helpSummary").prepend(choosingOptions)
	$("ul#helpSummary").after(helpContent1)
	handTabHandlers()

if (testCSS()==1) {
		$("dl.helpTabs").after(helpContent2)
		skillTabHandlers()
	}
}