/* js for package: std-layout */
/*-----------------------------------------------------------------------------------------*/
/*      CUFON FONT REPLACEMENT         */
/*-----------------------------------------------------------------------------------------*/

Cufon.replace("#main-menu a", { fontFamily: 'The Sans Semi Bold', hover: true});
Cufon.replace('#meta-menu a', { fontFamily: 'The Sans Semi Bold', hover: true});
Cufon.replace('#sub-menu a', { fontFamily: 'The Sans Semi Bold'});
Cufon.replace('.headline .cufon', { fontFamily: 'The Sans Semi Bold'});
Cufon.replace('#search_box button', { fontFamily: 'The Sans Semi Bold'});
/*Cufon.replace('.startseiten_text .startseiten_info', { fontFamily: 'The Sans Light'});*/
Cufon.replace('.startseiten_text .startseiten_link', { fontFamily: 'The Sans Semi Bold', hover: true});
Cufon.replace('.bild_download .headline_container', { fontFamily: 'The Sans Light'});


Cufon.replace('.sub_menu_headline', { fontFamily: 'The Sans Light'});
Cufon.replace('.content-column h1', { fontFamily: 'The Sans Light'});
Cufon.replace('.content-column h2', { fontFamily: 'The Sans Light'});
Cufon.replace('.content-column h3', { fontFamily: 'The Sans Semi Bold'});
Cufon.replace('.content-column h4', { fontFamily: 'The Sans Semi Bold'});
Cufon.replace('.content-column h5', { fontFamily: 'The Sans Light'});
Cufon.replace('.content-column .start_cufon_filter', { fontFamily: 'The Sans Semi Bold'});




/*-----------------------------------------------------------------------------------------*/
/*      JQUERY        */
/*-----------------------------------------------------------------------------------------*/


$(document).ready(function() {
   	
	/*
	$("#main-menu a").each(function(){
		alert($(this).text());
	});
	*/
	
	//$("#main-menu").dropShadow({left: 2, top: 2, blur: 1, color: "#03f", opacity: 0.8});

  	$(".startseiten_teaser .headline").each(function(){
		//$(this).stop().animate({opacity:'0.3'},200); 	
	});

});



/*-----------------------------------------------------------------------------------------*/
/*      RELEASE SWITCH         */
/*-----------------------------------------------------------------------------------------*/

$(document).ready(function() {


//$('#center-column').css('margin-top', '160px');




//alert($('.api_musicticket a.qTip').find(".content").html());
$(function () {        
	$('#main-menu a.cufon_replace').each(function () {
		$(this).attr('title',$(this).text());

	});   
}); 




$(function () {
        $('#release-switchX').each(function () {
            var distance = 0;
            var time = 250;
            var hideDelay = 100;

            var hideDelayTimer = null;

            var beingShown = false;
            var shown = false;
            var trigger = $('.open', this);
            var info = $('#switch', this).css('opacity', 0);


            $([trigger.get(0), info.get(0)]).mouseover(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                if (beingShown || shown) {
                    // don't trigger the animation again
                    return;
                } else {
                    // reset position of info box
                    beingShown = true;

                    info.css({
                        /*top: 0,
                        left: 0,*/
                        display: 'block'
                    }).animate({
                        top: '-=' + distance + 'px',
                        opacity: 1
                    }, time, 'swing', function() {
                        beingShown = false;
                        shown = true;
                    });
                }

                return false;
            }).mouseout(function () {
                if (hideDelayTimer) clearTimeout(hideDelayTimer);
                hideDelayTimer = setTimeout(function () {
                    hideDelayTimer = null;
                    info.animate({
                        top: '-=' + distance + 'px',
                        opacity: 0
                    }, time, 'swing', function () {
                        shown = false;
                        info.css('display', 'none');
                    });

                }, hideDelay);

                return false;
            });
        });
});
   
}); 


/*-----------------------------------------------------------------------------------------*/
/*     Werbebanner       */
/*-----------------------------------------------------------------------------------------*/

$(document).ready(function(){

	$('.close-werbe-banner').click(function() {
		$('#werbe-banner-home').hide();
	});

});

/*-----------------------------------------------------------------------------------------*/
/*            */
/*-----------------------------------------------------------------------------------------*/




/*-----------------------------------------------------------------------------------------*/
/*            */
/*-----------------------------------------------------------------------------------------*/








