function desplegablePerm(){
	$("#selectPerm").load("/librerias/subida.php", {accion:'desplegable'},function(){});
}

function addCont(){
	/*$("#selectPerm").fadeOut(0);
	$("#palabraClave").fadeOut(0);
	$("#nombreFoto").fadeOut(0);
	$("#permSelecText").fadeOut(0);
	$("#claveText").fadeOut(0);
	$("#nombreText").fadeOut(0);
	$("#actualizarFoto").fadeOut(0);
	$("#agreText").fadeOut(0);
	$("#actFoto").fadeOut(0);
	$("#borrarBtn").fadeOut(0);
	$("#imgInfoFoto").fadeOut(0);*/
	
	
	
	$("#palabraClave").val("");
		
			$("#agreBtn").unbind();

			//$("#agreBtnUploader").unbind();
			//$("#agreBtnUploader").bind('mouseover',function(){$('#agreText').fadeIn('normal');});
			//$("#agreBtnUploader").bind('mouseout',function(){$('#agreText').fadeOut('normal');});
			//$("#agreBtnUploader").remove();
			$("#agreBtn").uploadify({
				'uploader'       : 'upload/uploadify.swf',
				'script'         : 'upload/uploadify.php',
				'cancelImg'      : 'upload/cancel.png',
				'folder'         : "files/"+idSES+"/content",
				'queueID'        : 'resultadoSub',
				'buttonImg'		 : 'img/subirFoto.png',
				'scriptData'	 : {id:idSES},
				'fileDesc'		 : 'fichero no permitido',
				'fileExt': '*.jpg;*.jpeg;*.png;*.gif;*.doc;*.txt;*.rtf;*.csv;*.xls;*.xlsx;*.docx;*.pdf;*.avi;*.mpeg;*.mpg;*.rmv;*.mov;*.mp4;*.wmv;*.divx;*.mp3;*.wav;*.mid;*.midi;*.rar;*.zip;*.tar;*.7z;*.gzip;*.jar;*.ppt;*.pptx',
				'sizeLimit' : '20000000',
				'width'			 : '19',
				'height'		 : '19',
				'auto'           : true,
				'multi'          : true,
				'onError': function(e, queueID, fileObj, err) {
        alert('No puedes subir mas de 20 MB');
 				   },

				'onOpen'		 : function(event, queueID, fileObj, response, data) {
				
					//alert(idSES);
					$("#cuadroSubida").css({'display': 'block'});
					
					},
				'onComplete'	 :  function(event, queueID, fileObj, response, data) {
						
						$("#preCarga").load("librerias/subida.php", {file: response, texto2: $('#palabraClave').val(), accion:'subir',permiso:$('#eligePerm').val()});
							
						},
				'onAllComplete'	 : function(event, data) {
								$("#listaArch").fadeOut("normal");
								//mostrarOcultar('ocultar');
								mostrarArch('','mostrar');
						}
			});
			
	
}
