		/*
		var featureList = new Array(
			Array("Full Accounts", "Each Durell system includes a fully integrated accounts package, available at no extra cost. As it is fully integrated you don’t need to enter information twice (i.e. into a different system like Sage). Moreover you use the same buttons and controls as in the rest of Durell, which makes it easier to learn. Finally, the information entered can in turn produce management reports vital to your business.<br /><a href=\"accountsnew.asp\">read more</a>"),
			Array("Factfinds - userdefinible and historic", "Further info"),
			Array("Fee Timers", "Info"),
			Array("Management reports", "Further info"),
			Array("Paperless office", "Info"),
			Array("Client management", "Info"),
			Array("Diaries and memos", "Info"),
			Array("Complaints register", "Info"),
			Array("Contract Enquiry ", "Online Valuation, otherwise known as Contract Enquiry, is a service available through your Durell system that allows you to obtain the current funds, units and prices for investment contracts. This saves you having to phone or email providers, hence reducing time and cost, while also avoiding keying errors<br /><a href=\"onlineValuationsnew.asp\">read more</a>"), 
			Array("Planners ", "Info"), 
			Array("Investment Portfolio Manager", "Info"), 
			Array("Partner Integrations", "Integrations with Insurecom, Webline, Analytics and Trigold"), 
			Array("Links to Microsoft Office ", "Links to Microsoft Word, Excel and Outlook") 
		);
		*/
		var colours = new Array("#FFFFFF", "#FF9000", "#E0F006", "#02B746", "#00C2EB", "#0461AD", "#F80AC7");
		
		var defaultFeature = 0;
		var startAtLink = 12;
		var actualColourIdx = 1;
		
		var noColours = 7;
		var initialDelayMilliseconds =1850;
		var betweenDelayMilliseconds = 80;
		var delayFadeMillseconds = 1500;
		
		
		var currentColourAppear = noColours;
		var currentOptionExpanded = defaultFeature;
		
		
		var movieName = "intro";
		var theMovie = (navigator.appName.indexOf ("Microsoft") !=-1) ? window[movieName] : document[movieName];
		var autoInt;
		var isPaused = false;
		
		function startup()
		{
			for (var lp=1; lp<=noColours; lp++)
			{
				new Effect.Opacity('colour'+lp, { from: 1, to: 0, duration: 0.000005 });
			}
			
			new Effect.Fade('featureFurtherInfo', {duration: 0.000000001});
			if (!skipToEnd) new Effect.Fade('productSel', {duration: 0.000000001});
			if ($('homePageProductName')) new Effect.Fade('homePageProductName', {duration: 0.000000001});
		}
		
		
		startup();
		
		function colourAppear()
		{
			Effect.Appear('colour'+currentColourAppear, { duration: 0.5 });

			currentColourAppear=currentColourAppear-1;
			
			if (currentColourAppear<1)
			{
				setTimeout("autoAdvance()", 1000);
				if (FlashDetect.installed) $('replayIntro').style.display = 'block';
			}
			else
			{
				setTimeout("colourAppear()", 200);
			}
		}
		
		
		//setTimeout("colourAppear()", initialDelayMilliseconds);
		

		
		function loadFurtherInfo()
		{
			
			$('featureTitle').innerHTML = featureList[currentOptionExpanded-1][0];
			$('featureInformation').innerHTML = featureList[currentOptionExpanded-1][1];
			$('featureTitle').style.color = colours[actualColourIdx-1];
			Effect.Appear('featureFurtherInfo', { duration: 1.0 });
			if ($('homePageProductName')) Effect.Appear('homePageProductName', { duration: 0.5 });
			
		}
		
		function loadLinks(startAt, isFirst)
		{
			if (isPaused) return;
			if (!isFirst) isFirst = false;
			
			actualColourIdx = 1;
			if (startAt>featureList.length) startAt = 1;
			//need to set the text of the 'colourN' div, and set the "title" to be the actual idx of the feature item
			var lastGood = featureList.length;
			var firstItem = "x";
			//Effect.Fade('featureFurtherInfo', { duration: 0.2 });
			for (var lp=1; lp<=noColours; lp++)
			{
				//Effect.Fade('colour'+lp, { duration:0.01 });
				//Effect.Fade('colour'+lp, { duration: 1 });
				var itemID = 'colour'+lp;
				
				var itemInArray = -1;
				
				if (lp+startAt<=featureList.length)
				{
					itemInArray = lp+startAt;
					lastGood = itemInArray;
				}
				else
				{
					itemInArray = (lp+startAt) - lastGood;
				}
				 
				$(itemID).innerHTML = featureList[itemInArray-1][0];
				
				$(itemID).title = itemInArray;
				if (isFirst)
				{
					if (firstItem=="x") firstItem = itemInArray;
					new Effect.Opacity(itemID, { from: 0.0, to: 0.0, duration: 0.000005 });
				}
				else
				{
					if (firstItem=="x") 
					{
						firstItem = itemInArray;
						new Effect.Opacity(itemID, { from: 0.5, to: 1, duration: 0.000005 });
					}
					else
					{
						new Effect.Opacity(itemID, { from: 0.5, to: 0.5, duration: 0.000005 });
					}
				}
			}
			
			
			startAtLink = startAt;
			currentOptionExpanded = firstItem;
			currentColourAppear = noColours;
			if (!isFirst) loadFurtherInfo();
			clearTimeout(autoInt);
			//alert('loadLinks, isPaused='+isPaused);
			if (!isPaused) autoInt = setTimeout("autoAdvance()", 10000);
			//setTimeout("colourAppear2()", 500);
		}
		
		function autoAdvance()
		{
			startAtLink++;
			loadLinks(startAtLink, false);
		}
		
		
		function pause()
		{
			if (isPaused)
			{
				autoInt = setTimeout("autoAdvance()", 10000);
				isPaused = false;
			}
			else
			{
				clearTimeout(autoInt);
				isPaused = true;
			}
			$('playPauseButton').innerHTML = (isPaused) ? "Play" : "Pause";
		}
		

		function init()
		{
			
			var pct = theMovie.PercentLoaded();

			$('flashLoading').innerHTML = 'loading... ' + pct + '%';
			
			if (pct<100)
			{
				setTimeout("init()", 200);
			}
			else
			{
				setTimeout("movieLoaded()", 800);
				
			}
			
			
			
		}
		
		function replay()
		{
			clearTimeout(autoInt);
			startup();
			setTimeout("movieLoaded()", 300);
			$('replayIntro').style.display = 'none';
		}
		
		function movieLoaded()
		{
			$('flashLoading').style.display = 'none';
			theMovie.GotoFrame(2);
			theMovie.Play();
			
			if (showSlideshow)
			{
				loadLinks(1, true);
				setTimeout("colourAppear()", initialDelayMilliseconds);
				autoInt = setTimeout("autoAdvance()", 10000);
			}
			else
			{
				setTimeout("productAppear()", initialDelayMilliseconds);
			}
			

		}
		
		function productAppear()
		{
			new Effect.Appear('productSel', {duration: 2});
		}
		
		
		
		
		function wHeight()
		{	
			var winH = windowHeight();
			//alert(winH);
			if (winH<=700) 
			{
				//noFlash(true);
				//showErrorMessage("windowsize");
			}
			
		}
		
		function windowHeight()
		{
			var winW = 630;
			var winH = 460;
			
			
			if (parseFloat(navigator.appVersion)>3) {
			
				if (navigator.appName=="Netscape") {
					
					winW = window.innerWidth;
					winH = window.innerHeight;
				}
				
				if (navigator.appName.indexOf("Microsoft")!=-1) {
					
					winW = document.body.offsetWidth;
					winH = document.documentElement.offsetHeight;
				}
			}
			
			return winH;
		}
		
		function hideHeader()
		{
			//alert('hideHeader');
			var flashHolder = document.getElementById('theFlash');
			var bottomInfo = document.getElementById('bottomInfo');
			
			if (flashHolder.style.height!='235px')
			{
				flashHolder.style.height = '235px';
				bottomInfo.style.top = '363px';
			} else {
				flashHolder.style.height = '467px';
				bottomInfo.style.top = '595px';
			}
				
		}
		
		function showErrorMessage(type)
		{
			switch (type)
			{
				case "flash":
					$('screenMessage').style.display = 'none';
					$('flashMessage').style.display = 'block';
				break;
				case "windowsize":
					$('screenMessage').style.display = 'block';
					$('flashMessage').style.display = 'none';
				break;
			}
			$('warningBox').style.display = 'block';
		}
		
		function noFlash(isForce)
		{
			
			//$('noFlash').style.display = 'block';
			if ($('intro').style.display == 'none')
			{
				$('flashLoading').style.display = 'block';
				$('theFlash').style.background = "#111";
				$('intro').style.display = 'block';
				
				clearTimeout(autoInt);
				startup();
				$('replayIntro').style.display = 'none';
				
				hideHeader();
				init();
				
				
				$('warningBox').style.display = 'none';
			}
			else
			{
				$('flashLoading').style.display = 'none';
				$('theFlash').style.background = "url('images/noFlashBG.png')";
				$('flashLoading').style.display = 'none';
				
				hideHeader();
				
				$('intro').style.display = 'none';
				if (!isForce)
				{
					showErrorMessage("flash");
					$('showSlideShow').style.display = 'none';
				}
			}
		}
		
		if (!FlashDetect.installed||showSmall)
		{
			$('flashLoading').style.display = 'none';
			$('productSel').style.top = '40px';
			$('bottomInfo').style.top = '370px';
			$('theFlash').style.height = '240px';
			noFlash(false);
			setTimeout("colourAppear()", initialDelayMilliseconds);
			autoInt = setInterval("autoAdvance()", 10000);
			//alert('interval');
		}
		
		
		if (skipToEnd&&!showSmall)
		{
			$('theFlash').style.background = "url('images/noFlashBG.png')";
			$('flashLoading').style.display = 'none';

			$('intro').style.display = 'none';

			//alert('interval');
		}
		
