/*
	custom freebadge javascript file. ray brooks may 2005
*/

function doIntroText(text_id, e) {
	var mySource;
	var myText = new Array(
		"Welcome to Freebadge, for top quality badges. Posted direct to you from our automated state of the art production facility.",
		"Simply choose a badge style and give us the details you want on your badge. Leave the rest to us!!",
		"Securely packed and sent to you, with FREE DELIVERY!<br />The price you see is the price you pay."
	);
	
	if(!e){e=window.event;}	
	if(e) {
		mySource=e.target?e.target:e.srcElement;
	}
	if(!e){return;}
	
	if (e.type == "mouseover") {
		document.getElementById("display").innerHTML = "<h2>" + myText[text_id] + "</h2>";
		mySource.style.top = (parseInt(mySource.offsetTop) - 1) + "px";
		mySource.style.left = (parseInt(mySource.offsetLeft) - 1) + "px";
		mySource.pointer = "pointer";
		mySource.style.border = "1px solid #000000";
	} else if (e.type == "mouseout") {
		mySource.style.top = (parseInt(mySource.offsetTop) + 1) + "px";
		mySource.style.left = (parseInt(mySource.offsetLeft) + 1) + "px";
		mySource.pointer = "default";
		mySource.style.border = "0";
		document.getElementById("display").innerHTML = "<h2>Welcome to Freebadge, for top quality badges. Posted direct to you from our automated state of the art production facility.</h2>";
	}

}