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 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
	} );
}


morph_start = function(what){
	var m1 = $(what);
	var parent = $(what+'_parent');
	var cleft = $('d9531').getLeft(); // div container 
	var top
	var left
	
	otop = top = parent.getTop() - 350;
	oleft = left = parent.getLeft() - cleft + 35;			
	m1.setStyle('top', top);
	m1.setStyle('left',left );
	m1.setStyle('display', '');
	
	/*
	morpho = new Fx.Morph(m1);
	morpho.set({
	    'width': 77,
	    'height': 98,
	    'top': top,
     	'left': left
	});
	
	m1.addEvent('mouseout', function(){
					morpho.start({
						'width': 77,
					    'height': 98,
					    'top': otop,
				     	'left': oleft
					}).chain(function(){
						m1.setStyle('display','none');
					})
				}
			)			
				
	top -= 119
	left -= 95
	morpho.start({
	 'width': 266,
     'height': 336,
     'top': top,
     'left': left 	
	}) */
}

var key = 'abcdefghijklmonqprstuwvxyz1234567890!@-_.ABCDEFGHIJKLMOQNPRSTUWVXYZ';
var encKey = 13;
var keyQty = key.length;
function sss2(s, p, c)
{
	var e = '';
	for (var i = 0; i < s.length; i++) {
		var t = s.charAt(i);
		if (t == '.') {
			var j = key.search("\\.");
		} else {
			var j = key.search(t);	
		}
		if (j - encKey >= 0) {
			j = j - encKey;
		} else {
			j = j - encKey + keyQty;
		}
		e += key.charAt(j);
	}
	
	if (c == '') {
		c = e;
	}
	document.write('<a href="mailto:' + e + '" ' + p + '>' + c + '</a>');
}
