function initPage(mapWidth, mapHeight, xmlName) {
    this.initMap(mapWidth, mapHeight, xmlName);
    this.windowIndex = 1;
};

initPage.prototype.initMap = function(width, height, xmlName) {
    var map = new FusionMaps("swf/FCMap_USA.swf", "USMap", width, height, "0", "0");
    map.setTransparent(true);
    map.setDataURL("xml/" + xmlName + "Index.xml");
    map.render("usMap");
};

initPage.prototype.windowMoveBack = function() {
    if (this.windowIndex > 1) {
	new Effect.Move("windowMover", {
		x: 750,
		y: 0,
		mode: 'relative',
		transition: Effect.Transitions.sinoidal
	    });
	this.windowIndex--;
    }
};

initPage.prototype.windowMoveForward = function() {
    if (this.windowIndex < 3) {
	new Effect.Move("windowMover", {
		x: -750,
		y: 0,
		mode: 'relative',
		transition: Effect.Transitions.sinoidal
	    });
	this.windowIndex++;
    }
};
