
	function play(anObj){
		
	document.getElementById('playp').innerHTML="<span>Pause</span>";
				document.getElementById('playp').className="pause";
				document.movie1.Play();
				document.getElementById("playp").href="javascript:pause(document.movie1)";
			
		}
		
	function pause(anObj){
	
		document.getElementById('playp').className="play";
		document.getElementById('playp').innerHTML="<span>Play</span>";
		document.movie1.Stop();
		document.getElementById("playp").href="javascript:play(document.movie1)";
	
	}
	
	
function ifLoading(anObj){
		status = document.movie1.GetPluginStatus();
		if(status=="Playable"||status=="Complete"){
			
			monitormovie = setInterval('gettime1(document.movie1)','400');
			clearInterval(start);
			}
			}
	
	
	
	
	
	
				function interv(){
			setInterval('gettime1(document.movie1)','400');
			}
	

	
	
	function gettime1(anObj){
		
		var dua = anObj.GetDuration();//number of frames
	
		

		
		
		
		
	var size = anObj.GetMovieSize();
		var loaded = anObj.GetMaxBytesLoaded();
		
		var loads = size / 612;
		

			loaded = anObj.GetMaxBytesLoaded();
			var lwidth = loaded/loads;
		Rlwidth = Math.round(lwidth);
				document.getElementById('loadedup').style.width = Rlwidth+"px";
			//	document.getElementById('size').innerHTML=lwidth;

			
			
			var unit = dua / 612; //600 is the maximum width of the div
		
			var nowish = anObj.GetTime();
			//if it isn't greater than 0 stop the movie and start it again.
		//	if(nowish<1){anObj.Stop();}else{anObj.Play();}
			

			var width = nowish / unit;
			whole = Math.round(width);
			
	document.getElementById('loadedin').style.width = whole+"px";
	//document.getElementById('loadedin').innerHTML+="<a class='scale' href='javascript:settime(document.movie1,"+nowish+")'></a>";
	
		
		 //Update();
	 // loadedin is a div on the page which is to be the progress bar


		
	}
		
