   
    if (typeof (jQuery) != "undefined"){
        
        // Prevent naming conflict with prototype
        var $jq = jQuery.noConflict();
        
				var ddSpeed = 500; 
				var ddDelay = 500;
				var ddInt; 
				var ddRef; 
				var ddBlock; 
				var ddHeight; 
				function ddClose() {
					ddRef.find('.dd-dropdown').stop();
					ddRef.find('.dd-dropdown').animate({height: '0px'}, ddSpeed, 'swing', function() {
							ddRef.removeClass('active');
							ddRef.parent().find('li.last').addClass('active');
							$jq(this).find('.dd-block').css({display:'none'});
					});
					clearInterval(ddInt);			
				}
				function ddOpen() {
					ddHeight = ddRef.find('.dd-block').height() + 'px';
					ddRef.find('.dd-dropdown').stop();
					ddRef.find('.dd-dropdown').animate({height: ddHeight}, ddSpeed, 'swing').find('div').css({display:'block'});
					ddRef.find('.dd-block').hover(function() {
							clearInterval(ddInt);
						}, function() { 
							clearInterval(ddInt);
							ddInt = setInterval(ddClose,ddDelay);	
					});
					clearInterval(ddInt);
				}
				
				var accIntSize = null; var accCont; var accCanvas;
				function accSetHeight() {
                    var h = accCont.height();
                    if(accCont.is('.aaa-block-startpage')) {
                        h = h - 266; // Height of billboard        
                    }
                    accCanvas.height(h+25+'px');

                    if (accIntSize) {
                        clearInterval(accIntSize);
                        accIntSize = null;
                        
                    }
                }

				
				// Document ready 
				$jq(document).ready(function() {
				
				accCont = $jq('#acc-container'); // Id on container
                accCanvas = $jq('#acc-canvas'); // Id on empty conatainer
                $jq('.acc-head span').click(function() {            
                    accIntSize = setInterval(accSetHeight,1000);
                });

				
				//Navigation and logo-tabs
				$jq('.dd-init').hover(function() { 						
							if(ddRef!=undefined) {
								ddRef.find('.dd-dropdown').stop();
								ddRef.find('.dd-dropdown').animate({height: '0px'}, ddSpeed, 'swing');
							}
							clearInterval(ddInt);
							ddRef = $jq(this).parent();
							ddRef.parent().find('li').removeClass('active');
							ddRef.addClass('active');
							ddInt = setInterval(ddOpen,ddDelay);
						}, function() {
							clearInterval(ddInt); 
							ddInt = setInterval(ddClose,ddDelay); 
					});
					
					// TABS
					// vars tabs
					var tabContainers = $jq('div.teaser-tabs > div');
					// hide all, show the first
					tabContainers.hide().filter(':first').show();
					// show hide when clicking a tab
					$jq('div.teaser-tabs ul.tsr-nav a').click(function() {
						// hides all, shows the clicked one
						tabContainers.hide().filter(this.hash).show();
						// remove active class on all tabs
						$jq('div.teaser-tabs ul.tsr-nav a').parent().removeClass('active');
						// adds active class on tab
						$jq(this).parent().addClass('active');
						return false;
					}).filter(':first').click();			
					
				}); // end document ready
      }  