



//banners for the homepage
if (bannerloc == "home")
{
var ad=new Array()
//images links, no need to change this bit
ad[0]='banners/'+bannerloc+'/'+bannerloc+'_3.jpg';
ad[1]='banners/'+bannerloc+'/'+bannerloc+'_3.jpg';
	
var text=new Array()
//insert text to accompany the banner
text[0]='Darkly bewitching and dazzlingly original';
text[1]='Darkly bewitching and dazzlingly original';

var links=new Array()
//insert links to the rbooks page
links[0]='http://www.rbooks.co.uk/product.aspx?id=0701184361';
links[1]='http://www.rbooks.co.uk/product.aspx?id=0701184361';

var otherlinks=new Array()
//insert second links, minisites, blogs etc...
otherlinks[0]='http://www.rhgdigital2.co.uk/competitions/vintage/index.asp';
otherlinks[1]='http://www.rhgdigital2.co.uk/competitions/vintage/index.asp';

var otherlinks_text=new Array()
//insert second links, minisites, blogs etc...
otherlinks_text[0]='Read More';
otherlinks_text[1]='Enter competition';

var linkcolor=new Array()
linkcolor[0]='#FFFFFF';
linkcolor[1]='#FFFFFF';

}
//banners for Biography
if (bannerloc == "biography")
{
	var ad=new Array()
//images links, no need to change this bit
ad[0]='../banners/'+bannerloc+'/'+bannerloc+'_1.jpg';
//ad[1]='../banners/'+bannerloc+'/'+bannerloc+'_2.jpg';
var text=new Array()
//insert text to accompany the banner

//text[0]='';
text[0]='<br><br><br>';

var links=new Array()
//insert links to the rbooks page
links[0]='http://www.rbooks.co.uk/product.aspx?id=1846552141';
//links[1]='http://www.rbooks.co.uk/product.aspx?id=0099507382';

//var otherlinks=new Array()
//insert second links, minisites, blogs etc...
//otherlinks[0]='http://www.randomhouse.co.uk/thomaspynchon/';
//otherlinks[1]='http://www.workingtitlefilms.com/film.php?filmID=104';

//var otherlinks_text=new Array()
//insert second links, minisites, blogs etc...
//otherlinks_text[0]='<b>View Minisite</b>';
//otherlinks_text[1]='<b>View the Trailer</b>';

var linkcolor=new Array()
linkcolor[0]='#ffffff';
//linkcolor[1]='#000';

}
//banners for Crime
if (bannerloc == "crime")
{
	var ad=new Array()
//images links, no need to change this bit
ad[0]='../banners/'+bannerloc+'/'+bannerloc+'_1.jpg';
//ad[1]='../banners/'+bannerloc+'/'+bannerloc+'_2.jpg';
var text=new Array()
//insert text to accompany the banner

text[0]='<br><br><br>';
//text[1]='<br><br><br>';

var links=new Array()
//insert links to the rbooks page
links[0]='http://www.rbooks.co.uk/product.aspx?id=1846550408';
//links[1]='http://www.rbooks.co.uk/product.aspx?id=0099507382';

//var otherlinks=new Array()
//insert second links, minisites, blogs etc...
//otherlinks[0]='http://www.randomhouse.co.uk/thomaspynchon/';
//otherlinks[1]='http://www.workingtitlefilms.com/film.php?filmID=104';

//var otherlinks_text=new Array()
//insert second links, minisites, blogs etc...
//otherlinks_text[0]='<b>View Minisite</b>';
//otherlinks_text[1]='<b>View the Trailer</b>';

var linkcolor=new Array()
linkcolor[0]='#e91c01';
//linkcolor[1]='#000';

}
//banners for Travel
if (bannerloc == "travel")
{
	var ad=new Array()
//images links, no need to change this bit
ad[0]='../banners/'+bannerloc+'/'+bannerloc+'_1.jpg';
//ad[1]='../banners/'+bannerloc+'/'+bannerloc+'_2.jpg';
var text=new Array()
//insert text to accompany the banner

text[0]='A remarkable marriage of travelogue and history<br> - <i>Max Hastings</i>';
//text[1]='<br><br><br>';

var links=new Array()
//insert links to the rbooks page
links[0]='http://www.rbooks.co.uk/product.aspx?id=0099494280';
//links[1]='http://www.rbooks.co.uk/product.aspx?id=0099507382';

//var otherlinks=new Array()
//insert second links, minisites, blogs etc...
//otherlinks[0]='http://www.randomhouse.co.uk/thomaspynchon/';
//otherlinks[1]='http://www.workingtitlefilms.com/film.php?filmID=104';

//var otherlinks_text=new Array()
//insert second links, minisites, blogs etc...
//otherlinks_text[0]='<b>View Minisite</b>';
//otherlinks_text[1]='<b>View the Trailer</b>';

var linkcolor=new Array()
linkcolor[0]='#ffffff';
//linkcolor[1]='#000';

}
//banners for Music
if (bannerloc == "music")
{
	var ad=new Array()
//images links, no need to change this bit
ad[0]='../banners/'+bannerloc+'/'+bannerloc+'_1.jpg';
//ad[1]='../banners/'+bannerloc+'/'+bannerloc+'_2.jpg';
var text=new Array()
//insert text to accompany the banner

text[0]='Important and often beautifully written<br> - <i>Observer</i>';
//text[1]='<br><br><br>';

var links=new Array()
//insert links to the rbooks page
links[0]='http://www.rbooks.co.uk/product.aspx?id=0712664467';
//links[1]='http://www.rbooks.co.uk/product.aspx?id=0099507382';

//var otherlinks=new Array()
//insert second links, minisites, blogs etc...
//otherlinks[0]='http://www.randomhouse.co.uk/thomaspynchon/';
//otherlinks[1]='http://www.workingtitlefilms.com/film.php?filmID=104';

//var otherlinks_text=new Array()
//insert second links, minisites, blogs etc...
//otherlinks_text[0]='<b>View Minisite</b>';
//otherlinks_text[1]='<b>View the Trailer</b>';

var linkcolor=new Array()
linkcolor[0]='#ffffff';
//linkcolor[1]='#000';

}
//banners for fiction
if (bannerloc == "fiction")
{
var ad=new Array()
//images links, no need to change this bit
ad[0]='../banners/'+bannerloc+'/'+bannerloc+'_2.jpg';
ad[1]='../banners/'+bannerloc+'/'+bannerloc+'_2.jpg';
	
var text=new Array()
//insert text to accompany the banner
text[0]='Out now in Chatto & Windus hardback';
text[1]='Out now in Chatto & Windus hardback';
//text[1]='<br><br><br>';

var links=new Array()
//insert links to the rbooks page
links[0]='http://www.thekindlyones.info';
links[1]='http://www.thekindlyones.info';
//links[1]='http://www.rbooks.co.uk/product.aspx?id=0099507382';

//var otherlinks=new Array()
//insert second links, minisites, blogs etc...
//otherlinks[0]='http://www.rbooks.co.uk/basket.aspx?add=0099512793';
//otherlinks[1]='http://www.workingtitlefilms.com/film.php?filmID=104';

//var otherlinks_text=new Array()
//insert second links, minisites, blogs etc...
//otherlinks_text[0]='<b>Buy Now</b>';
//otherlinks_text[1]='<b>View the Trailer</b>';

var linkcolor=new Array()
linkcolor[0]='#000000';
linkcolor[1]='#000000';

}

//banners for History
if (bannerloc == "history")
{
	var ad=new Array()
//images links, no need to change this bit
ad[0]='../banners/'+bannerloc+'/'+bannerloc+'_1.jpg';
//ad[1]='../banners/'+bannerloc+'/'+bannerloc+'_2.jpg';
var text=new Array()
//insert text to accompany the banner

text[0]='';
//text[1]='<br><br><br>';

var links=new Array()
//insert links to the rbooks page
links[0]='http://www.rbooks.co.uk/product.aspx?id=1845950712';
//links[1]='http://www.rbooks.co.uk/product.aspx?id=0099507382';

//var otherlinks=new Array()
//insert second links, minisites, blogs etc...
//otherlinks[0]='http://www.randomhouse.co.uk/thomaspynchon/';
//otherlinks[1]='http://www.workingtitlefilms.com/film.php?filmID=104';

//var otherlinks_text=new Array()
//insert second links, minisites, blogs etc...
//otherlinks_text[0]='<b>View Minisite</b>';
//otherlinks_text[1]='<b>View the Trailer</b>';

var linkcolor=new Array()
linkcolor[0]='#ffffff';
//linkcolor[1]='#000';

}

var xy=Math.floor(Math.random()*ad.length);
document.write('<style>');
document.write('.bannerbg {background:url('+ad[xy]+');width:611px;height:202px;background-repeat:no-repeat;}');
document.write('.bannerlink {color:'+linkcolor[xy]+'}');
document.write('.bannertop {float:right; width:200px;height:205px;color:'+linkcolor[xy]+'; font-size:0.7em;padding-right:10px;}');
document.write('.bannertext {color:'+linkcolor[xy]+';padding-top:90px;}');
document.write('.bannerbottom {text-align:right;padding-right:10px;}');
document.write('</style>');
document.write('<div class="bannerbg">');
document.write('<div class="bannertop">');
document.write('<div class="bannertext">');
document.write (text[xy]);
document.write('</div>');
document.write('<div class="bannerbottom">');
document.write('<br><br><a href="'+links[xy]+'" title="Read More" class="bannerlink">Read More</a>');
if ( typeof( window[ 'otherlinks' ] ) != "undefined" )
{
document.write('&nbsp;|&nbsp;<a href="'+otherlinks[xy]+'" class="bannerlink">'+otherlinks_text[xy]+'</a>');	
}
document.write('</div>');
document.write('</div>');
document.write('</div>');

