(function(o,e){var a=navigator.userAgent.toLowerCase(),j=/(webkit)[ \/]([\w.]+)/i.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/i.exec(a)||/(msie) ([\w.]+)/i.exec(a)||!/compatible/i.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/i.exec(a)||false,k={},g,i,h;if(j){k.version=j[2];k[j[1]]=true}function n(s,q,p){if(s.addEventListener){s.addEventListener(q,p,false)}else{if(s.attachEvent){s.attachEvent("on"+q,p)}else{var r=s["on"+q];s["on"+q]=function(t){if(r){r.call(s,t)}p.call(s,t)}}}}function m(r,q){for(var p in q){r.style[p]=q[p]}}function l(){return(typeof window.innerHeight=="number")?window.innerHeight:(o.documentElement&&o.documentElement.clientHeight)?o.documentElement.clientHeight:(o.body&&o.body.clientHeight)?o.body.clientHeight:0}function b(){return(typeof window.pageYOffset=="number")?window.pageYOffset:(typeof window.scrollY=="number")?window.scrollY:(o.documentElement&&o.documentElement.scrollTop)?o.documentElement.scrollTop:(o.documentElement&&o.documentElement.scrollY)?o.documentElement.scrollY:(o.body&&o.body.scrollTop)?o.body.scrollTop:(o.body&&o.body.scrollY)?o.body.scrollY:0}function c(p){return(/^([0-9])+(px|em)?$/.test(p))?parseInt(p):0}function f(p){if(p.origin=="http://player.enjoystation.net"){var i,j,e,p=eval("("+p.data+")");for(i in p){e=document.getElementById(i);if(e){for(j in p[i]){e.style[j]=p[i][j];}}}if(k.msie&&k.version==6){if(p.enjoybarre.width){i.width=p.enjoybarre.width;}d()}}}if(window.postMessage&&!k.opera){n(window,"message",f)}else{setInterval(function(){var q=o.location.hash,p=/^#?\d+&/;if(q!==g&&p.test(q)){o.location="#";g=q;f({data:q.replace(p,""),origin:"http://player.enjoystation.net"})}},100)}n(window,"load",function(){i=o.createElement("iframe");i.id="enjoybarre";i.frameBorder="0";i.allowTransparency="true";i.src="http://player.enjoystation.net/barre/iframe.html#"+location.href.replace(/#.*/,"");h=o.createElement("div");h.id="enjoymargin";m(i,{position:"fixed",bottom:"0",left:"0",right:"0",border:"none",width:"100%",height:"20px",zIndex:"999999999999"});m(h,{clear:"both",width:"100%",height:"20px"});o.body.appendChild(i);o.body.appendChild(h);if(k.msie&&k.version==6){i.width="100%";i.style.position="absolute";n(window,"resize",d);n(window,"scroll",d)}});function d(){i.style.top=l()+b()-parseInt(c(i.style.height)+c(i.style.borderTopWidth)+c(i.style.borderBottomWidth)+c(i.style.marginTop)+c(i.style.marginBottom)+c(i.style.paddingTop)+c(i.style.paddingBottom))+"px"}window.EnjoyPlayer=function(){};})(document);
