jQuery(function() {

$("div#entry_1,div#entry_2,div#entry_3,div#entry_4,body#work aside.projects,body#playground aside.projects,span.showme").hide();
$("section#work article.portfolio a.entry_1").hover(
  function () {
    $("section#work article.portfolio div#entry_1").slideDown("slow");
  },
  function () {
    $("section#work article.portfolio div#entry_1").slideUp("slow");
  }
);
$("section#work article.portfolio a.entry_2").hover(
  function () {
    $("section#work article.portfolio div#entry_2").slideDown("slow");
  },
  function () {
    $("section#work article.portfolio div#entry_2").slideUp("slow");
  }
);
$("section#work article.portfolio a.entry_3").hover(
  function () {
    $("section#work article.portfolio div#entry_3").slideDown("slow");
  },
  function () {
    $("section#work article.portfolio div#entry_3").slideUp("slow");
  }
);
$("section#work article.portfolio a.entry_4").hover(
  function () {
    $("section#work article.portfolio div#entry_4").slideDown("slow");
  },
  function () {
    $("section#work article.portfolio div#entry_4").slideUp("slow");
  }
);
$('.slider').bxSlider({
	alignment: 'horizontal',        // 'horizontal', 'vertical' - direction in which slides will move
	controls: false,                 // determines if default 'next'/'prev' controls are displayed
	speed: 1500,                     // amount of time slide transition lasts (in milliseconds)
	pager: true,                    // determines if a numeric pager is displayed (1 2 3 4...)
	pager_short: false,             // determines if a 'short' numeric pager is displayed (1/4)
	pager_short_separator: ' / ',   // text to be used to separate the short pager
	margin: 0,                      // if 'horizontal', applies a right margin to each slide, if 'vertical' a
	                                // bottom margin is applied. example: margin: 50
	auto: true,                    // determines if slides will move automatically
	pause: 20000,                    // time between each slide transition (auto mode only) 
	auto_direction: 'next',         // order in which slides will transition (auto mode only)
	auto_hover: true,               // determines if slideshow will pause while mouse is hovering over slideshow
	auto_controls: false,           // determines if 'start'/'stop' controls are displayed (auto mode only)
	ticker: false,                  // determines if slideshow will behave as a constant ticker
	ticker_controls: false,         // determines if 'start'/'stop' ticker controls are displayed (ticker mode only)
	ticker_direction: 'next',       // order in which slides will transition (ticker mode only)
	ticker_hover: true             // determines if slideshow will pause while mouse is hovering over slideshow
});

$("span.hideme").click(
  function () {
    $("nav#tags,section#introduction").slideUp("slow");
	$("span.showme").fadeIn("slow");
  }
);

$("span.showme").click(
  function () {
    $("nav#tags,section#introduction").slideDown("slow");
	$("span.showme").fadeOut("slow");
	$("span.hideme").fadeIn("slow");
  }
);

});
