/* 
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
Some additions by Yaron Shapira יקון שפירא
*/
var ie5 = (document.getElementById && document.all); 
var ns6 = (document.getElementById && !document.all);

var timerID = null;
var opak = 0;
var index = 0;
var mouseX = 5;
var mouseY = 20;

var msg = new Array();
msg[0]="<p>The TXDOT (Texas Department of Transportation) operating license is required for all moving companies working within the state of Texas.</p>";
msg[1]="<p><b>This means that:</b></p><ul class=s><li>Olde World Movers \"<i>claims loss ratio and frequency</i>\" is 50% lower than the nation's average.</li><li>The average cost for a policy purchased on MovingInsurance.com site is less than 1% of the value of the goods.</li></ul><p align=center>Click to get your FREE Online Insurance Estimate.</p>";
msg[2]="<p>This MUST be EXACTLY as it appears on the credit card !</p>";
msg[3]="<p>This MUST be EXACTLY the same address to which the credit card bills are mailed !</p>";
msg[4]="<p>You can find your job number on the top right side of the Contract we sent you after you booked your job and on the top left side of the Bill-of-Lading given to you by our foreman on the day of the move.</p>";
msg[5]="In order to protect your privacy, we need this one more piece of information to identify you.&nbsp; This must be the email we have on file for you (probably the email you used when you filled out the Online Estimate Form).";

function changeMsg(index){
	if(ie5){
		obj.style.filter="blendTrans(Duration=.66)";
		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('ttip');
		obj.style.zIndex=99;
		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);
			}
		}
	}
}

