<!-- hide script from old browsers
var whatDoc="N/A"

function setName() {
	var path = document.URL;
		if(navigator.userAgent.indexOf('MSIE') !=-1) {
			whatDoc = path.substring(path.lastIndexOf("/")+1,path.length);		
		}
		else {
			whatDoc = path.substring(path.lastIndexOf("/")+1,path.length);
		}
		whatDoc = whatDoc.substring(0,whatDoc.length-5);
		document.images["a"].id = whatDoc+'a';
		document.images["b"].id = whatDoc+'b';
		document.images["c"].id = whatDoc+'c';
		document.images["d"].id = whatDoc+'d';
		document.images["e"].id = whatDoc+'e';
		document.images["f"].id = whatDoc+'f';
	}

function openwin(param) {
	var winName=param;
	window.open('detail.html',winName,"toolbar=0, location=0, directories=0, resizable=0, scrollbars=0, width=600, height=400, top=40, left=40, status=0");
}

function navigate() {
	selector = document.SelForm.MyCombo;
	path = selector.options[selector.selectedIndex].value;
	if(path) location.href=path;
}

function setSelection() {
	selector = document.SelForm.MyCombo;
	var subtract = whatDoc.length-2;
	var myIndex = whatDoc.substring(1,whatDoc.length-subtract);
	selector.selectedIndex = --myIndex;
}

function writeStatus(param) {
	window.status=param;
}
function clearStatus() {
	window.status="    Jaroslav Stun's Chess problems page";
}

function initialize() {
	setName();
	setSelection();
	clearStatus();
}
// end hiding script from old browsers -->
