function do_void() {
}

function getAtPlace(place) {
    if (place > 1) {
        return getAtPlace(place - 1) + getAtPlace(place - 2);
    } else if (place == 1) {
        return 1;
    } else if (place == 0) {
        return 1;
    }
}

var globalHeightPerLine = 10;

function openMenu(index, count, instant) {
    if (count > 0 && document.getElementById("category_" + index) && document.getElementById("category_" + index).style.display != "inline") {
        var selObj = null;
        
        for (var i in mainCategoryNames) {
            var obj = document.getElementById("category_" + mainCategoryNames[i]);
            if (index == mainCategoryNames[i]) {
                selObj = obj;
            } else {
                if (obj) {
                    obj.style.display = "none";
                }
            }
        }

        var offset = 0;
        selObj.style.overflow = "hidden";
        selObj.style.height = "1px";
        selObj.style.display = "block";
        
        if (!instant) {
            var timer = setInterval(function() {
                selObj.style.height = getAtPlace(offset) + "px";
                if (getAtPlace(offset++) >= globalHeightPerLine * count) {
                    selObj.style.display = "inline";
                    clearInterval(timer);
                }
            }, 40);
        } else {
            selObj.style.display = "inline";
        }
    }
}

var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function map_add_data_DoFSCommand(command, args) {
    var map_add_dataObj = InternetExplorer ? map_add_data : document.map_add_data;
    
    /*
	if (command == "set_x") {
		alert("x="+args);
	}
	if (command == "set_y") {
		alert("y="+args);
	}
	*/
	if (command == "zone_n") {
		document.getElementById("flash_card_location").value = args;
		document.getElementById("flash_search").submit();
	}
}


// Hook for Internet Explorer 
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
	navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('Sub map_add_data_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call map_add_data_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	document.write('</SCRIPT\> \n');
}