$(document).ready(
	function() {

		/* Scroller aktivieren */
		$('#scrollcontent').jScrollPane({scrollbarWidth:5});
		$('#closelink').show();
		$('#linkclose').click(
			function() {
				$('#content').hide();
			}
		);
		
	}
);

function initPage() {
	document.getElementById("scrollcontent").style.overflow     = "hidden";
	if (typeof init=="function") init();
}


/*
if (window.addEventListener){
  window.addEventListener('DOMMouseScroll', wheel, false);
} else if (window.attachEvent){
  window.addEventListener('DOMMouseScroll', wheel, false);
}

window.onmousewheel = document.onmousewheel = wheel;
var srollObject     = null;
var wheelscroll     = false;

function initPage() {
	var objElement                                         = document.getElementById('scrollContent');
	srollObject                                            = new scroll(objElement, document.getElementById('scroller').style.height);
	document.getElementById("scroller").style.overflow     = "hidden";
	document.getElementById("scrollU").style.visibility    = "visible";
	document.getElementById("scrollD").style.visibility    = "visible";
	if (typeof init=="function") init();
}

function scroll(objElement, intHeight) {
	var self              = this;
	this._y               = 0;
	objElement.style.top  = "0px";
	this.setPosition      = function(intPos, y) {
		if (intPos > 0) intPos = 0;
		if (intPos < intHeight - objElement.offsetHeight) intPos = intHeight - objElement.offsetHeight;
		if (((this._y*-1) < objElement.offsetHeight) || (y > 0)) {
			this._y              = intPos;
			objElement.style.top = this._y +"px";
		}
	};
	this.scrollY           = function(y) { this.setPosition(this._y + y, y); };
	this.start             = function(y) { this.scrollTimer = window.setInterval(function() { self.scrollY(y); }, 25 );};
	this.stop              = function()  { if (this.scrollTimer) window.clearInterval(this.scrollTimer); };
}


function handle(delta) {
	delta = delta>0 ? 1 : -1;
	if (window.opera) delta = delta * -1;
	delta = delta * 10;
	srollObject.setPosition(srollObject._y + delta, delta);
}

function wheel(event){
	if (wheelscroll==true) {
		var delta = 0;
		if (!event) event = window.event;
		if (event.wheelDelta) {
			delta = event.wheelDelta/120; 
			if (window.opera) delta = -delta;
		} else if (event.detail) {
			delta = -event.detail/3;
		}
		if (delta) handle(delta);
	}
}
*/
