/*=============================================================================

			 	 TITLE:		NetMediaOne - Core Library
		  MODIFIED:		2007.07.24
		 AUTHOR(S): 	Graham Wheeler - NetMediaOne - www.netmediaone.com

=============================================================================*/

var NMO = {
	
	version: "1.2.0",
	rootPath: "",
 
	newInstance: function(obj) {
		function F() {};
		F.prototype = obj;
		return new F();
	},
	
	// Inter-Context Communicator - Holds objects addressable across IFRAME boundaries
	ICC: (parent.NMO != null)?parent.NMO.ICC:{},
	
	init: function() {

		$("*:first-child").not("html, head, body, div, span, a").addClass("FirstChild");
		$("*:last-child").not("html, head, body, div, span, a").addClass("LastChild");
		
		$("#navBar a").each( function() {
			if ( location.href.indexOf(this.href) != -1 ) { $(this).addClass("Active");	}
		} );

	}
	
};

jQuery( function() { NMO.init(); } );

