//Function to assign actions to DOM elements
function assign_actions()
{
	var button1=document.getElementById("press_button");
	var button2=document.getElementById("desc_button");
	var button3=document.getElementById("illustrator_button");
	var button4=document.getElementById("content_button");
	if(button1)
	{
		button1.onclick=pressbook;
	}
	if(button2)
	{
		button2.onclick=descbook;
	}
	if(button3)
	{
		button3.onclick=illbook;
	}
	if(button4)
	{
		button4.onclick=contentbook;
	}

}

function changewin()
{
	var win = document.getElementById("showcase");
	if(win)
	{
		win.innerHTML = this.req.responseText;
	}
	tb_init('a.thickbox, area.thickbox, input.thickbox, a.thickboxp');
}

function testajax()
{
	var retriever = new net.ContentLoader(this.id, 'test', '', changewin);	
}

function descbook()
{
	var retriever = new net.ContentLoader(this.id, 'bookdescription', '', changewin);	
}

function illbook()
{
	var retriever = new net.ContentLoader(this.id, 'bookillustrator', '', changewin);	
}
function pressbook()
{
	var retriever = new net.ContentLoader(this.id, 'bookpress', '', changewin);	
}
function contentbook()
{
	var retriever = new net.ContentLoader(this.id, 'bookcontents', '', changewin);	
}
