/* 
Script made by Martial Boissonneault © 2001-2006 http://getElementById.com
This script may be used and changed freely as long as this msg is intact
Visit http://getElementById.com/ for more free scripts and tutorials.
*/
var ie5 = (document.getElementById && document.all); 
var ns6 = (document.getElementById && !document.all);

var timerID = null;
var opak = 0;
var index = 0;
var mouseX = 30;
var mouseY = -5;

var msg = new Array();
msg[0]="System-three Leadership";
msg[1]="Effective Questioning";
msg[2]="The Awesome Power of the Listening Ear";
msg[3]="The Seven Business Ambiguities";
msg[4]="Organizational Negotiations Strategies";
msg[5]="Sales Negotiations";
msg[6]="Conflict Management";

function changeMsg(index){
	if(ie5){
		obj.style.filter="blendTrans(Duration=1.2)";
		obj.filters[0].Apply();
		obj.style.visibility = "visible";
		obj.filters[0].Play();
		obj.innerHTML = msg[index];
	}
	else if(ns6){
		obj.style.visibility = "visible";
		obj.innerHTML = msg[index];
	}
}

function hideMsg(){
	if(ie5 || ns6){
		obj.style.visibility="hidden";
	}
}

function getMouseMove(e){
	if(ie5){
		obj.style.left = document.body.scrollLeft + event.clientX + mouseX;
		obj.style.top = document.body.scrollTop + event.clientY + mouseY;
	}
	else if(ns6){
		obj.style.left = window.pageXOffset + e.clientX + mouseX;
		obj.style.top = window.pageYOffset + e.clientY + mouseY;
	}
}

function fadingTooltipsInit(){
	if(ie5 || ns6){
		obj = document.getElementById('box');
		lnk = document.links;
		for(var i=0;i<lnk.length;i++){
			if(ie5){
				lnk[i].attachEvent("onmouseout", hideMsg);
			}
			else if(ns6){
				lnk[i].addEventListener("mouseout", hideMsg, false);
			}
		}
	}
}
document.onmousemove=getMouseMove;
onload=fadingTooltipsInit;

function swapimage(imgId) {
   document.images[imgId].src = "images/arrow.gif";
   return false;
}
function resetimage(imgId) {
   document.images[imgId].src = "images/arrow_off.gif";
   return false;   
}
