

		


		
		
		
	
	
	
		
		
	


			var startTime = 0;
	
	jQuery().ready(function() {
		jQuery('#navigation').accordion({
			active:false,
			header:'div.accslide',
			navigation:false,
			event:'click',
			autoheight:false,
			animated:'easeslide'
		});

		$('#sortable tr:odd').addClass('odd');
		$('#sortable tr:even').addClass('even');

		$('ul#slideshow').animatedinnerfade({
			speed: 1000,
			timeout: 4000,
			type: 'sequence',
			containerheight: '70px',
			containerwidth: '219px',
			animationSpeed: 5000,
			animationtype: 'fade',
			bgFrame: 'none',
			controlBox: 'none',
			displayTitle: 'none'
		});

	});

	jQuery().ready(function() {
		if (getCookie('menu') != '') $('#navigation').activate(parseInt(getCookie('menu')));	
	});
	
	function setURL(url, id) {
		setCookie('menu', id);
		document.location = url;
	}
	
	function startTimer() {
		var startDate = new Date(); 
		startTime = startDate.getSeconds() + ( startDate.getMinutes() * 60 );
		document.getElementById('starttime').value = 'Test Started';
		document.getElementById('starttime').disabled = true;
		document.getElementById('endtime').disabled = false;
	}

	function endTimer(test, words) {
		var endTime = new Date();
		endTime = endTime.getSeconds() + ( endTime.getMinutes() * 60 );
		document.getElementById('endtime').disabled = true;
		if ((endTime - startTime) == 0) { alert("No cheating!"); }
		document.location = '/index.cfm/p/pages.reading-test/test/'+ test +'/words/'+ words +'/time/' + (endTime - startTime);
	}
	

	

