
//This code sets up the test resizer.
var mytextsizer=new fluidtextresizer({

                        controlsdiv: "accessTools", //id of special div containing your resize controls. Enter "" if not defined
                        targets: ["h1", "h2", "h3", "h4", "h5", "h6", "p", "ul", "td", "li", "div.bottom_menu_left", "a"], 
	                levels: 5, //number of levels users can magnify (or shrink) text
                        persist: "session", //enter "session" or "none"
                        animate: 300 });


/* This function takes in a target id in the form: "#idOfTarget" and redirects
 * the user to that target. It will also search for the nearest active link that
 * is a child of the target and put focus onto that link. Effectively letting
 * the user "tab" jump to the first link in the target.
 * Note: This function will only search for links that are CHILDREN of the target
 * itself. So target needs to be a container holding an <a> tag with an href attribute
 * set.
 */ 
function jump(target){
	
	if(location.href.substring(location.href.length-8) != target){
		window.location = location.href + target;
	}
	else{
		window.location = location.href;
	}
	target = target.substring(1); //Cut the # off from "#targetId".
	var child_anchors = document.getElementById(target).getElementsByTagName('a');
	var index = 0;
	while(index < child_anchors.length){
		if(child_anchors[index].getAttribute('href') != ""){
			child_anchors[index].focus();
			break;
		}
		index = index + 1;
	}
}


