// file character encoding: UTF-8 - hungarian example: ö(&#246;) ü(&#252;) ó(&#243;) ő(&#337;) ú(&#250;) é(&#233;) á(&#225;) ű(&#369;) í(&#237;), Ö(&#214;) Ü(&#220;) Ó(&#211;) Ő(&#336;) Ú(&#218;) É(&#201;) Á(&#193;) Ű(&#368;) Í(&#205;)

function my_is_frame() {
	if (parent.frames[0] == null) {
		return 0;
	} else {
		return 1
	}
}

function my_is_player() {
	if (parent.document.getElementById('player') != null) {
		return true;
	} else {
		return null;
	}
}

function my_flash2js ( my_flash2js_variable , my_flash2js_value ) {
	//alert('my_flash2js'+' '+my_flash2js_variable+' '+my_flash2js_value);
	if (my_flash2js_variable == 'play') {
		//alert('play');
		if (my_is_frame() == 1) {
			try {
				parent.document.getElementById('player').sendEvent("PLAY","true");
			} catch (err) {
			}
		} else {
			try {
					parent.document.location.href='http://www.luxfunkradio.com/hu/online-radio-hallgatas.html';
			} catch (err) {
			}
		}
	}
	if (my_flash2js_variable == 'stop') {
		//alert('stop');
		if (parent.document.getElementById('player') != null) {
			try {
				//alert('stop');
				parent.document.getElementById('player').sendEvent("STOP");
			} catch (err) {
			}
		}
	}
	if (my_flash2js_variable == 'volume') {
		if (my_is_frame() == 1) {
			try {
				//alert('volume');
				parent.document.getElementById('player').sendEvent("VOLUME",my_flash2js_value);
			} catch (err) {
			}
		}
	}
	if (my_flash2js_variable == 'start') {
		//alert('start');
		if (my_is_frame() == 0) {
			try {
				parent.document.location.href='http://www.luxfunkradio.com/hu/online-radio-hallgatas.html';
			} catch (err) {
			}
		}
	}
}

//var player = null;

//function playerReady(obj) {
//	//alert('the videoplayer '+obj['id']+' has been instantiated');
//	player = document.getElementById(obj['id']);
//};
