/* ---------------------------------------------------------------------------------------
Site: 			Canadian Speakers
Author: 		Sean Langlands
--------------------------------------------------------------------------------------- */
$(document).ready(function(){
	
/* Fancybox
--------------------------------------------------------------------------------------- */
	$("a[rel='lightbox'], .gallery-item a").fancybox({
		'titleShow' : false,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'autoDimensions'	: true,
		'scrolling'			: 'no',
		'centerOnScroll'	: true
	});
	
/* Form Scripts
--------------------------------------------------------------------------------------- */
/*
	
	$('#aside_login input').live('focus', function() {
		var className = $(this).attr('name');
		if($(this).attr("type") != "file" && $(this).attr("type") != "textarea") {
			$('label[for="'+className+'"]').hide();
		}
		$(this).addClass("over");
	}).live('blur', function() {
		if($(this).val() == "") {
			if($(this).attr("type") != "file" || $(this).attr("type") != "textarea") {
				var className = $(this).attr('name');
				$('label[for="'+className+'"]').show();
			}
		}
		$(this).removeClass("over");
	}); */
	
	$('form[name="contactall"]').validate();
});

