text: /*
  
      .----.                    _..._                                                     .-'''-.                           
     / .--./    .---.        .-'_..._''.                          _______                '   _    \                         
    ' '         |   |.--.  .' .'      '.\     __.....__           \  ___ `'.           /   /` '.   \_________   _...._      
    \ \         |   ||__| / .'            .-''         '.    ,.--. ' |--.\  \         .   |     \  '\        |.'      '-.   
     `.`'--.    |   |.--.. '             /     .-''"'-.  `. //    \| |    \  ' .-,.--.|   '      |  '\        .'```'.    '. 
       `'-. `.  |   ||  || |            /     /________\   \\\    /| |     |  '|  .-. \    \     / /  \      |       \     \
           `. \ |   ||  || |            |                  | `'--' | |     |  || |  | |`.   ` ..' /    |     |        |    |
             \ '|   ||  |. '            \    .-------------' ,.--. | |     ' .'| |  | |   '-...-'`     |      \      /    . 
              | |   ||  | \ '.          .\    '-.____...---.//    \| |___.' /' | |  '-                 |     |\`'-.-'   .'  
              | |   ||__|  '. `._____.-'/ `.             .' \\    /_______.'/  | |                     |     | '-....-'`    
             / /'---'        `-.______ /    `''-...... -'    `'--'\_______|/   | |                    .'     '.             
       /...-'.'                       `                                        |_|                  '-----------'           
      /--...-'                                                                                                              
      
      Slice:Drop - Instantly view scientific and medical imaging data in 3D.
      
       http://slicedrop.com
       
      Copyright (c) 2012 The Slice:Drop and X Toolkit Developers <dev@goXTK.com>
      
      Slice:Drop is licensed under the MIT License:
        http://www.opensource.org/licenses/mit-license.php    
        
      CREDITS: http://slicedrop.com/LICENSE
       
  */
  
  // mesh panel javascript
  jQuery(function() {
  
    
    jQuery('#meshvisibility').click(function() {
  
      toggleMeshVisibility();
    });
    
    jQuery('#meshColor').miniColors({
      letterCase: 'uppercase',
      change: meshColor
    });
    
    jQuery('#scalarsMinColor').miniColors({
      letterCase: 'uppercase',
      change: scalarsMinColor
    });
    
    jQuery('#scalarsMaxColor').miniColors({
      letterCase: 'uppercase',
      change: scalarsMaxColor
    });
    
    jQuery("#opacity-mesh").slider({
      slide: opacityMesh
    });
    jQuery("#opacity-mesh").width(140);
    
    jQuery("#threshold-scalars").dragslider({
      range: true,
      rangeDrag: true,
      values: [0, 100],
      // connect to x.controller.js
      slide: thresholdScalars
    });
    jQuery("#threshold-scalars").width(140);
    
  });
  