//mootools stuff for dynamic resizing
window.addEvent('domready', function() {
	var sizeContentToScroll = $('copy').getHeight();
	if (sizeContentToScroll >= 260) {
	  if ($('control-top') != null) $('control-top').setStyle('visibility', 'visible');
	};
});

//window.addEvent('resize', function() {
//	location.replace(location.href);
//});

//Mouseoverfunktion - Klasse des img: mo
window.addEvent('domready', function() {
  $$('img.mo').each(function(img) {
    var src = img.getProperty('src');
    var extension = src.substring(src.lastIndexOf('.'),src.length);
    // Preload the image
    var myImages = new Asset.images([src.replace(extension,'_over' + extension)]);
    img.addEvent('mouseenter', function() { img.setProperty('src',src.replace(extension,'_over' + extension)); });
    img.addEvent('mouseleave', function() { img.setProperty('src',src); });
  });
});

//Reset des Scrollbalkens bei Sprung zum Seitenanfang - Klasse des img: top
//window.addEvent('domready', function() {
//  $$('img.top').each(function(img) {
//    img.addEvent('click', function() { 
//	  location.replace(location.href);
//    });
//  });
//});

//open browser window
function openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//open Slimbox from Flash
function SlimboxDelegate(url,caption) {
   //alert(url+", "+caption);
   Slimbox.open(url,caption);
}