var globalOnload = 0;

window.onload = function () {
	if(globalOnload == 0){
		HtinyScrolling.init(); scrollTips.init();
		//slide_setUp();
		
		var viewHeight = getViewHeight();
		if(viewHeight >= 635){
			var arrows = document.getElementById("arrows");
			if(arrows != null) arrows.style.display = "block";
		}else{
			var arrows = document.getElementById("arrows");
			if(arrows != null) arrows.style.display = "none";
		}
				
		globalOnload = 1;
	}
}


function changeNav(display,id){

	var obj = document.getElementById(id);

	if(display == 1){
		obj.style.display="block";
		obj.style.backgroundPosition="left bottom";
	}
	else if(display == 0){
		obj.style.display="block";
		obj.style.backgroundPosition="left top";
	}

}

//
//  getPageSize() (von Lightbox)
//
function getViewHeight(){

	var y;
	if(navigator.userAgent.indexOf('MSIE') > -1){
		y = document.documentElement.clientHeight;
	}
	if(navigator.userAgent.indexOf('Gecko') > -1){
		y = window.innerHeight;
		y -= 17;
	}
	return y;
}


