/********************************************************************************************************************************************************************************************
                                                                                  DEBUG.JS

Copyright © 2006 Illusionator, Inc.

Debugging code.  This file should NOT be included in final web pages.

********************************************************************************************************************************************************************************************/

// Set this to true to turn on debugging features */
var bIlsDebug = false;


// IlsDebugMsg(sMsg)
//	returns:	Nothing
//
// Like alert(), except that it does nothing unless "bIlsDebug" is true.

function IlsDebugMsg(sMsg)
{
	if (bIlsDebug) {
		alert(sMsg);
	}
} // IlsDebugMsg


// IlsDebugHex(i)
//	returns:	Upper-case hexadecimal string representation of integer "i", preceeded by "0x"
//
// Returns hexadecimal string representation of integer "i".

function IlsDebugHex(i)
{
	return ("0x" + i.toString(16).toUpperCase());
} // IlsDebugHex
