/* A TARGET */
(function($) {
  $.fn.target = function() {
    return this.each(function(index, elm) {
      if (substr($(this).attr("class"), 0, 7) == 'target-') {
        $(this).attr("target", substr($(this).attr("class"), 7));
      }
    });
  }
})(jQuery);

$(document).ready(function() {
  $("a").target();

  $(".menu ul").each(function() {
    $(this).children("li").each(function(i) {
      if (i % 2 != 0) {
        $(this).css("background-color", "#FFFFFF");
      }
    });
  });


  $('img[@src$=.png]').pngfix({
		imageFixSrc: "/images/pixel.gif"
	});

  $('ul.geuren li').tooltip({
      track: true,
      delay: 0,
      showURL: false,
      showBody: " - ",
      fade: 250,
      opacity: false,
      extraClass: "geur_item",
      bodyHandler: function() {
          return $("<img/>").attr("src", $(this).children("img").eq(0).attr("src"));
      }
  });
  
});
