﻿
// (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 = 1;
var done_loops = 0;

var secondshow = false;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 3;

var Picture = [11]; // don't change this
var Caption = [11]; // 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]  = 'images/frame1.jpg';
Picture[2]  = 'images/frame2.jpg';
Picture[3]  = 'images/frame3.jpg';
Picture[4]  = 'images/frame4.jpg';
Picture[5]  = 'images/frame5.jpg';
Picture[6]  = 'images/frame6.jpg';
Picture[7]  = 'images/frame7.jpg';
Picture[8]  = 'images/frame8.jpg';
Picture[9]  = 'images/frame9.jpg';
Picture[10]  = 'images/frame10.jpg';
Picture[11]  = 'images/frame11.jpg';
Picture[12]  = 'images/frame12.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]  = "we are engineers of the imagination";
Caption[2]  = "we understand the real needs of business";
Caption[3]  = "we are the UK&quot;s number one &quot;new media&quot; workshop";
Caption[4]  = "we are re-inventing the<br/> face of advertising";
Caption[5]  = "we pay the piper and we call the tune";
Caption[6]  = "we like to keep everything we do simple";
Caption[7]  = "we find that simple things tend to work";
Caption[8]  = "we are &quot;new media&quot; guerillas with viral messages";
Caption[9]  = "we can take your business to the next level";
Caption[10]  = "we help people use the technology surrounding them - for profit";
Caption[11]  = "we know, that you know,<br/> that you need to see us";
Caption[12]  = "we are waiting for you to call us up";



// START CODE PROPER //

var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = [11];
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() * 11)+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() * 10)+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 ()
{
showhide("picturebox","show");
setTimeout('runslideshow()',4500);
}