/* Fade in the images function */
window.addEvent('domready', function() {
	//Select the element you wish to slide
	var mySlide = new Fx.Slide('contactUsForm');
	mySlide.hide(); 
	//Create a slide in/out
	$('v_toggle').addEvent('click', function(e){//add the click function (i.e on an anchor)
		e = new Event(e);//create a new event here
		mySlide.toggle();//do this to the selected element
		e.stop();//stop the event
	});
	//Create a slide in/out
	$('v_toggle2').addEvent('click', function(e){//add the click function (i.e on an anchor)
		e = new Event(e);//create a new event here
		mySlide.toggle();//do this to the selected element
		e.stop();//stop the event
	});
});

/*  Mootools DOM object */
window.addEvent('domready', function() {
	function fadeIn(divid){
		var thediv = divid;
		var fader = $(thediv).setStyles({
			display: 'block',
			opacity: 0
		});
		new Fx.Style(fader, 'opacity', {duration: 2100}).start(1);
	}
	/*  Run Custom Function with given div id */
	fadeIn('imageSwitcher');
	fadeIn('quoter');
});


