
jQuery(function($) {

	//Shoutbox tt_news 
	$('#shoutbox').cycle({
	 containerResize: false,
	    fx:    'scrollRight',
	    width: 190,
	    delay: -1500,
	    pause:   1
		});
		
	$('body').append('<div id="beta"><!--beta --></div>');
	
	$("#content h2:first").css("margin-top", "0px");
	
	$(".tx-damdownloads-pi1 h2:first").removeAttr("style");
	

	/* Clickboxen für DAM Downloads */
	$('.tx-damdownloads-pi1 li').each(function() {
		if($('a[href$=pdf]', this).length > 0) {
			$(this).clickbox();
		}
	});
	
	$("a[href$='pdf']").attr('target','_blank');

	$('.ddl-file-list-item a').attr('target', '_blank');
	
	$('.boxgrid.caption').hover(function(){
		$(".cover", this).stop().animate({top:'155px'},{queue:false,duration:300});
	}, function() {
		$(".cover", this).stop().animate({top:'180px'},{queue:false,duration:300});
	});
});

function hideIntroMovie() {
	$('#c2129').hide();
	$('#c1731').show();
}


// Bookmarkfunktion

function bookmark() {
	title = jQuery("title").text();
	url = window.location;

	// Browser: Firefox
	if (window.sidebar) {
		window.sidebar.addPanel(title, url, '');
	}
	// Browser: IE
	else if( window.external) {
		window.external.AddFavorite( url, title);
	}
	// Browser: Opera
	else if(window.opera && window.print) {
		var hlpr = document.createElement('a');
		hlpr.setAttribute('href',url);
		hlpr.setAttribute('title',title);
		hlpr.setAttribute('rel','sidebar');
		hlpr.click();
	}
}
