var Koncern = {
	initProductionPage: function(player_url, skin_url, file_url, image_url) {
		// Ful credit animation
		var $div = $('#other_credits');
		var height = $div.height();
		$div.hide().css({ height : 0 });
		$('.production .credits .full-credit').click(function () {
			$full = $(this);
		  if ( $div.is(':visible') ) {
		    $div.animate({ height: 0 }, { duration: 1000, complete: function () {
		        $div.hide();
						$full.removeClass('up');
		      } 
		    });
		  } else {
		    $div.show().animate({ height : height }, { duration: 1000, complete: function () {
						$full.addClass('up');
			  	}
		    });
		  }
		  return false;
		});
		
		// Video in lightbox
		$("#play_button[rel]").overlay({expose: '#000', onLoad: function() {
			$("#overlay .player").flashembed({
				src: player_url,
				wmode: 'opaque'
			}, {
				file: file_url,
				image: image_url,
				skin: skin_url,
			  displayclick: 'play',
			  repeat: 'list',
			  icons: false,
			  smoothing: false,
			  //stretching: 'none',
			  resizing: true,
			  autostart: true,
			  controlbar: 'over'
			});
		}});
		
	},

	initSearchBox: function() {
	  var default_text = "Indtast din søgning her";
	  $("#searchbox").click(function() {
  	  if($(this).val() == default_text) {
        $(this).val("");
      };
    });
	}
};