function noblurlinx()
{
	linx = document.getElementsByTagName('a');
	for(i=0; i<linx.length; i++){
		linx[i].onfocus = new Function("if(this.blur)this.blur()");
	}
}

function eolas() {
	var objects = document.getElementsByTagName("object");

	for (var i=0; i<objects.length; i++)
	    objects[i].outerHTML = objects[i].outerHTML;
}

function createCookie(name,value,days)
{
	if (days)
	{
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function WPImage(link, title, width, height)
{
  width += 20;
  height += 60;
  w = ((width < screen.width) ? width : (screen.width - 40));
  h = ((height < screen.height) ? height : (screen.height - 60));

  opts = 'width=' + w + ',height=' + h +',resizable=yes';
  url = '../classes/image.php?link='
      + escape(link.replace(/ /g, '+'))
      + '&title=' + escape(title.replace(/ /g, '+'));

  window.open(url, 'img', opts);
}

window.onload = function() {
//	eolas(); // v starych verzich IE to spousti 2 krat -> zkusam s document.write
	noblurlinx();
}

