$.noConflict();

jQuery(document).ready(function($) {
    /*
	 * Image Gallery Scroller
	 */

	if ($('.gallery').length > 0) {
                                      

	    $('.gallery').tinyscrollbar({ sizethumb: 32 });
                                      

	}

	/*
	 * Contact Us Form
	 */

	// Copy field value into jQuery's data property
    $('.labeled').each(function(index) {
        $(this).data('fieldLabel', this.value);
    });

	$('.labeled').focus(function(event) {
        if (this.value == $(this).data('fieldLabel')) {
            this.value = '';
        }
    });

	// Restore label to field upon leaving if the field is empty
    $('.labeled').blur(function(event) {
        if (this.value == '') {
            this.value = $(this).data('fieldLabel');
        }
    });


//	// Cancel contact form
//    $('#contact-form .cancel-btn').click(function(event) {
//        $('#contact-form').slideUp('fast');

//		event.preventDefault();
//    });


	// Submit contact form
//    $('#contact-form .submit-btn').click(function(event) {
//        $('#contact-form .labeled').each(function(index) {
//            if (this.value == $(this).data('fieldLabel')) {
//                this.value = '';
//            }
//        });
//    });


	// Contact Us Form
//    $('#contact-us .contact-btn').click(function(event) {
////        switch ($('#contact-form').css('display')) {
////        case 'none':
////            $('#contact-form').slideDown('fast');
////            break;
////        case 'block':
////            $('#contact-form').slideUp('fast');
////            break;
////        }
//        
//		event.preventDefault();
    });
//});
