/* Generated 2011-12-02 11:08:06*/itmGlobal=function(){var c=jQuery,b,a;return{init:function(){var d=parseInt(jQuery.browser.version,10);if(jQuery.browser.msie&&d<7){c("#vid-loading").fadeOut();c("#vid-player").fadeIn()}else{var f=c("#video-cont").width();if(f>640){f=640;var e=380}else{var e=Math.round(f*9/16+20)}c("#vid-player #embedded_player").height(e).width(f);c("#vid-loading").fadeOut();c("#vid-player").fadeIn()}c("#notify-close").live("click",function(){itmGlobal.notifyClose()})},interStitialInit:function(f){var e=f.config.bg;var d=f.config.top+"px";c("#interstitial-cont").css({"background-color":e}).scrollTop(0).show();c("#ad-close strong").click(this.interStitialClose);if(f.config.adTimer){adTimer=f.config.adTimer;this.interStitialTimer()}},interStitialTimer:function(){if(adTimer==0){this.interStitialClose()}else{if(jQuery.isReady){}c("#ad-timer").html('this ad will close in&nbsp;<em style="color:#3399cc;font-size:14px;font-weight:bold">'+adTimer+"</em>&nbsp;seconds");adTimer--;b=setTimeout("itmGlobal.interStitialTimer()",1250)}},interStitialClose:function(d){clearTimeout(b);c("#video-player").css("visibility","visible");c("#interstitial-cont").hide();c("#interstitial-ad").hide()},notifyInit:function(d){if(d.config.slide){c("#notify").slideDown("slow")}else{c("#notify").show("fast")}if(d.config.closeButton){c("#notify-close").show()}if(d.config.adTimer){adTimer=d.config.adTimer;this.notifyTimer()}c("body").css("background-position","center 40px")},notifyTimer:function(){if(adTimer==0){this.notifyClose()}else{adTimer--;b=setTimeout("itmGlobal.notifyTimer()",1250)}},notifyClose:function(d){clearTimeout(b);c("#notify").slideUp("fast");c("body").css("background-position","center 0px")}}}();jQuery(document).ready(function(){itmGlobal.init()});jQuery(window).resize(function(){itmGlobal.init()});
