var b1,b2,b3,b4,b5,b6,b7,bba,bbb,bb;
bbe="0";
bbf="0";
bbg="0";

function book(bbd, bt, bw, bn, bs, bp1, bi, be, bp2, br1, br2) {
var bbbb, cccc, dddd;
cccc="ukdinghydatab-21";
dddd="/";
bbbb = GetCookie('47586786156');
if (bbbb=="5368734568347") {
cccc="";
dddd="";
}
bd="14/09/02";

b6="<b>£" + bp1 + "</b>";

bbb="";
b5 = "";
b7 = "";


if (bi =="n") {
bi = "no";
} else {
bi = bn;
}
var b1 = bs.substring(0,1);
var b2 = bs.substring(1,2);

if (b1 =="1") {bba = "Dinghy"}
if (b1 =="2") {bba = "Catamaran"}
if (b1 =="3") {bba = "Racing"}
if (b1 =="4") {bba = "Laser"}
if (b1 =="5") {bba = "Youth"}
if (b1 =="6") {bba = "Navigation"}
if (b1 =="7") {bba = "Rig, Sails and Knots"}
if (b1 =="8") {bba = "Humour"}
if (b1 =="9") {bba = "Fiction"}
if (b1 =="o") {bba = "Other"}
if (b2 =="1") {bba += ", Dinghy"}
if (b2 =="2") {bba += ", Catamaran"}
if (b2 =="3") {bba += ", Racing"}
if (b2 =="4") {bba += ", Laser"}
if (b2 =="5") {bba += ", Youth"}
if (b2 =="6") {bba += ", Navigation"}
if (b2 =="7") {bba += ", Rig, Sails and Knots"}
if (b2 =="8") {bba += ", Humour"}
if (b2 =="9") {bba += ", Fiction"}
if (b2 =="o") {bba += ", Other"}

if (b2 =="") {
b3 = "";
} else {
b3=",";
}

bbc = bba.length + bt.length
if (bbc > 46) {
br = "&nbsp;&nbsp;"
} else {
br = "<br>"
}
if (b3==",") {
bbf++
b4 = " (" + bbf + ")";
} else {
b4="";
}

if (bbd=="1") {
bbe++
document.write("<table align=\"center\" bgcolor=\"#DDEEFF\" border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"90%\" class=\"ukdd\" id=\"bookbox\" style=\"font-size: 10pt\"><tr><td><b>Reduced books from the book store:</b></td><td align=\"right\" width=\"2%\"><span class=\"cross\" style=\"cursor: hand\" onClick=\"disappear('book')\" onMouseover=\"status='Click to close this box'; return true;\" onMouseout=\"status='This page is: Homepage.'; return true;\">X</span></td>");
document.write("<td rowspan=\"2\" valign=\"center\" width=\"42\" height=\"60\" style=\"font-size: 10pt\"><center><a href=\"boo" + b1 + ".htm#" + bt + "\" onMouseover=\"status='" + bt + "'; return true;\" onMouseout=\"status='This page is: " + section + "" + a + "" + page + ".'; return true;\"><img src=\"books/" + bi + ".jpg\" width=\"42\" height=\"60\" alt=\"Click For: " + bt + "\" hspace=\"0\" vspace=\"0\"></a></td></tr>");
document.write("<tr><td height=\"20\" colspan=\"2\"><a href=\"boo" + b1 + ".htm#" + bt + "\" onMouseover=\"status='" + bba + "'; return true;\" onMouseout=\"status='This page is: " + section + "" + a + "" + page + ".'; return true;\">" + bba + "</a> >");
document.write("&nbsp;<a href=\"boo" + b1 + ".htm#" + bt + "\" onMouseover=\"status='" + bt + "'; return true;\" onMouseout=\"status='This page is: " + section + "" + a + "" + page + ".'; return true;\">" + bbb + "" + bt + "</a><font size=\"1\">" + br + "(ISBN: " + bn + ")</font><br>List Price: £" + bp2 + " <b>Now £" + bp1 + "!</b>");
document.write("&nbsp;<font size=\"1\">(You save £" + br1 + " or " + br2 + "%)</font></td></tr></table>");
} else {
if (bbd=="2") {
bbe++
if (bp1<10) {
bp1 = "0"+bp1+"";
}
document.write("<tr><td align=\"right\"><font size=\"1\">");
document.write(bbe + "</td><td>");
document.write(bt + "" + b7 + "" + bbb + "</td><td>");
document.write(bba + "</td><td>");
document.write("£" + bp1 + "</td><td>");
document.write("<a href=\"http://www.amazon.co.uk/exec/obidos/ASIN/" + bn + "\" target=\"_blank\" onMouseover=\"status='" + bt + "'; return true;\" onMouseout=\"status='This page is: " + section + "" + a + "" + page + ".'; return true;\">Link</a></td></tr>");
} else {
document.write("<a name=\"" + bt + "\"><table align=\"center\" bgcolor=\"DDEEFF\" id=\"ukdd\" cellspacing=\"0\" cellpadding=\"2\" border=\"1\" width=\"500\" height=\"90\"><tr height=\"40\">");
document.write("<td align=\"center\" bgcolor=\"00AAFF\" height=\"60\" width=\"100\" align=\"center\" valign=\"center\" rowspan=\"3\">");
document.write("<a href=\"http://www.amazon.co.uk/exec/obidos/ASIN/" + bn + "/" + cccc + "\" target=\"_blank\" onMouseover=\"status='" + bt + "'; return true;\" onMouseout=\"status='This page is: " + section + "" + a + "" + page + ".'; return true;\"><img src=\"books/" + bi + ".jpg\" width=\"100\" alt=\"Click For: " + bbb + "" + bt + "\" hspace=\"0\" vspace=\"0\" border=\"1\"></a></td>");
document.write("<td align=\"center\" bgcolor=\"FFFFFF\" width=\"400\" height=\"40\">" + bbb + "<a href=\"http://www.amazon.co.uk/exec/obidos/ASIN/" + bn + "/" + cccc + "\" target=\"_blank\" onMouseover=\"status='" + bt + "'; return true;\" onMouseout=\"status='This page is: " + section + "" + a + "" + page + ".'; return true;\"><b>" + bt + "</b></a>" + bbb + "</td></tr>");
document.write("<tr><td align=\"left\" height=\"20\" valign=\"top\" width=\"100%\">" + b6 + "<br><font size=\"0\">&nbsp;(<a href=\"javascript:void(0)\" onClick=\"document.form.price.value=" + bp1 + "; javascript:window.open('boo11.htm','','top=30,left=30,width=700,height=410');\" onMouseover=\"status='XE.com Universal Currency Converter(tm)'; return true;\" onMouseout=\"status='This page is: " + section + "" + a + "" + page + ".'; return true;\">Currency Converter</a>)</td></tr>");
document.write("<tr><td align=\"left\" height=\"20\">ISBN: " + bn + "<br>Writer(s): " + bw + "</font><br>");
document.write("<a href=\"http://www.amazon.co.uk/exec/obidos/ASIN/" + bn + "/" + cccc + "\" target=\"_blank\" onMouseover=\"status='" + bt + ": Buy It'; return true;\" onMouseout=\"status='This page is: " + section + "" + a + "" + page + ".'; return true;\"><b>Buy It</b></a><br>");
document.write("<a href=\"http://www.amazon.co.uk/exec/obidos/ASIN/" + bn + "" + dddd + "" + cccc + "#product-details\" target=\"_blank\" onMouseover=\"status='" + bt + ": Product Details'; return true;\" onMouseout=\"status='This page is: " + section + "" + a + "" + page + ".'; return true;\">More details...</a></td></tr>");
document.write("<tr><td align=\"center\" height=\"10\" colspan=\"2\"><font size=\"0\">Section(s): " + bba + "</font></td></tr>");
document.write("<tr><td align=\"center\" height=\"10\" colspan=\"2\" bgcolor=\"B8D8FF\" style=\"font-size: 7pt\">");
document.write("<a href=\"http://www.amazon.co.uk/exec/obidos/redirect?tag=" + cccc + "&path=tg/browse/-/512186\" target=\"_blank\" onMouseover=\"status='" + bt + ": How to Order'; return true;\" onMouseout=\"status='This page is: " + section + "" + a + "" + page + ".'; return true;\">How to Order</a> | ");
document.write("<a href=\"http://www.amazon.co.uk/exec/obidos/redirect?tag=" + cccc + "&path=tg/stores/browse/-/help/492874\" target=\"_blank\" onMouseover=\"status='" + bt + ": Payment Options'; return true;\" onMouseout=\"status='This page is: " + section + "" + a + "" + page + ".'; return true;\">Payment Options</a> | ");
document.write("<a href=\"http://www.amazon.co.uk/exec/obidos/redirect?tag=" + cccc + "&path=tg/stores/browse/-/help/492866\" target=\"_blank\" onMouseover=\"status='" + bt + ": Security and Privacy'; return true;\" onMouseout=\"status='This page is: " + section + "" + a + "" + page + ".'; return true;\">Security and Privacy</a> | ");
document.write("<a href=\"http://www.amazon.co.uk/exec/obidos/redirect?tag=" + cccc + "&path=subst/help/shipping-policy.html\" target=\"_blank\" onMouseover=\"status='" + bt + ": Delivery Rates'; return true;\" onMouseout=\"status='This page is: " + section + "" + a + "" + page + ".'; return true;\">Delivery Rates</a> | ");
document.write("<a href=\"http://www.amazon.co.uk/exec/obidos/redirect?tag=" + cccc + "&path=tg/browse/-/471044\" target=\"_blank\" onMouseover=\"status='Customer Service'; return true;\" onMouseout=\"status='This page is: " + section + "" + a + "" + page + ".'; return true;\">Customer Service</a>");
document.write("</td></tr></table></a><br><!--<a name=\"amzn-reviews\"  synposis=\"07136369474500\" (isbn  + 4500) -->");
}
}
}



function bb() {
var b1,b2,b3,bba,bbb;
if (page =="Dinghy") {
b1 = "o";
b2 = "1";
b3 = "2";
bba= "Other";
bbb= "Catamaran";
}
if (page =="Catamaran") {
b1 = "1";
b2 = "2";
b3 = "3";
bba= "Dinghy";
bbb= "Racing";
}
if (page =="Racing") {
b1 = "2";
b2 = "3";
b3 = "4";
bba= "Catamaran";
bbb= "Laser";
}
if (page =="Laser") {
b1 = "3";
b2 = "4";
b3 = "5";
bba= "Racing";
bbb= "Youth";
}
if (page =="Youth") {
b1 = "4";
b2 = "5";
b3 = "6";
bba= "Laser";
bbb= "Navigation";
}
if (page =="Navigation") {
b1 = "5";
b2 = "6";
b3 = "7";
bba= "Youth";
bbb= "Rig, Sails and Knots";
}
if (page =="Rig, Sails and Knots") {
b1 = "6";
b2 = "7";
b3 = "8";
bba= "Navigation";
bbb= "Humour";
}
if (page =="Humour") {
b1 = "7";
b2 = "8";
b3 = "9";
bba= "Rig, Sails and Knots";
bbb= "Fiction";
}
if (page =="Fiction") {
b1 = "8";
b2 = "9";
b3 = "o";
bba= "Humour";
bbb= "Other";
}
if (page =="Other") {
b1 = "9";
b2 = "o";
b3 = "1";
bba= "Fiction";
bbb= "Dinghy";
}

document.write("<center><&nbsp;&nbsp;<a href=\"boo" + b1 + ".htm\" onMouseover=\"status='Go to " + bba + " page.'; return true;\" onMouseout=\"status='This page is: " + section + "" + a + "" + page + ".'; return true;\">" + bba + "</a> | ");
document.write("<a href=\"boo" + b2 + ".htm#top\" onMouseover=\"status='Top of " + page + " page'; return true;\" onMouseout=\"status='This page is: " + section + "" + a + "" + page + ".'; return true;\">Top of " + page + " page</a> | ");
document.write("<a href=\"boo" + b3 + ".htm\" onMouseover=\"status='Go to " + bbb + " page.'; return true;\" onMouseout=\"status='This page is: " + section + "" + a + "" + page + ".'; return true;\">" + bbb + "</a>&nbsp;&nbsp;><br>");
document.write("(<a href=\"mailto:ukdinghydatabase@yahoo.co.uk?subject=[Comment about the Book Store - " + page + " page.]\" onMouseover=\"status='Comment about the Book Store - " + page + ".'; return true;\" onMouseout=\"status='This page is: " + section + "" + a + "" + page + ".'; return true;\">Comment about the Book Store</a>)</center><br>");
}

function url() {
window.location.href = document.bookstore.topics.options[document.bookstore.topics.selectedIndex].value;
}

function bd() {
//document.write('<center><form name="bookstore">');
//document.write("Links to other topics: <select name=\"topics\" size=\"1\" onChange=\"javascript:url();\" class=\"field\" onFocus=\"this.className='focus'\" onBlur=\"this.className='field'\">");
//document.write('<option value="#" selected>Go to..');
//document.write('<option value"boo0.htm">Book Store');
//document.write('<option value="boo1.htm">Dinghy');
//document.write('<option value="boo2.htm">Catamaran');
//document.write('<option value="boo3.htm">Racing');
//document.write('<option value="boo4.htm">Laser');
//document.write('<option value="boo5.htm">Youth');
//document.write('<option value="boo6.htm">Navigation');
//document.write('<option value="boo7.htm">Rig, Sails and Knots');
//document.write('<option value="boo8.htm">Humour');
//document.write('<option value="boo9.htm">Fiction');
//document.write('<option value="booo.htm">Other');
//document.write('<option value="boo12.htm">*All Books*');
//document.write('<option value="boo11.htm">*Currency Converter*');
//document.write('<option value="mailto:ukdinghydatabase@yahoo.co.uk?subject=[Comment about the Book Store - ' + page + ' page.]">*Comment*');
//document.write('</select></form></center>');
}

function amazonbook() {
if (page =="Dinghy") {
b1 = "1";
}
if (page =="Catamaran") {
b1 = "2";
}
if (page =="Racing") {
b1 = "3";
}
if (page =="Laser") {
b1 = "4";
}
if (page =="Youth") {
b1 = "5";
}
if (page =="Navigation") {
b1 = "6";
}
if (page =="Rig, Sails and Knots") {
b1 = "7";
}
if (page =="Humour") {
b1 = "8";
}
if (page =="Fiction") {
b1 = "9";
}
if (page =="Other") {
b1 = "o";
}

document.write("<table cellpadding=\"0\" cellspacing=\"2\" border=\"0\" id=\"ukdd\" align=\"center\" bgcolor=\"#FFFFFF\" width=\"500\" onClick=\"parent.location='http://www.amazon.co.uk/exec/obidos/external-search?tag=ukdinghydatab-21&mode=books-uk&keyword=" + page + "+sailing'\" style=\"cursor: hand\"");
document.write("onMouseover=\"status='Search for &#145" + page + " and Sailing&#146 books through Amazon.co.uk'; return true;\" onMouseout=\"status='This page is: " + section + "" + a + "" + page + ".'; return true;\">");
document.write("<tr><td align=\"center\"><font size=\"4\"><b>Can't find what you are looking for?<br>");
document.write("Search for &#145" + page + "&#146 books through: </b></font><img src=\"amw3.gif\" alt=\"In Association with Amazon.co.uk\" border=\"0\" height=\"20\">");
document.write("</td></tr></table><br>");
}

function sections(b1, bn) {
if (b1 =="1") {
bba = "Dinghy";
}
if (b1 =="2") {
bba = "Catamaran";
}
if (b1 =="3") {
bba = "Racing";
}
if (b1 =="4") {
bba = "Laser";
}
if (b1 =="5") {
bba = "Youth";
}
if (b1 =="6") {
bba = "Navigation";
}
if (b1 =="7") {
bba = "Rig, Sails and Knots";
}
if (b1 =="8") {
bba = "Humour";
}
if (b1 =="9") {
bba = "Fiction";
}
if (b1 =="o") {
bba = "Other";
}
document.write("<tr><td align=\"center\" width=\"60\"></td><td align=\"left\" width=\"210\"><li style=\"list-style-type: disc\"><a href=\"boo" + b1 + ".htm\" onMouseover=\"status='" + bba + "'; return true;\" onMouseout=\"status='This page is: Book Store - Homepage.'; return true;\">" + bba + "</a></li></td>");
document.write("<td align=\"right\"><font size=\"1\"><i>(" + bn + " books.)</i></font></td><td width=\"50\"></td></tr>");
}

