	// some variables to save

	var currentPosition;

	var currentVolume;

	var currentItem;

	var currentState;

	

	// these functions are caught by the JavascriptView object of the player.

	function sendEvent(typ,prm) { thisMovie("mpl").sendEvent(typ,prm); };





	function getUpdate(typ,pr1,pr2,pid) {

		if(pid != "null") {

			if((typ == "state")&&(pr1 != undefined)) { 

				currentState = pr1; 

				if(currentState=="3") { document.location.href="blog"; }

			}

		}

	};



	// 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];

		}

	};