(function($){
//For Bullet Colors
$('.typography li').not('.thumbimage').wrapInner('<span>');

//$(".thumbimage a").tipsy({
//    delayIn: 400,      // delay before showing tooltip (ms)
//    delayOut: 400,     // delay before hiding tooltip (ms)
//    fade: true,     // fade tooltips in/out?
//    fallback: '',    // fallback text to use when no tooltip text
//    gravity: 'w',    // gravity
//    html: false,     // is tooltip content HTML?
//    live: false,     // use live event support?
//    offset: 0,       // pixel offset of tooltip from element
//    opacity: 0.8,    // opacity of tooltip
//    title: 'title',  // attribute/callback containing tooltip text
//    trigger: 'hover' // how tooltip is triggered - hover | focus | manual
//
//});


$('.thumbimage a').qtip({
  // content: 'Presets, presets and more presets. Let\'s spice it up a little with our own style!',
   style: {
//      width: 200,
      padding: 15,
      background: '#1C2A35',
      color: 'white',
      textAlign: 'center',
      border: {
         width: 2,
         radius: 0,
         color: '#1C2A35'
      },
//      tip: 'leftMiddle',
      title: {
         // fontFamily: 'Meiryo',
          fontSize: '16px'
        }
      
   //   name: 'dark'   // Inherit the rest of the attributes from the preset dark style


   },
      show: { effect: { length: 430, type: 'fade' } },
    position: {
      corner: {
         target: 'rightMiddle',
         tooltip: 'leftMiddle'
      },
      adjust: { x: 5, y: 0 }
   }

});

//Title and Description Widget

$('#title-desc-widget dt').click(function(){
    $(this).toggleClass("active").next('dd').slideToggle();
})

$('#title-desc-widget button#show-all').click(function(){
    $('#title-desc-widget dt').addClass("active").next('dd').slideDown();
})


})(this.jQuery);
