
/* the next line is an example of how you can override default options globally (currently commented out) ... */

 // $.fn.cluetip.defaults.tracking = true;
  // $.fn.cluetip.defaults.width = 'auto';
$(document).ready(function() {

 // $.cluetip.setup({insertionType: 'insertBefore', insertionElement: 'div:first'});
 
//default theme
  $('a.sb-load-local').cluetip({local:true, hideLocal: false, cursor: 'pointer', showtitle: false, positionBy: 'auto', leftOffset: '160px', 
  //open: 'fadeIn', 
  // can be 'show' or 'slideDown' or 'fadeIn'
  //openSpeed:  '500',
  //hoverIntent: {sensitivity: 3, interval: 250, timeout: 0}, 
    onActivate: function(e) {
      var monkee = $('#monkee')[0];
      return !monkee || monkee.checked;
    }
  });
  $('a.sb2-load-local').cluetip({cursor: 'pointer', showtitle: false, positionBy: 'auto', leftOffset: '160px', 
  //open: 'fadeIn', 
  // can be 'show' or 'slideDown' or 'fadeIn'
  //openSpeed:  '500',
  //hoverIntent: {sensitivity: 3, interval: 250, timeout: 0}, 
    onActivate: function(e) {
      var monkee = $('#monkee')[0];
      return !monkee || monkee.checked;
    }
  });
  $('#shoutboxhelpdisable').cluetip({splitTitle: '|', leftOffset: '150px',
  onActivate: function(e) {
      var monkee = $('#monkee')[0];
      return !monkee || monkee.checked;
    }
  });
  $('#Axis_and_Allies_Video-button').cluetip({splitTitle: '|', mouseOutClose: true,});
  $('#www_axis-and-allies_com-button').cluetip({splitTitle: '|', mouseOutClose: true,});
  $('#The_Game_and_The_Community-button').cluetip({splitTitle: '|', mouseOutClose: true,});
  $('#Axis_Allies_Real_Time_Strategy_PC_Game-button').cluetip({splitTitle: '|', mouseOutClose: true,});
  $('#The_Secret_Police-button').cluetip({splitTitle: '|', mouseOutClose: true,});
  $('#shoutboxslider').cluetip({splitTitle: '|', mouseOutClose: true, leftOffset: '150px',
  onActivate: function(e) {
      var monkee = $('#monkee')[0];
      return !monkee || monkee.checked;
    }
  });
  $('.shoutboxformbutton').cluetip({splitTitle: '|', leftOffset: '150px',
  onActivate: function(e) {
      var monkee = $('#monkee')[0];
      return !monkee || monkee.checked;
    }
  });
  $('ol:first a:last').cluetip({tracking: true});

// jTip theme
  $('a.jt:eq(0)').cluetip({
    cluetipClass: 'jtip', 
    arrows: true, 
    dropShadow: false,
    sticky: true,
    mouseOutClose: true,
    closePosition: 'title',
    closeText: '<img src="cross.png" alt="close" />'
  });
  $('a.jt:eq(1)').cluetip({cluetipClass: 'jtip', arrows: true, dropShadow: false, hoverIntent: false});
  $('span[title]').css({borderBottom: '1px solid #900'}).cluetip({splitTitle: '|', arrows: true, dropShadow: false, cluetipClass: 'jtip'});

  $('a.jt:eq(2)').cluetip({
    cluetipClass: 'jtip', 
    arrows: true, 
    dropShadow: false, 
    height: '150px', 
    sticky: true,
    positionBy: 'bottomTop'    
  });

  $('a.jt:eq(3)').cluetip({local: true, hideLocal: false});
  
  $('a.jt:eq(4)').cluetip({
    cluetipClass: 'jtip', arrows: true, 
    dropShadow: false, 
    onActivate: function(e) {
      var cb = $('#cb')[0];
      return !cb || cb.checked;
    }
  });
  $('select.cl').cluetip({splitTitle: '|', positionBy: 'mouse', tracking: true});
// Rounded Corner theme
  $('ol.rounded a:eq(0)').cluetip({splitTitle: '|', dropShadow: false, cluetipClass: 'rounded', showtitle: false});
  $('ol.rounded a:eq(1)').cluetip({cluetipClass: 'rounded', dropShadow: false, showtitle: false, positionBy: 'mouse'});
  $('ol.rounded a:eq(2)').cluetip({cluetipClass: 'rounded', dropShadow: false, showtitle: false, positionBy: 'bottomTop', topOffset: 70});
  $('ol.rounded a:eq(3)').cluetip({cluetipClass: 'rounded', dropShadow: false, sticky: true, ajaxCache: false, arrows: true});
  $('ol.rounded a:eq(4)').cluetip({cluetipClass: 'rounded', dropShadow: false});    
});

  
$(function()
{
$('#pane0').jScrollPane({showArrows:true});
$('#pane1').jScrollPane({showArrows:true});
$('#pane2').jScrollPane({showArrows:true});
$('#pane3').jScrollPane({showArrows:true});
$('#pane4').jScrollPane({showArrows:true});
$('#pane5').jScrollPane({showArrows:true});
$('#pane6').jScrollPane({showArrows:true});
$('#pane7').jScrollPane({showArrows:true});
$('#pane8').jScrollPane({showArrows:true});
$('#pane9').jScrollPane({showArrows:true});
});

Shadowbox.init({
    language: 'en',
    handleOversize:'drag',
    overlayOpacity:'0.5',
    handleUnsupported:  'remove',
    players:  ['img', 'html', 'swf', 'iframe']
});

