document.writeln("<html>");
document.writeln("<head>");
document.writeln("		<script type=\"text/javascript\">");
document.writeln("");
document.writeln("		var fadeimages2=new Array() //2nd array set example. Remove or add more sets as needed.");
document.writeln("		//SET IMAGE PATHS. Extend or contract array as needed");
document.writeln("		fadeimages2[0]=[\"../images/stv001.jpg\", \"http://www.goodbody.ie/products/capital_allowance.html\", \"\"] //image with link syntax");
document.writeln("		fadeimages2[1]=[\"../images/stv002.jpg\", \"http://www.goodbody.ie/products/capital_allowance.html\", \"\"] //image with link and target syntax");
document.writeln(" ");
document.writeln("		var fadebgcolor=\"white\"");
document.writeln("");
document.writeln("		////NO need to edit beyond here/////////////");
document.writeln(" ");
document.writeln("		var fadearray=new Array() //array to cache fadeshow instances");
document.writeln("		var fadeclear=new Array() //array to cache corresponding clearinterval pointers");
document.writeln(" ");
document.writeln("		var dom=(document.getElementById) //modern dom browsers");
document.writeln("		var iebrowser=document.all");
document.writeln(" ");
document.writeln("		function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){");
document.writeln("		this.pausecheck=pause");
document.writeln("		this.mouseovercheck=0");
document.writeln("		this.delay=delay");
document.writeln("		this.degree=10 //initial opacity degree (10%)");
document.writeln("		this.curimageindex=0");
document.writeln("		this.nextimageindex=1");
document.writeln("		fadearray[fadearray.length]=this");
document.writeln("		this.slideshowid=fadearray.length-1");
document.writeln("		this.canvasbase=\"canvas\"+this.slideshowid");
document.writeln("		this.curcanvas=this.canvasbase+\"_0\"");
document.writeln("		if (typeof displayorder!=\"undefined\")");
document.writeln("		theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)");
document.writeln("		this.theimages=theimages");
document.writeln("		this.imageborder=0 //parseInt(borderwidth)");
document.writeln("		this.postimages=new Array() //preload images");
document.writeln("		for (p=0;p<theimages.length;p++){");
document.writeln("		this.postimages[p]=new Image()");
document.writeln("		this.postimages[p].src=theimages[p][0]");
document.writeln("		}");
document.writeln(" ");
document.writeln("		var fadewidth=fadewidth+this.imageborder*0 //2");
document.writeln("		var fadeheight=fadeheight+this.imageborder*0 //2");
document.writeln(" ");
document.writeln("		if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)");
document.writeln("		document.write('<div id=\"master'+this.slideshowid+'\" style=\"position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;\"><div id=\"'+this.canvasbase+'_0\" style=\"position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'\"></div><div id=\"'+this.canvasbase+'_1\" style=\"position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'\"></div></div>')");
document.writeln("		else");
document.writeln("		document.write('<div><img name=\"defaultslide'+this.slideshowid+'\" src=\"'+this.postimages[0].src+'\" width=\"195\"></div>')");
document.writeln(" ");
document.writeln("		if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox");
document.writeln("		this.startit()");
document.writeln("		else{");
document.writeln("		this.curimageindex++");
document.writeln("		setInterval(\"fadearray[\"+this.slideshowid+\"].rotateimage()\", this.delay)");
document.writeln("		}");
document.writeln("		}");
document.writeln("");
document.writeln("		function fadepic(obj){");
document.writeln("		if (obj.degree<100){");
document.writeln("		obj.degree+=10");
document.writeln("		if (obj.tempobj.filters&&obj.tempobj.filters[0]){");
document.writeln("		if (typeof obj.tempobj.filters[0].opacity==\"number\") //if IE6+");
document.writeln("		obj.tempobj.filters[0].opacity=obj.degree");
document.writeln("		else //else if IE5.5-");
document.writeln("		obj.tempobj.style.filter=\"alpha(opacity=\"+obj.degree+\")\"");
document.writeln("		}");
document.writeln("		else if (obj.tempobj.style.MozOpacity)");
document.writeln("		obj.tempobj.style.MozOpacity=obj.degree/101");
document.writeln("		else if (obj.tempobj.style.KhtmlOpacity)");
document.writeln("		obj.tempobj.style.KhtmlOpacity=obj.degree/100");
document.writeln("		else if (obj.tempobj.style.opacity&&!obj.tempobj.filters)");
document.writeln("		obj.tempobj.style.opacity=obj.degree/101");
document.writeln("		}");
document.writeln("		else{");
document.writeln("		clearInterval(fadeclear[obj.slideshowid])");
document.writeln("		obj.nextcanvas=(obj.curcanvas==obj.canvasbase+\"_0\")? obj.canvasbase+\"_0\" : obj.canvasbase+\"_1\"");
document.writeln("		obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)");
document.writeln("		obj.populateslide(obj.tempobj, obj.nextimageindex)");
document.writeln("		obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0");
document.writeln("		setTimeout(\"fadearray[\"+obj.slideshowid+\"].rotateimage()\", obj.delay)");
document.writeln("		}");
document.writeln("		}");
document.writeln(" ");
document.writeln("		fadeshow.prototype.populateslide=function(picobj, picindex){");
document.writeln("		var slideHTML=\"\"");
document.writeln("		if (this.theimages[picindex][1]!=\"\") //if associated link exists for image");
document.writeln("		slideHTML='<a href=\"'+this.theimages[picindex][1]+'\" target=\"'+this.theimages[picindex][2]+'\">'");
document.writeln("		slideHTML+='<img  width=\"195\" src=\"'+this.postimages[picindex].src+'\" border=\"'+this.imageborder+'px\">'");
document.writeln("		if (this.theimages[picindex][1]!=\"\") //if associated link exists for image");
document.writeln("		slideHTML+='</a>'");
document.writeln("		picobj.innerHTML=slideHTML");
document.writeln("		}");
document.writeln(" ");
document.writeln(" ");
document.writeln("		fadeshow.prototype.rotateimage=function(){");
document.writeln("		if (this.pausecheck==1) //if pause onMouseover enabled, cache object");
document.writeln("		var cacheobj=this");
document.writeln("		if (this.mouseovercheck==1)");
document.writeln("		setTimeout(function(){cacheobj.rotateimage()}, 100)");
document.writeln("		else if (iebrowser&&dom||dom){");
document.writeln("		this.resetit()");
document.writeln("		var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)");
document.writeln("		crossobj.style.zIndex++");
document.writeln("		fadeclear[this.slideshowid]=setInterval(\"fadepic(fadearray[\"+this.slideshowid+\"])\",50)");
document.writeln("		this.curcanvas=(this.curcanvas==this.canvasbase+\"_0\")? this.canvasbase+\"_1\" : this.canvasbase+\"_0\"");
document.writeln("		}");
document.writeln("		else{");
document.writeln("		var ns4imgobj=document.images['defaultslide'+this.slideshowid]");
document.writeln("		ns4imgobj.src=this.postimages[this.curimageindex].src");
document.writeln("		}");
document.writeln("		this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0");
document.writeln("		}");
document.writeln(" ");
document.writeln("		fadeshow.prototype.resetit=function(){");
document.writeln("		this.degree=10");
document.writeln("		var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)");
document.writeln("		if (crossobj.filters&&crossobj.filters[0]){");
document.writeln("		if (typeof crossobj.filters[0].opacity==\"number\") //if IE6+");
document.writeln("		crossobj.filters(0).opacity=this.degree");
document.writeln("		else //else if IE5.5-");
document.writeln("		crossobj.style.filter=\"alpha(opacity=\"+this.degree+\")\"");
document.writeln("		}");
document.writeln("		else if (crossobj.style.MozOpacity)");
document.writeln("		crossobj.style.MozOpacity=this.degree/101");
document.writeln("		else if (crossobj.style.KhtmlOpacity)");
document.writeln("		crossobj.style.KhtmlOpacity=this.degree/100");
document.writeln("		else if (crossobj.style.opacity&&!crossobj.filters)");
document.writeln("		crossobj.style.opacity=this.degree/101");
document.writeln("		}");
document.writeln(" ");
document.writeln("		fadeshow.prototype.startit=function(){");
document.writeln("		var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)");
document.writeln("		this.populateslide(crossobj, this.curimageindex)");
document.writeln("		if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER");
document.writeln("		var cacheobj=this");
document.writeln("		var crossobjcontainer=iebrowser? iebrowser[\"master\"+this.slideshowid] : document.getElementById(\"master\"+this.slideshowid)");
document.writeln("		crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}");
document.writeln("		crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}");
document.writeln("		}");
document.writeln("		this.rotateimage()");
document.writeln("		}");
document.writeln("");
document.writeln("		</script>");
document.writeln("</head>");
document.writeln("<body>");
document.writeln("");
document.writeln("		<script type=\"text/javascript\">");
document.writeln("		new fadeshow(fadeimages2, 195, 285, 0, 8000, 0)");
document.writeln("		</script>");
document.writeln("");
document.writeln("</body>");
document.writeln("");
document.writeln("<html>");
