var pixasticaroussel={

  animateduration: {
    over: 200,
    out: 100
  }, //duration of slide in/ out animation, in milliseconds

  fadeimage:function(){
    jQuery(document).ready(function(jQuery){
     

      jQuery('#model-caroussel-controls-left').click(function() {
        var img = jQuery("#myImage"); // get the image element

        if (img.complete) {
          alert('img complete');
          var newimg = Pixastic.process(
            img,
            "brightness",

            {

              "brightness" : 60,
              "contrast" : 0.5,
              "rect" : {
                "left" : 100,
                "right" : 100,
                "width" : 200,
                "height" : 150
              }
            }
            )
        }
      });



    }

    )
    }
}


//build menu with ID="myslidemenu" on page:
pixasticaroussel.fadeimage()
