function createTabs() {

  var byprice = "";
  var byroom = "";
  var bystyle = "";
  var bycategory = "";
  var freeshipping = "";
  var shoppingcart = "";
  var newhtml = "";

  currURL = window.location.href;

  if (currURL.search(/byprice/) >= 0) {
    byprice = "<a href='index.php?shop=byprice' class='menuanchorclass' rel='pricemenu' data-image='../../images/tabs/shopbypricer.jpg' data-overimage='../../images/tabs/shopbyprice.jpg'><img src='../../images/tabs/shopbypricer.jpg' style='border-width:0' /></a>";
  }
  else {
    byprice = "<a href='index.php?shop=byprice' class='menuanchorclass' rel='pricemenu' data-image='../../images/tabs/shopbyprice.jpg' data-overimage='../../images/tabs/shopbypricer.jpg'><img src='../../images/tabs/shopbyprice.jpg' style='border-width:0' /></a>";
  }

  if (currURL.search(/byroom/) >= 0) {
    byroom = "<a href='index.php?shop=byroom' class='menuanchorclass' rel='roommenu' data-image='../../images/tabs/shopbyroomr.jpg' data-overimage='../../images/tabs/shopbyroom.jpg'><img src='../../images/tabs/shopbyroomr.jpg' style='border-width:0' /></a>";
  }
  else {
    byroom = "<a href='index.php?shop=byroom' class='menuanchorclass' rel='roommenu' data-image='../../images/tabs/shopbyroom.jpg' data-overimage='../../images/tabs/shopbyroomr.jpg'><img src='../../images/tabs/shopbyroom.jpg' style='border-width:0' /></a>";
  }

  if (currURL.search(/bystyle/) >= 0) {
     bystyle = "<a href='index.php?shop=bystyle' class='menuanchorclass' rel='stylemenu' data-image='../../images/tabs/shopbystyler.jpg' data-overimage='../../images/tabs/shopbystyle.jpg'><img src='../../images/tabs/shopbystyler.jpg' style='border-width:0' /></a>";
  }
  else {
     bystyle = "<a href='index.php?shop=bystyle' class='menuanchorclass' rel='stylemenu' data-image='../../images/tabs/shopbystyle.jpg' data-overimage='../../images/tabs/shopbystyler.jpg'><img src='../../images/tabs/shopbystyle.jpg' style='border-width:0' /></a>";
  }

  if (currURL.search(/bycategory/) >= 0) {
    bycategory = "<a href='index.php?shop=bycat' class='menuanchorclass' rel='catmenu' data-image='../../images/tabs/shopbycatr.jpg' data-overimage='../../images/tabs/shopbycat.jpg'><img src='../../images/tabs/shopbycatr.jpg' style='border-width:0' /></a>";
  }
  else {
    bycategory = "<a href='index.php?shop=bycat' class='menuanchorclass' rel='catmenu' data-image='../../images/tabs/shopbycat.jpg' data-overimage='../../images/tabs/shopbycatr.jpg'><img src='../../images/tabs/shopbycat.jpg' style='border-width:0' /></a>";
  }

  if (currURL.search(/freeshipping/) >= 0) {
    freeshipping = "<img src='../../images/tabs/freeshippingr.jpg' alt='Free Shipping' name='freeshipping' width='105' height='19' border='0'>";
  }
  else {
    freeshipping = "<a href=\"freeshipping.php\" onMouseOver=\"MM_swapImage('freeshipping','','../../images/tabs/freeshippingr.jpg',1);\" onMouseOut=\"MM_swapImgRestore();\"><img src='../../images/tabs/freeshipping.jpg' alt='Free Shipping' name='freeshipping' width='105' height='19' border='0'></a>";
  }
  
  if (currURL.search(/shopping_cart/) >= 0) {
    shoppingcart = "<img src='../../images/tabs/shoppingcartr.jpg' alt='Shopping Cart' name='shoppingcart' width='105' height='19' border='0'>";
  }
  else {
    shoppingcart = "<a href=\"shopping_cart.php\" onMouseOver=\"MM_swapImage('shoppingcart','','../../images/tabs/shoppingcartr.jpg',1)\" onMouseOut=\"MM_swapImgRestore();\"><img src='../../images/tabs/shoppingcart.jpg' alt='Shopping Cart' name='shoppingcart' width='105' height='19' border='0'></a>";
  }

  newhtml = byprice + byroom + bystyle + bycategory + freeshipping + shoppingcart;

  return newhtml;

}

function createbluemenu() {

  var amishlife = "";
  var ourstory = "";
  var faq = "";
  var testimonials = "";
  var customdesign = "";
  var contactus = "";
  var newhtml = "";


  currURL = window.location.href;

  if (currURL.search(/amishlife/) >= 0) {
    amishlife = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class='bluemenucurrent'>AMISH LIFE</span>";
  }
  else {
    amishlife = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='amishlife.php' class='bluemenutext'>AMISH LIFE</a>";
  }

  if (currURL.search(/ourstory/) >= 0) {
    ourstory= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class='bluemenucurrent'>OUR STORY</span>";
  }
  else {
    ourstory= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='ourstory.php' class='bluemenutext'>OUR STORY</a>";
  }

  if (currURL.search(/faq/) >= 0) {
    faq= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class='bluemenucurrent'>FAQ</span>";
  }
  else {
    faq= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='faq.php' class='bluemenutext'>FAQ</a>";
  }

  if (currURL.search(/testimonials/) >= 0) {
    testimonials= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class='bluemenucurrent'>TESTIMONIALS</span>";
  }
  else {
    testimonials= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='testimonials.php' class='bluemenutext'>TESTIMONIALS</a>";
  }

  if (currURL.search(/custom/) >= 0) {
    customdesign = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class='bluemenucurrent'>CUSTOM DESIGN</span>";
  }
  else {
    customdesign = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='custom.php' class='bluemenutext'>CUSTOM DESIGN</a>";
  }

  if (currURL.search(/contact_us/) >= 0) {
    contactus = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class='bluemenucurrent'>CONTACT US</span></p>";
  }
  else {
    contactus = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='contact_us.php' class='bluemenutext'>CONTACT US</a></p>";
  }
  

  newhtml = "<p style='margin: 0 0 0 0;'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class='bluemenucurrent'>HOME</span>" + amishlife + ourstory + faq + testimonials + customdesign + contactus;


  return newhtml;

}





var pricemenu={divclass:'anylinkmenu', inlinestyle:'width:106px; background:#f6eccd', linktarget:'_self'} //Second menu variable. Same precaution.
pricemenu.items=[
	["BARGAIN SHOP", "http://www.byamish.com/oscommerce/catalog/bargainshop.php"],
	["$0 - $100", "http://www.byamish.com/oscommerce/catalog/shopbyprice.php?pfrom=3&pto=100&sort=3a"],
	["$101 - $500", "http://www.byamish.com/oscommerce/catalog/shopbyprice.php?pfrom=101&pto=500&sort=3a"],
	["$501 - $1000", "http://www.byamish.com/oscommerce/catalog/shopbyprice.php?pfrom=501&pto=1000&sort=3a"],
	["$1001 - $2500", "http://www.byamish.com/oscommerce/catalog/shopbyprice.php?pfrom=1001&pto=2500&sort=3a"],
	["$2501 - $5000", "http://www.byamish.com/oscommerce/catalog/shopbyprice.php?pfrom=2501&pto=5000&sort=3a"],
	["$5001 +", "http://www.byamish.com/oscommerce/catalog/shopbyprice.php?pfrom=5001&sort=3a"] //no comma following last entry!
]

var roommenu={divclass:'anylinkmenu', inlinestyle:'width:106px; background:#f6eccd', linktarget:'_self'} //Second menu variable. Same precaution.
roommenu.items=[
	["BATHROOM", "http://www.byamish.com/oscommerce/catalog/index.php?shop=byroom&page=Bathroom&cPath=189"],
	["BEDROOM", "http://www.byamish.com/oscommerce/catalog/index.php?shop=byroom&page=Bedroom&cPath=26"],
	["CHILDREN", "http://www.byamish.com/oscommerce/catalog/index.php?shop=byroom&page=Children&cPath=193"],
	["DINING", "http://www.byamish.com/oscommerce/catalog/index.php?shop=byroom&page=Dining&cPath=21"],
	["GAME ROOM", "http://www.byamish.com/oscommerce/catalog/index.php?shop=byroom&page=Gameroom&cPath=197"],
	["KITCHEN", "http://www.byamish.com/oscommerce/catalog/index.php?shop=byroom&page=Kitchen&cPath=191"],
	["LAUNDRY", "http://www.byamish.com/oscommerce/catalog/index.php?shop=byroom&page=Laundry&cPath=130"],
	["LIVING", "http://www.byamish.com/oscommerce/catalog/index.php?shop=byroom&page=Living&cPath=31"]  //no comma following last entry!
]

var catmenu={divclass:'anylinkmenu', inlinestyle:'width:115px; background:#f6eccd', linktarget:'_self'} //Second menu variable. Same precaution.
catmenu.items=[
	["ARMOIRES", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=Armoires&cPath=310"],
	["BASKETS", "http://www.byamish.com/oscommerce/catalog/shopbycategory.php?keywords=basket&category=Baskets"],
	["BEDS", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=Beds&cPath=28"],
	["BENCHES", "http://www.byamish.com/oscommerce/catalog/shopbycategory.php?keywords=bench&category=Benches"],
	["BOOKCASES", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=Bookcases&cPath=277"],
	["BUFFETS", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=Buffets&cPath=41"],
	["CHESTS", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=Chests&cPath=36"],
	["CHILDREN", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=Children&cPath=193"],
	["CLOCKS", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=Clocks&cPath=125"],
	["COFFEE TABLES", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=Coffee%20Tables&cPath=33"],
	["CURIOS", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=Curios&cPath=274"],
	["DESK CHAIRS", "http://www.byamish.com/oscommerce/catalog/shopbycategory.php?keywords=desk%20AND%20chair&category=Desk%20Chairs"],
	["DINING CHAIRS", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=Dining%20Chairs&cPath=24"],
	["DINING TABLES", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=Dining%20Tables&cPath=23"],
	["DRESSERS", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=Dressers&cPath=29"],
	["END TABLES", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=End%20Tables&cPath=34"],
	["ENTERTAINMENT", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=Game%20Room&cPath=197"],
	["HUTCHES", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=Hutches&cPath=25"],
	["JELLY CUPBOARDS", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=Jelly%20Cupboards&cPath=275"],
	["MIRRORS", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=Mirrors&cPath=279"],
	["NIGHT STANDS", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=Night%Stands&cPath=30"],
	["PIE SAFES", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=Pie%20Safes&cPath=276"],
	["SIDEBOARDS", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=Sideboards&cPath=40"],
	["SOFA TABLES", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=Sofa%20Tables&cPath=35"],
	["STAIN SAMPLES", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=Stain%20Samples&cPath=115"],
	["STOOLS", "http://www.byamish.com/oscommerce/catalog/shopbycategory.php?keywords=stool&category=Stools"],
	["WIND CHIMES", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=Wind%20Chimes&cPath=236"],
	["WINE CABINETS", "http://www.byamish.com/oscommerce/catalog/index.php?shop=bycategory&page=Wine%20Cabinets&cPath=278"]  //no comma following last entry!
]

var stylemenu={divclass:'anylinkmenu', inlinestyle:'width:106px; background:#f6eccd', linktarget:'_self'} //Second menu variable. Same precaution.
stylemenu.items=[
	["COUNTRY", "http://www.byamish.com/oscommerce/catalog/shopbystyle.php?keywords=Country"],
	["MISSION", "http://www.byamish.com/oscommerce/catalog/shopbystyle.php?keywords=Mission"],
	["SHAKER", "http://www.byamish.com/oscommerce/catalog/shopbystyle.php?keywords=Shaker"] //no comma following last entry!
]