  function playMovie(videoUrl, imageUrl, playNow, movieName) {
  		//if (navigator.appName.indexOf("Microsoft") != -1) {
		//	getMovieName(movieName).changeMovie(videoUrl, imageUrl, playNow); 
		//} else {
			window.setTimeout('getMovieName(\''+movieName+'\').changeMovie(\''+videoUrl+'\', \''+imageUrl+'\', '+playNow+')', 100);
		//}
  }
  function stopMovie(movieName){
  	getMovieName(movieName).stopMovie();
  }
  /* This utility function resolves the string movieName to a Flash object reference based on browser type. */
  function getMovieName(movieName) {
		if (navigator.appName.indexOf("Microsoft") != -1) {
			return window[movieName]
		}
		else {
			return document[movieName]
		}
  }
	var jsReady = false;
	function isReady() {
		return jsReady;
	}
	function pageInit() {
		jsReady = true;
	}
// on body load called from master
//function setUpVideoBox(){
//	jsIsReady();
//  	//alert(typeof(_setUpVideoBox));
//	//alert("setUpVideoBox");
//	
//	// test for home page script variables
//	var donePlayingMovie = false;
//	try{
//		if(videoImagePreviewPath != 'undefined' && videoPath != 'undefined'){
//		//alert(videoPath + " " + videoImagePreviewPath);			
//			donePlayingMovie = true;
//			playMovie(videoPath, videoImagePreviewPath, false);
//
//		}
//	} catch (e){
//		// do nothing
//	}
//	// test for media content page variables
//	//alert('test');
//	if(!donePlayingMovie){
//		var previewPath = "";
//		var videoHiddenPath= "";
//		var hiddenVideoDiv = document.getElementById('hiddenAchkMediaLinks');
//	    var sections = hiddenVideoDiv.getElementsByTagName('img');
//	    if(sections.length > 0){
//	    	previewPath = sections[0].src;
//	    }
//	    var videPathDiv = document.getElementById('hiddenAchkVideoPath');
//	    if(videPathDiv != null){
//	    	videoHiddenPath= videPathDiv.innerHtml;
//	    }
//	    playMovie(videoHiddenPath, previewPath, false);
//	    donePlayingMovie = true;
//	}
//}


