/*=============================================================================

			 	 TITLE:		NetMediaOne - Core Library
		  MODIFIED:		2008.01.11
		 AUTHOR(S): 	Graham Wheeler - NetMediaOne - www.netmediaone.com
		  REQUIRES:		jQuery 1.2

=============================================================================*/

/* IEPngHack method 'C' | vC.1.00 | (c) 2007 | Khurshid M. | MIT, GPL */
(function($){$.IEPNGHack={pixel:'design/pixel.gif'};$.ltIE7=$.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent);$.fn.IEPNGHack=$.ltIE7?function(){return this.each(function(){var $$=$(this);if($$.is('img')){var filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='"+$$.attr('src')+"')";$$.css({filter:filter,width:$$.width(),height:$$.height()}).attr({src:$.IEPNGHack.pixel}).positionFix()}else{var image=$$.css('backgroundImage');if(image.match(/^url\(["'](.*\.png)["']\)$/i)){image=RegExp.$1;var filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='"+image+"')";$$.css({backgroundImage:'none',filter:filter}).positionFix()}}})}:function(){return this};$.fn.positionFix=function(){return this.each(function(){var $$=$(this);var position=$$.css('position');if(position!='absolute'&&position!='relative'){$$.css('position','relative')}})}})(jQuery);

var NMO = {
	
	version: "1.2.0",
	rootPath: "",
	resizeTimer: null,
	documentMouseX: 0,
	documentMouseY: 0,
	windowMouseX: 0,
	windowMouseY: 0,
 
	stripeTable: function(selector) {
		jQuery(selector + " tr:visible:even").addClass("Even");
		jQuery(selector + " tr:visible:odd").removeClass("Odd");
	},

	init: function() {

		jQuery("body").addClass("HasJS");

		jQuery("body *:first-child").not("a, em, strong, span, thead, tbody, tr").addClass("FirstChild");
		jQuery("body *:last-child").not("a, em, strong, span, thead, tbody, tr").addClass("LastChild");

		NMO.stripeTable(".Striped tbody");
		
		jQuery(document).mousemove( function(e) {
			NMO.documentMouseX = e.pageX;
			NMO.documentMouseY = e.pageY;
			NMO.windowMouseX = e.clientX;
			NMO.windowMouseY = e.clientY;
		} );
		
		$(".PNG").IEPNGHack();
		
	}
	
};


// Simple StringBuffer Class
function StringBuffer(str) {
	this.buffer = [];
	this.buffer.push(str);
	return this;
};
StringBuffer.prototype = {

	append: function(str) {
		this.buffer.push(str);
		return this;
	},
	
	clear: function() {
		this.buffer = [];
		return this;
	},
	
	toString: function() {
		return this.buffer.join("");
	}

};

jQuery( function() { NMO.init(); } );

