<!--
  var pro_ballon_pause = 3000;
  var pro_ballon_width = 0;
  var pro_ballon_height = 0;

function pro_ballon_erstellen(){
  var get = '';

  if( pro_bal_out == 1 ){
    pro_ballon_width = 300;
    pro_ballon_height = 95;
    get = '?t=' + pro_bal_out;
  }

  if( pro_ballon_width != 0 && pro_ballon_height != 0 ){
    var url = 'http://pro.de/pro_ballon/pro_ballon.php' + get;
    var div_pro_ballon = document.createElement('div');
    div_pro_ballon.id = 'container';
    div_pro_ballon.style.width = pro_ballon_width + 'px';
    div_pro_ballon.style.height = pro_ballon_height + 'px';
    div_pro_ballon.style.zIndex = 100;
    div_pro_ballon.style.position = 'fixed';
    if( document.all ){
      div_pro_ballon.style.position = 'absolute';
    }
  
    div_pro_ballon.style.visibility = 'hidden';
    var body = document.getElementsByTagName("body")[0];
    body.insertBefore( div_pro_ballon, body.firstChild  );
    div_pro_ballon.innerHTML = '<div id="oben" style="font-size:1px;line-height:0"><div id="o_l" style="width: 7px;">' + 
                               '</div><div id="o" style="width: 38px;"></div><div id="o_r" style="width: 10px;"></div></div>' + 
                               '<div id="m_l" style="width: 0px;"></div>';
  
    div_pro_ballon.innerHTML += '<div id="content_bodys" style="text-align:left;">' + 
                                '<iframe id="content_body" style="width: 50px;" src="' + url + '" ' + 
                                'frameborder="0" scrolling="no" noresize="noresize" style="background-color:transparent; filter: chroma(color=#FFFFFF)"></iframe>' + 
                                '<img src="http://pro.de/pro_ballon/stat/event.php?c=pro&a=' + pro_bal_out + '&e=o" width="1" height="1" />' + 
                                '<img src="http://pro.de/pro_ballon/img/close.png" style="position:absolute;float:left;" onclick="close_ballon()" /></div>';
  
    div_pro_ballon.innerHTML += '<div id="m_r" style="width: 3px;"></div>';
  
    div_pro_ballon.innerHTML += '<div id="unten" style="font-size:1px;line-height:0"><div id="u_l" style="width: 8px;">' + 
                                '</div><div id="u" style="width: 10px;"></div><div id="u_r" style="width: 37px;"></div></div></div>';
    setTimeout( "pro_ballon_position()", pro_ballon_pause );
  }
}

function pro_ballon_position(){
  var iWidth = window.document.documentElement.clientWidth;
  var iHeight = window.document.documentElement.clientHeight;

  var intAbsX = parseInt( document.getElementById( "container" ).style.width );
  var intAbsY = parseInt( document.getElementById( "container" ).style.height );

  document.getElementById( "container" ).style.top = iHeight - intAbsY + 'px';
  document.getElementById( "container" ).style.left = iWidth - intAbsX - 25 + 'px';

  if( document.all ){
    document.getElementById( "container" ).style.top = iHeight - intAbsY + offset_y() + 'px';
    document.getElementById( "container" ).style.left = iWidth - intAbsX + offset_x() - 25 + 'px';
  }

  document.getElementById( "o" ).style.width = intAbsX - 18 + 'px';
  document.getElementById( "u" ).style.width = intAbsX - 46 + 'px';
  document.getElementById( "content_body" ).style.width = intAbsX - 40 + 'px';
  document.getElementById( "content_bodys" ).style.width = intAbsX - 24 + 'px';

  document.getElementById( "m_l" ).style.height = intAbsY - 38  + 'px';
  document.getElementById( "content_body" ).style.height = intAbsY - 38  + 'px';
  document.getElementById( "m_r" ).style.height = intAbsY - 38  + 'px';

  document.getElementById( "container" ).style.visibility = "visible";

  setTimeout( 'pro_ballon_position()', 100 );
}
function close_ballon(){
  Bild = new Image();
  Bild.src = 'http://pro.de/pro_ballon/stat/event.php?c=pro&a=' + pro_bal_out + '&e=cl';
  setcookie_pro_ballon();
  document.getElementById( "container" ).style.display = "none";
}
function offset_x(){
  var scrOfX = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    scrOfX = window.pageXOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    scrOfX = document.body.scrollLeft;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    scrOfX = document.documentElement.scrollLeft;
  }
  return( scrOfX );
}
function offset_y(){
  var scrOfY = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    scrOfY = window.pageYOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    scrOfY = document.body.scrollTop;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    scrOfY = document.documentElement.scrollTop;
  }
  return( scrOfY );
}
function getcookie_pro_ballon(){
  var name = 'pro_ballon';
	var cookies = document.cookie.indexOf( name + "=" );
	var len = cookies + name.length + 1;
	if ( ( !cookies ) && ( name != document.cookie.substring( 0, name.length ) ) )
		return 0;
	if ( cookies == -1 )
		return 0;  
	var end = document.cookie.indexOf( ';', len );
	if ( end == -1 ) end = document.cookie.length;
	var value = unescape( document.cookie.substring( len, end ) );
  return value;
}
function setcookie_pro_ballon(){
  var name = 'pro_ballon';
  var value = 'no';
  var today = new Date();
  var laufzeit = new Date( today.getTime() + 43200000 );
  var path = '/'; //null;
  var domain = get_domain();
  var secure = false;
  document.cookie = name + "=" + escape (value) + "; expires=" + laufzeit.toGMTString() +
  ((path == null) ? "" : ("; path=" + path)) +
  ((domain == null) ? "" : ("; domain=" + domain)) +
  ((secure == true) ? "; secure" : "");
}
function get_domain(){
  var domain = window.location.host;
  if( domain == '' ) domain = window.location.hostname;
  var temp = domain.split( '.' );
  if( temp.length == 2 ) domain = '.' + domain;
  if( temp.length > 2 ) domain = '.' + temp[ temp.length - 2 ] + '.'+ temp[ temp.length - 1 ];
  return domain;
}
if( getcookie_pro_ballon() != 'no' )
  window.onload = pro_ballon_erstellen;
//-->