// JavaScript Document


// MOST Cufon Fontreplacements
			Cufon.replace('h1', {hover: true, textShadow: '1px 1px #41464C'});
			Cufon.replace('h2', {hover: true, textShadow: '1px 1px #41464C'});
			Cufon.replace('h3', {hover: true, textShadow: '1px 1px #41464C'});
			Cufon.replace('h4', {hover: true, textShadow: '1px 1px #41464C'});
			Cufon.replace('h5', {hover: true, textShadow: '1px 1px #41464C'});
			Cufon.replace('.title', {hover: true, textShadow: '1px 1px #41464C'});
			Cufon.replace('h6', {hover: true, textShadow: '1px 1px #41464C'});
			Cufon.replace('most_teaser', {hover: true, textShadow: '1px 1px #41464C'});
			Cufon.replace('ul.menu .menulink', {textShadow: '1px 1px #41464C'});
			Cufon.replace('#most_footer_teaser', {textShadow: '1px 1px #000'});
			Cufon.replace('.teasertitle', {textShadow: '1px 1px #000'});
			Cufon.replace('.most_dir_content_title2', {hover: true});
			Cufon.replace('#podcast h4', {hover: true, textShadow: '1px 1px #fff'});


<!--  Do not remove the lines below - otherwise the hover on menu will not work -->


												
// Font Replacements END


// Superfish DropDown Menu
				$(document).ready(function() {
			        $('ul.sf-menu').superfish({
						delay:       1500,
			            animation:   {opacity:'show'},  // fade-in and slide-down animation
            			autoArrows:  false,                           // disable generation of arrow mark-up
			            dropShadows: true                            // disable drop shadows      
			        });
			    }); 
// Superfish DropDown Menu End


// ColorBox
$(document).ready(function(){
			//Examples of how to assign the ColorBox event to elements
			$(".mostdirinit").colorbox({width:"800px",height:"720"});			
			$(".thickbox").colorbox();			
			//Example of preserving a JavaScript event for inline calls.
		});



// Beispiele Slider
	
		var theInt = null;
		var $crosslink, $navthumb;
		var curclicked = 0;
		
		theInterval = function(cur){
			clearInterval(theInt);
			
			if( typeof cur != 'undefined' )
				curclicked = cur;
			
			$crosslink.removeClass("active-thumb");
			$navthumb.eq(curclicked).parent().addClass("active-thumb");
				$(".stripNav ul li a").eq(curclicked).trigger('click');
			
			theInt = setInterval(function(){
				$crosslink.removeClass("active-thumb");
				$navthumb.eq(curclicked).parent().addClass("active-thumb");
				$(".stripNav ul li a").eq(curclicked).trigger('click');
				curclicked++;
				if( 3 == curclicked )
					curclicked = 0;
				
			}, 5000);
		};
		
		$(function(){
			
			$("#main-photo-slider").codaSlider();
			
			$navthumb = $(".nav-thumb");
			$crosslink = $(".cross-link");
			
			$navthumb
			.click(function() {
				var $this = $(this);
				theInterval($this.parent().attr('href').slice(1) - 1);
				return false;
			});
			
			theInterval();
		});


