$(document).ready(
  function(){
    $('.slide-box').innerfade({
      speed: 2000,
          timeout: 8000,
          type: 'sequence',
          slide_timer_on: 	'yes',
          slide_ui_parent: 	'supersize',
          slide_nav_id:		'slide_nav'
    });
        $.setOptionsButtonEvent();

        $("#pause_button").click(function() {
          $.pause();
    });
        $("#next_button").click(function() {
          $.next();
        });
    $("#prev_button").click(function() {
          $.prev();
        });
    $("#first_button").click(function() {
          $.first();
        });
    $("#last_button").click(function() {
        $.last();
        });
});

$(document).ready(
  function(){

        $(".show-video").click(function() {
          var cur = $("#switcher li.active");
          cur.removeClass("active");
          $(this).parent().addClass("active");
          $("#b-profile-slider").addClass("invisible");
          $("#b-profile-video").show();
          $(".b-profile-about").hide();
          return(false);
    });
    $(".show-profile").click(function() {
      var cur = $("#switcher li.active");
          cur.removeClass("active");
          $(this).parent().addClass("active");
          $("#b-profile-slider").removeClass("invisible");
          $("#b-profile-video").hide();
          $(".b-profile-about").show();
          return(false);
    });
});

$(function(){
  $.fn.supersized.options = {
    startwidth: 4,
    startheight: 3,
    vertical_center: 1,
    slideshow: 0,
    navigation: 0
    };
  $('#supersize').supersized();
});

$(function(){
  var text = $('#wtf .b-wtf-body');
  $('#wtf .toggle').click(function(){
    text.toggle();
  });
});



