microsite.productselection = function()
{
  $(document).ready(function(){
    $("#pageheader_slideshow").cycle();
  });

  return {
    openDoor:function(doorObject, ledObject)
    {
      doorObject.stop().animate({backgroundPosition:"0 -245px"}, 600, null);
      ledObject.removeClass("productselection_led_text");
      ledObject.css("top", "15px");
      ledObject.addClass("productselection_led_text_highlight");
      ledObject.stop().animate({top:"0"}, 600);
    },
    closeDoor:function(doorObject, ledObject)
    {
      doorObject.stop().animate({backgroundPosition:"0 0"}, 600, null);
      ledObject.removeClass("productselection_led_text_highlight");
      ledObject.addClass("productselection_led_text");
    }
  }
}();

$(function(){
  $(".productselection_door").css("background-position", "0 0");
  $(".productselection_hangar_product1").hover(function()
			{
        microsite.productselection.openDoor($("#door1"), $("#productselection_led1 div div"));
			}, function()
			{
        microsite.productselection.closeDoor($("#door1"), $("#productselection_led1 div div"));
			});
  $(".productselection_hangar_product2").hover(function()
			{
        microsite.productselection.openDoor($("#door2"), $("#productselection_led2 div div"));
			}, function()
			{
        microsite.productselection.closeDoor($("#door2"), $("#productselection_led2 div div"));
			});
  $(".productselection_hangar_product3").hover(function()
			{
        microsite.productselection.openDoor($("#door3"), $("#productselection_led3 div div"));
			}, function()
			{
        microsite.productselection.closeDoor($("#door3"), $("#productselection_led3 div div"));
			});
});

