/*Menü by SH*/
$(document).ready(function() {

    $('#navi > ul > li').mouseenter(function() {
        $(this).children('ul').show();
        $(this).children('a').addClass('temphover');
    }).mouseleave(function() {
        $(this).children('ul').hide();
        $(this).children('a').removeClass('temphover');
    });



    $("a.lb").fancybox({
            'transitionIn'	:	'elastic',
            'transitionOut'	:	'elastic',
            'speedIn'		:	600,
            'speedOut'		:	200,
            'overlayShow'	:	false
    });








});



 if(window.location.host=='projekte') {
        eurl='http://'+window.location.host + "/duesseldorfcongress/arena2011";
    }
    else {
        eurl='http://'+window.location.host;
    }


$('input[name="eventswitch"]').live('click', function() {
    if($(this).val()=='1') {
        window.location.href=eurl+'/de/events/uebersicht';
    }
    else {
        window.location.href=eurl+'/de/events/uebersicht/all';
    }
});


/* switchhelper. avtivate span beside em */
$('span.eventswitchhelper').live('click', function(){
    relatedto=parseInt($(this).attr('rel'));
    $('input[name="eventswitch"]').eq(relatedto-1).attr('checked','checked');


    if(relatedto=='1') {
        window.location.href=eurl+'/de/events/uebersicht';
    }
    else {
        window.location.href=eurl+'/de/events/uebersicht/all';
    }
});




$('#l18nselarrow').live('click', function() {
   $('#l18nsel').animate({
      'height' : '69px'
   },300);
});



