$(document).ready(function() { //Tabs $("#tabs1").tabs(); $("#tabs2").tabs(); $("#tabs3").tabs(); $("#tabs4").tabs(); $("#tabs5").tabs(); //Produkt Finder $('.risk_class').each(function(i) { var pos = i+1; var length = $('.risk_class').length; $(".row-"+pos).click( function () { for (var j=1;j<=length;j++) { var rows = $(".subprod-"+j); if (pos == j) { if (rows.css('display')=='none') rows.show(); else rows.hide(); } else rows.hide(); } }); }); $('.clickable').click(function() { $('.clickable').removeClass('current'); $(this).addClass('current'); }); /* No hovering in class subprod */ if (isBadBrowser()) { $('.subprod').hover( function() { $(this).removeClass('hover'); }); $('.tbl-product-finder-header').hover( function() { $('.tbl-product-finder-header').removeClass('hover'); }); } //Initial value Markt�bersicht (EUR/CHF) changeChart(this, 8362186, ''); }); //Marktübersicht function changeChart(obj, idNotation, chartUrl) { $('.tabs_marktuebersicht tr').removeClass('current'); $(obj).addClass('current'); //Indicator $("#marktuebersicht").hide(); $("#indicator").show(); //Show numbers and chart $.get("/ajax/marktuebersicht.html", {ID_NOTATION: idNotation}, function(data) { if (chartUrl != '') { for (var i=0; i<10; i++) { if (!imageLoaded(chartUrl)) { sleep(100); } } } $("#indicator").hide(); $("#marktuebersicht").html(data); if (!isBadBrowser()) { $("#marktuebersicht").show('blind', {}, 1500); } else { $("#marktuebersicht").show(); } //if(!isIE()) { //$("#tabs > .clip_nav > ul").tabs(); $("#tabs6").tabs(); //} }); }