var relativePath = "" ;
var sourceFile = "" ;
var subordinatePath = "" ;

function popUpWindow(contentURL, winName, winWidth, winHeight)
{
	var features = 'scrollbars="no", toolbar="no", resizable="no", menubar="no", status="no"' ;
	features += ', height=' + winHeight + ', width=' + winWidth ;
	var win = window.open(contentURL, winName, features) ;
	win.focus() ;
}

function writeNavigation(link, title)
{
	if (sourceFile != link)	
	   document.writeln('<a href="'+ relativePath + subordinatePath + link +'">' + title + '</a>') ;
	else
	   document.writeln('<div class="nav-nolink">' + title + '</div>') ;
}

function gotoAmazon(isbn) 
{
	var win = window.open("http://www.amazon.co.uk/exec/obidos/ASIN/" + isbn, "Amazon") ;
	win.focus() ;
}

function gotoSite(url)
{
	var win = window.open(url, "Site") ;
	win.focus() ;
}

function toggleDisplay(object)
{
	if (object.style.display == "block")
		object.style.display = "none" ;
	else
		object.style.display = "block" ;
}
