$(function(){ $('.SlideTab7').tabSwitch('create',{width: 270, height: 142}); $('.tabSelect7').click(function(e){ select = '#select7' + parseInt($(this).attr("rel")); $('#project7 ul li').removeClass('active'); $(select).addClass('active'); $('.SlideTab7').tabSwitch('moveTo',{index: parseInt($(this).attr("rel"))}); e.preventDefault(); }); if ( $('#project7 .graphs #Tab70 img').length < 1 && $('#project7 .graphs #Tab71 img').length < 1 ) $('#project7').hide(); if ( $('#project7 .graphs #Tab70 img').length < 1 ) $('#project7 li#select70').hide(); if ( $('#project7 .graphs #Tab71 img').length < 1 ) $('#project7 li#select71').hide(); }); $('.rozcestnik #prehled7 a').click(function (e) { window.open(this.href); return false; }); $('.rozcestnik #detail7 a').click(function (e) { window.open(this.href); return false; });