jQuery.noConflict();


jQuery(document).ready(function(){
/////////////////////////////////
//Effekte Main				   
/////////////////////////////////	


jQuery('#container').animate({
	opacity: 'toggle'
	}, 1000, function() {
  	});

jQuery("#footernavigation a, #container a, #logo h1 a").mouseover(function(){
	jQuery(this).animate({opacity: 0.6}, 500)	
	});
jQuery("#footernavigation a, #container a, #logo h1 a").mouseout(function(){
	jQuery(this).animate({opacity: 1.0}, 750)		  
			  
		
		});
			

jQuery('#slideshow .ce_gallery').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});


//jQuery('#galerie .pdf_link').insertBefore('#galerie .ce_gallery h1');
jQuery('#footernavigation').insertBefore('#footer');
jQuery('.ce_gallery h1').insertAfter('.pdf_link');

				
//INPUT LEEREN
jQuery("#suche input.text, textarea.textarea").each(function(){
	var wert = jQuery(this).val();
 
	jQuery(this)
		.focusin(function(){
			if (jQuery(this).val() == wert) {
				jQuery(this).val("");
			}
		})
		.focusout(function(){
			if (jQuery.trim(jQuery(this).val()) == "") {
				jQuery(this).val(wert);
			}
		});
});
				

//FORM LAYOUT
//jQuery('fieldset br').remove();
jQuery('.image_container').wrap('<div class="overlay" />');


jQuery('.mod_imageslider').appendTo('#container').insertBefore('#right');

//Allgemeines //
jQuery("a[hrefjQuery=.pdf]").addClass('pdf');
jQuery("a[href^=mailto]").addClass('mail');

jQuery("a[href^='http://']").attr('target','_blank').addClass('ext');

jQuery("a[rel=fancy]").fancybox({
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'titlePosition' 	: 'over',
				'overlayOpacity'  : 0.3,
				'overlayColor' : '#fff'
				
			});
			
jQuery(".mod_rss_reader h2 a, #termine a.ext").removeAttr("onclick").fancybox({
				'overlayShow'	: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'type' : 'iframe',
				'width' : '97%',
				'height' : '95%'	,
				'overlayOpacity'  : 0.3,
				'overlayColor' : '#fff'			
			});
			
			
			

jQuery('<span id="lavt">Termine</span>').insertBefore('#termine ul');
jQuery('<span id="tweet">Twitter</span>').insertBefore('#twitter ul');

jQuery('li:even').addClass('odd');

				

 });


