﻿
// (C) 2002 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header.

// ==============================
// Set the following variables...
// ==============================
var isMSIE = /*@cc_on!@*/false; 
// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 3000;

// set loops
var loops = 5;
var done_loops = 0;

var secondshow = false;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 3;

var Picture = [14]; // don't change this
var Caption = [14]; // don't change this



// Specify the image files...
// To add more images, just continue
// the pattern, adding to the array below.
// To use fewer images, remove lines starting at the end of the Picture array.

Picture[1]  = 'js/slideshow/frame1.jpg';
Picture[2]  = 'js/slideshow/frame2.jpg';
Picture[3]  = 'js/slideshow/frame3.jpg';
Picture[4]  = 'js/slideshow/frame4.jpg';
Picture[5]  = 'js/slideshow/frame5.jpg';
Picture[6]  = 'js/slideshow/frame6.jpg';
Picture[7]  = 'js/slideshow/frame7.jpg';
Picture[8]  = 'js/slideshow/frame8.jpg';
Picture[9]  = 'js/slideshow/frame9.jpg';
Picture[10]  = 'js/slideshow/frame10.jpg';
Picture[11]  = 'js/slideshow/frame11.jpg';
Picture[12]  = 'js/slideshow/frame12.jpg';
Picture[13]  = 'js/slideshow/frame13.jpg';
Picture[14]  = 'js/slideshow/frame14.jpg';


// To add more captions, just continue the pattern, adding to the array below.
// To use fewer captions, remove lines starting at the end of the Caption array.



Caption[1]  = "need a great website that's the envy of your competition ?";
Caption[2]  = "planning an online shop or wanting to take payment online ?";
Caption[3]  = "with our designers in-house - our clients get a personal service ?";
Caption[4]  = "we can help create online publishing, e-books or e-tickets";
Caption[5]  = "we offer high end design, re-touching and composite/montage";
Caption[6]  = "our GIS division leads the UK in satnavs and digital mapping";
Caption[7]  = "try out our FREE initial consulation - why not call us up NOW ?";
Caption[8]  = "elegant design simplicity is our mantra - no need to over-complicate !";
Caption[9]  = "excellence costs nothing more ...";
Caption[10] = "we can really help reduce admin and paperwork and simplify your routines";
Caption[11] = "we like bacon sandwiches - but they must have brown sauce !";
Caption[12] = "we design websites for clients that take peopels breath away";
Caption[13] = "our team can help you grow your business and take it to the next stage";
Caption[14] = "need some design or techie work done ? Simple jobs to complex projects - call us";





// START CODE PROPER //

var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = [14];
for (iss = 1; iss < pss+1; iss++)
								{
								preLoad[iss] = new Image();
								preLoad[iss].src = Picture[iss];
								}
							
														
function runslideshow()
						{
						if (done_loops >= loops)
										{
												if (isMSIE)	
												{
												document.images.picturebox.filters.blendTrans.Stop();
												}
												if (secondshow) {
																tss = setTimeout('runslideshow()', SlideShowSpeed);
																}
												return;
												}
						if (isMSIE)		
																{
																document.images.picturebox.style.filter="blendTrans(duration=3)";
																document.images.picturebox.style.filter="blendTrans(duration=CrossFadeDuration)";
																document.images.picturebox.filters.blendTrans.Apply();
																}
						document.images.picturebox.src = preLoad[Math.floor(Math.random() * 13)+1].src;
						// document.images.picturebox.src = preLoad[jss].src; this is the jss slide in order that cycles
						if (document.getElementById) 	
																{
																// document.getElementById("captionbox").innerHTML= Caption[jss]; //
																document.getElementById("captionbox").innerHTML = Caption[Math.floor(Math.random() * 13)+1]; // a random quote as well
																}														
						if (isMSIE)				
																{
																document.images.picturebox.filters.blendTrans.Play();
																}
						jss = jss + 1;	
						/* SlideShowSpeed = 3000;  speed it after initial delay */
						/* if (jss > (pss)) jss=1;  old line replay*/
						if (jss > pss) 
																{
																done_loops=done_loops+1;
																jss=1;
																}
						tss = setTimeout('runslideshow()', SlideShowSpeed);
						}

// this turns an option or off
function showhide (obj,state) 
{
							if (state === "show") 	{
							var myvar = document.getElementById('picturebox').style.display;
													document.getElementById(obj).style.display = "block";
													return;
													}
													else 
													{
													document.getElementById(obj).style.display = "none";
													return;
													}
}

/* body onload="setTimeout('runslideshow()',4500)" bgcolor="#000000" */
function startup ()
{
/* no longer needed as always there in header showhide("picturebox","show"); */
setTimeout('runslideshow()',4500);
}
