

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,resizable=1";
  //return window.open(url,name,str);
  window.open(url,name,str);
  return false;
}


	
//[ SLIDERY ]--------------------------------------

$(document).ready(function(){
	$('.slide-out-01').tabSlideOut({
	    tabHandle: '.handle-01',                              //class of the element that will be your tab
	    pathToTabImage: './SliderImg/slider-01.gif',          //path to the image for the tab *required*
	    imageWidth: '25px',                               //width of tab image *required*    
	    imageHeight: '122px',                               //height of tab image *required*
	    tabLocation: 'left',                               //side of screen where tab lives, top, right, bottom, or left
	    speed: 300,                                        //speed of animation
	    action: 'click',                                   //options: 'click' or 'hover', action to trigger animation
	    topPos: '200px',                                   //position from the top
	    fixedPosition: true                               //options: true makes it stick(fixed position) on scroll
	});


 	// externi odkazy
	$("#ikony a, .lista-seo-ext a, .lista-seo a, .cms-text a, .over-seo a").each(function() {
		if(this.href.indexOf(location.hostname) == -1) {
			$(this).click(function(){window.open(this.href); return false;});
		}	
	});

});



