var isie=(navigator.appName=="Microsoft Internet Explorer");function mEmGET(c,b,a){count=c.length;for(i=0;i<count;i++){if(c[i]==a){return b[i];break}}return""}function mEmbed(){var d;var a=new Array();var c=new Array();for(i=0;i<mEmbed.arguments.length;i++){data=mEmbed.arguments[i].split("=");a[i]=data[0];c[i]=data[1]}contents="";srcdata=mEmGET(a,c,"src").toLowerCase();classid=mEmGET(a,c,"classid");codebase=mEmGET(a,c,"codebase");var b=mEmGET(a,c,"datatype").toLowerCase();if(/\.(swf)/gi.test(srcdata)){classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab";d="flash"}else{if(/\.(wmv|wma|asf|avi|wav|asx|mpeg|mp3|midi|aiff|au|wpl|wm|wmx|wmd|wmz)$/.test(srcdata)){classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95";codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701";d="media"}}if(classid&&codebase){contents+="<object";if(classid){contents+=' classid="'+classid+'"'}if(codebase){contents+=' codebase="'+codebase+'"'}count=a.length;for(i=0;i<count;i++){if(c[i]!=""){if(a[i]!="src"){contents+=" "+a[i]+'="'+c[i]+'"'}}}contents+=">";for(i=0;i<count;i++){if(c[i]!=""){if(d=="flash"&&a[i]=="src"){contents+='<param name="movie" value="'+c[i]+'" />'}else{if(d=="media"&&a[i]=="src"){contents+='<param name="filename" value="'+c[i]+'" />'}}}}if(d=="flash"){contents+='<param name="wmode" value="transparent" />'}}contents+="<embed";for(i=0;i<count;i++){if(c[i]!=""){contents+=" "+a[i]+'="'+c[i]+'"'}}if(d=="flash"){contents+=' type="application/x-shockwave-flash" play="true"  wmode="transparent" quality="high" allowScriptAccess="sameDomain"'}contents+=">";contents+="</embed>";if(classid&&codebase){contents+="</object>"}if(b=="text"){return contents}else{document.write(contents)}}function loadAsyncScript(c,d){var b=document.getElementsByTagName("head")[0];var a=document.createElement("script");a.setAttribute("type","text/javascript");a.setAttribute("src",c);a.setAttribute("async",true);b.appendChild(a);if(document.all){a.onreadystatechange=function(){var e=this.readyState;if(e==="loaded"||e==="complete"){d()}}}else{a.onload=function(){d()}}}function Zoom(f,d,a){var c=new Image();c.src=f.src;var g=Math.max(d/c.width,a/c.height);var e=c.width*g;var b=c.height*g;f.width=e;f.height=b;var h=f.parentNode;h.style.width=d+"px";h.style.height=a+"px";h.style.overflow="hidden";f.style.marginLeft=(d-e)/2+"px";f.style.marginTop=(a-b)/2+"px"}function Zoomimg(g,e,a){var c=new Image();c.src=g.src;var h=Math.max(e/c.width,a/c.height);var f=c.width*h;var b=c.height*h;g.width=f;g.height=b;var d=document.createElement("span");$(d)[0].style.display="inline-block";$(d)[0].style.width=e+"px";$(d)[0].style.height=a+"px";$(d)[0].style.overflow="hidden";$(g).wrap($(d));g.style.marginLeft=(e-f)/2+"px";g.style.marginTop=(a-b)/2+"px"}function refertomobile(e){var c=new Array("iphone","ipod","ipad","android","mobile","blackberry","webos","incognito","webmate","bada","nokia","lg","ucweb","skyfire");var b=navigator.userAgent.toLowerCase();var a=false;for(var d=0;d<c.length;d++){if(b.indexOf(c[d])!=-1){a=true;break}}if(a==true){window.location.href=e;return false}}function ismobile(){var c=new Array("iphone","ipod","ipad","android","mobile","blackberry","webos","incognito","webmate","bada","nokia","lg","ucweb","skyfire");var b=navigator.userAgent.toLowerCase();var a=false;for(var d=0;d<c.length;d++){if(b.indexOf(c[d])!=-1){a=true;break}}return a};