
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(url){
	scrollset();
	iframe = document.getElementById('iframe_up');
	iframe.style.display = 'block';
	html='<iframe frameborder="0" scrolling="no" src="'+url+'"></iframe>';
	iframe.innerHTML = html;
	document.getElementById('body').style.overflow = 'hidden';
}
function unshow_iframe(){
	iframe = document.getElementById('iframe_up');
	iframe.style.display = 'none';
	iframe.innerHTML = "";
	document.getElementById('body').style.overflow = 'auto';
	window.scroll(0, theTop) ;
	if(reload == true){
		location.href = location.href;
	}
}
function show_iframe_pf(){
	var iframe = document.getElementById('frame_foto');
	iframe.style.display = 'block';
	var iframe = document.getElementById('frame_bg');
	iframe.style.display = 'block';
	document.getElementById('body').style.overflow = 'hidden';
	document.getElementById('id_html').style.overflow = 'hidden';
	return false;
}
function unshow_iframe_pf(){
	var iframe = document.getElementById('frame_foto');
	iframe.style.display = 'none';
	var iframe = document.getElementById('frame_bg');
	iframe.style.display = 'none';

	document.getElementById('body').style.overflow = 'auto';
	document.getElementById('id_html').style.overflow = 'auto';
	return false;
}

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

}

function show_bubble(id){
	var eleSel = document.getElementById(id);
	eleSel.style.display = 'block';
}
function unshow_bubble(id){
	var eleSel = document.getElementById(id);
	eleSel.style.display = 'none';
}
