/*
Effects scripts
*/
window.addEvent('domready', function(){			
	/* 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: 100}).set(0);
		},
		onShow: function(toolTip) {
			this.fx.start(1);
		},
		onHide: function(toolTip) {
			this.fx.start(0);
		}
	});
	 
	/* Tips 3 */
	var Tips3 = new Tips($$('.Tips3'), {
		showDelay: 100,
		hideDelay: 200,
		fixed: true
	});
	 
	/* Tips 4 */
	var Tips4 = new Tips($$('.Tips4'), {
		className: 'custom'
	});
	
	
	$("emailReg").addEvent('click', function() {
		if ($("emailReg").value == "Enter your email address") {
			$("emailReg").value = "";
		}
	});
	
	$('newsForm').addEvent('submit', function(q) {
		new Event(q).stop();
		this.send({
			onComplete: function(msg) {
				alert(msg);
				$("emailReg").value = "Enter your email address";
			}
		});
	});
});
