window.addEvent('domready', function () {
									  
//we're using the domready handler to set all of the initial positioning of items to their pre-animated states

//$('featurechoices').setStyle ('opacity','0');
if(($('map'))&&(!isIE)){
	$('map').setStyle ('left','804px');
}

var list = $$('#content_above dt');
	list.each(function(element) { 
	element.setStyle ('opacity','0');
	})

});

window.addEvent('load', function() {



// ---------- Main Feature Animation

	//featureChoiceFade = new Fx.Styles('featurechoices', {duration:1500, wait:false});	
	
	

	//featureChoiceFade.start 
	
	//	({
							  
	//	  'opacity':'1'
		  
	//	 });





// ----------- Nav Hovers -----------

	
	var list = $$('#primary li a');
	
	list.each(function(element) { 


	var navfx = new Fx.Styles(element, {duration:200, transition:Fx.Transitions.Quart.easeOut, wait:false});
 
	element.addEvent('mouseenter', function(){
		navfx.start({ 'margin-top': '0' });
		});
 
	element.addEvent('mouseleave', function(){
		navfx.start({ 'margin-top': '6px' });
		});


	});


// ----------- featurechoices FX and Hovers -----------




	var deflist = $$('#featurechoices dd')
	var defSlide = [];
	var i=0;
	deflist.each (function(el, i){
	
	defSlide[i] = new Fx.Styles(el, {duration:400, transition:Fx.Transitions.Quart.easeOut, wait:false});
	i++;
	
	});
	
	var list = $$('#featurechoices dt');
	var dtfx = [];
	i=0;

	timer = 200;
	
	list.each(function(element, i) { 

	
	
	dtfx[i] = new Fx.Style(element, 'opacity',{
		duration:500, 
		wait:false
		});
	
 	dtfx[i].start.delay(timer, dtfx[i], '1');
 	
 	timer += 300;
 	
 
 
	element.addEvent('mouseenter', function(){
		defSlide[i-1].start
		
				({ 
				 
				
				'top': '120px'
				
		
				});
		
		

	dtfx[i] = new Fx.Style(element, 'border-color',{
		duration:0, 
		wait:false
		});
	
 	dtfx[i].start('#FFCC00');
		
		
		
		});
 
	element.addEvent('mouseleave', function(){
		defSlide[i-1].start
		
			({ 
			 
			 'top': '210px'
			 
			 });

	dtfx[i] = new Fx.Style(element, 'border-color',{
		duration:0, 
		wait:false
		});
	
 	dtfx[i].start('#0F2637');



		});

 	i++;

	});


// ------------- calloutslide -------------
if(($('map'))&&(!isIE)){
	var calloutSlide = new Fx.Styles ('map', {duration:300, transition:Fx.Transitions.Expo.easeOut, wait:false});
	calloutSlide.start.delay(1500, calloutSlide, {'left':'600px'});
}

}); // -----------  close the onload handler ---------------
