DM.m={};DM.has=function(id,type,params){type=type||id;if(!this.m[type]){this.m[type]=[]}this.m[type].push({id:id,params:params})};DM.setCookie=function(szName,szValue,szExpires,szPath,szDomain,bSecure){var szCookieText=escape(szName)+"="+escape(szValue);szCookieText+=szExpires?";expires="+szExpires.toGMTString():"";szCookieText+=szPath?";path="+szPath:"";szCookieText+=szDomain?";domain="+szDomain:"";szCookieText+=bSecure?";secure":"";document.cookie=szCookieText};DM.getCookie=function(szName){var szValue=null;if(document.cookie){var arr=document.cookie.split(escape(szName)+"=");if(2<=arr.length){szValue=unescape(arr[1].split(";")[0]);if(szValue.length>1&&szValue.charAt(0)==='"'&&szValue.charAt(szValue.length-1)==='"'){szValue=szValue.substring(1,szValue.length-1)}}}return szValue};DM.deleteCookie=function(szName){var tmp=DM.getCookie(szName);if(tmp)DM.setCookie(szName,tmp,new Date(1))};DM.popup=function(url,w,h){var _popupFeatures="menubar=false,location=false,statusbar=false,toolbar=false,resizable=false",_popupfpFeatures="resizable=1,scrollbars=1",nw=window.open(url,"_blank","width="+w+",height="+h+","+_popupFeatures+","+_popupfpFeatures);nw.focus();return nw};DM.Fn=function(){var initClass=function(type,items){var cls,initFn,scope,l=items.length;if(typeof DM[type]==="undefined"){type=type.charAt(0).toUpperCase()+type.slice(1);if(typeof DM[type]==="undefined"){return}}cls=DM[type];if(typeof cls==="function"){while(l>0){--l;new cls(items[l].id,items[l].params)}}else if(typeof cls==="object"){if(typeof cls.getInstance==="function"){initFn=cls.getInstance().init;scope=cls.getInstance()}else{initFn=cls.init;scope=cls}while(l>0){--l;initFn.call(scope,items[l])}}};var fixIframe=function(){var fn=function(e){var t=e.getTarget("A");if(!t||window.location.pathname.indexOf("/embed/video")>=0)return;if(t.target==""){top.location.replace(t.href)}};document.body.addEventListener("click",fn);var forms=document.getElementsByTagName("form"),l=forms.length;while(l>0){--l;forms[l].setAttribute("target","_top")}setTimeout(function(){var params=window.location.search.substring(1).split("&");for(var i=0,len=params.length;i0){for(var i=0;i