
function ContentsBox()
{
	var text = "";
	text += '	<td valign = "top" width = "160"> ';
	text += '		<div class=box><center><font size=5><b>Contents</b></font></center>';
	text += '		<p><b><a href="you_index.htm">Welcome</a></b>';
	text += '		<p><b><a href="lifefocusshop/idx1.htm">SHOP</a></b>';
	text += '		<p><b><a href="news.htm">News & Offers</a></b><br> ';
	text += '		<p><b><a href="trainingconsultation.htm#business">Business Focus</a></b><br> ';
	text += '		<p><b><a href="trainingconsultation.htm">Training & Consultations</a></b></br>';
	text += '		<p><b><a href="stressfocus.htm">Stress Focus</a></b>';	
	text += '		<p><b><a href="sad.htm">S.A.D.</a></b>';		
	text += '		<p><b><a href="aboutus.htm">About Us</a></b>';	
	text += '		<p><b><a href="bach.htm">Bach Remedies</a></b>';
	text += '		<p><b><a href="glossary.htm">Glossary</a></b>';	
	text += '		<p><b><a href="qanda.htm">Q &amp; A</a></b>';	
	text += '		<p><b><a href="contact.htm">Contact Us</a></b>';
	text += '		<p><b><a href="links.htm">Links</a></b>';
        text += '		<p><b><a href="index.htm">Home</a></b></div> ';	
	text += '    </td>';
	document.write(text);
}

function Footer(mod)
{
	var text = "";
	text += '<font face=arial size=-2>Copyright &copy Life Focus 2001 - ';
	text += 'Email:<a href="mailto:helpdesk@lifefocus.co.uk">HelpDesk@LifeFocus.co.uk</a> ';
	document.write (text);
	text = '</font>';
	document.write (text);
}

function showProduct( pFileName, pTitle) 
{
	// specify window parameters
	prodWin = window.open( "", "prod", "width=600,height=450,status,scrollbars,resizable,screenX=20,screenY=40,left=20,top=40");
	// write content to window
	var text = "";
	text += '<html><head><title>' + pTitle + '</title>';
	text += '<style>';	
	text += '.clickMsg {text-align:center; display:none}';	
	text += '.loadMsg {text-align:center; display:block}';	
	text += '</style>';	
	text += '<SCRIPT LANGUAGE="JavaScript">';	
	
	text += 'NS4=(document.layers)?1:0;IE4=(document.all)?1:0;';	
	text += 'ver4=(IE4 || NS4)?1:0;';	
	text += 'if (ver4){ if (NS4) {document.captureEvents(Event.MOUSEDOWN);';
	text += 'document.onmousedown=clk;}';
	text += 'else{document.onclick=clk;}}';	
	text += 'function clk(){window.close();}';
	
	text += 'function Expand() { ';
	text += 'var h; var w;';
	text += 'if (IE4) {';
	text += 'h=document.images[0].height + 170;';
	text += 'w=document.images[0].width + 70;';
	text += 'if (h > screen.availHeight-20) h = screen.availHeight-20;';
	text += 'if (w > screen.availWidth) w = screen.availWidth;';
	text += '} else {';
	text += 'h=document.images[0].height + 50;';
	text += 'w=document.images[0].width + 25;';
	text += 'if (h > screen.availHeight-70) h = screen.availHeight-70;';
	text += 'if (w > screen.availWidth) w = screen.availWidth;';
	text += '}';

	text += 'loadDiv.style.display="none";';
	text += 'clickDiv.style.display="block";';
	text += 'self.resizeTo(w,h); self.focus();}';

	text += '</script>'
	text += '</head>';	
	
	text += '<BODY BGCOLOR=#FFFFFF background="BlueWater.gif" onLoad=javascript:Expand() onBlur=javascript:close()>';

	text += '<div id=loadDiv class="loadMsg">';
	text += 'Loading image - please wait...';
	text += '</div>';

	text += '<center>';
	text += '<font size=+2 face="arial,helvetica"><b>' + pTitle + '</b></font><br>';
	text += '<p><table border=1 bordercolor=#404040><tr><td><img src="' + pFileName + '"></td></tr></table><p>';
	text += '<font face="arial,helvetica">';	
	
	text += '<div id=clickDiv class="clickMsg">';
	text += 'Click anywhere to close this window';
	text += '</div>';

	text += '<p></font></body></html>';
	prodWin.document.write(text);
	prodWin.document.close();	
	prodWin.focus();
}

function LeafRule()
{
	document.write('<p align=center><img src="looprule.gif" width=75 height=35 alt="infinity loop"></p>');
}

/////////////////////////////////////////////////////////////////

var shopWin = null;
var positionStr = '';


function whichBrowser() 
{
  if(navigator.appVersion < 4) 
  {
    alert("You MSIE 4.x or Netscape Navigator 4.x to use Shopping Bag.")
    return false;
  }
  return true;
}

// Open the remote Shopping Bag window

function launch() 
{
  if(!whichBrowser()) { return; }

  // Set the full screen window option accprding to browser
  if(navigator.appName == "Netscape") { positionStr = ",screenX=0,screenY=0"; }
  else { positionStr = ",fullscreen=yes"; }

  if(shopWin == null) {
    shopWin = open("Trolley/shopset.html", "");
  }
}

// Close the remote window if the user
// close the main window first

function closeUpShop() 
{
  if (shopWin != null) {
    if (typeof(shopWin) == "object") {
      shopWin.close();
      }
    }
  }

window.onunload = closeUpShop;

