﻿// Set a string for use in browsers requiring "px" if necessary.
var strPx = document.childNodes ? 'px' : 0;

function styleSwap(object, event, info)
{
	switch(event)
	{
		case "out":
			document.getElementById(object).style.top = 0 + strPx;
			document.getElementById(object).style.height = 25 + strPx;
			document.getElementById(object).style.cursor = "default";
			break;
		case "over":
			document.getElementById(object).style.top = 0 - parseInt(info) + strPx;
			document.getElementById(object).style.height = 25 + parseInt(info) + strPx;
			document.getElementById(object).style.cursor = "hand";
			break;
		default:
			// Do Nothing
			break;
	}
	return true;
}
