var msec2=1;
var go2="";

function pop_image_amplification(url_large_image)
{
	var xScroll, yScroll;
	
	if (window.innerHeight && window.scrollMaxY) {	
		xScroll = document.body.scrollWidth;
		yScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}
	
	var windowWidth, windowHeight;
	if (self.innerHeight) {	// all except Explorer
		windowWidth = self.innerWidth;
		windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}	
	
	// for small pages with total height less then height of the viewport
	if(yScroll < windowHeight){
		pageHeight = windowHeight;
	} else { 
		pageHeight = yScroll;
	}
	
	document.getElementById('darkbackground').style.height = pageHeight+10;
	
	document.getElementById('imgsource').src=url_large_image;
 	document.getElementById('darkbackground').style.visibility = "visible";
 	document.getElementById('image_large_vlak').style.visibility = "visible";
 	document.getElementById('image_large_vlak2').style.visibility = "visible";
}
function pop_image_amplification_out()
{
 	document.getElementById('darkbackground').style.visibility = "hidden";
 	document.getElementById('image_large_vlak').style.visibility = "hidden";
 	document.getElementById('image_large_vlak2').style.visibility = "hidden";
}

function button_effect(name, oo)
{
	var divs = document.getElementById(name);
	
	if(oo == 0)
	{
		divs.style.background = '#ee6d19';
	}
	else
	{
		divs.style.background = '#919191';
	}
}