function initRDResearch() {
	var open='';
	var i=0;
	var j=0;
	getId = document.location.href.split('#');
	open = getId[1];
	$('div.areabox .right').each(function(){
		e = $(this)
		if(e.hasClass('active') != true){ e.addClass('hidden'); }
		if(open){ e.addClass('hidden'); }
	});
	$('div.areabox .left a').each(function(){
		if (open) {		
			$(this).removeClass('active');
			$(this).addClass('hidden');
		}
	});
	$('div.areabox .right').each(function(){
		e = $(this)
		if (open && open == j) {
			e.removeClass('hidden');
			e.addClass('active');
		}	
		j++;	
	});
	$('div.areabox .left a').each(function(){
		e = $(this)
		if (open && open == i) {
			e.removeClass('hidden');
			e.addClass('active');
		}	
		i++;	
	});
	 
	$('div.areabox div.left a').each(function(){
		$(this).click( function() { 
			$('div.areabox div.left a').each(function(){
				$(this).removeClass('active');
			});
			getId = $(this).attr('href').split('#');
			$('div.areabox .right').each(function(){
				$(this).removeClass('active');
				$(this).addClass('hidden');
				if($(this).attr("id")==getId[1]) {
					$(this).removeClass('hidden');
				}
			});
			$(this).addClass('active');
			return false;
		});
	});
}

$(document).ready(function(){ 
	initRDResearch();
}); 