/*	Script: function.cnet.js
		Extends functionality in Mootools <Function.js>
		
		Dependencies:
		mootools - <Moo.js>,  <Utility.js>
		
		Author:
		Aaron Newton - aaron [dot] newton [at] cnet [dot] com

		Function: $type
		Extends the <$type> function in <Function.js>
		
		Property: isNumber
		Determines if a value is a number. If the value is a string, if the string will parse
		to a number, returns true.
		
		Arguments:
		val - the object to asses.
		
		Example:
		>$type.isNumber(myValue) //if it's a number, returns true
	*/
		$type.isNumber = function(val) {
			if(isNaN(val))return false;
			if((typeof val != "undefined" && typeof val == "number") ||
			(typeof val != "boolean" && (typeof val != "string" || val.length >0) && isFinite(new Number(val)))) return true;
			return false;
		};
		
/* do not edit below this line */   
/* Section: Change Log 

$Source: /cvs/main/flatfile/html/rb/js/global/cnet.global.framework/mootools.extended/function.cnet.js,v $
$Log: function.cnet.js,v $
Revision 1.12  2007/03/01 00:50:35  newtona
type.isNumber now returns false for NaN
element.smoothshow/hide now works (in IE specifically) when there are no values for border

Revision 1.11  2007/02/07 20:52:46  newtona
removed $copy ( it's in mootools now)

Revision 1.10  2007/02/03 01:40:36  newtona
fixed typo (Object.copy should be $copy)

Revision 1.9  2007/01/29 23:51:57  newtona
added $copy until it gets into the mootools release

Revision 1.8  2007/01/26 06:06:47  newtona
removed everything except $type.isNumber; everything else is now in mootools

Revision 1.7  2007/01/22 22:06:40  newtona
removed $set/$pick, it's in mootools version 1.0 now

Revision 1.6  2006/12/06 20:14:59  newtona
carousel - improved performance, changed some syntax, actually deployed into usage and tested
cnet.nav.accordion - improved css selectors for time
multiple accordion - fixed a typo
dbug.js - added load timers
element.cnet.js - changed syntax to utilize mootools more effectively
function.cnet.js - equated $set to $pick in preparation for mootools v1

Revision 1.5  2006/12/04 18:36:52  newtona
syntax error in the docs

Revision 1.4  2006/11/15 01:18:45  newtona
updated docs

Revision 1.3  2006/11/13 22:56:01  newtona
added function $set

Revision 1.2  2006/11/02 21:34:00  newtona
Added cvs footer


*/
