	  /**
	   * Funktion, die alle Beautytips enthaelt! die funktion kann dann nach dem Laden von ajax content aufgerufen werden,
	   * um in dem Ajaxcontent auch beautytips anzeigen zu koennen. 
	   */
	  var loadEffects = function(){
	  
	/* searchbox tooltips */

	$('#SearchBoxContainerBottom input[type="text"]').bt({
		fill: 'rgba(51, 51, 51, .9)',
        cssStyles: {color: 'white', fontWeight: 'normal', width: 'auto'},
        trigger: ['focus mouseover', 'blur mouseout'],
        cornerRadius: 0,
        animate: false,
		shadow: false,
        spikeLength: 5,
        spikeGirth: 8,
        positions: ['right']
	});


	
	/* extra-tooltips, rechnungen-tooltips */

	$('.ImgTinyHeader_tip').bt({
		fill: 'rgba(51, 51, 51, .9)',
        cssStyles: {color: 'white', fontWeight: 'normal', width: 'auto'},
        trigger: ['focus mouseover', 'blur mouseout'],
        cornerRadius: 0,
        animate: false,
		shadow: false,
        spikeLength: 5,
        spikeGirth: 8,
        positions: ['top']
	});
	
	


	
	$('.standardtinyheader_tip').bt({
		fill: 'rgba(51, 51, 51, .9)',
        cssStyles: {color: 'white', fontWeight: 'normal', width: 'auto'},
        trigger: ['focus mouseover', 'blur mouseout'],
        cornerRadius: 0,
        animate: false,
		shadow: false,
        spikeLength: 5,
        spikeGirth: 8,
        positions: ['top']
	});


	
	
	/* tooltips fuer Bildmanager */
	
	// divs der einzelnen Bilder verstecken
	$('.content_thumb_div').hide();

	
	
	// fuer den hover den richtigen div zuweieden (bilder 1-4)
	$('.pic_thumb').each(function(){
		$('#'+this.id).bt({
			fill: 'rgba(51, 51, 51, .9)',
			cssStyles: {color: 'white', fontWeight: 'normal', width: '170px'},
			trigger: ['focus mouseover', 'blur'],
			closeWhenOthersOpen: true, 
			contentSelector: "$('#content_'+this.id).html()", /*get text of inner content of hidden div*/
			spikeLength: 5,
	        spikeGirth: 8,
			positions: ['top']
		});
		
	});
	
	
	/* extra-header */
	$('.ImgTinyHeader_tip').each(function(){
	
		$('.ToggleContent#Toggle_'+this.id).hide();
		$(this).toggle(function(){
		$('.ToggleContent#Toggle_'+this.id).animate({ height: 'show', opacity: 'show' }, 'slow');
			},function(){
				$('.ToggleContent#Toggle_'+this.id).animate({ height: 'hide', opacity: 'hide' }, 'slow');
		});
	});


	/* LightBulbContent-Toggle */
//	$('.LightbulbHeader').removeClass('LightbulbHeader_off');
	
	$('.LightbulbHeader').each(function(){
		
		$('.lightbulb_content#Toggle_'+this.id).hide();
		$(this).toggle(function(){
		$('.lightbulb_content#Toggle_'+this.id).animate({ height: 'show', opacity: 'show' }, 'fast');
			$(this).removeClass('LightbulbHeader_off').addClass('LightbulbHeader_on');
			},function(){
				$('.lightbulb_content#Toggle_'+this.id).animate({ height: 'hide', opacity: 'hide' }, 'fast');
				$(this).removeClass('LightbulbHeader_on').addClass('LightbulbHeader_off');

			});
	});

	

	
	
	/* fuer input felder, oben drueber standard breite */	
	$('.bt_input_click_top').bt({
		fill: 'rgba(51, 51, 51, .9)',
        cssStyles: {color: 'white', fontWeight: 'normal', width: 'auto'},
        trigger: ['click', 'blur'],
        cornerRadius: 0,
        animate: false,
		shadow: false,
        spikeLength: 5,
        spikeGirth: 8,
        positions: ['top']
	});
	

	/* fuer input felder, die haeflte der seite einnehmen und deren bts rechts daneben angezeigt werden sollen (login zb.) */	
	/* login tooltips */	
	
	$('.bt_input_click_right').bt({
		fill: 'rgba(51, 51, 51, .9)',
        cssStyles: {color: 'white', fontWeight: 'normal', width: '311px'},
        trigger: ['click', 'blur'],
        cornerRadius: 0,
        animate: false,
		shadow: false,
        spikeLength: 5,
        spikeGirth: 8,
        positions: ['right']
	});
	

	
	
	$('.anfragen_change_status').bt({
		fill: 'rgba(51, 51, 51, .9)',
        cssStyles: {color: 'white', fontWeight: 'normal', width: '150px'},
        trigger: ['focus mouseover', 'blur mouseout'],
        cornerRadius: 0,
        animate: false,
		shadow: false,
        spikeLength: 5,
        spikeGirth: 8,
        positions: ['left']
	});
	
	
	
	
	$('.p_t_cat_more').bt({
		fill: 'rgba(51, 51, 51, .9)',
        cssStyles: {color: 'white', fontWeight: 'normal', width: 'auto'},
        trigger: ['focus mouseover', 'blur mouseout'],
        cornerRadius: 0,
        animate: false,
		shadow: false,
        spikeLength: 5,
        spikeGirth: 8,
        positions: ['top']
	});
	
	

	
	$('.p_t_cat_more_add').bt({
		fill: 'rgba(51, 51, 51, .9)',
        cssStyles: {color: 'white', fontWeight: 'normal', width: '210px'},
        trigger: ['focus mouseover', 'blur mouseout'],
        cornerRadius: 0,
        animate: false,
		shadow: false,
        spikeLength: 5,
        spikeGirth: 8,
        positions: ['top']
	});
	

	$('.profil_google_map_links').bt({
		fill: 'rgba(51, 51, 51, .9)',
        cssStyles: {color: 'white', fontWeight: 'normal', width: '250px'},
        trigger: ['focus mouseover', 'blur mouseout'],
        cornerRadius: 0,
        animate: false,
		shadow: false,
        spikeLength: 5,
        spikeGirth: 8,
        positions: ['right']
	});
	
	
	//TODO: nur bei Anfragen, sonst führts zu problemen, weil sonst auf jeder seite die tablesorter.js
	//eingebunden werden müsste, um das initialisieren zu können...
	
	//tablesorter initialisieren
//	$.tablesorter.defaults.widgets = ['zebra']; 
//	$(".tablesorter").tablesorter(); 
//	
	
	
	
	
}; // function loadEffects();





















/**
 * @author Patrick Pfähler, Simon Schaper
 */

  $(function() {
	  var isFirst = true;
	  
	  $('.archivtinyreplace a').each(function(){
			
			if(!isFirst) {
				$('#archiv_'+this.id).hide();
			} else {
				isFirst = false;
			}
			
			$(this).toggle(function(){
			$('#archiv_'+this.id).animate({ height: 'show', opacity: 'show' }, 'fast');
				},function(){
					$('#archiv_'+this.id).animate({ height: 'hide', opacity: 'hide' }, 'fast');
			});
		});
	  
//	  $('.archivtinyreplace a').each(function(){
//
//			$('#archiv_' + this.id).hide();
//			$('#archiv_m12').show();
//			$(this).unbind('toggle').unbind('click'); 
//			
//			$(this).click(function(event) {
//				event.preventDefault();
//				$('#archiv_' + this.id).slideToggle('fast');
//			});
//			
//			/*$(this).toggle(function(){
//				$('#archiv_' + this.id).slideDown('fast');
//
//			}, function(){
//				$('#archiv_' + this.id).slideUp('fast');
//			});
//	        */
//		
//		});
  	

	  
	  
	  
	

	
	
	  
	  
	  
	  
	  
	  // standardmaeßig einmal beim doc.ready aufrufen... 
	  loadEffects();
		
	  // TODO: Nur bei bildmanager
	//	 $("input[type=file]").filestyle();
		 
  	
 }); //doc.ready
 



