
/* - showPopup.js - */
// http://www.otg.de/portal_javascripts/showPopup.js?original=1
jq(document).ready(function(){if(jq('map[name|="map"]').size()>0){jq('area').css({display:'block'});jq('area').offset({top:jq('.cwxleadImage').offset().top,left:jq('.cwxleadImage').offset().left});jq('area').CreateBubblePopup({innerHtmlStyle:{color:'#000000','text-align':'center'},themeName:'black',themePath:'jquerybubblepopup-theme',manageMouseEvents:false,position:'top',distance:0,tail:{align:'center',hidden:false}});jq('area').data('visible',false);var timer;jq('area').mouseover(function(){clearTimeout(timer);if(!jq(this).data('visible')){jq('area').data('visible',false);jq(this).data('visible',true);jq('area').HideAllBubblePopups();var popupContent=jq('#'+jq(this).attr('id')+'-text').html();jq(this).SetBubblePopupInnerHtml(popupContent);jq(this).ShowBubblePopup();var img_position=jq('.cwxleadImage').offset();var img_top=parseInt(img_position.top);var img_left=parseInt(img_position.left);var area_x=parseInt($(this).attr('coords').split(',')[0]);var area_y=parseInt($(this).attr('coords').split(',')[1]);var area_w=parseInt(jq(this).attr('coords').split(',')[2])-area_x;var area_h=parseInt(jq(this).attr('coords').split(',')[3])-area_y;var bubble_width=parseInt($('#'+$(this).GetBubblePopupID()).outerWidth(false));var bubble_height=parseInt($('#'+$(this).GetBubblePopupID()).outerHeight(false));jq('#'+$(this).GetBubblePopupID()).css({top:(area_y+img_top-bubble_height)+'px',left:(area_x+img_left-Math.abs(bubble_width/2)+Math.abs(area_w/2))+'px'});jq('.jquerybubblepopup-top-middle img').remove();jq('.jquerybubblepopup-bottom-middle').html('<img class="jquerybubblepopup-tail" style="background-color:transparent;" alt="" src="jquerybubblepopup-theme/black/ie/tail-bottom.gif" />')}});jq('area').mouseleave(function(){if(jq(this).data('visible')){var seconds_to_wait=2;
function doCountdown(){timer=setTimeout(function(){seconds_to_wait--;if(seconds_to_wait>0){doCountdown()}else{clearTimeout(timer);jq('area').HideAllBubblePopups();jq('area').data('visible',false)}},1000)};doCountdown()}})}});

