 $(document).ready(function(){

   $("#load_div").hide();
   
   $("#load_div").ajaxStart(function() { $(this).show(); });
   $("#load_div").ajaxStop(function() { $(this).hide(); });
   
   


 
   $("#dia_eins").dialog({
   autoOpen: false,
   modal: true,
   resizable: false,
   width: 550,
   height: 330

   });
  });
  
function codeschutz_kontext(){
if (document.getElementById) {
      window.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
      document.getElementById("content").onmousedown = kein_kontext;
      document.getElementById("content").onmouseup = kein_kontext;
   }
}

function kein_kontext(e) {
 if (document.getElementById) {
      if (e.which >= 2) {
         openEinstellungen();
         return false;
      }
   } else {
      return true;
   }
}

function openEinstellungenSeite(data)
 {

 $(document).ready(function(){
 
 
  $("#dia_eins").dialog("option", "title", "Einstellungen");
  $("#dia_eins").html(data);
  $("#EditSeiteSubmit").hide();
  $("#dia_eins").dialog( "option", "buttons", { "Close": function() { $(this).dialog("close"); },
  "Speichern": function() {
   //EditSeite();
    document.getElementById("EditSeiteSubmit").click();
	} } );
	
$("#dia_eins").dialog("open");

  });
 }
 
 function EditSeite()
 {

$(document).ready(function() { 

    $('#formEditSeite').ajaxForm({ 
 
        target: '#meldungEditSeite', 
		
        success: function() { 
            $('#meldungEditSeite').fadeIn('slow'); 
        } 
    }); 
});
}



function EditConfig()
 {
$(document).ready(function() { 

    $('.formConfig').ajaxForm({ 
 
        target: '#meldungConfig', 
		
        success: function() { 
            $('#meldungConfig').fadeIn('slow'); 
        } 
    }); 
});

}



