$('#panel_main').empty();
switch ("<%= escape_javascript(@item._type)%>") {
	case 'Link': 
		$('#panel_main').append("<%= escape_javascript(render(:partial => 'admin/links/show')) %>");
		break;
  case 'Page': 
		$('#panel_main').append("<%= escape_javascript(render(:partial => 'admin/pages/show')) %>");
   	break;
};