/* 

This file contains the default configuration options for balloon tooltips.
Default options can be edited in this file or changed after the Balloon object is 
initiliazed as follows:

  var balloon = new Balloon;
  balloon.fontColor   = 'black';
  balloon.fontFamily  = 'Arial, sans-serif';
  balloon.fontSize    = '12pt';
  etc...

*/

// This function adds the default configuration and also custom 
// configuration sets, specified in 'case' stanzas
BalloonConfig = function(balloon, set) {
  set = set || '';

  ////////////////////////////////////////////////////////////////
  // The default "base" config applied to all balloon objects.  //
  // See http://gmod.org/wiki/Popup_Balloons#Customization for  //
  // details about config options                               //
  //                                                            //
  // values can be overriden in custom config cases (see below) //
  ////////////////////////////////////////////////////////////////
  if (!balloon.configured || set == 'Default') { 
   balloon.borderStyle		   = '1px solid #000000';        	//
    balloon.fontColor          = 'black';                       //
    balloon.fontFamily         = 'Arial, sans-serif';           //
    balloon.fontSize           = '12px';                        //
    balloon.minWidth           = 150;                           //
    balloon.maxWidth           = 600;                           //
    balloon.delayTime          = 0;                             //
    balloon.stem               = true;							//
    balloon.images             = 'images/balloons';             //
    balloon.ieImage            = 'balloon_ie.png';              //
    balloon.balloonImage       = 'balloon.png';                 //
    balloon.upLeftStem         = 'up_left.png';                 //
    balloon.downLeftStem       = 'down_left.png';               //
    balloon.upRightStem        = 'up_right.png';                //
    balloon.downRightStem      = 'down_right.png';              //
    balloon.closeButton        = 'xbox.gif';                    //
    balloon.closeButtonWidth   = 15;                            //
    balloon.allowAJAX          = false;                         //
    balloon.allowIframes       = false;                         //
    balloon.trackCursor        = true;                          //
    balloon.shadow             = 20;                            //
    balloon.padding            = 10;                            //
    balloon.stemHeight         = 32;                            //
    balloon.stemOverlap        = 6;                             //
    balloon.vOffset            = -10;
    balloon.opacity			   = 1.0;                             //
    balloon.hOffset            = 0;                             //    							//
    balloon.allowFade		   = false;							//
    balloon.configured         = set || true;                   //
  }                                                             //
  ////////////////////////////////////////////////////////////////


  ////////////////////////////////////////////////////////////////
  // Custom configuration options -- Add a case below for your  //
  // config set (default sets: GBox, GPlain, and GFade)         //
  ////////////////////////////////////////////////////////////////
  switch(set) {

    // A formatted box (no background image)
    case('GBox') : 
      balloon.bgColor     = '#EEEEEE';
      balloon.minWidth	  = 200;
      balloon.minHeight   = 200;
      balloon.borderStyle = '1px solid #000000'; 
      balloon.padding     = 5;
      balloon.shadow      = 0;
      balloon.stem        = true;
      balloon.opacity     = 1.0;
      balloon.hOffset     = 1;
      balloon.vOffset     = 1;
      balloon.allowFade   = false;
      break;


  }
}

