Event.observe(window, 'load', pac, false);

function pac() {
  var tlBehaviour = {
    '.image-roll' : function(element) {
		element.onmouseover = function() {
			new Ajax.Updater('display', '/cars/display/'+element.getAttribute('id'), {asynchronous:true, evalScripts:true, onComplete: function(response){Effect.Pulsate('display', {pulses: 1, duration: 0.25})}});
      	}
    },

	'#change-height' : function(element) {
		plus = 110;
		if (navigator.appName.match("icrosoft")) plus = 0;
		height = $('determine-height').scrollHeight+plus;
		if (height > element.scrollHeight) {
			element.style.height = height + 'px';
			element.style.overflow = "hidden";
		}
	}
  }
	
  Behaviour.register(tlBehaviour);
  Behaviour.apply();
}