$(function(){ $('.SlideTab10').tabSwitch('create',{width: 270, height: 142}); $('.tabSelect10').click(function(e){ select = '#select10' + parseInt($(this).attr("rel")); $('#project10 ul li').removeClass('active'); $(select).addClass('active'); $('.SlideTab10').tabSwitch('moveTo',{index: parseInt($(this).attr("rel"))}); e.preventDefault(); }); if ( $('#project10 .graphs #Tab100 img').length < 1 && $('#project10 .graphs #Tab101 img').length < 1 ) $('#project10').hide(); if ( $('#project10 .graphs #Tab100 img').length < 1 ) $('#project10 li#select100').hide(); if ( $('#project10 .graphs #Tab101 img').length < 1 ) $('#project10 li#select101').hide(); }); $('.rozcestnik #prehled10 a').click(function (e) { window.open(this.href); return false; }); $('.rozcestnik #detail10 a').click(function (e) { window.open(this.href); return false; });