function breakout_of_frame()
{
  if (top.location != location) {
    top.location.href = document.location.href ;
  }
}


	function ShowHide(id1, id2) {
	  if (id1 != '') expMenu(id1);
	  if (id2 != '') expMenu(id2);
	}
	
	function expMenu(id) {
	  var itm = null;
	  if (document.getElementById) {
		itm = document.getElementById(id);
	  } else if (document.all){
		itm = document.all[id];
	  } else if (document.layers){
		itm = document.layers[id];
	  }
	
	  if (!itm) {
	   // do nothing
	  }
	  else if (itm.style) {
		if (itm.style.display == "none") { itm.style.display = ""; }
		else { itm.style.display = "none"; }
	  }
	  else { itm.visibility = "show"; }
	}

  function CurrencyPopup(QueryString)
  {
    CurrencyWindow = window.open ('', 'CurrencyWindow', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,height=140,width=600')
    CurrencyWindow.focus()
    CurrencyWindow.location.href = 'http://www.xe.net/ecc/input.cgi?Template=sw&From=GBP&To='+QueryString
  }





function ShadeCard(QueryString)
{
ShadeCard = window.open ('', 'ShadeCard', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,height=530,width=520')
ShadeCard.focus()
ShadeCard.location.href = 'http://www.willowfabrics.com'+QueryString
}

function ShadeCard2(QueryString)
{
CurrencyWindow = window.open ('', 'ShadeCard', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,height=530,width=620')
CurrencyWindow.focus()
CurrencyWindow.location.href = 'http://www.willowfabrics.com'+QueryString
}

if (document.images && (navigator.appName.toLowerCase() != "netscape" || navigator.appVersion.charAt(0) != "3")) { 
ionhnav_home = new Image(); ionhnav_home.src = 'home2new.gif';
ioffhnav_home = new Image(); ioffhnav_home.src = 'home1new.gif';
}
function onhnav_home(){
if (document.images && (navigator.appName.toLowerCase() != "netscape" || navigator.appVersion.charAt(0) != "3")) {
document['hnav_home'].src = ionhnav_home.src;}
}
function offhnav_home(){
if (document.images && (navigator.appName.toLowerCase() != "netscape" || navigator.appVersion.charAt(0) != "3")) {
document['hnav_home'].src = ioffhnav_home.src;}
}

if (document.images && (navigator.appName.toLowerCase() != "netscape" || navigator.appVersion.charAt(0) != "3")) { 
ionhnav_up = new Image(); ionhnav_up.src = 'top2new.gif';
ioffhnav_up = new Image(); ioffhnav_up.src = 'top1new.gif';
}
function onhnav_up(){
if (document.images && (navigator.appName.toLowerCase() != "netscape" || navigator.appVersion.charAt(0) != "3")) {
document['hnav_up'].src = ionhnav_up.src;}
}
function offhnav_up(){
if (document.images && (navigator.appName.toLowerCase() != "netscape" || navigator.appVersion.charAt(0) != "3")) {
document['hnav_up'].src = ioffhnav_up.src;}
}

if (document.images && (navigator.appName.toLowerCase() != "netscape" || navigator.appVersion.charAt(0) != "3")) { 
ionhnav_info = new Image(); ionhnav_info.src = 'info2new.gif';
ioffhnav_info = new Image(); ioffhnav_info.src = 'info1new.gif';
}
function onhnav_info(){
if (document.images && (navigator.appName.toLowerCase() != "netscape" || navigator.appVersion.charAt(0) != "3")) {
document['hnav_info'].src = ionhnav_info.src;}
}
function offhnav_info(){
if (document.images && (navigator.appName.toLowerCase() != "netscape" || navigator.appVersion.charAt(0) != "3")) {
document['hnav_info'].src = ioffhnav_info.src;}
}

if (document.images && (navigator.appName.toLowerCase() != "netscape" || navigator.appVersion.charAt(0) != "3")) { 
ionhnav_search = new Image(); ionhnav_search.src = 'search2new.gif';
ioffhnav_search = new Image(); ioffhnav_search.src = 'search1new.gif';
}
function onhnav_search(){
if (document.images && (navigator.appName.toLowerCase() != "netscape" || navigator.appVersion.charAt(0) != "3")) {
document['hnav_search'].src = ionhnav_search.src;}
}
function offhnav_search(){
if (document.images && (navigator.appName.toLowerCase() != "netscape" || navigator.appVersion.charAt(0) != "3")) {
document['hnav_search'].src = ioffhnav_search.src;}
}

if (document.images && (navigator.appName.toLowerCase() != "netscape" || navigator.appVersion.charAt(0) != "3")) { 
ionhnav_cart = new Image(); ionhnav_cart.src = 'cart2new.gif';
ioffhnav_cart = new Image(); ioffhnav_cart.src = 'cart1new.gif';
}
function onhnav_cart(){
if (document.images && (navigator.appName.toLowerCase() != "netscape" || navigator.appVersion.charAt(0) != "3")) {
document['hnav_cart'].src = ionhnav_cart.src;}
}
function offhnav_cart(){
if (document.images && (navigator.appName.toLowerCase() != "netscape" || navigator.appVersion.charAt(0) != "3")) {
document['hnav_cart'].src = ioffhnav_cart.src;}
}

if (document.images && (navigator.appName.toLowerCase() != "netscape" || navigator.appVersion.charAt(0) != "3")) { 
ionhnav_order = new Image(); ionhnav_order.src = 'order2new.gif';
ioffhnav_order = new Image(); ioffhnav_order.src = 'order1new.gif';
}
function onhnav_order(){
if (document.images && (navigator.appName.toLowerCase() != "netscape" || navigator.appVersion.charAt(0) != "3")) {
document['hnav_order'].src = ionhnav_order.src;}
}
function offhnav_order(){
if (document.images && (navigator.appName.toLowerCase() != "netscape" || navigator.appVersion.charAt(0) != "3")) {
document['hnav_order'].src = ioffhnav_order.src;}
}

if (document.images && (navigator.appName.toLowerCase() != "netscape" || navigator.appVersion.charAt(0) != "3")) { 
ionhnav_mail = new Image(); ionhnav_mail.src = 'mail2new.gif';
ioffhnav_mail = new Image(); ioffhnav_mail.src = 'mail1new.gif';
}
function onhnav_mail(){
if (document.images && (navigator.appName.toLowerCase() != "netscape" || navigator.appVersion.charAt(0) != "3")) {
document['hnav_mail'].src = ionhnav_mail.src;}
}
function offhnav_mail(){
if (document.images && (navigator.appName.toLowerCase() != "netscape" || navigator.appVersion.charAt(0) != "3")) {
document['hnav_mail'].src = ioffhnav_mail.src;}
}

