(function(A){A.fn.seat_flash=function(){A(this).each(function(){var B=A(this);var D=B.metadata();var C={swf:D.swf,width:D.width||B.width(),height:D.height||B.height(),flashvars:D.flashvars};C=A.extend(C,A.fn.seat_flash.defaultParams,D.params);B.flash(C);});};A.fn.seat_flash.defaultParams={hasVersion:9,bgcolor:"#000000",menu:"false",wmode:"opaque",allowFullScreen:"true",allowScriptAccess:"always"};})(jQuery);(function(A){A.fn.seat_video=function(){A(this).each(function(){var C=A(this);var B=A.cookie("S_KAT");if(!B){A.getJSON(seat.config.kewegoAppTokenUrl,function(D){if(D&&D.appToken){A.cookie("S_KAT",D.appToken,{expires:1});C.seat_video_replace(D.appToken);}});}else{A(this).seat_video_replace(B);}});};A.fn.seat_video_replace=function(B){A(this).each(function(){var D=A(this);var C=D.metadata();D.replaceWith(A.tmpl(A.fn.seat_video.template,{image:D.attr("src"),width:D.width(),height:D.height(),fallback:A("<div>").append(D.clone()).html(),video:seat.config.kewegoHostUrl+"/video/getHTML5Stream/?playerKey="+seat.config.kewegoPlayerKey+"&sig="+C.sig+"&appToken="+B}));
});};A.fn.seat_video.template=A.template("mp4object",'<!--[if !IE]>--><object type="video/mp4" data="${image}" width="${width}" height="${height}"><param name="src" value="${image}" /><param name="href" value="${video}" /><param name="target" value="myself" /><!--<![endif]-->{$fallback}<!--[if !IE]>--></object><!--<![endif]-->');})(jQuery);(function(A){A.fn.seat_popup=function(){A(this).each(function(){if(A(this).is("select")){A(this).change(function(){A(":selected",this).each(function(){return A.fn.seat_popup.open(A(this).val(),A(this).metadata());});});}if(A(this).is("a")||A(this).is("area")){A(this).click(function(){return A.fn.seat_popup.open(A(this).attr("href"),A(this).metadata());});}});};A.fn.seat_popup.open=function(C,D){if(!C){return true;}var B=A.extend({},A.fn.seat_popup.defaults,D);var F=[];var E=["closed","defaultStatus","innerHeight","innerWidth","locationbar","menubar","name","outerHeight","width","outerWidth","pageXOffset","pageYOffset","personalbar","scrollbars","statusbar","status","toolbar","height","location","resizable"];
A.each(B,function(H,G){if(jQuery.inArray(H,E)!=-1){F.push(H+"="+G);}});if(F.length>0){window.open(C,"_blank",F.join(","));}else{window.location=C;}return false;};A.fn.seat_popup.defaults={location:"no",menubar:"no",resizable:"no",scrollbars:"no",status:"no",toolbar:"no"};})(jQuery);(function(A){A.tracking=function(){};A.fn.trackClickListener=function(B){var C=A(this);this.each(function(){C=A(this);C.click(function(D){A(this).trackClick(B);return true;});});return this;};A.fn.trackClick=function(B){var D=A(this).get(0);if(B.target){D=B.target.get(0);}A.metadata.setType("class");var C=A(D).metadata();if(typeof (B.callback)!=="undefined"){if(typeof (C.track_options)!=="undefined"){B.callback(C.track_options);}else{B.callback();}}return this;};}(jQuery));
