moviePlaying = 0;
//***************************************
//NON MOVIE PAGES
//***************************************
		function changeSlide(whichSlide){
			myAlignCell=document.getElementById? document.getElementById("alignCell") : document.all("alignCell");
			myFloatingLayer=document.getElementById? document.getElementById("content") : document.all.content;
			myFloatingLayer.style.top=myFloatingLayer.offsetTop - (Math.floor(findCellYPos(myAlignCell)/15) * 15) + 45 + "px";
			
			document.images["mySlide"].src = "images/"+myProject+"/" + whichSlide;
		}
		
		function findCellYPos(obj){
			var curtop = 0; 
			if (obj.offsetParent){ 
				while (obj.offsetParent){ 
					curtop += obj.offsetTop;
					obj = obj.offsetParent;
				}
			}
			return curtop;
		}
//***************************************
//MOVIE PAGES
//***************************************	
		function initMovie(whichMovie){
			//Hack so that pages not needing scroll back don't trigger it
			noScrollUp = initMovie.arguments.length;
			stopMovie();
			myMovieCell=document.getElementById? document.getElementById("movieStill") : document.all("movieStill");
			myMovieLayer=document.getElementById?document.getElementById("movielayer") : document.all("movielayer");
			myMovieYPos = Math.floor(findMovieYPos(myMovieCell)/15) * 15;
			myFloatingLayer=document.getElementById? document.getElementById("content") : document.all.content;
			if(initMovie.arguments.length != 2){
				myFloatingLayer.style.top=myFloatingLayer.offsetTop - myMovieYPos + 45 +"px";
			}
			myMovieLayer.style.top = findMovieYPos(myMovieCell) + "px";
			myMovieLayer.style.left = findMovieXPos(myMovieCell) + "px";
			myMovieToPlay = whichMovie;
			topScrollerX = top.timeline.document.getElementById("scroller").offsetLeft;
			playMovie(myMovieToPlay);
		}
		
		function playMovie(whichMovie){
			moviePlaying = 1;
			checkPageMoveInterval = window.setInterval("checkPageMove()",5);
			document.getElementById("movielayer").style.visibility = "visible";
			if(top.mediaPlayer == "QT"){
				document.getElementById("movielayer").innerHTML = "<iframe src='movies/"+whichMovie+".html' id='movieIframe' name='movieIframe' frameborder='0' scrolling='no' align='left' height='208' width='256' hspace='0' vspace='0'></iframe>";
			} else if(top.mediaPlayer == "WMP"){
				if(whichMovie == "plasmatic_splash"){
					document.getElementById("movielayer").innerHTML = ("<OBJECT ID='MediaPlayer' WIDTH='256' HEIGHT='192' CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'><param name='autoStart' value='True'><PARAM name='url' value='movies/"+whichMovie+".wmv'><param name='uiMode' value='none'><EMBED TYPE='application/x-mplayer2' autostart='True' SRC='movies/"+whichMovie+".wmv' NAME='movie' uiMode='none' WIDTH='256' HEIGHT='192'></EMBED></OBJECT>");
				} else {
					document.getElementById("movielayer").innerHTML = ("<OBJECT ID='MediaPlayer' WIDTH='256' HEIGHT='256' CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'><param name='autoStart' value='True'><PARAM name='url' value='movies/"+whichMovie+".wmv'><param name='uiMode' value='mini'><EMBED TYPE='application/x-mplayer2' autostart='True' SRC='movies/"+whichMovie+".wmv' NAME='movie' uiMode='mini' WIDTH='256' HEIGHT='256'></EMBED></OBJECT>");
				}
			} else if(top.mediaPlayer == "REAL"){
			
			}
		}
		function checkPageMove(){
			if(topScrollerX != top.timeline.document.getElementById("scroller").offsetLeft){
				stopMovie();
			}
		
		}
		function stopMovie(){
			if(moviePlaying==1){
				window.clearInterval(checkPageMoveInterval);
				document.getElementById("movielayer").innerHTML = "<img src='images/common/spacer.gif' height='256' width='256' border='0'>";
				if(document.all && !window.print){ 
					document.body.style.overflow='hidden';
				}
				document.getElementById("movielayer").style.visibility = "hidden";
				moviePlaying = 0;
			}
		}
		function findMovieYPos(obj){
			var curtop = 0; 
			if (obj.offsetParent){ 
				while (obj.offsetParent){ 
					curtop += obj.offsetTop;
					obj = obj.offsetParent;
				}
			
			}
			return curtop;
		}
		function findMovieXPos(obj){
			var curleft = 0; 
			if (obj.offsetParent){ 
				while (obj.offsetParent){ 
					curleft += obj.offsetLeft;
					obj = obj.offsetParent;
				}
			} 
			return curleft;
		}