function showmsg(mesaj,type) {
	if(!type) type="info";
	$('#msg').hide('slow',function() {
		$('#msg').remove();	
	});
	
	$('#container').prepend(''+
	'<section id="msg" style="display:none"><div class="row"><div class="span12 columns offset2">'+
	'<div class="alert-message '+type+'">'+
	'<a class="close" href="#">&times;</a><p>'+mesaj+'</p></a>'+
	'</div></div></div></section>');
	
	$('#msg').show('slow');
	
  // Close X
  $('#msg a.close').click(function(e){
	 	e.preventDefault();
		$('#msg').hide('slow',function() {
			$('#msg').remove();	
		});
  });	
}

function showloading() {
	if($('#loading').length) $('#loading').remove();
	
	$('#container').html(''+
	'<section id="loading" style="display:none"><div class="row"><div class="span12 columns offset2 aligncenter">'+
	'<img src="/img/ajax-loader.gif" />'+
	'</div></div></section>');
	
	$('#loading').show('slow');
}

function loadingstatus(el){
	$(el).find('.iconupdate').hide();
	$(el).find('td.status').prepend('<img class="statusloader" src="/img/status-loader.gif" alt="Updating" />');	
}
function setstatus(el,status,type){
	$(el).find('.statusloader').remove();
	$(el).find('.iconupdate').show();
	//$(el).find('td.status').removeClass('success').removeClass('error').addClass(type).html('<span></span><small>'+status+'</small>').attr('title','');
}


function removeloading() {
	$('#loading').remove();	
}
