﻿
window.addEvent('domready', function(){


//fade in category links

	var x = new Chain();
	var one = function(){
	 if($('ns_bg'))  var fade = new Fx.Style('ns_bg', 'opacity', {duration: 200, transition: Fx.Transitions.Sine.easeOut }).start(0,1);
	};	
	var two = function(){
		if($('prods_submenu_ns'))  var fadetwo = new Fx.Style('prods_submenu_ns', 'opacity', {duration: 200, transition: Fx.Transitions.Sine.easeOut }).start(0,1);
	};
	var three = function() { 
	if($('prodsphoto'))  var fadethree = new Fx.Style('prodsphoto', 'opacity', {duration: 200, transition: Fx.Transitions.Sine.easeOut }).start(0,1);
	};
	var four = function() { 
	if($('prods_info'))  var fadefour = new Fx.Style('prods_info', 'opacity', {duration: 200, transition: Fx.Transitions.Sine.easeOut }).start(0,1);
	};
// this next section was coded back in by MS 2-09
	var five = function() { 
	if($('prods_info_two')) var fadefive = new Fx.Style('prods_info_two', 'opacity', {duration: 200, transition: Fx.Transitions.Sine.easeOut }).start(0,1);
	};
// ----------
	var six = function() { 
	if($('prods_bottom_ns')) var fadesix = new Fx.Style('prods_bottom_ns', 'opacity', {duration: 200, transition: Fx.Transitions.Sine.easeOut }).start(0,1);
	};

	x.chain(one);
	x.chain(two);
	x.chain(three);
	x.chain(four);
	x.chain(five);
	x.chain(six);

x.callChain.delay(200, x);
x.callChain.delay(400, x);
x.callChain.delay(600, x);
x.callChain.delay(800, x);
x.callChain.delay(1000, x);
x.callChain.delay(1200, x);



//tool tips function

var Tips2 = new Tips($$('.prodtips'), {
	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);
	},
	offsets: {'x': 17, 'y': 12},
	className: 'prods'
});
 

});



