try {
	var pageTracker = _gat._getTracker("UA-9867034-4");
	pageTracker._trackPageview();
} catch(err) {}
$(document).ready(function() {

	if ('#slideshow_image'.length > 0){
		$.getScript('/js/cross-slide.js',function(){
			$('#slideshow_image').crossSlide({
		  		fade: 1,
				shuffle: true
			}, [
			  {
			    src:  '/images/slideshow/1.jpg',
			    from: '90% 20% 0.9x',
			    to:   '0% 100% 0.9x',
			    time: 4
			  }, {
			    src:  '/images/slideshow/2.jpg',
			    from: '10% 100% 1x',
			    to:   '80% 40% 1x',
			    time: 4
			  }, {
			    src:  '/images/slideshow/3.jpg',
			    from: '100% 100% 0.8x',
			    to:   '20% 50% 0.8x',
			    time: 4
			  }
			]);
		});
	}
	
	$("#logo").click(function() {   window.location = '/';   });

	if ($("#contactForm").length > 0){
		$.getScript('http://ajax.microsoft.com/ajax/jquery.validate/1.5.5/jquery.validate.js',function(){
			$("#contactForm").validate({
			//set the rules for the field names
			rules: {
				name: {
					required: true,
					minlength: 2
				},
				email: {
					required: true,
					email: true
				},
				message: {
					required: true,
					minlength: 2
				},
				},
				//set messages to appear inline
				messages: {
					name: "Please enter your name.",
					email: "Please enter a valid email address.",
					msg: "Please enter your message."
				}
			});

		});
	}
});