/*  Player.playState
0 	Undefined 		Windows Media Player is in an undefined state. 
1 	Stopped 		Playback of the current media clip is stopped. 
2 	Paused 			Playback of the current media clip is paused. When media is paused, resuming playback begins from the same location. 
3 	Playing 		The current media clip is playing. 
4 	ScanForward 	The current media clip is fast forwarding. 
5 	ScanReverse 	The current media clip is fast rewinding. 
6 	Buffering 		The current media clip is getting additional data from the server. 
7 	Waiting 		Connection is established, however the server is not sending bits. Waiting for session to begin.
8 	MediaEnded 		Media has completed playback and is at its end.  
9 	Transitioning 	Preparing new media. 
10 	Ready 			Ready to begin playing. 
11 	Reconnecting 	Reconnecting to stream.
*/
var boolPlaying = false;
function fullScreen() {
	var Player = document.getElementById("Player");
	
	if (Player.playState <= 5)
		boolPlaying = false;
	
	if (Player.playState == 3) {
		Player.fullScreen = "true";
		boolPlaying = true;
	}
	else {
		if (!boolPlaying)
			Player.controls.play();
		setTimeout("fullScreen()", 1000); // Execute fullScreen() every 1 second until player is ready
	}
	return false;
}