if(jQuery().accordion) {
    jQuery(function() {
        jQuery("#accordion").accordion({
            active: false,
            collapsible: true,
            activate: "swatchesclick"
        });   
    });
}

if(jQuery().qtip) {
jQuery(document).ready(function(){
   jQuery('.tooltip[title]').qtip({
      position: {
         corner: {
            target: 'topRight',
            tooltip: 'bottomLeft'
         }
      },
   style: {
      width: {
          max: 400
    
      },
      padding: 5,
      background: '#fff',
      color: 'black',
      textAlign: 'center',
      border: {
         width: 1,
         radius: 3,
         color: '#81BEAC'
      },
      tip: 'bottomLeft',
      name: 'dark' // Inherit the rest of the attributes from the preset dark style
   }

   });
});
}

if(jQuery().validate) {
    jQuery(function() {
        jQuery("#formv").validate({
            rules: {
                reg_retype_password: {
                    equalTo: "#reg_password"
                },
                reg_email: {
                    required: true,
                    email: true,
                    remote: "ajax/check_email.php"
                }
            }
        });
    });
}

if(jQuery().jcarousel) {
jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
        start: 1,
        scroll: 2
    });
});
}
