
$(document).ready(function(){

	$(".menu2 a").append("<em></em>");
	
	$(".menu2 a").hover(function() {
		$(this).find("em").animate({opacity: "show", top: "-75"}, "slow");
		var hoverText = $(this).attr("title");
	         $(this).find("em").text(hoverText);
	}, function() {
		$(this).find("em").animate({opacity: "hide", top: "-85"}, "fast");
	});

$('#s2').cycle({ 
    fx:       'scrollVert', 
    easing:   'elasinout',
    speed:    1200,
    random:   1,
    timeout:  7000,
    prev:     '#prev3',
    next:     '#next3'
});

$('#s3').cycle({
    fx: 'scrollHorz', 
    easeIn:   'easeInQuad',
    easeOut:  'easeInExpo',
    random:   1,
    speed:    1200,
    timeout:  10000,
    pause:    3, 
    prev:     '#prev2',
    next:     '#next2'
});


$(function() {
	$('.online2print a').lightBox({fixedNavigation:true});
	$('.youngleader a').lightBox({fixedNavigation:true});
	$('.photogen a').lightBox({fixedNavigation:true});
	$('.sonne a').lightBox({fixedNavigation:true});
	$('.sonne2 a').lightBox({fixedNavigation:true});
	$('.screendesign1 a').lightBox({fixedNavigation:true});
	$('.screendesign2 a').lightBox({fixedNavigation:true});
	$('.hotel a').lightBox({fixedNavigation:true});
        $('#newsletter a').lightBox({fixedNavigation:true});	
});


/* CONFIGURATION TABS */

$(function() {

                $('#container-1').tabs();
                $('#container-2').tabs(2);
                $('#container-3').tabs({ fxSlide: true });
                $('#container-4').tabs({ fxFade: true, fxSpeed: 'fast' });
                $('#container-5').tabs({ fxSlide: true, fxFade: true, fxSpeed: 'normal' });
                $('#container-6').tabs({
                    fxFade: true,
                    fxSpeed: 'fast',
                    onClick: function() {
                        alert('onClick');
                    },
                    onHide: function() {
                        alert('onHide');
                    },
                    onShow: function() {
                        alert('onShow');
                    }
                });
                $('#container-7').tabs({ fxAutoHeight: true });
                $('#container-8').tabs({ fxShow: { height: 'show', opacity: 'show' }, fxSpeed: 'normal' });
                $('#container-9').tabs({ remote: true });
                $('#container-10').tabs();
                $('#container-11').tabs({ disabled: [3] });

                $('<p><a href="#">Disable third tab<\/a><\/p>').prependTo('#fragment-28').find('a').click(function() {
                    $(this).parents('div').eq(1).disableTab(3);
                    return false;
                });
                $('<p><a href="#">Activate third tab<\/a><\/p>').prependTo('#fragment-28').find('a').click(function() {
                    $(this).parents('div').eq(1).triggerTab(3);
                    return false;
                });
                $('<p><a href="#">Enable third tab<\/a><\/p>').prependTo('#fragment-28').find('a').click(function() {
                    $(this).parents('div').eq(1).enableTab(3);
                    return false;
                });

            });
/* END TABS */


});


