window.addEvent('domready', function(){
	var status = {
		'false': 'Client Login',
		'true': '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hide&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'
	};

	var ClientLogInBox = new Fx.Slide('clientloginbox').hide();

    $('clientlogintoggle').addEvent('click', function(e){
		e.stop();
		ClientLogInBox.toggle();
	});

	ClientLogInBox.addEvent('complete', function() {
		$('clientlogintoggle').set('html', status[ClientLogInBox.open]);
	});
});

window.addEvent('domready', function(){
	var bgImg = {
		'false': 'url(/wp-content/themes/v1.0/i/hosting-up.png)',
		'true': 'url(/wp-content/themes/v1.0/i/hosting-down.png)'
	};
	
	var HostingFeatures1 = new Fx.Slide('sect1').hide();
    $('sect1tog').addEvent('click', function(e){
		e.stop();
		HostingFeatures1.toggle();
		$('sect1tog').tween('background-image', bgImg[HostingFeatures1.open]);
	});	

	var HostingFeatures2 = new Fx.Slide('sect2').hide();
    $('sect2tog').addEvent('click', function(e){
		e.stop();
		HostingFeatures2.toggle();
		$('sect2tog').tween('background-image', bgImg[HostingFeatures2.open]);
	});

	var HostingFeatures3 = new Fx.Slide('sect3').hide();
    $('sect3tog').addEvent('click', function(e){
		e.stop();
		HostingFeatures3.toggle();
		$('sect3tog').tween('background-image', bgImg[HostingFeatures3.open]);
	});
});
	
window.addEvent('domready', function(){			
	var HostTips = new Tips('.tips', {className:'tooltip', fixed:true});
	HostTips.addEvent('show', function(tip, el){
    	tip.fade('in');
	});
	HostTips.addEvent('hide', function(tip, el){
    	tip.fade('out');
	});
});