$(function(){ $('.SlideTab12').tabSwitch('create',{width: 270, height: 142}); $('.tabSelect12').click(function(e){ select = '#select12' + parseInt($(this).attr("rel")); $('#project12 ul li').removeClass('active'); $(select).addClass('active'); $('.SlideTab12').tabSwitch('moveTo',{index: parseInt($(this).attr("rel"))}); e.preventDefault(); }); if ( $('#project12 .graphs #Tab120 img').length < 1 && $('#project12 .graphs #Tab121 img').length < 1 ) $('#project12').hide(); if ( $('#project12 .graphs #Tab120 img').length < 1 ) $('#project12 li#select120').hide(); if ( $('#project12 .graphs #Tab121 img').length < 1 ) $('#project12 li#select121').hide(); }); $('.rozcestnik #prehled12 a').click(function (e) { window.open(this.href); return false; }); $('.rozcestnik #detail12 a').click(function (e) { window.open(this.href); return false; });