function showUserInfo(userId){
	$.ajax({
        url: '/en/user;showInfo&ajax_form=true&userid='+userId,
        dataType: "html",
		type: 'GET',
         beforeSend: function(xhr) {xhr.setRequestHeader("Accept", "text/html");},
			success: function(data) {
			  $.prompt( data, {  buttons:{}, prefix: 'win1' }); 
			;}
      });
}


function changeSizeW(objID,newSize){
		$('#'+ objID).css("width", newSize);
}


function showBodyNews(nId){ 
		var arimg = {  up:'/images/arrow-up_16.gif', 
 					 down:'/images/arrow-down_16.gif' };
					 
		var ar	  = $("#more-" +nId + " > img").attr("src");
		
		if ( ar == arimg['down'] ){
			$("#more-" +nId + " > img").attr("src", arimg['up'] ) ;					
		
			
			var part2 = $("#part2-" +nId);
				part2.css( { height: "100%", visibility: "visible", position: "relative" } );		
		        part2.css( { padding: "5px" } );		
				part2.hide();
				part2.slideDown(300);
		} else {
			$("#more-" +nId + " > img").attr("src", arimg['down'] ) ;								
			$("#part2-" +nId).slideUp(200);			
		} 
}



var memo_postID = 0;


function setRe(postID){

	if (memo_postID > 0){
			var text = document.getElementById('text_' + memo_postID);
			text.className = "coment_text_unselect";
	}
	
	var text = document.getElementById('text_' + postID);
	text.className = "coment_text_select";
	document.getElementById('re_id').value = postID;
		
	if ( postID == memo_postID ){
		text.className = "coment_text_unselect";
		document.getElementById('re_id').value = 0;
		
	}


	if (postID != memo_postID)
		memo_postID = postID;
		
}


function PostCommentOk(v,m){
	document.location='';
}


var itemss = 0;
var drop_tree_id = 0;


function moveObjTo(){
   itemss = 0;
   selected_objects_list = "";
   
   $("input[@type=checkbox]").each(
   
		    function(){ if (this.checked==true) {
				itemss = itemss + 1; 
				selected_objects_list = selected_objects_list + "," + this.value;
			} 
		}
	);	

	if (itemss > 0)
		activateDragDrop();
}

function activateDragDrop(){
				
	$('#drag_container').html('<div class="draggable activeClass objects_item"><div class="draggable_content">' +itemss+ ' Item(s)</div></div>');			
	$('.draggable').draggable({
		helper: 'clone'
	});
		
	$(".Tree1 li > a").addClass('droppable-active')
		.droppable({
			accept: '.objects_item.activeClass',
			activeClass: 'objects_',
			hoverClass: 'droppable-hover',
			drop: function(ev, ui) {
				selectDropContainer(this.id);
			}
		});
}

function showProgress(){
	$('#lista').html('<div id="loading_status"><img src="/images/core/loading.gif"> Loading ...</div>');
}

function hideProgress(){
	$('#loading_status').hide();
}
