			function validacijaMail() {
				var first = $('form#contactForm div#info > p:nth-child(2) input').val();
				var last = $('form#contactForm div#info > p:nth-child(3) input').val();
				var email = $('form#contactForm div#info > p:nth-child(4) input').val();
				var phone = $('form#contactForm div#info > p:nth-child(5) input').val();
				var company = $('form#contactForm div#info > p:nth-child(7) input').val();
				var website = $('form#contactForm div#info > p:nth-child(8) input').val();
				var msg = $('form#contactForm textarea').val();
				var regarding = $('form#contactForm select').val();

			function emailValidan(email){
					var sablon = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
					return sablon.test(email);
				}

				if(emailValidan(email)){
					var ideAjax = 'first='+ first + '&last=' + last + '&email=' + email + '&phone=' + phone + '&phone=' + phone + '&company=' + company + '&website=' + website + '&msg=' + msg + '&regarding=' + regarding;
						$.ajax({
     						type: "POST",
     						url: "php/mail.php",
     						data: ideAjax,
      						success: function(){
								$('#contactForm').fadeOut('slow', function() {
									$('#form').html('<h1 class="ty">Thank you for contacting TradeSmarter. <br />We will respond shortly.</h1>');
									Cufon.now();
									$('#infoBox a[rel]').overlay().close();
								  });
							}
     					});
				} else {
					$('#form').prepend('<div id="errorForm"><img src="static/images/error.png" alt="arror" />The required fields are not filled and/or the e-mail address is not valid!</div>');
					$('#errorForm').fadeOut(0);
					$('#errorForm').delay(400).fadeIn('slow');
					$('#form #errorForm').delay(4000).fadeOut('slow', function() {
						$('#errorForm').remove();
					});
				}
			}

$(document).ready(function(){
	Cufon.replace('h1', { fontFamily: 'Century Gothic' });
	Cufon.now();

	$('ul#mainMenu').superfish({ 
            delay:       0,
            animation:   {opacity:'show', height:'show'},
            speed:       100,
            autoArrows:  false,
            dropShadows: false,
			hoverClass:	 'menuHover'
	});
	
	$("#browsable").scrollable({circular: true}).navigator();
	$("#browsable2").scrollable({circular: true}).navigator("#alt_menuCon");
	
	$('.item').hover(
		function(){
			$('.mask', this).animate({top: -115}, 200);
		},
		function(){
			$('.mask', this).animate({top: 0}, 200);
		}
	);

	$('.CosItem').hover(
		function(){
			$('.mask', this).animate({top: -140}, 200);
		},
		function(){
			$('.mask', this).animate({top: 0}, 200);
		}
	);
	
	$('#f2 a[rel]').overlay();
	$('#infoBox a[rel]').overlay();
	
});	
