// JavaScript Document
			
jQuery(function($){
				$.supersized({
					//Background image
					slides	:  [ { image : 'tl_files/hell_dunkel_layout_2011/bg.jpg' } ]					
				});
			});
			
window.addEvent('domready', function() {
$$('img.trail').each(function(img) {
  var src = img.getProperty('src');
  var extension = src.substring(src.lastIndexOf('.'),src.length)
  img.setProperty('src',src.replace(extension,'_active' + extension));
  img.addEvent('mouseenter', function() {  
  img.setProperty('src',src.replace(extension,'_over' + extension));

});

img.addEvent('mouseleave', function() { 
img.setProperty('src',src.replace(extension,'_active' + extension)); });
});
});

window.addEvent('domready', function() {
$$('img.over').each(function(img) {
  var src = img.getProperty('src');
  var extension = src.substring(src.lastIndexOf('.'),src.length)
  img.addEvent('mouseenter', function() { 
  img.setProperty('src',src.replace(extension,'_over' + extension));

});

img.addEvent('mouseleave', function() { 
img.setProperty('src',src); });
});
});

window.addEvent('domready', function() {
$$('img.socialover').each(function(img) {
  var src = img.getProperty('src');
  img.addEvent('mouseenter', function() { 
  img.tween('opacity', [0.7, 1]);

});
 
img.addEvent('mouseleave', function() {
img.tween('opacity', [1, 0.7]);});
});
});



$$('input.delete').each(function(input) {
var value = input.getProperty('value');

input.addEvent('focus',function() { 
input.tween('opacity', [1, 0.7]);
input.val('');

});
});


 
