<!--

/* JavaScripty (c) Jakub Mahdal 2002 */


/* ----------------- promenne --------------------------- */

//specificke promenne teto stranky:
var pagename = 'P L Y M O .net - software,internet & more...',
	pageurl = 'http://www.plymo.net'; 
	
//info o browseru
var browserName = navigator.appName;
var browserVer = parseInt(navigator.appVersion);
var browserCodeName = navigator.appCodeName;
if (browserVer >= 3) browserOK = true; // browserOK -> browser je schopen pracovat s JavaScriptem.
	else browserOK = false;
var favoriteAdded = false; // je stranka pridana k oblibenym?



/* ----------------- definice metod --------------------------- */	

// funkce prepise zvyrazneny obrazek puvodnim.
function imgOrigin(imgName) {
    if (browserOK) {
        document [imgName].src = eval(imgName + "on.src");
    }
}

// funkce prepise puvodni obrazek zvyraznenym.
function imgFocused(imgName) {
    if (browserOK) {
        document [imgName].src = eval(imgName + "off.src");
    }
}

// funkce podle zadaneho URL nastavi obsah ramu
function startPage(){
	var pom = '';
	pom += window.location+".html";
	var pos = pom.indexOf('?');
	window.frames[0].location = pom.substring(pos+1);
}

//funkce nastavi polohu v dokumentu
function startPosition(){
	if(browserName != "Netscape"){
		var pom = '';
		pom += window.location;		
		var pos = pom.indexOf('#');
		if(pos != (-1))	self.location.href = pom.substring(pos);
	}
//	alert(browserName+"___"+browserCodeName);
}

// vypise informace o browseru
function browserInfo(){
	document.writeln("<strong>Informace o vasem prohlizeci:</strong>");
	document.writeln("<strong>browser name:</strong>"+browserName);
	document.writeln("<strong>browser version:</strong>"+browserVer+"\n");
	document.writeln("<strong>browser code name:</strong>"+browserCodeName+"\n");
	document.writeln("<strong>browser OK:</strong>"+browserOK+"\n");
}

//pridat k oblibenym - pod jmenem jako je v titulku stranky
function addFavorites() {
	if(!(favoriteAdded)){
		window.external.addFavorite(pageurl, document.title + pagename);
		favoriteAdded = true;
	}
}

//Fce na maximalizaci okna
function setWindowToMax(){
	self.moveTo(0,0);
	self.resizeTo(screen.width,screen.height);	
}

//Fce na automaticky reload stranky, pripadne presmerovani stranky na jine url
function selfReload(new_url){
	//self.location.reload();
	self.location = new_url;
}

//fce na otevreni noveho okna bez ovladacich listicek - w=sirka okna, h=vyska okna, x=x-ova souradnice, y-ova
function windowOpenXY(new_url, w, h, x, y){
	newWindow = window.open(new_url,'','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width='+w+',height='+h);
	newWindow.moveTo(x,y);
}


//fce na otevreni noveho okna bez ovladacich listicek - w=sirka okna, h=vyska okna, x=x-ova souradnice, y-ova
function windowOpenCentered(new_url, w, h){
	newWindow = window.open(new_url,'','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width='+w+',height='+h);
	width = 50 + w;
	height = h + 50;
	x = 0 + (screen.width - width)/2;
	y = 0 + (screen.height - height)/2;
	newWindow.moveTo(x,y);
}



//fce na otevreni noveho okna bez ovladacich listicek - okno se maximalizuje na velikost screenu
function windowOpen(new_url, url_title){
	w = screen.width - 13;
	h = screen.height - 60;
	newWindow = window.open(new_url,url_title,'toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width='+w+',height='+h);
	newWindow.moveTo(0,0);
}

//fce na otevreni obrazku v novem okne bez ovladacich listicek 
function openPict(new_url, new_title, w, h){
	width = w;
	height = h;
	x = 0 + (screen.width - width)/2;
	y = 0 + (screen.height - height)/2;
	newWindow = window.open('','','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width='+width+',height='+height);
	newWindow.moveTo(x,y);
	newDoc = newWindow.document;
	newContent = '<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1250">';
	newContent += '<title>'+new_title+'</title><link rel="StyleSheet" href="../css/sablony.css" type="text/css">';
	newContent += '</head><body bgcolor="#D4D2C2" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">';
	newContent += '<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center"><tr>';
	newContent += '<td valign="top">';
	newContent += '<img src="'+new_url+'" alt="" width="'+w+'" height="'+h+'" hspace="0" border="0" align="middle"></td></tr>';
	newContent += '</table></body></html>';
	newDoc.write(newContent);
	newDoc.close();
}

//fce na otevreni obrazku v novem okne bez ovladacich listicek 
function openPictText(new_url, new_title, w, h){
	width = 50 + w;
	height = h + 50;
	x = 0 + (screen.width - width)/2;
	y = 0 + (screen.height - height)/2;
	newWindow = window.open('','','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width='+width+',height='+height);
	newWindow.moveTo(x,y);
	newDoc = newWindow.document;
	newContent = '<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1250">';
	newContent += '<title>'+new_title+'</title><link rel="StyleSheet" href="../css/sablony.css" type="text/css">';
	newContent += '</head><body bgcolor="#D4D2C2" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">';
	newContent += '<table width="100%" border="0" align="center"><tr><td width="20">&nbsp;&nbsp;</td>';
	newContent += '<td valign="top">';
	newContent += '<table width="'+w+'" border="0" cellspacing="0" cellpadding="0" align="left">';
	newContent += '<tr><td align="center"><img src="'+new_url+'" alt="" width="'+w+'" height="'+h+'" hspace="0" border="0" align="middle"></td></tr>';
	newContent += '<tr><td align="center"><br><strong>'+new_title+'</strong></td></tr></table>';
	newContent += '</td><td width="20">&nbsp;</td></tr></table></body></html>';
	newDoc.write(newContent);
	newDoc.close();
}

<!-- konec skriptu -->