window.addEvent("domready", function(){
	var links = $$("a");
	new Tips($$(".tooltip"), {
		initialize: function(){
			this.fx = new Fx.Style(this.toolTip, "opacity", {wait: false});
		},
		onHide: function(){
			this.fx.start(0);
		},
		onShow: function(){
			this.fx.start(1);
		},
		offsets:{
			x:10,
			y:10
		}
	});
	new SmoothScroll();
	
	$$("a[rel*='external']").each(function(a){ 
		$(a).setProperty("target", "_blank");
	});
	
	$$("#nav li a, #quicklinks li a").each(function(el){
		if(!el.hasClass("selected")){
			var oColor = el.getStyle("color");
			var fx = new Fx.Style(el, "color", {"duration":300, "wait": false}).set("#FFFFFF");
			el.addEvents({
				"mouseover": function(){
					fx.start(oColor);
				},
				"mouseout": function(){
					fx.start("#FFFFFF");
				}			
			});
		}
	});

	$$(".features li a").each(function(el){
		if(!el.hasClass("selected")){
			var oColor = el.getStyle("color");
			var fx = new Fx.Style(el, "color", {"duration":300, "wait": false}).set("#E80000");
			el.addEvents({
				"mouseover": function(){
					fx.start(oColor);
				},
				"mouseout": function(){
					fx.start("#E80000");
				}			
			});
		}

	
	});
});

	
	
