/****************************************//*                                      *//*              Bistech Plc             *//*               SlideShow              *//*                                      *//*       http://www.bistech.co.uk       *//*	                                   *//*    Copyright (C) Bistech Plc 2006    *//*        software@bistech.co.uk        *//*                                      *//****************************************/// Define Initial Configurationvar Delay				= 10000;	// Delay between stories in miliseconds (1000ms = 1 second)var crossFadeDuration	= 3;		// Duration of the fade between images in seconds// Define Imagesvar Images = new Array();	Images[0] = getDBPath() +  "/casestudy_splash_wallace.jpg?OpenImageResource";	Images[1] = getDBPath() +  "/casestudy_splash_perrys.jpg?OpenImageResource";	Images[2] = getDBPath() +  "/casestudy_splash_harvest.jpg?OpenImageResource";	var Details = new Array();	Details[0] = "<a href='" + getDBPath() +  "/casestudies_wallace?OpenPage'>Click here</a> to find out why Bistech's new call centre system is worth \u00A31 million in turnover to travel agents Wallace Arnold Worldchoice.";	Details[1] = "<a href='" + getDBPath() +  "/casestudies_perrys?OpenPage'>Click here</a> to find out how Bistech helped Perrys Motor Sales increase the reliability of their multi-site network.";	Details[2] = "<a href='" + getDBPath() +  "/casestudies_harvest?OpenPage'>Click here</a> to find out how Bistech helped Harvest Housing achieve their award winning corporate vision.";	var TagLines = new Array();	TagLines[0] = "Looking for a call centre solution to improve customer service?";	TagLines[1] = "Looking for a better network service at lower cost?";	TagLines[2] = "Looking for more value from your IT budget?";	TagLines[3] = "Looking for a better return on your investment in communications technology?";	var CallNows = new Array();	CallNows[0] = "Call now for more information:";	CallNows[1] = "Call now to arrange a no-obligation communications audit and review:";	CallNows[2] = "Call now to arrange a no-obligation strategic review:";	CallNows[3] = "Call now for an in-depth communications review.";var CurStory			= Math.round(Math.random()*(Images.length-1));	// Picks a random story to start with. Do not editvar PrevStory 			= CurStory;								// Calculated value. Do not editvar CurTagLine			= Math.round(Math.random()*(TagLines.length-1));	// Picks a random tag line to start with. Do not editvar PrevTagLine		= CurTagLine;								// Calculated value. Do not editvar CurCallNow			= Math.round(Math.random()*(CallNows.length-1));	// Picks a random call now message to start with. Do not editvar PrevCallNow		= CurCallNow;								// Calculated value. Do not edit// Preload the imagesfunction LoadImages() {	if (document.images) {		img1 = new Image();		img2 = new Image();		img3 = new Image();		img4 = new Image();		img1.src = Images[0];		img2.src = Images[1];		img3.src = Images[2];		img4.src = Images[3];	}}function CaseStudies() {	LoadImages();	document.getElementById('CSTagLine').innerHTML = TagLines[CurTagLine];	document.getElementById('CSCallNow').innerHTML = CallNows[CurCallNow];	document.getElementById('CSDetails').innerHTML = Details[CurStory];	document.getElementById('CSImage').src = Images[CurStory];		setTimeout('ChangeCaseStudy()',Delay);}function ChangeCaseStudy() {	StoryRandomiser();	TagLineRandomiser();	CallNowRandomiser();		if (document.all) {		document.getElementById('CSImage').style.filter="blendTrans(duration=crossFadeDuration)";		document.getElementById('CSImage').filters.blendTrans.Apply();		document.getElementById('CSImage').src.onLoad = document.getElementById('CSImage').filters.blendTrans.Play();	}		document.getElementById('CSTagLine').innerHTML = TagLines[CurTagLine];	document.getElementById('CSCallNow').innerHTML = CallNows[CurCallNow];	document.getElementById('CSDetails').innerHTML = Details[CurStory];	document.getElementById('CSImage').src = Images[CurStory];	PrevStory = CurStory;	setTimeout('ChangeCaseStudy()',Delay);}function StoryRandomiser() {	CurStory = Math.round(Math.random()*(Images.length-1));	if (CurStory == PrevStory) CurStory = CurStory + 1;	if (CurStory>Images.length-1) CurStory = 0;		PrevStory = CurStory;}function TagLineRandomiser() {	CurTagLine = Math.round(Math.random()*(TagLines.length-1));	if (CurTagLine == PrevTagLine) CurTagLine = CurTagLine + 1;	if (CurTagLine>TagLines.length-1) CurTagLine = 0;		PrevTagLine = CurTagLine;}function CallNowRandomiser() {	CurCallNow = Math.round(Math.random()*(CallNows.length-1));	if (CurCallNow == PrevCallNow) CurCallNow = CurCallNow + 1;	if (CurCallNow>CallNows.length-1) CurCallNow= 0;		PrevCallNow = CurCallNow;}