
function winOpen(url){
	window.open(url, "window", "toolbar=no,menubar=no,directories=no,scrollbars=yes,status=no,fullscreen,resizable=yes")
}
//funkce pro header menu
var predClass;
function actmenu(id){
	predClass = document.getElementById(id).className;
	document.getElementById(id).className = 'hover'; 
}
function deactmenu(id){
	document.getElementById(id).className = predClass; 
}

//konec header menu

var reload = false;
var theTop = '0';

function show_iframe(){
	scrollset();
	var iframe = document.getElementById('frame_up');
	var iframeReal = document.getElementById('frame_up_real');
	iframe.style.display = 'block';	
	if(navigator.appName == "Opera"){iframe.style.background = 'transparent';}	
	iframeReal.style.display = 'block';
	//var realframe = document.getElementById('data_iframe');
	//html = values;
	//realframe.innerHTML = html;
	document.getElementById('body').style.overflow = 'hidden';
	document.getElementById('body').onscroll= "scrollTo(0,0)";
	document.getElementById('id_html').style.overflow = 'hidden';
	window.scroll(0, 0) ;
}
function unshow_iframe(){
	var iframe = document.getElementById('frame_up');
	//var realframe = document.getElementById('data_iframe');
	var iframeReal = document.getElementById('frame_up_real');
	iframe.style.display = 'none';
	iframeReal.style.display = 'none';
	//realframe.innerHTML = "";
	document.getElementById('body').style.overflow = 'auto';
	document.getElementById('id_html').style.overflow = 'auto';
	document.getElementById('body').onscroll= "";
	window.scroll(0, theTop) ;	
	if(reload == true){
		location.href = location.href;
	}
}

function scrollset(){	
		if (document.documentElement && document.documentElement.scrollTop){
			theTop = document.documentElement.scrollTop;
		}else if(document.body){ 
			theTop = document.body.scrollTop;
		}
		
}
