<!--
document.write('<style type="text/css">');
document.write('<!--');
document.write('#powered {');
document.write('	position:absolute;');
document.write('	top: 10px;');
document.write('	right: 10px;');
document.write('	display:none;');
document.write('	padding:4px;');
document.write('	border:2px solid #DDF0F8;');
document.write('	background:#FFFFFF;');
document.write('	font-family: Helvetica, Verdana, Geneva;');
document.write('	font-size: 8pt;');
document.write('	color:#000000;');
document.write('	}');
document.write('#powered a {');
document.write('	text-decoration:none;');
document.write('	font-family: Helvetica, Verdana, Geneva;');
document.write('	font-size: 8pt;');
document.write('	color:#006699;');
document.write('	}');
document.write('#iscreen {');
document.write('	width:'+chat_width+'px;');
document.write('	height:'+chat_height+'px;');
document.write('	margin:0px 0px 1px 0px;');
document.write('	padding:0px 0px 0px 0px;');
document.write('	border:'+chat_border+'px solid #'+chat_border_col+';');
document.write('	}');
document.write('#ichat, #f, #f input {');
document.write('	margin:0px;');
document.write('	padding:0px;');
document.write('	}');
document.write('#nick {');
document.write('	width:70px;');
document.write('	}');
document.write('#text {');
document.write('	width:480px;');
document.write('	}');
document.write('#enter {');
document.write('	width:49px;');
document.write('	cursor: pointer;');
document.write('	}');
document.write('-->');
document.write('</style>');
document.write('<div id="powered">');
document.write('Chat Widget powered by <a href="http://chat.widget.me" title="Get your own free chat widget" target="_blank">Chat.Widget.Me</a>');
document.write('</div>');
document.write('<div id="ichat">');
document.write('<iframe src="" width="500" height="400" name="iscreen" id="iscreen" frameborder="0"></iframe>');
document.write('<form name="f" id="f" method="post" action="http://chat.widget.me/box.pl"  target="iframe" onSubmit="return clear_text\(this);">');
document.write('<input type="hidden" name="uid" value="'+chat_uid+'">');
document.write('<input type="hidden" name="service" value="save">');
document.write('<input type="text" name="nick" id="nick" value="Guest" title="Write your name here" size="10">');
document.write('<input type="text" name="text" id="text" value="" title="Write your message here" size="65">');
document.write('<input type="submit" id="enter" value="Enter"><iframe src="" width="1" height="1" name="iframe" frameborder="0"></iframe>');
document.write('</form>');
document.write('</div>');
function clear_text(formular) {
if(formular.text.value == ""){
clear_line(formular);
return (false);
}else{
cookie_save();
change_sizes();
formular.submit();
clear_line(formular);
document.getElementById('enter').disabled=true;
window.setTimeout("document.getElementById('enter').disabled=false;",2*1000);
return (false);
}
}
function clear_line(formular) {
formular.text.value="";
formular.text.focus();
formular.text.select();
}
window.setTimeout("start_line('document.f');",3*1000);
function start_line() {
document.f.text.focus();
document.f.text.select();
cookie_read();
}
textw=(chat_width-200)+80;
document.getElementById("text").style.width=textw;
function cookie_save() {
var a = new Date();
a = new Date(a.getTime() +1000*60*60*24*365);
document.cookie = '|chat|'+document.f.nick.value+'|; expires='+a.toGMTString()+';'; 
}
function cookie_read() {
if(document.cookie){
cookie_content_all=document.cookie;
cookie_content=cookie_content_all.split (';');
for (var i = 0; i < cookie_content.length; ++i) {
cookie_content_line=cookie_content[i];
cookie_content_part=cookie_content_line.split ('|');
if (cookie_content_part[1]=='chat') {
document.f.nick.value=cookie_content_part[2];
}
}
}
}
function change_sizes() {
document.getElementById('nick').style.display='none';
document.getElementById("text").style.width=textw+70;
}
window_url='http://chat.widget.me/window.html?uid='+chat_uid+'&bg_col='+chat_bg_col+'&t_font='+chat_text_font+'&t_col='+chat_text_col+'&t_size='+chat_text_size+'&br_col='+chat_break_col+'&css='+chat_css;
window.setTimeout("open_window()",500);
function open_window() {
parent.iscreen.location.href=window_url+'&stream_interval=4';
check_activity();
}
var alert_url='';
function check_content(userInput) {
what=userInput.value;
if (what.match(/www|http/)) {
if (alert_url == 'i') {}else{
setTimeout("check_url()", 3*1000);
alert_url='i';
}
}
}
function check_url() {
if (what.length > 2) {
if (what.match(/xxe/)) {}else{
alert('xxe.me can turn a long URL into a much shorter one.\nOnly your shorted URLs will be automatically linked!');
}
}
}
var g_Time = 90; // Zeit bis Restart in Sekunden
var tCopy=g_Time;
var sleeped='';
function check_activity() {
if(!g_Time) {
sleeped='i';
parent.iscreen.location.href=window_url+'&stream_interval=30';
}
g_Time--;
setTimeout('check_activity()', 1000);
}
function check_reset() {
g_Time=tCopy;
if (sleeped == 'i') {
parent.iscreen.location.href=window_url+'&stream_interval=4';
sleeped='';
}
}
var browserName=navigator.appName; 
if (browserName=="Microsoft Internet Explorer") {} else {
document.onmousemove=function(){check_reset()};
}
document.onkeydown=function(){check_reset()};
var bodyfrm = ( document.compatMode.toLowerCase()=="css1compat" ) ? document.documentElement : document.body;
var powered = document.getElementById('powered').style;
if(window.location.host.match(/widget/)) {} else {
window.setTimeout("load_powered()",90*1000);
}
function load_powered() {
setInterval("moveW();", 1);
powered.display='block';
}
function moveW() {
powered.top = ( bodyfrm.scrollTop + 10 ) + "px";
}
//-->