			// some variables to save			
			var currentPosition;
			var currentRemaining;
			var currentVolume;
			var currentItem;
			var currentState;
			var currentLoad;
			var currentXsize;
			var currentYsize;
			
			var theID; 
			
			// these functions are caught by the JavascriptView object of the player.
			function sendEvent(thePlayer,typ,prm) { 
				thisMovie(thePlayer).sendEvent(typ,prm); 
			};
			function getUpdate(typ,pr1,pr2,pid) {
				theID=pid; 
				if(typ == "time") 				{ currentPosition = pr1; pr2 == undefined ? null: currentRemaining = pr2; }
				else if(typ == "volume") 	{ currentVolume 	= pr1; } 
				else if(typ == "item") 		{ currentItem 		= pr1; setTimeout("getItemData(theID, currentItem)",100);}
				else if(typ == "state") 	{ currentState 		= pr1; }
				else if(typ == "load") 		{ currentLoad 		= pr1; }
				else if(typ == "size") 		{ currentXsize 		= "X=" + pr1; pr2 == undefined ? null: currentYsize = "Y=" + Math.round(pr2); } 
								
				if(currentRemaining < .05 && currentPosition > 2 && currentState == 2) {
					sendEvent(theID, 'playpause');
				}
			};
		
			// These functions are caught by the feeder object of the player.
			function getItemData(pid, idx) {
				var nodes = "";
				if(pid != "null") {  
					var obj = thisMovie(pid).itemData(idx); 
					for(var i in obj) { 
						nodes += "<li>"+i+": "+obj[i]+"</li>"; 
					}
				} 
			};
		
			// This is a javascript handler for the player and is always needed.
			function thisMovie(movieName) {
					if(navigator.appName.indexOf("Microsoft") != -1) {
					return window[movieName];
				} else {
					return document[movieName];
				}
			};
			
	function addLoadEvent(func) {
		var oldonload = window.onload;
		if (typeof window.onload != 'function') {
			window.onload = func;
		} else {
			window.onload = function() {
				if (oldonload) {
					oldonload();
				}
				func();
			}
		}
	}

	function callScript(src) {
		if(swfCalled != true) {
			document.write('<' + 'script src="' + src + '"' +' type="text/javascript"><' + '/script>');
		}
		swfCalled = true;
	}
	if(!swfCalled) { var swfCalled = false; }
	callScript('http://www.myobv.com/wn_shared/javascripts/swfobject.js');
	document.write('<div id="myOBV_NVBmyCMu3JElH9FQEOxX" style="width:356px; height:220px; text-align:center;">This video requires Javascript be turned on and the Flash Player.<br /><br /><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player"></a></div>');
	document.write('<script type="text/javascript">');
	document.write('addLoadEvent(function() { var so = new SWFObject("http://www.myobv.com/wn_shared/flash/mediaplayer.swf","mpl_NVBmyCMu3JElH9FQEOxX","356","220","7","#FFFFFF");');
	document.write('so.addVariable("width","356");');
	document.write('so.addVariable("height","220");');
	document.write('so.addVariable("file","http://movies.myovr.com/Linda - OBV - 1.flv");');
	document.write('so.addVariable("autostart","true");');	
				document.write('so.addVariable("image","http://www.myobv.com/uploadedFiles/obvImages/Linda - OBV - 1.jpg");');	
			document.write('so.addVariable("showicons","false");');
				 
	document.write('so.addVariable("usekeys","false");'); 
	document.write('so.addVariable("overstretch","fit");');	
	document.write('so.addVariable("backcolor","0xFFFFFF");');		
	document.write('so.addVariable("volume","100");');		
	document.write('so.addVariable("enablejs","true");');	
	document.write('so.addVariable("javascriptid","mpl_NVBmyCMu3JElH9FQEOxX");'); 
	document.write('so.addVariable("showdigits", "false");'); 
	document.write('so.addVariable("usefullscreen","false");'); 
	document.write('so.addParam("allowfullscreen", "false");'); 
	document.write('so.addParam("wmode", "opaque");'); 
	document.write('so.addParam("menu", "false");');
	document.write('so.write("myOBV_NVBmyCMu3JElH9FQEOxX"); });');
	document.write('<' + '/script>');	
	
