
appletString = new Array(15);
appletString[1]="<h>Chat Rooms</h>Visit our wonderful chat system. A new topic of discussion is presented every day to the visitors. The Friday Nights extravaganza with a Guest Speaker discussing a specific topic will start in November. Be there!!";
appletString[2]="<h>News</h>Read the latest HeadlineNews, Caribbean News, Haiti News, les Actualités du monde, Les nouvelles d'Haiti.";
appletString[3]="<h>About us</h>What is kwabs.com, the karibe web answer base system, what defines us, Read about it.";
appletString[4]="<h>What's new</h>What is the latest in our development.";
appletString[5]="<h>Message Board</h>Vist our superb message board, write your opinion and read what others think.";
appletString[6]="<h>Caribbean Directory</h>The permanently growing data base of kwabs.com.";
appletString[7]="<h>Caribbean History</h>Columbus, Tainos Caribs, The African connection, the European background.";
appletString[8]="<h>Geography</h>The physicography of the Caribbean, the people, the nations, the islands.";
appletString[9]="<h>Travel</h>Caribbean Hotel reservations included in 65000 hotels world wide.";
appletString[10]="<h>Entertainments</h>Music of the caribbean, entertaiments news, fun and game, dating.";
appletString[11]="<h>Games on line</h>Learn to play chess and play on line, Poker, dominoes, checkers.";
appletString[12]="<h>Litterature</h>Read the latest critics about the current litterature of the caribbean .";
appletString[13]="<h>Science</h>Science news, science links, the latest in technology.";
appletString[14]="<h>Sports</h>The latest in Sports:  Soccer, Tennis, Basket, the CONCACAF, The coverage of the 2002 soccer world cup and its aftermath. Une section sera bientot dedié à la fédération Haitienne de Football";

// Function used to hide any JavaScript errors from the user.
function stopError() {
  return true;
}

isInited = false;
function init() { 

  // Make the browser ignore any errors.
  window.onerror = stopError;

  if(document.images) { 
    // Preload images.
    menuNormalPic = new Image()
    menuNormalPic.src = "http://www.kwabs.com/rdchat1A.jpg";
    menuOverPic = new Image()
    menuOverPic.src = "http://www.kwabs.com/rdchatover.jpg";
  }

  isInited = true;
}

function changeImage(imgName, imgObj) { 
  if(document.images && isInited == true) { 
    if(menuNormalPic.complete && menuOverPic.complete) {
      document.images[imgName].src = eval(imgObj+".src"); 
    }
  }
} 

function menuOver(isActive, nr) { 
  // Change the bullet image if the menuitem is active.
  if(isActive == true) {
    eval("changeImage('menuCircle"+nr+"Img', 'menuOverPic');");
  }

  // Call the applet.
  // We can not know if the applet is loaded, but we are ignoring those
  // errors anyway. 
  if(document.menuapplet && isInited == true) {
    document.menuapplet.loadTemp(appletString[nr], "", 800);
  }
}

function menuOut(isActive, nr) { 
  // Change the bullet image if the menuitem is active.
  if(isActive == true) {
    eval("changeImage('menuCircle"+nr+"Img', 'menuNormalPic');");
  }

  // Call the applet.
  // We can not know if the applet is loaded, but we are ignoring those
  // errors anyway. 
  if(document.menuapplet && isInited == true) {
    document.menuapplet.unloadTemp(4000);
  }
}

function loadMsg(text, delay) {

  if(document.menuapplet && isInited == true) {
    document.menuapplet.loadTemp(text, "", delay);
  }

}

function unloadMsg(delay) {

  if(document.menuapplet && isInited == true) {
    document.menuapplet.unloadTemp(delay);
  }

}

function playSound(SName) {
		if (document.embeds[SName] != null && document.embeds[SName].IsReady()) {
			document.embeds[SName].play(false)
		}
	}



