function ws(a) {
	var w = 0;var h = 0;
	if(a.document.body.clientWidth) {w=a.document.body.clientWidth;} if(a.document.documentElement.clientWidth) {w=a.document.documentElement.clientWidth;} if(a.innerWidth) {w=a.innerWidth;} if(a.document.body.clientHeight) {h=a.document.body.clientHeight;} if(a.document.documentElement.clientHeight) {h=a.document.documentElement.clientHeight;} if(a.innerHeight) {h= a.innerHeight;}
	var ret=[w,h];return ret;
}
function rm() {
	var kl= 256;var wi=ws(window)[1];var o= $("div#text-content").height();
	if(o<(wi-kl)) {$("div#text-content").css({height: (wi-kl)+'px'});}
}
function pt() {
	document.title=$("div#ptitle").text();
}
function a() {
	var g=document.location.href.split('/');
	var thp=g[g.length-1];
	$("a").each(function(){
		var l=$(this).attr('href');
		if(l==thp) {$(this).css({"text-decoration":"underline","color":"#f1e0e0"});}
	});
}
function getarticles() {
	var la=document.location.href.indexOf("/en/");
	if(la==-1) {
		var lang='hu';
	} else {
		var lang='en';
	}
	$.get("/getarticles.php",{lang: lang},
	  function(data){
		$("p#articles").html(data);
	  }
	);
}
function v(N) {
	$("div#player").html('<iframe src="/video.php?video='+N+'.flv" scrolling="no" frameborder="0" style="border:0;width:470px;height:350px"></iframe>').show();
	$("a#cl2").show();
}
function cl() {
	$("div#player").html('');
	$("a#cl2").hide();
}
//$(document).ready(function(){rm();pt();a();});