jQuery.fn.check = function(mode) {
   // if mode is undefined, use 'on' as default
   var mode = mode || 'on';
   
   return this.each(function() {
     switch(mode) {
       case 'on':
         this.checked = true;
         break;
       case 'off':
         this.checked = false;
         break;
       case 'toggle':
         this.checked = !this.checked;
         break;
     }
   });
 };


$(document).ready(				  				  
				  
	function() {
		/* LIGHTBOX */
		$('a[@rel*=lightbox]').lightBox();
		
		$("#markiere-alle").click(function()				
			{
				var checked_status = this.checked;
				$("input[@type'checkbox']").each(function()
				{
					this.checked = checked_status;
				});
			});

		
	}
	);

