// $(document).ready(function(){
//   $(".share").mouseenter(function(){
//     $(".socials").show('slide', {direction: 'right'}, 1000);
//   });
// 
//   $(".socials").mouseleave(function(){
//     $(".socials").hide('slide', {direction: 'right'}, 1000);
//   });
//   
// });

// var $j = jQuery;
// 
// $(document).ready(function() {
//          $j('input[type="text"], textarea').addClass("idle");
//              $j('input[type="text"], textarea').focus(function() {
//                  $j(this).removeClass("idle").addClass("focus");
//              if (this.value == this.defaultValue){ 
//                  this.value = '';
//              }
//              if(this.value != this.defaultValue){
//                  this.select();
//              }
//          });
//          $j('input[type="text"], textarea').blur(function() {
//              $j(this).removeClass("focus").addClass("idle");
//              if ($j.trim(this.value) == ''){
//                  this.value = (this.defaultValue ? this.defaultValue : '');
//              }
//          });
//      });

/*Contact Page*/


// ========================
// = Begin Ready Function =
// ========================
$(document).ready(function(){

    
    // On Focus
    $('input[type="text"], textarea').addClass("idle");
    
    $('input[type="text"], textarea').focus(function() {
        $(this).removeClass("idle").addClass("focus");
        if (this.value == this.defaultValue){ 
            this.value = '';
        }
        
        if(this.value != this.defaultValue){
            this.select();
        }
    });
    
    $('input[type="text"], textarea').blur(function() {
        $(this).removeClass("focus").addClass("idle");
        
        if ($.trim(this.value) == ''){
            this.value = (this.defaultValue ? this.defaultValue : '');
        }
    });
    
    // Contact page
    $(".openWorkingHours").click(function(){
        $(".workingHours").toggle(100);
    });
    
    // Product images reflection
    $(".action img").reflect({height:20});
    $('.cartProductImg img').reflect({height:20});
    $('.right img').reflect({height:20});
    $('.productImg img').reflect({height:20});
    $('.display td a img').reflect({height:20});
    
    // Product attributes dialog
	$('.addCart').click(function(){
		$( "#dialog:ui-dialog" ).dialog( "destroy" );
	
		$( "#dialog" ).dialog({
			modal: true,
            width: 800
		});
	});
    
    // Checkout   
    $('.closeBucket').click(function(){
        $("#shopCart")[0].reset();
        $( "#dialog:ui-dialog" ).dialog( "destroy" );
    });
    

    // $('#listing').dataTable({
    //         "bJQueryUI": true,
    //         
    //     });
    

});
// End Ready Function



