var liveticker=null, screenwidth=1024, screenheight=768;

function InitWindow() {
   screenwidth = self.screen.availWidth;
   screenheight = self.screen.availHeight;
	try {
		if (liveticker ) {
	     if (liveticker.closed) liveticker=null;
		  liveticker.moveTo( ltXpos, ltYpos );
		  liveticker.focus( );
		}
	} catch(e) {}
}


function OpenLiveTicker(team, season, round, id)  {  
	InitWindow( );
   if ((!liveticker) || (liveticker.closed))  {
   	liveticker = window.open( "http://tuskoblenz.de/html-docs/liveticker/ticker.php?season="+season+"&round="+round, "liveticker", "width=817,height=706,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no" ); 
	  	ltXpos = screenwidth / 2 - 400;
	  	ltYpos = screenheight / 2 - 337;
	  	InitWindow();  
	} else {
	  	liveticker.focus();
	}
	return false
}


