Event.observe(window, 'load', function() {

	if ($('wrapper').getHeight() < $('inner-text').getHeight()) {
		$('footer').insert({top:'<img id="scroll-top-hint" src="' + PATH_.images + 'scrollers/scroll-top-hint.png" style="display: none;"/><img id="scroll-bottom-hint" src="' + PATH_.images + 'scrollers/scroll-bottom-hint.png" style="display: none;"/>'});
		$('main').insert('<div id="scroll-top" class="ww4"><\/div><div id="scroll-bottom" class="ww4 active"><\/div>');
		new VerticalScroller($('inner'), {top: $('scroll-top'), bottom: $('scroll-bottom')}, {frequency: 0.5, step: 1, stepModifier: 5});
		}

	$$('#wrapper dl dd ul li a.light', '#wrapper dl dd ul li a.medium', '#wrapper dl dd ul li a.dark').each(function (elm) {

		elm.observe('mouseover', function (event) {
			$('about-us-hint').hide();
			var id = elm.rel + '-hint';
			$(id).show();
			}).observe('mouseout', function (event) {
				var id = elm.rel + '-hint';
				$(id).hide();
				$('about-us-hint').show();
				});
		});

	$$('#wrapper dl dd ul li a.empty').each(function (elm) {
		elm.down().update('<img src="' + PATH_.images + 'label-' + elm.down().innerHTML.strip() + '.png" class="code" style="display: none;" />');
		elm.observe('mouseover', function (event) {
			$('about-us-hint').hide();
			$('back-hint').show();
			elm.down('img').show();
			}).observe('mouseout', function (event) {
				elm.down('img').hide();
				$('back-hint').hide();
				$('about-us-hint').show();
				}).observe('click', function (event) {
					event.stop();
					history.go(-1);
					});
		});

	$$('#footer ul li a').each(function (elm) {
		elm.observe('mouseover', function (event) {
			$('about-us-hint').hide();
			$(elm.classNames().toArray().first() + '-hint').show();
			}).observe('mouseout', function (event) {
				$(elm.classNames().toArray().first() + '-hint').hide();
				$('about-us-hint').show();					
				});
		});

	});
