function spinmaster() {
this.slideShowSpeed=5000; //milliseconds
this.crossFadeDuration=3; //seconds
this.Pic= new Array();
this.target = '';
this.preload = spinmaster_preload;
this.runSlideShow = spinmaster_runSlideShow;
this.PLoad= new Array();
this.count=0;
this.j=0;

}
function spinmaster_preload() {
	var t
	this.count = this.Pic.length

	//alert('preload' + this.Pic.length)
	//PLoad = new Array()
	for (i = 0; i < this.count; i++){
   	this.PLoad[i] = new Image()
   	this.PLoad[i].src = this.Pic[i]
}
}
function spinmaster_runSlideShow() {
   //alert('in rSS' + "--" + this.Pic.length);
   var glob=this;

   //alert(document.images(this.target).src)
   if (document.all){
      document.images(this.target).style.filter="blendTrans(duration=2)"
      document.images(this.target).style.filter="blendTrans(duration=this.crossFadeDuration)"
      document.images(this.target).filters.blendTrans.Apply()      
   }
   document.images(this.target).src = this.PLoad[this.j].src
   if (document.all){
      document.images(this.target).filters.blendTrans.Play()
   }
   this.j = this.j + 1
   if (this.j > (this.count-1)) this.j=0
   t = setTimeout(function() {glob.runSlideShow()}, this.slideShowSpeed)
}





function top_head(tag,menu)
{
	var strg
	strg= '<table frame="border" width="764" align="center" cellpadding="10" bgcolor="white"><tr><td>'
	strg=strg + '<table width="744" align="center" bgcolor="#66FF34" cellpadding="0" cellspacing="0"><tr>'
	strg=strg + '<td width="480"><img src="images/LHlogo06.gif" width="200" height="72">'
	strg=strg + '<span class="grey_bold">' + tag +'</span></td>'
	strg=strg + '<td class="grey_bold" align="right" width="264"><div style="padding: 10">We are open 7 days a week<br>'
	strg=strg + 'Monday - Sat 9.00am until 5.00pm<br>Sunday 10.00am until 4.30pm</div></td></tr></table>'
	strg=strg + '<table  width="744" align="center" border="0" cellspacing="0" cellpadding="0"><tr>'
	strg=strg + '<td class="menu1" width="124"><a class="main" href="index.htm">home</a></td>'
	strg=strg + '<td class="menu2" width="124"><a class=main" href="LH06_Gardens.htm">gardens</a></td>'
	strg=strg + '<td class="menu1" width="124"><a class=main" href="LH06_Patios.htm">patio gardening</a></td>'
	strg=strg + '<td class="menu2" width="124"><a class=main" href="LH06_Product_Page.htm">products</a></td>'
	strg=strg + '<td class="menu1" width="124"><a class="main" href="LH06_Offers_Listing.htm">specialities</a></td>'
	strg=strg + '<td class="menu2" width="124"><a class="main" href="LH06_About.htm">about us</a></td></tr></table>'
	
document.write(strg)
}

function bottom_foot()
{
var strg
	strg ='<table width="744" align="center"><tr class="arial_green">'
	strg=strg + '<td align="center">Lyonshall Nurseries Garden Centre, Lyonshall, Kington, Herefordshire, '
	
	strg=strg + 'HR5 3LN &nbsp; Tel:01544-340-214 &nbsp;&nbsp;'
	strg=strg + '<a href="mailto:SIMON@LYONSHALLNURSERIES.CO.UK" class="tfoot">Email Us</a> '
	strg=strg + '<a href="#" class="arial_green" '
	strg=strg + 'onclick="LH_openBrWindow(\'LH06_Map.htm \', \'\' ,\' width=700,height=450,top=150,left=50 \')">&nbsp;&nbsp;View Map</a>'
	strg=strg + '</td></tr><tr class="grey_10pt"><td align="right">'
	strg=strg + '&copy; Lyonshall Nurseries | Designed by <a href="http://www.users.waitrose.com/~grahamjohnthomas/BWIA.htm" target="_blank" class="foot">'
	strg=strg + 'BWI Associates Ltd</a></td></tr></table></tr></table>'
	document.write(strg)
}

function LH_openBrWindow(theURL,winName,features)
{
	window.open(theURL,winName,features);
}


function fwin(title,variety,tag,file,text,price)
{
var txt='<HTML><head><script language="Javascript" SRC="LH06JSA.js"></script></head><BODY bgcolor=aqua><font color=#797B80 face=Arial>'
txt=txt +'<div align=center class="heading_lrg">' + title
if (variety != '') {txt=txt  +'<i>&nbsp;\'' + variety +'\'</i><div>'}
if (tag !='') {txt=txt+'<p class="pad2"><i>' +tag +'</i></p>'}
txt=txt +'<p align=center><IMG border=1 src="images/' +file + '" onerror="missing(\'image_missing.gif\',this)"' + '></p>'
txt=txt+'<p align=center  class="pad2">' + text + '</p>'
if (price !='') {txt=txt+'<p align=center class="pad2">Price: ' + price + '</p></body></html>'}
if (typeof(wind)=='undefined')
{
wind=open('','dispwin','height=575, width=450, top=125, scrollbars=yes left=' + (screen.width-475));
}
else
{
if (typeof(wind)=='object' && wind.closed)
{
wind=open('','dispwin','height=575, width=450, top=125, scrollbars=yes left=' + (screen.width-475));
}
}
wind.document.open();
wind.document.write(txt);
wind.document.close();
wind.focus(); 

}
function TIDY()
{
if (typeof(wind)=='object') wind.close()
}
function linknw(lnk)
{
if (typeof(extwin)=='undefined')
{
extwin=window.open(lnk,'ext_win');
extwin.focus;
}
else
{
if (typeof(extwin)=='object' && extwin.closed)
{
extwin=window.open(lnk,'ext_win');
extwin.focus();
}
else
{
extwin.location=lnk;
extwin.focus();
}
}

}


function missing(imFile,imageID)
{
var im = new Image();
im.src="images/" + imFile;

imageID.width=im.width;
imageID.height=im.height;
imageID.src=im.src;
}
