function style( firstpart, secondpart, thirdpart) {
var product = firstpart;
var buttonsize = secondpart;
var priceoutput = thirdpart;
var size = "LG";
var name = "honey";
var domain = "cornwallhoney";
var end = "co";
var country = "uk";
var atsign = "&#64;";
var addr = name + atsign + domain + "." + end + "." + country;
var poundsign = "\u00A3";

if (product=="50hiverecords")
{
var productname = "50x Hive Record Sheets";
var amount = "10.99";
var shipping1 = "1.99";
var shipping2 = "1.99";
}

if (product=="10hiverecords")
{
var productname = "10x Hive Record Sheets";
var amount = "2.49";
var shipping1 = "0.50";
var shipping2 = "0.50";
}

if (product=="meshfloor")
{
var productname = "Varroa Mesh Floor with Tray";
var amount = "28.90";
var shipping1 = "8.49";
var shipping2 = "8.49";
}

if (product=="hivesuper")
{
var productname = "National Hive Super (Self-Assembly)";
var amount = "27.65";
var shipping1 = "8.49";
var shipping2 = "8.49";
}

if (product=="queenexcluder")
{
var productname = "Queen Excluder (Wire)";
var amount = "16.99";
var shipping1 = "4.99";
var shipping2 = "4.99";
}

if (product=="hivetool")
{
var productname = "Stainless Steel Hive Tool";
var amount = "9.45";
var shipping1 = "2.25";
var shipping2 = "2.25";
}

if (product=="porterbeeescapes")
{
var productname = "10x Porter Bee Escapes";
var amount = "10.00";
var shipping1 = "1.99";
var shipping2 = "1.99";
}

if (product=="framespacerswide")
{
var productname = "10x Frame Spacers (Wide)";
var amount = "0.95";
var shipping1 = "1.99";
var shipping2 = "1.99";
}

if (product=="framespacersnarrow")
{
var productname = "10x Frame Spacers (Narrow)";
var amount = "0.95";
var shipping1 = "1.99";
var shipping2 = "1.99";
}

if (product=="queenpress")
{
var productname = "Queen Press in Cage";
var amount = "4.65";
var shipping1 = "1.49";
var shipping2 = "1.49";
}

if (product=="jenterkit")
{
var productname = "Jenter Kit";
var amount = "73.99";
var shipping1 = "3.99";
var shipping2 = "3.99";
}

if (product=="10manley")
{
var productname = "10x Manley Frames (Shallow)";
var amount = "15.49";
var shipping1 = "8.49";
var shipping2 = "8.49";
}

if (product=="50manley")
{
var productname = "50x Manley Frames (Shallow)";
var amount = "81.95";
var shipping1 = "8.49";
var shipping2 = "8.49";
}

if (product=="10dn1")
{
var productname = "10x DN1 Frames";
var amount = "11.10";
var shipping1 = "5.49";
var shipping2 = "5.49";
}

if (product=="50dn1")
{
var productname = "50x DN1 Frames";
var amount = "52.95";
var shipping1 = "8.49";
var shipping2 = "8.49";
}

if (product=="10dn2")
{
var productname = "10x DN2 Frames";
var amount = "12.99";
var shipping1 = "5.49";
var shipping2 = "5.49";
}

if (product=="50dn2")
{
var productname = "50x DN2 Frames";
var amount = "62.95";
var shipping1 = "8.49";
var shipping2 = "8.49";
}

if (product=="10dn4")
{
var productname = "10x DN4 Frames";
var amount = "13.45";
var shipping1 = "5.49";
var shipping2 = "5.49";
}

if (product=="50dn4")
{
var productname = "50x DN4 Frames";
var amount = "64.95";
var shipping1 = "8.49";
var shipping2 = "8.49";
}

if (product=="10sn1")
{
var productname = "10x SN1 Frames";
var amount = "11.10";
var shipping1 = "5.49";
var shipping2 = "5.49";
}

if (product=="50sn1")
{
var productname = "50x SN1 Frames";
var amount = "52.95";
var shipping1 = "8.49";
var shipping2 = "8.49";
}

if (product=="10sn2")
{
var productname = "10x SN2 Frames";
var amount = "12.99";
var shipping1 = "5.49";
var shipping2 = "5.49";
}

if (product=="50sn2")
{
var productname = "50x SN2 Frames";
var amount = "62.95";
var shipping1 = "8.49";
var shipping2 = "8.49";
}

if (product=="10sn4")
{
var productname = "10x SN4 Frames";
var amount = "13.45";
var shipping1 = "5.49";
var shipping2 = "5.49";
}

if (product=="50sn4")
{
var productname = "50x SN4 Frames";
var amount = "64.95";
var shipping1 = "8.49";
var shipping2 = "8.49";
}

if (product=="10commercial")
{
var productname = "10x Commercial Brood Frames";
var amount = "17.05";
var shipping1 = "5.49";
var shipping2 = "5.49";
}

if (product=="50commercial")
{
var productname = "50x Commercial Brood Frames";
var amount = "81.95";
var shipping1 = "8.49";
var shipping2 = "8.49";
}

if (product=="10commfoundation")
{
var productname = "10x Commercial Deep Wax Foundation";
var amount = "10.60";
var shipping1 = "4.99";
var shipping2 = "4.99";
}

if (product=="50commfoundation")
{
var productname = "50x Commercial Deep Wax Foundation";
var amount = "50.95";
var shipping1 = "8.49";
var shipping2 = "8.49";
}

if (product=="10bsdeepwired")
{
var productname = "10x BS Deep Wax Foundation (Wired)";
var amount = "7.99";
var shipping1 = "4.99";
var shipping2 = "4.99";
}

if (product=="50bsdeepwired")
{
var productname = "50x BS Deep Wax Foundation (Wired)";
var amount = "37.45";
var shipping1 = "8.49";
var shipping2 = "8.49";
}

if (product=="10bsshallowwired")
{
var productname = "10x BS Shallow Wax Foundation (Wired)";
var amount = "4.65";
var shipping1 = "3.69";
var shipping2 = "3.69";
}

if (product=="50bsshallowwired")
{
var productname = "50x BS Shallow Wax Foundation (Wired)";
var amount = "21.49";
var shipping1 = "8.49";
var shipping2 = "8.49";
}

if (product=="10bsshallowunwired")
{
var productname = "10x BS Shallow Wax Foundation (Unwired)";
var amount = "4.20";
var shipping1 = "2.99";
var shipping2 = "2.99";
}

if (product=="50bsshallowunwired")
{
var productname = "50x BS Shallow Wax Foundation (Unwired)";
var amount = "20.15";
var shipping1 = "8.49";
var shipping2 = "8.49";
}

if (product=="varroastarterpack")
{
var productname = "Beevital Hiveclean - Varroa Control Starter Pack";
var amount = "3.49";
var shipping1 = "1.49";
var shipping2 = "1.49";
}

if (product=="varroa500ml")
{
var productname = "Beevital Hiveclean - 1x 500ml Treatment Container";
var amount = "15.99";
var shipping1 = "3.49";
var shipping2 = "3.49";
}

if (product=="varroasticks")
{
var productname = "Beevital Hiveclean - 10x Varroa Treatment Sticks";
var amount = "9.00";
var shipping1 = "1.99";
var shipping2 = "1.99";
}

if (product=="10varroafloor")
{
var productname = "Beevital Hiveclean - 10x Varroa Sticky Floor";
var amount = "5.49";
var shipping1 = "2.50";
var shipping2 = "2.50";
}


if (product=="commercialhiveempty")
{
var productname = "Commercial Hive - Empty";
var amount = "170.00";
var shipping1 = "15.99";
var shipping2 = "15.99";
}



if (product=="commercialhivecomplete")
{
var productname = "Commercial Hive - Complete";
var amount = "247.27";
var shipping1 = "21.50";
var shipping2 = "21.50";
}


if (product=="dadanthiveempty")
{
var productname = "Modified Dadant Hive - Empty";
var amount = "201.43";
var shipping1 = "15.99";
var shipping2 = "15.99";
}


if (product=="dadanthivecomplete")
{
var productname = "Modified Dadant Hive - Complete";
var amount = "277.93";
var shipping1 = "21.50";
var shipping2 = "21.50";
}



if (product=="langstrothhiveempty")
{
var productname = "Langstroth Hive - Empty";
var amount = "172.58";
var shipping1 = "15.99";
var shipping2 = "15.99";
}



if (product=="langstrothhivecomplete")
{
var productname = "Langstroth Hive - Complete";
var amount = "241.11";
var shipping1 = "21.50";
var shipping2 = "21.50";
}


if (product=="nationalhiveempty")
{
var productname = "National Hive - Empty";
var amount = "165.07";
var shipping1 = "15.99";
var shipping2 = "15.99";
}


if (product=="nationalhivecomplete")
{
var productname = "National Hive - Complete";
var amount = "223.27";
var shipping1 = "21.50";
var shipping2 = "21.50";
}



if (product=="wbchiveempty")
{
var productname = "WBC Hive - Empty";
var amount = "241.32";
var shipping1 = "15.99";
var shipping2 = "15.99";
}


if (product=="wbchivecomplete")
{
var productname = "WBC Hive - Complete";
var amount = "307.89";
var shipping1 = "21.50";
var shipping2 = "21.50";
}


if (product=="rapidfeeder")
{
var productname = "Rapid Feeder";
var amount = "5.20";
var shipping1 = "3.99";
var shipping2 = "3.99";
}


if (product=="plasticframedeep")
{
var productname = "11x Plastic Frame - Deep";
var amount = "29.99";
var shipping1 = "9.49";
var shipping2 = "9.49";
}


if (product=="plasticframeshallow")
{
var productname = "11x Plastic Frame - Shallow";
var amount = "29.99";
var shipping1 = "9.49";
var shipping2 = "9.49";
}


if (product=="starterkit")
{
var productname = "Beekeeping Starter Kit";
var amount = "387.45";
var shipping1 = "16.00";
var shipping2 = "16.00";
}


// Multiple Choice Products

if (product=="empiresmoker")
{
var myVoid = new Array("You have not selected a smoker type...", "0.01", "0", "0");
var myGalvanisedSteel = new Array("Empire Smoker - Galvanised Steel", "34.60", "7.99", "7.99");
var myStainlessSteel = new Array("Empire Smoker - Stainless Steel", "43.46", "7.99", "7.99");
var myCopper = new Array("Empire Smoker - Copper", "43.46", "7.99", "7.99");
var productname = "Empire Smoker"; 
var amount = "34.60"; //Use the cheapest price
var shipping1 = "7.99";
var shipping2 = "7.99";
}

if (product=="etnasmoker")
{
var myVoid = new Array("You have not selected a smoker type...", "0.01", "0", "0");
var myGalvanisedSteel = new Array("Etna Smoker - Galvanised Steel", "32.25", "7.99", "7.99");
var myStainlessSteel = new Array("Etna Smoker - Stainless Steel", "37.40", "7.99", "7.99");
var productname = "Etna Smoker";
var amount = "31.70"; //Use the cheapest price
var shipping1 = "7.99";
var shipping2 = "7.99";
}

if (product=="fullsherriff")
{
var myVoid = new Array("You have not selected a size...", "0.01", "0", "0");
var mySmall = new Array("Sherriff Full Beekeeping Suit - Small", "118.69", "0", "0");
var myMedium = new Array("Sherriff Full Beekeeping Suit - Medium", "118.69", "0", "0");
var myLarge = new Array("Sherriff Full Beekeeping Suit - Large", "118.69", "0", "0");
var myXL = new Array("Sherriff Full Beekeeping Suit - XL", "121.60", "0", "0");
var myXXL = new Array("Sherriff Full Beekeeping Suit - XXL", "139.85", "0", "0");
var myXXXL = new Array("Sherriff Full Beekeeping Suit - XXXL", "146.97", "0", "0");
var productname = "Sherriff Full Beekeeping Suit";
var amount = "118.69"; //Use the cheapest price
var shipping1 = "0";
var shipping2 = "0";
}



if (product=="sherriffjacket")
{
var myVoid = new Array("You have not selected a size...", "0.01", "0", "0");
var mySmall = new Array("Sherriff Honey Rustler Jacket - Small", "95.99", "0", "0");
var myMedium = new Array("Sherriff Honey Rustler Jacket - Medium", "95.99", "0", "0");
var myLarge = new Array("Sherriff Honey Rustler Jacket - Large", "95.99", "0", "0");
var myXL = new Array("Sherriff Honey Rustler Jacket - XL", "103.29", "0", "0");
var myXXL = new Array("Sherriff Honey Rustler Jacket - XXL", "112.58", "0", "0");
var myXXXL = new Array("Sherriff Honey Rustler Jacket - XXXL", "129.45", "0", "0");
var productname = "Sherriff Honey Rustler Jacket";
var amount = "95.99"; //Use the cheapest price
var shipping1 = "0";
var shipping2 = "0";
}



if (product=="sherriffsmock")
{
var myVoid = new Array("You have not selected a size...", "0.01", "0", "0");
var mySmall = new Array("Sherriff Smock/Countryman - Small", "71.99", "0", "0");
var myMedium = new Array("Sherriff Smock/Countryman - Medium", "71.99", "0", "0");
var myLarge = new Array("Sherriff Smock/Countryman - Large", "71.99", "0", "0");
var myXL = new Array("Sherriff Smock/Countryman - XL", "75.58", "0", "0");
var myXXL = new Array("Sherriff Smock/Countryman - XXL", "83.15", "0", "0");
var myXXXL = new Array("Sherriff Smock/Countryman - XXXL", "95.62", "0", "0");
var productname = "Sherriff Smock/Countryman";
var amount = "71.99"; //Use the cheapest price
var shipping1 = "0";
var shipping2 = "0";
}

if (product=="sherriffgloves")
{
var myVoid = new Array("You have not selected a size...", "0.01", "0", "0");
var myGlove06 = new Array("Sherriff Protective Leather Gloves/Gauntlets - Size 6", "25.99", "0", "0");
var myGlove07 = new Array("Sherriff Protective Leather Gloves/Gauntlets - Size 7", "25.99", "0", "0");
var myGlove08 = new Array("Sherriff Protective Leather Gloves/Gauntlets - Size 8", "25.99", "0", "0");
var myGlove09 = new Array("Sherriff Protective Leather Gloves/Gauntlets - Size 9", "25.99", "0", "0");
var myGlove10 = new Array("Sherriff Protective Leather Gloves/Gauntlets - Size 10", "25.99", "0", "0");
var myGlove11 = new Array("Sherriff Protective Leather Gloves/Gauntlets - Size 11", "25.99", "0", "0");
var myGlove12 = new Array("Sherriff Protective Leather Gloves/Gauntlets - Size 12", "25.99", "0", "0");
var myGlove13 = new Array("Sherriff Protective Leather Gloves/Gauntlets - Size 13", "25.99", "0", "0");
var productname = "Sherriff Protective Leather Gloves/Gauntlets";
var amount = "25.99"; //Use the cheapest price
var shipping1 = "0";
var shipping2 = "0";
}



if (product=="cart")
{
document.write("<form target=\"paypal\" action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\"><input type=\"hidden\" name=\"cmd\" value=\"_cart\"><input type=\"hidden\" name=\"business\" value=\"" + addr + "\"><input type=\"image\" src=\"./images/view_cart.gif\" align=\"right\" border=\"0\" name=\"submit\" alt=\"Make payments with PayPal - it's fast, free and secure!\"><input type=\"hidden\" name=\"display\" value=\"1\"></form>");
end;
}

else if (priceoutput=="price")
{
document.write(poundsign + amount);
end;
}

else if (product == "fullsherriff")
{
document.write("<table border=0 cellspacing=0 cellpadding=0><tr><td><div align=\"left\"><form target=\"paypal\" action=\"process.php\" method=\"post\"><input type=\"hidden\" name=\"add\" value=\"1\"><select name=\"product\" size=\"1\"><option selected=\"selected\" disabled=\"disabled\" value=\"" + myVoid + "\">Please select a size:</option><option value=\"" + mySmall + "\">Small - £" + mySmall[1] + "</option><option value=\"" + myMedium + "\">Medium - £" + myMedium[1] + "</option><option value=\"" + myLarge + "\">Large - £" + myLarge[1] + "</option><option value=\"" + myXL + "\">XL - £" + myXL[1] + "</option><option value=\"" + myXXL + "\">XXL - £" + myXXL[1] + "</option><option value=\"" + myXXXL + "\">XXXL - £" + myXXXL[1] + "</option></select></div></td><td><br><div align=\"right\">&nbsp;&nbsp;<input type=\"image\" src=\"./images/btn_cart_" + size + ".gif\" border=\"0\" name=\"submit\" alt=\"PayPal - The safer, easier way to pay online.\"><img alt=\"\" border=\"0\" src=\"./images/pixel.gif\" width=\"1\" height=\"1\"></form></div></td></tr></table>");
}



else if (product == "sherriffjacket")
{
document.write("<table border=0 cellspacing=0 cellpadding=0><tr><td><div align=\"left\"><form target=\"paypal\" action=\"process.php\" method=\"post\"><input type=\"hidden\" name=\"add\" value=\"1\"><select name=\"product\" size=\"1\"><option selected=\"selected\" disabled=\"disabled\" value=\"" + myVoid + "\">Please select a size:</option><option value=\"" + mySmall + "\">Small - £" + mySmall[1] + "</option><option value=\"" + myMedium + "\">Medium - £" + myMedium[1] + "</option><option value=\"" + myLarge + "\">Large - £" + myLarge[1] + "</option><option value=\"" + myXL + "\">XL - £" + myXL[1] + "</option><option value=\"" + myXXL + "\">XXL - £" + myXXL[1] + "</option><option value=\"" + myXXXL + "\">XXXL - £" + myXXXL[1] + "</option></select></div></td><td><br><div align=\"right\">&nbsp;&nbsp;<input type=\"image\" src=\"./images/btn_cart_" + size + ".gif\" border=\"0\" name=\"submit\" alt=\"PayPal - The safer, easier way to pay online.\"><img alt=\"\" border=\"0\" src=\"./images/pixel.gif\" width=\"1\" height=\"1\"></form></div></td></tr></table>");
}



else if (product == "sherriffsmock")
{
document.write("<table border=0 cellspacing=0 cellpadding=0><tr><td><div align=\"left\"><form target=\"paypal\" action=\"process.php\" method=\"post\"><input type=\"hidden\" name=\"add\" value=\"1\"><select name=\"product\" size=\"1\"><option selected=\"selected\" disabled=\"disabled\" value=\"" + myVoid + "\">Please select a size:</option><option value=\"" + mySmall + "\">Small - £" + mySmall[1] + "</option><option value=\"" + myMedium + "\">Medium - £" + myMedium[1] + "</option><option value=\"" + myLarge + "\">Large - £" + myLarge[1] + "</option><option value=\"" + myXL + "\">XL - £" + myXL[1] + "</option><option value=\"" + myXXL + "\">XXL - £" + myXXL[1] + "</option><option value=\"" + myXXXL + "\">XXXL - £" + myXXXL[1] + "</option></select></div></td><td><br><div align=\"right\">&nbsp;&nbsp;<input type=\"image\" src=\"./images/btn_cart_" + size + ".gif\" border=\"0\" name=\"submit\" alt=\"PayPal - The safer, easier way to pay online.\"><img alt=\"\" border=\"0\" src=\"./images/pixel.gif\" width=\"1\" height=\"1\"></form></div></td></tr></table>");
}



else if (product == "sherriffgloves")
{
document.write("<table border=0 cellspacing=0 cellpadding=0><tr><td><div align=\"left\"><form target=\"paypal\" action=\"process.php\" method=\"post\"><input type=\"hidden\" name=\"add\" value=\"1\"><select name=\"product\" size=\"1\"><option selected=\"selected\" disabled=\"disabled\" value=\"" + myVoid + "\">Please select a size:</option><option value=\"" + myGlove06 + "\">Size 6</option><option value=\"" + myGlove07 + "\">Size 7</option><option value=\"" + myGlove08 + "\">Size 8</option><option value=\"" + myGlove09 + "\">Size 9</option><option value=\"" + myGlove10 + "\">Size 10</option><option value=\"" + myGlove11 + "\">Size 11</option><option value=\"" + myGlove12 + "\">Size 12</option><option value=\"" + myGlove13 + "\">Size 13</option></select></div></td><td><br><div align=\"right\">&nbsp;&nbsp;<input type=\"image\" src=\"./images/btn_cart_" + size + ".gif\" border=\"0\" name=\"submit\" alt=\"PayPal - The safer, easier way to pay online.\"><img alt=\"\" border=\"0\" src=\"./images/pixel.gif\" width=\"1\" height=\"1\"></form></div></td></tr></table>");
}



else if (product == "empiresmoker")
{
document.write("<table border=0 cellspacing=0 cellpadding=0><tr><td><div align=\"left\"><form target=\"paypal\" action=\"process.php\" method=\"post\"><input type=\"hidden\" name=\"add\" value=\"1\"><select name=\"product\" size=\"1\"><option selected=\"selected\" disabled=\"disabled\" value=\"" + myVoid + "\">Please select the smoker type:</option><option value=\"" + myCopper + "\">Copper - £" + myCopper[1] + "</option><option value=\"" + myGalvanisedSteel + "\">Galvanised Steel - £" + myGalvanisedSteel[1] + "</option><option value=\"" + myStainlessSteel + "\">Stainless Steel - £" + myStainlessSteel[1] + "</option></select></div></td><td><br><div align=\"right\">&nbsp;&nbsp;<input type=\"image\" src=\"./images/btn_cart_" + size + ".gif\" border=\"0\" name=\"submit\" alt=\"PayPal - The safer, easier way to pay online.\"><img alt=\"\" border=\"0\" src=\"./images/pixel.gif\" width=\"1\" height=\"1\"></form></div></td></tr></table>");
}



else if (product == "etnasmoker")
{
document.write("<table border=0 cellspacing=0 cellpadding=0><tr><td><div align=\"left\"><form target=\"paypal\" action=\"process.php\" method=\"post\"><input type=\"hidden\" name=\"add\" value=\"1\"><select name=\"product\" size=\"1\"><option selected=\"selected\" disabled=\"disabled\" value=\"" + myVoid + "\">Please select the smoker type:</option><option value=\"" + myGalvanisedSteel + "\">Galvanised Steel - £" + myGalvanisedSteel[1] + "</option><option value=\"" + myStainlessSteel + "\">Stainless Steel - £" + myStainlessSteel[1] + "</option></select></div></td><td><br><div align=\"right\">&nbsp;&nbsp;<input type=\"image\" src=\"./images/btn_cart_" + size + ".gif\" border=\"0\" name=\"submit\" alt=\"PayPal - The safer, easier way to pay online.\"><img alt=\"\" border=\"0\" src=\"./images/pixel.gif\" width=\"1\" height=\"1\"></form></div></td></tr></table>");
}



else
{
document.write("<form target=\"paypal\" action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\"><input type=\"image\" src=\"./images/btn_cart_" + size + ".gif\" border=\"0\" name=\"submit\" alt=\"PayPal - The safer, easier way to pay online.\"><img alt=\"\" border=\"0\" src=\"./images/pixel.gif\" width=\"1\" height=\"1\"><input type=\"hidden\" name=\"add\" value=\"1\"><input type=\"hidden\" name=\"cmd\" value=\"_cart\"><input type=\"hidden\" name=\"business\" value=\"" + addr + "\"><input type=\"hidden\" name=\"item_name\" value=\"" + productname + "\"><input type=\"hidden\" name=\"amount\" value=\"" + amount + "\"><input type=\"hidden\" name=\"shipping\" value=\"" + shipping1 + "\"><input type=\"hidden\" name=\"shipping2\" value=\"" + shipping2 + "\"><input type=\"hidden\" name=\"page_style\" value=\"Honey\"><input type=\"hidden\" name=\"no_shipping\" value=\"0\"><input type=\"hidden\" name=\"currency_code\" value=\"GBP\"><input type=\"hidden\" name=\"lc\" value=\"GB\"><input type=\"hidden\" name=\"bn\" value=\"PP-ShopCartBF\"></form>");
}
}