function PopUpLnkWS(l, w, h) {
	w = window.open(l,'','resizable=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,fullscreen=no,dependent=no,width='+w+',height='+h+',left=0,top=0');
	return false;
}

// linki _blank
function externalLinks() { if (!document.getElementsByTagName) return; var anchors = document.getElementsByTagName("a"); for (var i=0; i<anchors.length; i++) {  var anchor = anchors[i];  if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") anchor.target = "_blank";}}


function changeUrl(lang){
	document.location=abs_path+'index.php?lang='+lang;
}

function setFontSize(a){
$("fckeditor").style.fontSize= a+"px";
//for(var i=0;i<z.length;i++)
//	document.$('fck2').innerHTML += z[i] +' ;';

x= $("fckeditor").getElementsByTagName("p");
for (var i=0;i<x.length;i++) { x[i].style.fontSize = a+"px"; }
x= $("fckeditor").getElementsByTagName("li");
for (var i=0;i<x.length;i++) { x[i].style.fontSize = a+"px";  }
x= $("fckeditor").getElementsByTagName("a");
for (var i=0;i<x.length;i++) { x[i].style.fontSize = a+"px"; }
x= $("fckeditor").getElementsByTagName("span");
for (var i=0;i<x.length;i++) { x[i].style.fontSize = a+"px"; }


}

function showFaq(iofi)
{
	var accordion = new Accordion($('faq'),'div.faqp', 'p.faqo', {
		opacity: false,
		display: iofi
	} );
}
