jQuery.noConflict();
(function($){
  /*$(document).ready(function(){
    $('.kleineventarea a').each(function(i,e){
      var j = $(e);
      var test;

      test = j.attr('href');
      if(test){
        if(test.indexOf('myspace.com/pratersauna') != -1) j.parent().hide();
        if(test.indexOf('facebook.com/pratersauna.vienna') != -1) j.attr('href', 'http://www.facebook.com/pratersauna');
      }

    }); // each
  }); // doc-ready
  */
  return;
  var width = parseInt(640*1.5);
  var height = parseInt(390*1.5);
  var vid_on = 1;
  //var embed_html = '<iframe src="http://player.vimeo.com/video/22051447?title=0&amp;byline=0&amp;portrait=0&amp;autoplay=1" width="'+width+'" height="'+height+'" frameborder="0"></iframe>';
  var embed_html = '<object class="youtube" style="height: '+height+'px; width: '+width+'px"><param name="movie" value="http://www.youtube.com/v/H38BZ7nhx0c?version=3&autoplay=1"><param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="always"><embed class="youtube" src="http://www.youtube.com/v/H38BZ7nhx0c?version=3&autoplay=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="'+width+'" height="'+height+'"></object>';
  $(document).ready(function(){
    if(document.URL.match(/efault.aspx/)) return;
    var vp_width = $(window).width();
    var vp_height = $(window).height();
    $('body').append('<div id="ddteaser" style="position: fixed; margin: 0; padding: 0; width: '+width+'px; height: '+height+'px;"></div>');
    $('#page').fadeTo('slow', 0.3);


    var t = $('#ddteaser');
    t.hide();
    t.css('background-color','black');
    var t_left = (vp_width/2 - width/2);
    if(t_left < 1) t_left = 0;
    t.css('left', t_left + 'px');
    var t_top = (vp_height/2 - height/1.5);
    if(t_top < 1) t_top = 0;
    t.css('top', t_top + 'px');
    t.html(embed_html);
    window.setTimeout(function(){t.show()},800);
    $('#page').click(remove);
  });
  function remove(){
    if(vid_on == 0) return;
    vid_on = 0;
    $('#page').fadeTo('fast', 1);
    $('#ddteaser').remove();
  }

})(jQuery);
