	function initialized()
	{
		document.getElementById("startstopbtn").style.display = "block";
		document.getElementById("preFlashThrobber").style.display = "block";
		document.getElementById("flashThrobber").style.display = "block";
		var so = new SWFObject("throbber.swf", "throbber", "24", "24", "0", "#000000");
		so.addParam("wmode", "transparent");
		so.write("flashThrobber");
	}
	function navigateHome()
	{
		if(document.Finder.running)
		{
			var confirmNav = confirm("The following action will abort the scan. Do you wish to continue?");
			if(confirmNav == true){
				location.href="intro.html";
			}
		}
		else
		{
			location.href="intro.html";		
		}
	}
	function FullScan()
	{
		document.Finder.FullScan();
	}
	function SetAudioFound(result)
	{
		document.getElementById("audioFiles").style.display = "none"; 
		document.getElementById("audioFiles").innerHTML = result; 
	}
	function SetVideoFound(result)
	{
		document.getElementById("videoFiles").style.display = "none"; 
		document.getElementById("videoFiles").innerHTML = result; 
	}
	function SetOtherVideoFound(result)
	{
		document.getElementById("othaVideoFiles").style.display = "none";
		document.getElementById("othaVideoFiles").innerHTML = result; 
	}
	function SetOtherFilesFound(result)
	{
		document.getElementById("otherFiles").style.display = "none";
		document.getElementById("otherFiles").innerHTML = result; 
	}
	function ShowResults(currentView)
	{
		var object = document.getElementById(currentView+"Files");
		var styleDisplay = object.style.display;
		if(styleDisplay == "" || styleDisplay == "block")
			object.style.display = "none";
		else					
			object.style.display = "block";
	}
	function SetFilesFoundAmount(video, audio, other)
	{
		document.getElementById("videoContainer").innerHTML.replace("@amount",video); 
		document.getElementById("audioContainer").innerHTML.replace("@amount",video);
		document.getElementById("otherFilesContainer").innerHTML.replace("@amount",video);		
	}
	function ShowDrives(drives)
	{
		var drivesArr = drives.split(",");
		var out = "";
		for(x = 0; x<drivesArr.length; x++)
		{
			if(drivesArr[x]!="")
			{
				var drive = drivesArr[x];	
				out += "<input name='btn' type='button' onclick='Scan(\""+drive+"\")' value='Scan "+drive+"'><br />";	
			}
		}
		document.getElementById("drivesDIV").innerHTML = out;	
	}
	function UpdateStatus(directory, filesRead, filesFound, audioFilesFound, videoFilesFound, otherVideoFilesFound, otherFilesFound)
	{
		document.getElementById("status").innerHTML = directory;
		//document.getElementById("status2").innerHTML = "Files Found: "+filesFound; 
		document.getElementById("status3").innerHTML = "Number of files searched: "+filesRead; 
		document.getElementById("audioFilesHeader").innerHTML = audioFilesFound; 
		document.getElementById("videoFilesHeader").innerHTML = videoFilesFound;
		document.getElementById("otherVideoFilesHeader").innerHTML = otherVideoFilesFound;
		document.getElementById("otherFilesHeader").innerHTML = otherFilesFound;		
	}
		
	function Stop()
	{
		if(document.Finder.running)
		{
			document.Finder.Stop();
			document.getElementById("startstopbtn").style.backgroundImage = "url(dtecnetSearchBtn.gif)"; 
			document.getElementById("flashThrobber").style.display = "none"; 
			//document.getElementById("preFlashThrobber").style.display = "none";
		}
		else
		{
			document.getElementById("flashThrobber").style.display = "block"; 
			document.getElementById("preFlashThrobber").innerHTML = "Scanning...";
			document.getElementById("audioFiles").style.display = "none"; 
			document.getElementById("audioFiles").innerHTML = ""; 
			document.getElementById("videoFiles").style.display = "none"; 
			document.getElementById("videoFiles").innerHTML = "";
			document.getElementById("othaVideoFiles").style.display = "none"; 
			document.getElementById("othaVideoFiles").innerHTML = "";
			document.getElementById("otherFiles").style.display = "none"; 
			document.getElementById("otherFiles").innerHTML = "";
			document.getElementById("startstopbtn").style.backgroundImage = "url(dtecnetStopBtn.gif)"; 
			document.Finder.FullScan();
		}
	}	
	function SetStatus(directory)
	{
		document.getElementById("status").innerHTML = directory;		
	}
	function WriteHTML(finale)
	{	
		document.getElementById("status3").innerHTML = finale;
	}
	function WriteStatus2(finale)
	{
		document.getElementById("flashThrobber").style.display = "none"; 
		document.getElementById("preFlashThrobber").innerHTML = finale;
	}	
	function WriteOtherFiles(result)
	{
		document.getElementById("testText").innerHTML = result;
	}