var arrReduction = new Array(); var arrTickets = new Array(); var test = 'test'; $(document).ready( function() { $('#displaymore').click( function() { $('#changedshows').show(); $('#displaymore').hide(); } ); $('#displayless').click( function() { $('#changedshows').hide(); $('#displaymore').show(); } ); $('.stadion').click( function() { //alert($(this).attr('id')); $('#ticketlist').css('display','none'); $('#showseats').css('height','1500px'); $('#showseats').css('width','990px'); strFormName = $(this).attr('id'); document.forms[strFormName].submit(); } ); $('.BtnOver').hover( function() { $(this).attr('src', $(this).attr('over')); }, function() { $(this).attr('src', $(this).attr('out')); } ); $('a.SliderLink').click( function() { thisSliderBox = $(this).parent('div.SliderBox'); thisSliderContainer = thisSliderBox.parent('div.SliderContainer'); boolSlideDown = true; if (thisSliderBox.hasClass('OpenedSlider')) { boolSlideDown = false; } thisSliderContainer.children('div.OpenedSlider').each( function() { $(this).children('div.SliderContent').slideUp( 'slow' ); $(this).removeClass('OpenedSlider'); $(this).addClass('ClosedSlider'); $(this).children('a.SliderLink').children('img').attr('src','/images/arrows/SliderArrowClosedSlider.png'); }) if (boolSlideDown) { thisSliderBox.addClass('OpenedSlider'); thisSliderBox.removeClass('ClosedSlider'); $(this).children('img').attr('src','/images/arrows/SliderArrowOpenedSlider.png'); thisSliderBox.children('div.SliderContent').slideDown( "slow" ) } }); $('.eventnavi').hover( function() { strSelectorImage = "#EVENTIMAGE_" + $(this).attr('id'); $(strSelectorImage).attr('src', '/images/de/eventnav/' + $(this).attr('over')); strSelector = '#' + $(this).attr('id') + '_NAVCONTAINER'; objPosition = $(this).position(); $(strSelector).css("left",objPosition.left + 10); intActive = 1; }, function() { strSelectorImage = "#EVENTIMAGE_" + $(this).attr('id'); $(strSelectorImage).attr('src', '/images/de/eventnav/' + $(this).attr('out')); $(strSelector).css("left",-800); } ); $('.eventcontainer').hover( function() { /* * $(this).attr('src', '/images/de/eventnav/' + $(this).attr('id') + '_a.jpg'); objPosition = $(this).position(); $(this).css("left",objPosition.left + 20); /* */ }, function() { /* * $(this).attr('src', '/images/de/eventnav/' + $(this).attr('id') + '_i.jpg'); $(strSelector).css("left",-500); /* */ } ); $('.NavLeft').mouseover( function() { $(this).css("z-index",51); }); $('.NavLeft').mouseout( function() { $(this).css("z-index",20); }); $('#breadcrumbcontainer').mouseover( function() { //$(this).css("z-index",51); }); $('#breadcrumbcontainer').mouseout( function() { //$(this).css("z-index",21); }); $('#eventnavicontainer').mouseover( function() { $('#breadcrumbcontainer').css("z-index",20); $(this).css("z-index",51); }); $('#eventnavicontainer').mouseout( function() { $('#breadcrumbcontainer').css("z-index",51); $(this).css("z-index",20); }); $('#refiningcontainer').mouseover( function() { //alert('test'); $(this).css("z-index",52); }); $('#refiningcontainer').mouseout( function() { $(this).css("z-index",21); }); $('.ticketselect').change( function() { /* * intIndexPg = arrReduction.length; arrReduction[intIndexPg] = '0'; //alert(arrReduction.length); /* */ strOptions = ''; //counter reduction pricegroup strSelector = '#StoreReductionCount_' + $(this).attr('pgindex'); intValueStorePg = parseInt($(strSelector).attr('value')); //anzahl der Preisgruppen aus Formular holen intNumberPricegroups = parseInt($('#number_pricegroups').attr('value')); //Anzahl der Reduzierungen zur Preisgruppe strSelectorNumberPricegroups = '#number_reduction_pricegroup_' + $(this).attr('pgindex'); intNumberReductions = parseInt($(strSelectorNumberPricegroups).attr('value')); //alert('intNumberReductions :' + intNumberReductions); //Anzahl der ausgewählten Tickets intValueSelect = parseInt($(this).attr('value')); //speichere gewählte Tickets. strSelectorStore = '#store_' + $(this).attr('store'); intValueStored = parseInt($(strSelectorStore).attr('value')); if(intValueStored == 0) { intValueNewPg = intValueStorePg + intValueSelect; } else { intValueNewPg = intValueStorePg + (intValueSelect - intValueStored); } $(strSelectorStore).attr('value',intValueSelect); //alert(strSelector); $(strSelector).attr('value',intValueNewPg); //alert($(strSelector).attr('value')); intFoundSelectedReductions = 0; //gehe gefundene bestellungen durch strInsert = ''; for(i = 0;i < intNumberReductions; i++) { strSelector ='#store_' + $(this).attr('pgindex') + '_' + i; strSelectorReductionId = '#reduction_id_' + $(this).attr('pgindex') + '_' + i; if($(strSelector).attr('value') != 0) { //alert('found reduction ' + $(strSelectorReductionId).attr('value')); /* * strInsert += ''; $('#store_order').html(strInsert); /* */ intFoundSelectedReductions++; } } //alert('number of reductions : ' + intFoundSelectedReductions); strSelectorReductionCount = '#StoreReductionCount_' + $(this).attr('pgindex'); $(strSelectorReductionCount).attr('value',intFoundSelectedReductions); intPriceGroupCount = 0; intPosCount = 0; for(i = 0; i < intNumberPricegroups; i++) { strSelector = '#StoreReductionCount_' + i; //alert(strSelector + ' : ' + $(strSelector).attr('value')); if($(strSelector).attr('value') != 0) { intPriceGroupCount ++; intPosCount = intPosCount + parseInt($(strSelector).attr('value')); } } //alert('PriceGroupCount : ' + intPriceGroupCount + ' - poscount : ' + intPosCount); $('#PriceGroupCount').attr('value',intPriceGroupCount); $('#poscount').attr('value',intPosCount); //alert($(strSelector).attr('value')); intTotalPrice = 0; intTotalTickets = 0; for(i = 0; i < intNumberPricegroups; i++) { strSelectorNumberPricegroupsReduction = '#number_reduction_pricegroup_' + i; intNumberReductions = parseInt($(strSelectorNumberPricegroupsReduction).attr('value')); //alert('anzahl red ' + intNumberReductions); strTypeOf = typeof(intNumberReductions); //alert(strTypeOf); if(intNumberReductions > 0) { for(j = 0; j < intNumberReductions; j++) { strSelectorPrice = '#TicketPrice_' + i + '_' + j; strSelectorTickets = '#SelTickets_' + i + '_' + j; intPrice = parseInt($(strSelectorPrice).attr('value')); intNumber = parseInt($(strSelectorTickets).attr('value')); intTotalTickets = intTotalTickets + intNumber //intTotalPrice = (intTotalPrice + intPricePosition); if( intNumber != 0) { intPricePosition = (intPrice * intNumber); //alert(intPricePosition); intTotalPrice = intTotalPrice + intPricePosition; //alert('test summe ' + intTotalPrice); } } } else { //alert('keine reduzierung'); /* * strSelectorPrice = '#TicketPrice_' + i + '_0'; strSelectorTickets = '#SelTickets_' + i + '_0'; intPrice = parseInt($(strSelectorPrice).attr('value')); intNumber = parseInt($(strSelectorTickets).attr('value')); if( intNumber != 0) { intPricePosition = (intPrice * intNumber); //alert(intPricePosition); intTotalPrice = intTotalPrice + intPricePosition; //alert('test summe ' + intTotalPrice); } /* */ } } intRemainingTickets = 10 - intTotalTickets; strCurrentSelctedValue = $(this).attr('value'); //alert('übrige ' + intRemainingTickets + ' gewählt ' + strCurrentSelctedValue + ' total gewähl' + intTotalTickets); strThisId = $(this).attr('id'); //alert($(this).children().length); //$('.ticketselect').find('option:contains(10)').remove(); //$('.ticketselect').html(strOptions); strSelector = ''; //alle preisgruppen noch mal durchgehen /* */ for(i = 0; i < intNumberPricegroups; i++) { //alle Reduzierungen strSelectorNumberPricegroupsReduction = '#number_reduction_pricegroup_' + i; intNumberReductions = parseInt($(strSelectorNumberPricegroupsReduction).attr('value')); for(j = 0; j < intNumberReductions; j++) { //alert('preisgruppe:' + i + ' - redgruppe ' + j); strOption = ''; strSelector = '#SelTickets_' + i + '_' + j; strCurrentId = 'SelTickets_' + i + '_' + j; strSelectedValue = $(strSelector).attr('value'); strFreeSeats = $(strSelector).attr('PGFreeSeats'); //alert(strSelector + ':' + strSelectedValue + ' - free seats : ' + strFreeSeats ); //selectboxen mit bereits getätigter auswahl dürfen nicht einfach neu geschrieben werden da sonst bestehende auwahl geöscht wird for(k=0;k<=intRemainingTickets;k++) { if(strSelectedValue == k) { //alert(strSelectedValue); strOption += ''; } else { strOption += ''; } if(strFreeSeats == k) { //alert('break'); break; } } //alert('curent id ' + strCurrentId + ' - ThisId ' + strThisId + ' - SelectedValue ' + strSelectedValue); if(strCurrentId != strThisId && strSelectedValue == 0) { //alert('schreibe neu ' + strSelector); $(strSelector).html(strOption); } } } /* */ floatPrice = (intTotalPrice/100).toFixed(2) strPrice = floatPrice.replace(/\./,','); if(intTotalTickets > 0) { $('#bestellung_inaktiv').hide(); $('#order').show(); $('#zwischensumme').css('visibility','visible'); $('#showprice').show(); } else { $('#bestellung_inaktiv').show(); $('#order').hide(); $('#zwischensumme').css('visibility','hidden'); $('#showprice').hide(); } $('#showprice').html('' + strPrice + ' €'); }); //var intRemainingTickets = 10; $('#order').click(function() { boolIncrement = false; if($('#order').attr('elektraconnect') == 'iframe') { $('#ticketlist').css('display','none'); $('#showseats').css('height','800px'); $('#showseats').css('width','990px'); } intNumberPricegroups = parseInt($('#number_pricegroups').attr('value')); intCounterPriceGroup = 0; //alle preisgruppen durchgehen strInsert = ''; for(i = 0; i < intNumberPricegroups; i ++) { boolIncrement = false; strSelectorNumberPricegroupsReduction = '#number_reduction_pricegroup_' + i; intNumberReductions = parseInt($(strSelectorNumberPricegroups).attr('value')); intCounterReduction = 0; strSelectorStoredReductionCount = '#StoreReductionCount_' + i; //alle reduzierungen durchghen for(j = 0; j < intNumberReductions; j++) { strSelectorNumber = '#store_' + i + '_' + j; strSelectorReductionId = '#reduction_id_' + i + '_' + j; intSelectedReductionNumber = $(strSelectorNumber).attr('value'); intSelectedReductionId = $(strSelectorReductionId).attr('value'); if(intSelectedReductionNumber != 0) { boolIncrement = true; //alert('send - found reduction id:' + intSelectedReductionId + ' - number: ' + intSelectedReductionNumber + ' indexreduction ' + intCounterReduction + ' index pricegroup: ' + intCounterPriceGroup); strInsert += ''; strInsert += ''; intCounterReduction++; } } intStoredReduction = parseInt($(strSelectorStoredReductionCount).attr('value')); //alert("anzahl gepeicherter Reduktionen:" + intStoredReduction); strSelectorStorePriceGroup = '#StorePriceGroup_' + i; intStorePriceGroup = parseInt($(strSelectorStorePriceGroup).attr('value')); if(intStoredReduction > 0) { //alert(' stored reduction xxxx : ' + intStoredReduction + ' - pricegroup: ' + intStorePriceGroup); strInsert += ''; strInsert += ''; //intCounterPriceGroup++; } else { /* * strSelectorNumber = '#store_' + i + '_0'; strSelectorReductionId = '#reduction_id_' + i + '_0'; intSelectedReductionNumber = $(strSelectorNumber).attr('value'); intSelectedReductionId = $(strSelectorReductionId).attr('value'); strInsert += ''; strInsert += ''; strInsert += ''; strInsert += ''; intCounterPriceGroup++; /* */ } if(boolIncrement == true) { intCounterPriceGroup++; } //intCounterPriceGroup++; } //alert(strInsert); $('#store_order').html(strInsert); document.order.submit(); $('#floorplan').hide(); $('#eventbox').hide(); $('#bestplatz').hide(); $('#headbooking').show(); $('#EVENTIMAGE_KONZERTE').attr('src','/images/de/eventnav/KONZERTE_i.png'); $('#EVENTIMAGE_KLASSIK').attr('src','/images/de/eventnav/KLASSIK_i.png'); $('#EVENTIMAGE_THEATER').attr('src','/images/de/eventnav/THEATER_i.png'); $('#EVENTIMAGE_SHOWS').attr('src','/images/de/eventnav/SHOWS_i.png'); $('#EVENTIMAGE_SONSTIGE').attr('src','/images/de/eventnav/SONSTIGE_i.png'); $('#EVENTIMAGE_SPORT').attr('src','/images/de/eventnav/SPORT_i.png'); vResizieIframe(); }); $('.selecthits').change(function() { document.eventlist.submit(); }); $('.saalplanbuchung').click(function() { $('#ticketlist').css('display','none'); $('#showseats').css('height','1500px'); $('#showseats').css('width','990px'); document.direct.submit(); }); $('.stadionbuchung').click(function() { strFormName = 'blocknumber_' + $(this).attr('blocknumber'); $('#ticketlist').css('display','none'); $('#showseats').css('height','1500px'); $('#showseats').css('width','990px'); //$('#stadionbuchung').css('display','none'); document.forms[strFormName].submit(); return false; }); $('.searchtext').click(function() { $(this).attr('value',''); $(this).css('color','#000'); $("input[name='search_commen_changed']").attr('value',1); }); $('.searchsubmitarrow').click(function () { //wurde nicht in das suchfeld geklicked if($("input[name='search_commen_changed']").attr('value') == '0') { $("input[name='search_commen']").attr('value',''); } //alert($(this).attr('searchtype')); $("input[name='searchtype']").attr('value',$(this).attr('searchtype')); document.search.submit(); }); $('.submit_search_detail').click(function() { $("input[name='searchtype']").attr('value',$(this).attr('searchtype')); document.search.submit(); }); $('.submit_search_refining').click(function() { document.refining.submit(); }); $('.submit_event_refining').click(function() { document.event_refining.submit(); }); $('.refining').change(function() { strChangeField = $(this).attr('id'); strChangeValue = $(this).attr('value'); //alert(strChangeField); strCity = $('#refining_city').attr('value'); strSubcategory = $('#refining_subcategory').attr('value'); strLocation = $('#refining_location').attr('value'); strDateFrom = $('#refining_date_from').attr('value'); strDateTo = $('#refining_date_to').attr('value'); strNavType = $('#navtype').attr('value'); $.get("/_public/refining.php", {navtype: strNavType,changefield: strChangeField,subcategory: strSubcategory, city: strCity, location: strLocation,datefrom: strDateFrom, dateto: strDateTo }, function(data){ //alert(data); arrSelectBoxes = data.split('||'); //alert(arrSelectBoxes[0]); //alert(arrSelectBoxes[1]); //alert(arrSelectBoxes[2]); switch(strChangeField) { case "refining_subcategory": $('#refining_subcategory').html(arrSelectBoxes[0]); if($('#refining_city').attr('value') == 'ALL') { $('#refining_city').html(arrSelectBoxes[1]); } if($('#refining_location').attr('value') == 'ALL') { $('#refining_location').html(arrSelectBoxes[2]); } break; case "refining_city": $('#refining_city').html(arrSelectBoxes[1]); if($('#refining_subcategory').attr('value') == 'ALL') { $('#refining_subcategory').html(arrSelectBoxes[0]); } if($('#refining_location').attr('value') == 'ALL') { $('#refining_location').html(arrSelectBoxes[2]); } break; case "refining_location": $('#refining_location').html(arrSelectBoxes[2]); if($('#refining_subcategory').attr('value') == 'ALL') { $('#refining_subcategory').html(arrSelectBoxes[0]); } if($('#refining_city').attr('value') == 'ALL') { $('#refining_city').html(arrSelectBoxes[1]); } break; } }); }); $('#loginswitch').click(function() { $('#homelogin').show(); }); $('#loginboxclose').click(function () { $('#homelogin').hide(); }); $('#logoutswitch').live('click', function() { $('#logoutframe').attr('src','https://62.96.6.66.frankfurt-ticket.de/elektra2/jsp/form_logoff.jsp'); $('#logoutframe').reload; strCurrentPage = window.location.href; intMeinKonto = strCurrentPage.match(/meinkonto$/); target = window.location.href + '?logout=1'; setTimeout(function(){ window.location.href = target; }, 2000 ); }); }); $(function() { $(document).click( function() { $('.HideThis').fadeOut(); } ); $('.ShowTopNaviLayer').hover( function() { var LayerId = $(this).attr('layerid'); if (LayerId) { $('#nav_'+LayerId).addClass('ShowLayer'); } }, function() { var LayerId = $(this).attr('layerid'); if (LayerId) { $('#nav_'+LayerId).removeClass('ShowLayer'); } } ); $('.TopNaviLayer').hover( function() { var LayerId = $(this).attr('layerid'); $(this).addClass('OverLayer'); $('#img_'+LayerId).attr('src',$('#img_'+LayerId).attr('over')); }, function() { var LayerId = $(this).attr('layerid'); $(this).removeClass('OverLayer'); $('#img_'+LayerId).attr('src',$('#img_'+LayerId).attr('out')); } ); $('#search').focus( function() { $('.SearchContainer').addClass('SearchContainerFocus'); } ) $('#search').blur( function() { if ($(this).attr('value')=='') { $('.SearchContainer').removeClass('SearchContainerFocus'); } } ) /*$('.HideThis').click( function() { $(this).fadeOut(); })*/ $('a.noLink').click( function() { return false; }) var intOuterWidthNaviContainer = $('#eventnavicontainer').outerWidth(); $('.eventnavitem').hover( function() { strSelectorImage = "#EVENTIMAGE_" + $(this).attr('id'); $(strSelectorImage).attr('src', '/images/de/eventnav/' + $(this).attr('over')); strSelector = '#' + $(this).attr('id') + '_NAVCONTAINER'; //ermittele Breite des aktuelle Containers intWidthCurrentContainer = $(strSelector).outerWidth(); intWidthCurrrentImage = $(strSelectorImage).outerWidth(); //alert('test ' + intWidthCurrrentImage); objPosition = $(this).position(); if(objPosition.left + intWidthCurrentContainer > intOuterWidthNaviContainer) { intNewPosition = objPosition.left - intWidthCurrentContainer + intWidthCurrrentImage; } else { intNewPosition = objPosition.left; } $(strSelector).css("left",intNewPosition ); }, function() { strSelectorImage = "#EVENTIMAGE_" + $(this).attr('id'); $(strSelectorImage).attr('src', '/images/de/eventnav/' + $(this).attr('out')); strSelector = '#' + $(this).attr('id') + '_NAVCONTAINER'; $(strSelector).css("left",-800); } ); var tabContainers = $('div#searchcontainer > div'); var intChangeContainer = 1; $('.searchitem').click(function () { //alert(this.id); //$('#selected_searchtype').attr('value',this.id); if(this.id == 'detail') { $('#submitsearch').attr('disabled','disabled'); } else { $('#submitsearch').attr('disabled',''); } if(intChangeContainer == 1) { $('#search_button_search').attr('src','/images/de/buttons/search_button_search_i.png'); $('#search_button_detail').attr('src','/images/de/buttons/search_button_detail_i.png'); $('#search_button_city').attr('src','/images/de/buttons/search_button_city_i.png'); $('#search_button_location').attr('src','/images/de/buttons/search_button_location_i.png'); tabContainers.hide(); strSelector = '#search_' + $(this).attr('id'); $(strSelector).show(); strSelectorImage = '#search_button_' + $(this).attr('id'); $(strSelectorImage).attr('src', '/images/de/buttons/search_button_' + $(this).attr('id') + '_a.png'); } }) $('.searchbox_close').click(function () { tabContainers.hide(); strSelector = '#search_button_' + $(this).attr('currentbox'); strImageName = 'search_button_' + $(this).attr('currentbox') + '_i.png'; $('#search_search').show(); $(strSelector).attr('src','/images/de/buttons/' + strImageName); $('#search_button_search').attr('src','/images/de/buttons/search_button_search_a.png'); }) $('.searchtext').keypress(function(event) { /* */ if (event.keyCode == '13') { //alert($(this).attr('searchtype')); intChangeContainer = 0; strSelectorFocus = $('#submit_' + $(this).attr('searchtype')); $("input[name='searchtype']").attr('value',$(this).attr('searchtype')); document.search.submit(); } /* */ }); $('.login_small').click(function () { //alert('test'); strError = ''; boolError = false; reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; if(document.login.elements['login[CustomerPassword]'].value == '') { strError += 'Bitte Passwort Eingeben'; boolError = true; $('#inputpassword').css("background-color","#ff8888"); } else { $('#inputpassword').css("background-color","#ffffff"); } if(reg.test(document.login.elements['login[Email]'].value) == false || document.login.elements['login[Email]'].value == '') { strError += 'Bitte Email prüfen'; boolError = true; $('#inputemail').css("background-color","#ff8888"); } else { $('#inputemail').css("background-color","#ffffff"); } if(boolError != true) { document.login.submit(); } else { return false; } }); $('.login_normal').click(function () { document.loginform.submit(); }); $('#forgortpassword').click(function() { strError = ''; reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; $('#toplogin').attr('action','/passwortvergessen'); boolError = false; if(reg.test(document.login.elements['login[Email]'].value) == false || document.login.elements['login[Email]'].value == '') { strError += 'Bitte Email prüfen'; boolError = true; $('#inputemail').css("background-color","#ff8888"); } else { $('#inputemail').css("background-color","#ffffff"); } if(boolError != true) { document.login.submit(); } }); $('#forgortpasswordform').click(function() { $('#loginform').attr('action','/passwortvergessen'); $('#loginform').submit(); }); $('.eventrow').hover( function() { strSelector = '#' + $(this).attr('id'); $(strSelector).addClass('blue'); $(strSelector).css("color","#ffffff"); strSelectorImageDiv = '#imagepopup_' + $(this).attr('showimage'); strSelectorImage = '#imagepopup_inner_' + $(this).attr('showimage'); objPosition = $(this).position(); intYpos = objPosition.top - 15; $(strSelectorImageDiv).css("top",intYpos); //$(strSelectorImageDiv).css("z-index",510); //$(strSelectorImage).css("z-index",510); $(strSelectorImageDiv).show(); }, function() { strSelector = '#' + $(this).attr('id'); strSelectorImage = '#imagepopup_inner_' + $(this).attr('showimage'); $(strSelector).removeClass('blue'); $(strSelector).css("color","#16407f"); strSelectorImageDiv = '#imagepopup_' + $(this).attr('showimage'); //$(strSelectorImageDiv).css("z-index",1); //$(strSelectorImage).css("z-index",1); $(strSelectorImageDiv).hide(); } ); $('.eventrow').click( function() { //alert('click'); strGoto = $(this).children('.event_switch').children('.ticketinfo_small').attr('href'); window.location.href = strGoto; } ); $('.blockrow').hover( function() { strSelector = '#' + $(this).attr('id'); $(strSelector).addClass('blue'); $(strSelector).css("color","#ffffff"); }, function() { strSelector = '#' + $(this).attr('id'); $(strSelector).removeClass('blue'); $(strSelector).css("color","#16407f"); } ); $('.blockrow').click( function() { strFormName = 'blocknumber_' + $(this).attr('blocknumber'); $('#ticketlist').css('display','none'); $('#showseats').css('height','1500px'); $('#showseats').css('width','990px'); document.forms[strFormName].submit(); return false; } ); $('.sliderhead').click( function() { $(this).parents('.slidercontainer').children('.slider').slideToggle('fast'); strImage = $(this).children('.sliderarrow').attr('src'); if(strImage == '/images/arrows/SliderArrowClosedSlider.png') { //alert('test 1'); $(this).children('.sliderarrow').attr('src','/images/arrows/SliderArrowOpenedSlider.png'); } else { $(this).children('.sliderarrow').attr('src','/images/arrows/SliderArrowClosedSlider.png'); } }); $('.ticket_slider_head').click( function() { $(this).parents('.slidercontainer').children('.ticket_slider').slideToggle('slow', function() { // tausche Bild.... }); //strImage = $(this).children('.headtable').children().children().attr('class'); strSelectorImage = $(this).children('.headtable').children().children().children().children().children().children().children(); strImage = strSelectorImage.attr('src'); if(strImage == '/images/arrows/arrow_darkblue_right.png') { strSelectorImage.attr('src','/images/arrows/arrow_down_small.png'); } else { strSelectorImage.attr('src','/images/arrows/arrow_darkblue_right.png'); } //alert(strImage); }); $('.eventhumb').click( function() { $('.thumbimage').css("border-color","transparent"); $('#eventimage').attr('src',$(this).attr('href')); $(this).children('.thumbimage').css("border-color","#ff0000"); return false; //alert(strImageSrc); }); $('.toptippitem').click( function() { //alert('toptipp'); $('.toptippitem_active').css("left",-1500); $(this).parents('.toptippitem_container').children('.toptippitem_active').css("left",-25); strSelector = '#' + $(this).attr('showdetail'); $('.toptippdetail').css("left",-1500); $(strSelector).css("left",0); }); $(".toptippitem").hover( function () { $(this).css("background-color","#16407f"); $(this).css("color","#ffffff"); }, function () { $(this).css("background-color","#bed2f3"); $(this).css("color","#16407f"); } ); $('.readmore').click( function() { $('#short_event_notes').css("display","none"); $('#event_notes').css("display","block"); }); $('.readless').click( function() { $('#short_event_notes').css("display","block"); $('#event_notes').css("display","none"); document.location.href="#top"; }); }) function ShowThisClass(Class) { $('.'+Class).fadeIn(); } Shadowbox.init({ players: ["img","swf"] }); function OpenShadowbox(strLink) { strLink = '/images/'+strLink; Shadowbox.open({ content: strLink, player: "img" }); } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i