function popMVPVideo(a,R,P,Q,B,W,U,Z,D,V,H,X,T,O,F,E){var J=jQuery,A=J("#mvpVideoPopup"),S=J("#mvpVideoPopupContent"),L=J("#mvpVideoPopupShield"),N=J("#mvpVideoPopupSwf"),Y=J("#mvpVideoClose"),b=J(document),I=J(window),G="/custom/customtags/misc/mvpVideo/mvpFrame.html";A.show();S.hide();L.hide();L.height(b.height());if(V==null){S.width(R+20);S.height(P+50);N.width(R);N.height(P)}else{S.width(Math.max(R,V)+20);S.height(P+H+50);N.width(Math.max(R,V));N.height(P+H)}S.css("left",(I.width()/2)-(S.width()/2));S.css("top",(I.scrollTop()+((window.innerHeight?window.innerHeight:I.height())/2))-(S.height()/2));L.show();L.css("opacity",0);var K=function(c){return function(){var d=J(this),e="application/x-shockwave-flash",f;if(this.nodeName=="EMBED"&&d.attr("type")==e){f=d.attr("wmode")}else{if(this.nodeName=="OBJECT"&&(d.attr("type")==e||d.attr("classid")=="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000")){f=d.children("param[name='wmode']");if(f!=null){f=f.attr("value")}}}if(f==null||!(f=="transparent"||f=="opaque")){d.css("visibility",c?"":"hidden")}}};var C=K(true);var M=K(false);J("embed").each(M);J("object").each(M);if(J.browser.msie&&parseInt(J.browser.version)<7){J("select").css("visibility","hidden")}L.animate({opacity:0.7},"normal","swing",function(){S.show();var c="?swfPath="+encodeURIComponent(a)+"&width="+encodeURIComponent(R)+"&height="+encodeURIComponent(P)+"&requiredVersion="+encodeURIComponent(Q)+"&altImg="+encodeURIComponent(B)+"&flashVars="+encodeURIComponent(W)+"&swfId="+encodeURIComponent(U)+"&wmode="+encodeURIComponent(Z)+"&swfPath2="+encodeURIComponent(D)+"&width2="+encodeURIComponent(V)+"&height2="+encodeURIComponent(H)+"&requiredVersion2="+encodeURIComponent(X)+"&altImg2="+encodeURIComponent(T)+"&flashVars2="+encodeURIComponent(O)+"&swfId2="+encodeURIComponent(F)+"&wmode2="+encodeURIComponent(E);if(D!=null){c+="&swfPath2="+encodeURIComponent(D)+"&width2="+encodeURIComponent(V)+"&height2="+encodeURIComponent(H)+"&requiredVersion2="+encodeURIComponent(X)+"&altImg2="+encodeURIComponent(T)+"&flashVars2="+encodeURIComponent(O)+"&swfId2="+encodeURIComponent(F)+"&wmode2="+encodeURIComponent(E)}document.getElementById("mvpVideoPopupSwf").src=G+c;var d=function(e){if(e.type=="keyup"&&e.keyCode!=27){return }document.getElementById("mvpVideoPopupSwf").src=G;S.hide();L.fadeOut("normal",function(){A.hide();J("embed").each(C);J("object").each(C);if(J.browser.msie&&parseInt(J.browser.version)<7){J("select").css("visibility","")}});Y.unbind("click",arguments.callee);L.unbind("click",arguments.callee);J(document).unbind("keyup",arguments.callee)};Y.bind("click",d);L.bind("click",d);J(document).bind("keyup",d)})}window.preInit[window.preInit.length]=function(){jQuery('<div id="mvpVideoPopup"><div id="mvpVideoPopupShield" style="position:absolute;top:0;left:0;margin:0;padding:0;border:0;background:#000;width:100%;z-index: 100;">&nbsp;</div><div id="mvpVideoPopupContent" style="text-align:left;background:#fff;position:absolute;z-index: 101;"><a id="mvpVideoClose" href="#" onclick="return false;"><img src="/custom/templates/page/shared/images/vr_closebtn.gif" alt="Close" border="0" width="98" height="34"></a><iframe id="mvpVideoPopupSwf" style="border:0;margin:0 10px;padding:0;" frameborder="0" scrolling="no"></iframe></div></div>').appendTo("body");jQuery("#mvpVideoPopup").hide()};jQuery.noConflict();