$(document).ready(function(){
	$('#Section1home').click(function(){
		$('#Certification_Box_Right_middle').animate({opacity: 0}, 500,'',function(){
			$('.Opt1').show();
			$('.Opt2').hide();
			$('.Opt3').hide();
		} ).animate({opacity: 1}, 500);
		
		$('#Certification_Box_Right_top_options a').removeClass('Selected');
		$(this).addClass('Selected');
		return false;
	});
	
	$('#Section2home').click(function(){
		$('#Certification_Box_Right_middle').animate({opacity: 0}, 500,'',function(){
			$('.Opt1').hide();
			$('.Opt2').show();
			$('.Opt3').hide();
		} ).animate({opacity: 1}, 500);
		
		$('#Certification_Box_Right_top_options a').removeClass('Selected');
		$(this).addClass('Selected');
		return false;
	});

	$('#Section3home').click(function(){
		$('#Certification_Box_Right_middle').animate({opacity: 0}, 500,'',function(){
			$('.Opt1').hide();
			$('.Opt2').hide();
			$('.Opt3').show();
		} ).animate({opacity: 1}, 500);
		$('#Certification_Box_Right_top_options a').removeClass('Selected');
		$(this).addClass('Selected');
		return false;
	});

	$('#Section1home').click();

	/*$('.TopLink').click(function(){
		//evt.preventDefault();
		//$('table.mainbg').scrollTop(100);
		//$(this).text($('table.mainbg').scrollTop());
		//$('html,body').animate({scrollTop:0}, 1000)
		//alert($('body').scrollTop());
		$('body').animate({scrollTop:0}, 1000);
	});*/
}); 

$(function() {
	/*$(window).scroll(function() {
		if($(this).scrollTop() != 0) {
			$('#toTop').fadeIn();	
		} else {
			$('#toTop').fadeOut();
		}
	});*/
 
	$('.TopLink').click(function() {
		$('body,html').animate({scrollTop:0},800);
	});	
});
