
// -----------------------------------------------------------------------------
// funkce pro otevreni projektu do noveho okna
function OpenProjectDetail(el) {
	var bbIE = !window.innerHeight; // rozliseni IE x M 
	var s = "no";
	if (!bbIE) s = "yes";

	var adr = el.href;
	var wName = "sam" + adr.replace(/[:\/.?=()]/gi, "");
	// pokud to ma byt jen okno, pak bez parametru
	// wName zajistuje otevreni kazdeho projektu ve zvlastnim okne
	var w = window.open(adr, wName, "width=680, height=350, scrollbars="+s+", resizable=yes");
	w.focus();
	return false;
}

// -----------------------------------------------------------------------------
// v dialogovem okne udalost onResize - pro IE ridi zobrazovani scrollbaru
function ResizeDialog() {
	if (!window.innerHeight) { // rozliseni IE x M - jen pro IE
		var el = document.getElementsByTagName("body")[0];
		var s = "no";
		if ( document.body.clientHeight > document.documentElement.clientHeight) s = "yes";
		if ( document.body.clientWidth > document.documentElement.clientWidth) s = "yes";
		el.scroll = s;
	}
}

