var ihandle=0;var progress=0;function startAdTimer(){$("#pbdiv").progressBar({barImage:"/images/progressbg.png",boxImage:"/images/progressbar.png",width:500});$("#pbload").show();ihandle=handle=setInterval("updateBar()",100)}function updateBar(){progress++;$("#pbdiv").progressBar(progress);if(progress>50){$("#pbload").hide();$("#pbskip").show();$("#skiplink").click(function(){clearTimer()})}if(progress>99){clearTimer()}}function clearTimer(){clearInterval(handle);$("#pread").hide();displayMedia();$("#mediadisp").show()};