$().ready(function(){$("#headerNavigation .menu ul>ul").hide();$("#headerNavigation .menu ul>li").hover(function(){$(this).find("ul").show()},function(){$(this).find("ul").hide()});$("#lostPasswordLink").click(function(){$("#lostPasswordForm").show();$("#loginForm").hide();return false});$(".newWindow").click(function(){window.open(this.href);return false});$("a.fancybox, a.lightbox").lightbox({fileLoadingImage:"/assets/js/lightbox/images/ico-loading.gif",fileBottomNavCloseImage:"/assets/js/lightbox/images/btn-close.png",
strings:{help:" \u2190 / P - previous image\u00a0\u00a0\u00a0\u00a0\u2192 / N - next image\u00a0\u00a0\u00a0\u00a0ESC / X - close image gallery",prevLinkTitle:"P\u0159edchoz\u00ed",nextLinkTitle:"Dal\u0161\u00ed",prevLinkText:"&laquo; P\u0159edchoz\u00ed",nextLinkText:"Dal\u0161\u00ed &raquo;",closeTitle:"Zav\u0159\u00edt",image:"Foto ",of:" z "},disableNavbarLinks:true});$("#ajaxSearch_input").val()=="%"&&$("#ajaxSearch_input").val("");$("#motoGPSportsLink").hover(function(){$(this).append('<!--[if !IE]> --\><object id="cornerFlash" type="application/x-shockwave-flash" data="/assets/flash/motogp_link.swf" width="311" height="163"><!-- <![endif]--\><!--[if IE]><object id="cornerFlash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="311" height="163"><param name="movie" value="/assets/flash/motogp_link.swf" /><!--\><!--dgx--\><param name="loop" value="true" /><param name="menu" value="false" /><param name="wmode" value="transparent" /><param name="flashvars" value="clickthru=http://www.motogpsports.cz" /></object><!-- <![endif]--\>')},
function(){$("#cornerFlash").remove();$(this).width(137);$(this).height(76)});$("#f1SportsLink").hover(function(){$(this).append('<!--[if !IE]> --\><object id="cornerFlash" type="application/x-shockwave-flash" data="/assets/flash/f1_link.swf" width="311" height="163"><!-- <![endif]--\><!--[if IE]><object id="cornerFlash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="311" height="163"><param name="movie" value="/assets/flash/f1_link.swf" /><!--\><!--dgx--\><param name="loop" value="true" /><param name="menu" value="false" /><param name="wmode" value="transparent" /><param name="flashvars" value="clickthru=http://www.f1sports.cz" /></object><!-- <![endif]--\>')},
function(){$("#cornerFlash").remove();$(this).width(137);$(this).height(76)})});
function displayTab(a,b){$("#"+a+"-"+b).show();if(b=="250cc"){$("#"+a+"-125cc").hide();$("#"+a+"-MotoGP").hide();$("#cuba_switch_250cc")&&$("#cuba_switch_250cc").addClass("active");$("#cuba_switch_125cc")&&$("#cuba_switch_125cc").removeClass("active");$("#cuba_switch_MotoGP")&&$("#cuba_switch_MotoGP").removeClass("active")}if(b=="125cc"){$("#"+a+"-250cc").hide();$("#"+a+"-MotoGP").hide();$("#cuba_switch_125cc")&&$("#cuba_switch_125cc").addClass("active");$("#cuba_switch_250cc")&&$("#cuba_switch_250cc").removeClass("active");
$("#cuba_switch_MotoGP")&&$("#cuba_switch_MotoGP").removeClass("active")}if(b=="MotoGP"){$("#"+a+"-125cc").hide();$("#"+a+"-250cc").hide();$("#cuba_switch_MotoGP")&&$("#cuba_switch_MotoGP").addClass("active");$("#cuba_switch_250cc")&&$("#cuba_switch_250cc").removeClass("active");$("#cuba_switch_125cc")&&$("#cuba_switch_125cc").removeClass("active")}}
function shareToFacebook(){u=location.href;t=document.title;window.open("http://www.facebook.com/sharer.php?u="+encodeURIComponent(u)+"&t="+encodeURIComponent(t),"sharer","toolbar=0,status=0,width=626,height=436");return false};
