//-----------------------------------------------------------------------------------------------------------------
window.addEvent('domready', function(){

	var arr = document.getElementsByTagName('img') ; ///class="Tips2"
	 // IE fix suppress the img alt showing as a browser tooltip: walk the arra and empty the alt
	for(var x = 0; x<arr.length; x++){
	 if(arr[x].className=='Tips2') {
		 arr[x].alt=''; 
		 }
	}
	/* Tips 1 */
	var Tips1 = new Tips($$('.Tips1'));
	 
	/* Tips 2 */
	var Tips2 = new Tips($$('.Tips2'), {
		initialize:function(){
			this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
		},
		onShow: function(toolTip) {
			this.fx.start(1);
		},
		onHide: function(toolTip) {
			this.fx.start(0);
		}
	});
	 
	 // *am*  after tips2 has loaded walk the a rel=lightbox array and empty the title to suppress the tooltip in yr browser"
	var arr = document.getElementsByTagName('a') ;
		for(var x = 0; x<arr.length; x++){
			if(arr[x].rel.substr(0,8) == 'lightbox') {
				arr[x].title="";
			}
	}
	 
	/* Tips 3 */
	var Tips3 = new Tips($$('.Tips3'), {
		showDelay: 400,
		hideDelay: 400,
		fixed: true
	});
	 
	/* Tips 4 */
	var Tips4 = new Tips($$('.Tips4'), {
		className: 'custom'
	});
});
