try{document.write('');document.write('
Loading …
');function mkCall(url,success){jQuery.ajax({dataType:'jsonp',jsonp:'jsonp_callback',url:'http://weblication-v2.kmkg.de/messe_karlsruhe/veranstaltungen/eventsWidget/'+url+'&cssPrefix=messeKarlsruhe&primaryColor=%23006EB4&secondaryColor=%2398BFD7&neutralColor=%23A0A0A0&urlCalendar=%23',success:success});} function handleDetails(data){jQuery("").html(data.res).fadeIn();} function modifyDetailLinks(selector){jQuery("").find(selector).click(function(){var url="?w=details&d="+jQuery(this).attr("href");jQuery("").fadeOut('fast');mkCall(url,handleDetails);return false;});} function handleCal(data){var cal=jQuery("#meEvents-calendar").html(data.res);cal.find(".likeALink").click(function(){var url="?w="+jQuery(this).attr("rel").replace(/.*\//,"").replace(".php","").replace("?","&").replace("'","");jQuery("").fadeOut('fast');mkCall(url,function(data){jQuery("").html(data.res).fadeIn();modifyDetailLinks("a");});});cal.find(".kal a").click(function(){mkCall(jQuery(this).attr("href")+"&w=cal",handleCal);return false;});} mkCall('?w=cal',handleCal);if(jQuery("#meEvents-search").length>0){mkCall('?w=index',function(data){jQuery("").html(data.res);try{KMKG.onload();}catch(e){} modifyDetailLinks("td.cellNo0 a");});} if(jQuery("#meEvents-search").length>0){mkCall('?w=index',function(data){jQuery("").html(data.res);try{KMKG.onload();}catch(e){} modifyDetailLinks("td.cellNo0 a");window.setTimeout(function(){jQuery("#datesearch input").datepicker();},1000);jQuery("#datesearch input").change(function(){var vals=jQuery(this).val().split('.');if(vals.length==3){KMKG.SORTTABLE.setCal(Number(vals[2]),Number(vals[1]),Number(vals[0]),jQuery(this).attr("id"));}});});} function handleBigCal(data){jQuery("").html(data.res).fadeIn();modifyDetailLinks("td a");jQuery("").find("h2 a").click(function(){jQuery("").fadeOut('fast');mkCall(jQuery(this).attr("href")+"&w=calBig",handleBigCal);return false;});} if(jQuery("#meEvents-calBig").length>0){mkCall('?w=calBig',handleBigCal);}}catch(e){}