function openwin(url,name) {
  var height = 600;
  var width = 800;
  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width;
  if (window.screen) {
    var ah = screen.availHeight - 30;
    var aw = screen.availWidth - 10;
    var xc = Math.floor((aw - width) / 2);
    var yc = Math.floor((ah - height) / 2);
    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
  }
  str += ",directories=0,location=0,menubar=1,personalbar=1,scrollbars=1,status=1,toolbar=1";
  //return window.open(url,name,str);
  window.open(url,name,str);
  return false;
}

/*

$(function(){
	$('#HeadSlide').panelGallery();
});

*/

// JavaScript Document
$(document).ready(function() {
	/*
	var Reklama = $("#ReklamaTop").html();
	$("#ReklamaTop").hide();
	$("#zahlavi").prepend('<div id="InsertReklama"></div>');
	$("#InsertReklama").html(Reklama);
	*/

 	// externi odkazy
	$("#ikony a, .lista-seo-ext a, .lista-seo a").each(function() {
		if(this.href.indexOf(location.hostname) == -1) {
		$(this).click(function(){window.open(this.href); return false;});
	}	
	}); 
});


$(document).ready(
		function(){
			$('#news').innerfade({
				animationtype: 'fade',
				speed: 1000,
				timeout: 3000,
				type: 'sequence',
				containerheight: 'auto'
			});
		}

	);
