// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults



Event.observe(window, 'load', function() {
  // seb this broke granat.panter.ch
	// loadMap();
	/*GEvent.addListener(window, 'init', function() {
    loadMap();
  })*/
});

function register_video(id) {
  // Event.observe(window, 'load', function() {
    flowplayer(id, "/flowplayer-3.1.1.swf", { 
      clip: { 
          autoPlay: true, 
          autoBuffering: true }
    });
  // });
}

// image preloading
function register_image(url) {
  if (document.images) {
    Event.observe(window, 'load', function() {
      new Image().src = url;
    });
  }
}



function replace_comp(hide, show) {
  $('comp_'+hide).hide();
  $('comp_'+show).show();
}
