$(function(){
	$pt = $('#periodicTable');
	$ptLi = $pt.children('ul').children('li')
	$ptButton = $ptLi.children('input');
	$ptLink =  $ptLi.children('a');
	$ptButton.click(function(){	

		//return false;

	});

	$ptLink.click(function(){
		$ptLi.removeClass('currentElement');
		$(this).parent().addClass('currentElement');
		$(this).prev('input').trigger('click');
		return false;
	});
	
	us = $('#upcomingSteps');
	if(us.length){
		us.children('div').children('div').children('h4').children('a').click(function(){
			if($(this).closest('div.step').hasClass('complete')){
				$(this).closest('div.step').removeClass('complete').children('input').attr('checked','');	
			}else{
				$(this).closest('div.step').addClass('complete').children('input').attr('checked','checked');
			}
			return false;
		});
	}

	$(window).load(function(){
			$('div.form select').next('label').removeClass('select');
		});
		
		
});

