function show(id) {
	document.getElementById(id).style.visibility = "visible";
}

function hide(id) {
	document.getElementById(id).style.visibility = "hidden";
}

function MessageClick(id) {          
	if(document.getElementById(id).style.display == 'inline') {
		document.getElementById(id).style.display = 'none';
	}
	else {
		document.getElementById(id).style.display = 'inline';
	}
	return 0;
}

function absoluteShow(id, this_id) {
	document.getElementById(id).style.display = "inline";
	document.getElementById(this_id).innerHTML = "SPč>>";
	var new_event = "absoluteHide('" + id + "','" + this_id + "');";
	document.getElementById(this_id).setAttribute("onClick", new_event);
}

function absoluteHide(id,this_id) {
	document.getElementById(id).style.display = "none";
	document.getElementById(this_id).innerHTML = "VIAC>>";
	var new_event = "absoluteShow('" + id + "','" + this_id + "');";
	document.getElementById(this_id).setAttribute("onClick", new_event);
}

function funkcia(source_file) {
	var embedded_video = "<OBJECT ID='MediaPlayer' WIDTH='720' HEIGHT='576' CLASSID='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95' " +
							"STANDBY='Loading Windows Media Player components...' TYPE='application/x-oleobject'> " +
							"<PARAM NAME='FileName' VALUE='" + source_file + "'> " +
							"<PARAM id='autostart' name='autostart' VALUE='true'> " +
							"<PARAM name='ShowControls' VALUE='true'> " +
							"<param name='ShowStatusBar' value='false'> " +
							"<PARAM name='ShowDisplay' VALUE='false'> " +
							"<EMBED id='abcd' TYPE='application/x-mplayer2' SRC='" + source_file + "' NAME='MediaPlayer' " +
							"WIDTH='720' HEIGHT='576' ShowControls='1' ShowStatusBar='0' ShowDisplay='0' autostart='1'> </EMBED>" +
						  "</OBJECT>";

	document.getElementById('video_content').innerHTML=embedded_video;
}