var		pageToLoad;
var		winName;

var pageList = new Array(
	"/08-album.html",
	"/01_africa.html",
	"/02_studio.html",
	"/03_studio.html",
	"/04_about.html",
	"/05_about.html",
	"/06_contact.html",
	"/07_media.html",
	"/08-album.html",
	"/01_africa.html");

function ow( pageToLoad, winName, width, height, center) 
{
    	xposition=0; yposition=0; 
	
	if ((parseInt(navigator.appVersion) >= 4 ) && (center))
	{
		xposition = (screen.width - width) / 2;
		yposition = (screen.height - height) / 2;    
	}
	
	args = "width=" + width + ","     + "height=" + height + "," 
	+ "location=0,"     + "menubar=0,"    + "resizable=0,"    + "scrollbars=0,"
	+ "status=1,"     + "titlebar=0,"    + "toolbar=0,"    + "hotkeys=0,"
	+ "screenx=" + xposition + ","  //NN Only
	+ "screeny=" + yposition + ","  //NN Only
	+ "left=" + xposition + ","     //IE Only
	+ "top=" + yposition;           //IE Only
	window.open(pageToLoad,winName,args);
	window.focus();
}

function ows( pageToLoad, winName, width, height, center)
{
    	xposition=0; yposition=0; 
	
	if ((parseInt(navigator.appVersion) >= 4 ) && (center))
	{
		xposition = (screen.width - width) / 2;
		yposition = (screen.height - height) / 2;    
	}
	
	args = "width=" + width + ","     + "height=" + height + "," 
	+ "location=0,"     + "menubar=0,"    + "resizable=0,"    + "scrollbars=1,"
	+ "status=1,"     + "titlebar=0,"    + "toolbar=0,"    + "hotkeys=0,"
	+ "screenx=" + xposition + ","  //NN Only
	+ "screeny=" + yposition + ","  //NN Only
	+ "left=" + xposition + ","     //IE Only
	+ "top=" + yposition;           //IE Only
	window.open(pageToLoad,winName,args);
	window.focus();
}

function getPageIndex()
{
	var i = location.pathname.indexOf("0");
	return location.pathname.substring(i, i+2);
}

function goBackwards()
{
	location = pageList[getPageIndex()-1];
}

function goForwards()
{
	location = pageList[getPageIndex()-(-1)];
}


function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}