window.addEvent('domready', function() {
//menu
var myMenu = new MenuMatic();
//slider
new SlideItMoo({
itemsVisible:1, // the number of thumbnails that are visible
autoSlide:5000, // insert interval in milliseconds
currentElement: 0, // the current element. starts from 0. If you want to start the display with a specific thumbnail, change this
thumbsContainer: 'thumbs2',
elementScrolled: 'thumb_container2',
overallContainer: 'gallery_container2'});	

//hideDiv = document.getElementById("log");
//hideDiv.style.display = 'none';

});	


		window.addEvent('domready', function() {			
			//hideDiv = document.getElementById("log");
			//hideDiv.style.display = 'none'
			var myFormValidation = new Validate('formLogin',{
					errorClass: 'red',
					onSuccess: function(form){
						hideDiv.style.display = ''
						var log = $('log_res').empty().addClass('ajax-loading');
						document.forms['formLogin'].set('send', {onComplete: function(response) { 
							log.removeClass('ajax-loading');
							log.set('html', response);
						}});
						document.forms['formLogin'].send();	
					}
				});
				hideDiv2 = document.getElementById("log2");
			if (hideDiv2 != null) hideDiv2.style.display = 'none';
			var myFormValidation2 = new Validate('formCallback',{
					errorClass: 'red',
					onSuccess: function(form){
						hideDiv2.style.display = ''
						var log = $('log_res2').empty().addClass('ajax-loading');
						document.forms['formCallback'].set('send', {onComplete: function(response) { 
							log.removeClass('ajax-loading');
							log.set('html', response);
						}});
						document.forms['formCallback'].send();	
					}
				});
			//hideDiv3 = document.getElementById("log3");
			//hideDiv3.style.display = 'none'
			var myFormValidation3 = new Validate('formEnquiry',{
					errorClass: 'red',
					onSuccess: function(form){
						hideDiv3.style.display = ''
						var log = $('log_res3').empty().addClass('ajax-loading');
						document.forms['formEnquiry'].set('send', {onComplete: function(response) { 
							log.removeClass('ajax-loading');
							log.set('html', response);
						}});
						document.forms['formEnquiry'].send();	
					}
				});
		});		

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}