$(document).ready(function()
{
	$("a[rel='lightbox']").colorbox({
        maxHeight: '90%',
        maxWidth: '90%'
    });
    
     $('.hasSubmenu').mouseover(function() {
        $(this).children('div').show();
    })
    
    $('.hasSubmenu').mouseout(function() {
        $(this).children('div').hide();
    })
    
    
    $('.innerfade').innerfade({
		speed: 2500,
		timeout: 4000,
		type: 'sequence'
	});
    
    $(".validateForm").validate({
        errorPlacement: function(error, element) {
			error.prependTo( element.parent().next() );
		},
		// set this class to error-labels to indicate valid fields
		success: function(label) {
			// set &nbsp; as text for IE
			label.html("&nbsp;").addClass("checked");
		}
    });
    
    
});
