// Hopezi.de Hinweis

function getCookieVal (offset) { 
var endstr = document.cookie.indexOf (";", offset); 
if (endstr == -1) 
endstr = document.cookie.length; 
return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) { 
  var arg = name + "="; 
  var alen = arg.length; 
  var clen = document.cookie.length; 
  var i = 0; 
  while (i < clen) { 
    var j = i + alen; 
    if (document.cookie.substring(i, j) == arg) 
    return getCookieVal (j); 
    i = document.cookie.indexOf(" ", i) + 1; 
    if (i == 0) break; 
  } 
  return null;
}

function SetCookie (name, value) { 
  var argv = SetCookie.arguments; 
  var argc = SetCookie.arguments.length; 
  var expires = (argc > 2) ? argv[2] : null; 
  var path = (argc > 3) ? argv[3] : null; 
  var domain = (argc > 4) ? argv[4] : null; 
  var secure = (argc > 5) ? argv[5] : false; 
  document.cookie = name + "=" + escape (value) + 
  ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
  ((path == null) ? "" : ("; path=" + path)) + 
  ((domain == null) ? "" : ("; domain=" + domain)) + 
  ((secure == true) ? "; secure" : "");
}

function HideMe(){
  document.getElementById("hinweis").style.display = "none";
	SetCookie('hide_ball', 'TRUE', null, '/', '.hopezi.de');
}
  

AdURL='http://www.hopezi.de/preise.htm';

out='<div id="hinweis" style="z-index:99999; position:fixed; width:254px; height:109px; left:100%; top:100%; margin-top:-119px; margin-left:-264px; font-weight:normal; text-decoration:none; text-align:justify;">'+
    '<table width="254" height="109" cellpadding="8">'+
	'<tr><td valign="top" background="http://www.hopezi.de/images/hinweis/back_ballon.gif">'+
	'<div style="float:right;"><a onClick=\'HideMe();\' href="#"><img border="0" src="http://www.hopezi.de/images/hinweis/close.gif"></a></div>'+
	'<a target="_self" style="text-decoration:none;" href="'+AdURL+'"><span style="font-weight:normal; font-size: 10px; font-family:verdana; color:#000000;">'+
	'<img border="0" src="http://www.hopezi.de/images/hinweis/back_icon.jpg"> <b>Haben Sie eine Unterkunft?</b>'+
	'<br /><br />'+
	'Ihre Unterkunft bei uns eintragen!<br><br></span><span style="font-size: 10px; font-family:verdana; color:#0000FF;">'+
	'<b><u>Einfach klicken und loslegen.</u></b></span>'+
	'</td></tr></table>'+
	'</div>';
	
if (!GetCookie('hide_ball')){
  document.writeln(out);
}