/*
 License : Freeware (Enjoy it!)
 (c)2002 VASIL DINKOV- PLOVDIV, BULGARIA
========================================
 NewsBar v1.2 was modified for forumimages.com by Daz and SamG.
 Get the unmodified NewsBar script at:
 http://smartmenus.tripod.com/other.html
 and don't wait to get the great SmartMenus script at:
 http://smartmenus.tripod.com

 LEAVE THESE NOTES PLEASE - delete the comments if you want.
*/

/* Part 1: content description - edit to suit */
var defaultText = 'Hallo und herzlich Willkommen !';
var newsBarContent = [

/*['http://isis-und-osiris.de/isisosiris/main/phpBB2/viewtopic.php?t=21216', 'Fragen an Dr. Zahi Hawass - Die Antworten !!!', '_blank'],
*/

['http://www.isis-und-osiris.de/isisosiris/main/phpBB2/viewtopic.php?t=12795', '*** WICHTIG: Forumsregeln ! ***', '_blank'],
['http://www.isis-und-osiris.de/isisosiris/main/phpBB2/viewtopic.php?t=10909&highlight=', '*** NEU *** Bilderupload direkt übers Forum *** NEU ***"', '_blank'],
['http://www.isis-und-osiris.de/isisosiris/werbepartner.html', 'Schaut doch auch mal die Reiseführer unseres Werbepartners an -->', '_blank'],
['http://www.isis-und-osiris.de/isisosiris/main/chat/chat.html', 'Unseren Forums-Chat findet ihr hier ! -->', '_blank'],
  ['http://www.isis-und-osiris.de/isisosiris/main/phpBB2/viewtopic.php?t=646', 'Wie werde ich hier Mitglied ? -->', ''],
  ['http://www.isis-und-osiris.de/isisosiris/main/phpBB2/viewtopic.php?t=955', 'Was tun bei Fehlermeldung "Invalid Session" ? -->', ''],
  ['http://www.isis-und-osiris.de/isisosiris/main/gb', 'Einen Gruss ins Gästebuch schreiben ! -->', '_blank'],
  ['', 'Viel Spass im Forum -->', ''],
  ['', 'wünschen Euch allen -->', ''],
  ['', 'Isis, Osiris, Uli & NICO', '']

]; // newsBarContent[] blocks must be in the format ['href', 'text', 'target'] and blocks must be separated by commas

/* Part 2: "look and feel" variables - edit to suit */
var defaultTextTimeOut = 3; // the time the default text is displayed, in seconds
var newsBarTimeOut = 3; // the time a headline is displayed, in seconds
var newsBarSpeed = 20; // 1000 = 1 second
var leadingSign = '...';
var newsBarStyle = 'style="position: relative; font-size: 14px;"';
var pauseNewsBarOnMouseOver = true; // true pauses NewsBar progress when mouse pointer is over links

/* Part 3: the NewsBar engine - tinker in here at your own risk! */
var contentIndex = 0;
var cursorPosition = 0;
var textLength = newsBarContent[0][1].length;
var newsBarCycle = null;
defaultTextTimeOut *= 1000;
newsBarTimeOut *= 1000;
if ( pauseNewsBarOnMouseOver ) var eventHandlers = ' onmouseout="newsBarCycle = setTimeout(\'newsBarNew()\', ' + newsBarTimeOut + ');" onmouseover="clearTimeout(newsBarCycle);">';
else var eventHandlers = '>';

function newsBarNew() {
  if ( (newsBarContent[contentIndex][0] != '') && (cursorPosition == textLength) ) var text = '<a href="' + newsBarContent[contentIndex][0] + '" target="' + newsBarContent[contentIndex][2] + '"' + eventHandlers + newsBarContent[contentIndex][1] + leadingSign + '</a>';
  else var text = newsBarContent[contentIndex][1].substring(0, cursorPosition) + leadingSign;
  document.getElementById('newsbar').innerHTML = text;
  if ( cursorPosition++ == textLength ) {
    cursorPosition = 0;
    newsBarCycle = setTimeout('newsBarNew()', newsBarTimeOut);
    contentIndex++;
    if ( contentIndex == newsBarContent.length ) contentIndex = 0;
    textLength = newsBarContent[contentIndex][1].length;
  }
  else setTimeout('newsBarNew()', newsBarSpeed);
}

document.write('<div id="newsbar" ' + newsBarStyle + '>' + defaultText + '</div>');
setTimeout('newsBarNew()', defaultTextTimeOut);

