$(function(){ $('.SlideTab11').tabSwitch('create',{width: 270, height: 142}); $('.tabSelect11').click(function(e){ select = '#select11' + parseInt($(this).attr("rel")); $('#project11 ul li').removeClass('active'); $(select).addClass('active'); $('.SlideTab11').tabSwitch('moveTo',{index: parseInt($(this).attr("rel"))}); e.preventDefault(); }); if ( $('#project11 .graphs #Tab110 img').length < 1 && $('#project11 .graphs #Tab111 img').length < 1 ) $('#project11').hide(); if ( $('#project11 .graphs #Tab110 img').length < 1 ) $('#project11 li#select110').hide(); if ( $('#project11 .graphs #Tab111 img').length < 1 ) $('#project11 li#select111').hide(); }); $('.rozcestnik #prehled11 a').click(function (e) { window.open(this.href); return false; }); $('.rozcestnik #detail11 a').click(function (e) { window.open(this.href); return false; });