
		$(document).ready(function() {
		
		
		// handle tab navigation in content - START
		
			// hide all tabbed content and activate just the first tab and its content
			/*if($('.csc-bulletlist-0').length>0){
			$('.csc-bulletlist-0 ~ *').hide();
			$('.csc-bulletlist-0 li:first-child a').addClass('active');
			sectionName = $('.csc-bulletlist-0 li:first-child a').attr('href').substr($('.csc-bulletlist-0 li:first-child a').attr('href').indexOf('#')+1);
			$("a[id='"+sectionName+"']:not([href]) ~ *").show();
			$("a[id='"+sectionName+"']:not([href]) ~ .csc-header").hide();
			$("a[id='"+sectionName+"']:not([href]) ~ a[id]:not([href]) ~ *").hide();
			// handle toggle of the tabs
			$('.csc-bulletlist-0 li').click(function(){
				$('.csc-bulletlist-0 li a').removeClass('active');
				$(this).children('a').addClass('active').blur();
				
				sectionName = $(this).children('a').attr('href').substr($(this).children('a').attr('href').indexOf('#')+1);
				
				$('.csc-bulletlist-0 ~ *').hide();
				$("a[id='"+sectionName+"']:not([href]) ~ *").show();
				$("a[id='"+sectionName+"']:not([href]) ~ .csc-header").hide();
				$("a[id='"+sectionName+"']:not([href]) ~ a[id]:not([href]) ~ *").hide();
				
				return false;
			});
			}
			*/
		// handle tab navigation in content -END
		
		// activate first cat-tab on pageload - START
			if($('#treeRoot li ul .active').length == 0){
				$('#treeRoot li ul li:first').addClass('active');
			}
			
			if($('.news-amenu-container strong').length==0){
				$('.news-amenu-container ul li:first a').wrapInner('<strong />');
			}
			
			$('a[onclick*=toggleview]').addClass('toggleLink');
			
		// activate first cat-tab on pageload - END

		// link addThis-News - START
		$('.news-list-container .news-list-item').each(function(i){
			var parent = $(this);
			parent.children('.addthis_toolbox').each(function(){
				$(this).children('a').attr('addthis:url',$("base").attr("href")+parent.children('h2+a').attr('href'));
				var y = $(this).children('a').attr('addthis:url');
			});
		});
		
		// link addThis-News - END

		// link addThis-Video - START
		$('.rgmediaimages-player').each(function(i){
			var parent = $(this);
			
			parent.append('<!-- AddThis Button BEGIN --><div class="addthis_toolbox addthis_default_style "><script type="text/javascript">var addthis_share ={description:\'trallala\'}</script><a class="addthis_button_facebook" addthis:url="http://ovid.sz-lab.com/index.php?id=329&tx_ttnews[tt_news]=128"></a><a class="addthis_button_twitter" addthis:url="http://ovid.sz-lab.com/index.php?id=329&tx_ttnews[tt_news]=128"></a><a class="addthis_button_email" addthis:url="http://ovid.sz-lab.com/index.php?id=329&tx_ttnews[tt_news]=128"></a><a class="addthis_button_print" addthis:url="http://ovid.sz-lab.com/index.php?id=329&tx_ttnews[tt_news]=128"></a><a class="addthis_button_compact"></a><a class="addthis_counter addthis_bubble_style"></a></div><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4e5b67c5220ec410"></script><!-- AddThis Button END -->');
			
			/*parent.children('.addthis_toolbox').each(function(){
				$(this).children('a').attr('addthis:url','http://ovid.sz-lab.com/typo3conf/ext/rgmediaimages/res/mediaplayer.swf?file=http://ovid.sz-lab.com/uploads/tx_rgmediaimages/OVID_PART01_02.flv&width=450&height=337&backcolor=0x&frontcolor=0x&lightcolor=0x&screencolor=0x&showdigits=&showicons=false&showvolume=false&volume=0&shownavigation=false&autostart=&repeat=');
				var y = $(this).children('a').attr('addthis:url');
			});*/
		});
		
		// link addThis-Video - END
		
		var date = new Date();
		var year = date.getFullYear();
		$("a[href='presse/meldungen/']").attr('href', 'presse/meldungen/?tx_ttnews[year]=' + year + '&no_cache=1');
		$("a[href='veranstaltungen/']").attr('href', 'veranstaltungen/?tx_ttnews[year]=' + year + '&no_cache=1');
		
		// some facebook and twitter icons for the home page
		if($('h1.csc-firstHeader').text() == 'WILLKOMMEN BEI OVID') {
			$('ul.navigationE0').append('<li class="followUs">Bitte folgen Sie uns auf:<br /><a title="Facebook" href="http://www.facebook.com/ovidverband" target="_blank"><img src="fileadmin/user_upload/ovid-verband.de/images/iconFacebook.gif" alt="Facebook" /></a><a title="Twitter" href="http://www.twitter.com/#!/OVIDVerband" target="_blank"><img src="fileadmin/user_upload/ovid-verband.de/images/iconTwitter.gif" alt="Twitter" /></a></li>');
		}
		
		});
