
function cswitch(active)
{
	$('.menu a').removeClass('active');
	$('#m'+active).addClass('active');
	$('html, body').animate({scrollTop:0}, 'normal', function ()
		{
			$('#rightcolumn').fadeOut('normal', function ()
					{
						$('.content').hide();
						//window.scrollTo(0,0);
						$('#c'+active).show();
						$('.next').show();
						$('#rightcolumn').fadeIn('normal', function ()
							{
								if (jQuery.browser.msie)
								{
		        			this.style.removeAttribute('filter');
		        		}
		        	});
						});
		});
}

function cnext()
{
actId = $('.active').attr('id');
cswitch(parseInt(actId.substr(1))+1);
}

function call()
{
	$('.content').hide()
	$('.core').show()
	$('.next').hide();
	$('.menu a').removeClass('active');
}


$(document).ready(function(){
	if ( $.cookie('previously') == null)  { 
		tb_show('RIGHTALK', 'home.html?keepThis=true&TB_iframe=true&height=500&width=500', null);
	}
$.cookie('previously', 'yes', { expires: 7 }); // set cookie with an expiration date seven days in the future
});

