$(function(){ $('.SlideTab13').tabSwitch('create',{width: 270, height: 142}); $('.tabSelect13').click(function(e){ select = '#select13' + parseInt($(this).attr("rel")); $('#project13 ul li').removeClass('active'); $(select).addClass('active'); $('.SlideTab13').tabSwitch('moveTo',{index: parseInt($(this).attr("rel"))}); e.preventDefault(); }); if ( $('#project13 .graphs #Tab130 img').length < 1 && $('#project13 .graphs #Tab131 img').length < 1 ) $('#project13').hide(); if ( $('#project13 .graphs #Tab130 img').length < 1 ) $('#project13 li#select130').hide(); if ( $('#project13 .graphs #Tab131 img').length < 1 ) $('#project13 li#select131').hide(); }); $('.rozcestnik #prehled13 a').click(function (e) { window.open(this.href); return false; }); $('.rozcestnik #detail13 a').click(function (e) { window.open(this.href); return false; });