/**
 * Common used javascript helper functions
 * 
 * $Date: 2010-12-28 14:38:19 +0100 (Di, 28 Dez 2010) $
 * $Rev: 1 $
 * 
 * @author $Author: cg $
 * @since 2361
 */
$(document).ready(function() {
	
// Only run automatically when we have the first run
  if(CS.mp3autoplay) {

    $("#music").jPlayer({
      ready: function () {
        $(this).jPlayer("setMedia", {
          mp3: CS.mp3file
        }).jPlayer("play");
      },
      ended: function (event) {},
      swfPath: "js",
      supplied: "mp3"
    });
  } else {
    $("#music").jPlayer({
      ready: function () {
        $(this).jPlayer("setMedia", {
          mp3: CS.mp3file
        });
      },
      ended: function (event) {},
      swfPath: "js",
      supplied: "mp3"
    });
  }

	$('.contents table.colored tr:odd').addClass('odd');
	$('.images a').fancybox();
	$('a.bild_zoom').fancybox();
	$('.autoempty').inputLabel();
});

