if(typeof yodio == "undefined"){var yodio = new Object();};if(typeof yodio.util == "undefined"){yodio.util = new Object();};yodio.Overlay = function(a) {var yodioPlayers=new Object();yodioPlayers.Formats=new Array();yodioPlayers.Formats[8]={"Name":"Image / Audio,\u003cbr/\u003e(Description / Ad on Bottom)","Width":360,"Height":480};yodioPlayers.Formats[2]={"Name":"Image / Audio,\u003cbr/\u003e(No Tracks / Description / Ad)","Width":360,"Height":320};yodioPlayers.Formats[1]={"Name":"Image / Audio,\u003cbr/\u003e(Tracks / Description / Ad on Bottom)","Width":360,"Height":590};yodioPlayers.Formats[0]={"Name":"Image / Audio,\u003cbr/\u003e(Tracks / Description / Ad on Right)","Width":650,"Height":320};yodioPlayers.Formats[3]={"Name":"Audio Only,\u003cbr/\u003e(Full Controls)","Width":360,"Height":70};yodioPlayers.Formats[4]={"Name":"Audio Only,\u003cbr/\u003e(Some Controls)","Width":170,"Height":40};yodioPlayers.Formats[5]={"Name":"Audio Only,\u003cbr/\u003e(Play Pause)","Width":95,"Height":40};;this.attr=a;this.width=yodioPlayers.Formats[a.style].Width;this.height=yodioPlayers.Formats[a.style].Height;};yodio.Overlay.prototype ={CreateIt: function () {if(this.attr.cook==1){if(yodio.util.getCookie("yodio_" + this.attr.id)!=null){return;}if(this.attr.milliseconds>-1){yodio.util.setCookie("yodio_" + this.attr.id,"1",new Date(new Date().getTime()+this.attr.milliseconds));}else{yodio.util.setCookie("yodio_" + this.attr.id,"1");}}var winName="topYodioPlayer" + this.attr.num;  var maxZ=yodio.util.GetHighestZIndex();maxZ++;var o = this.getOutsideDiv(winName,maxZ);o.appendChild(this.getInsideDiv(winName,maxZ));o.appendChild(this.getPlayerDiv(maxZ));document.body.appendChild(o);yodio.util.showThis(winName);},getInsideDiv: function(winName,maxZ) {var i=document.createElement("div");i.id="closePlayer";var s="height:20px; width:" + this.width + "px; z-index:" + maxZ + ";";i.setAttribute("style",s);i.style.cssText=s;i.appendChild(this.getImg(winName,maxZ));return i;},getImg: function(winName,maxZ) {var i=document.createElement("img");i.id="closePlayerImg";i.setAttribute("height","20");i.setAttribute("width","161");i.setAttribute("alt","Close");i.setAttribute("src",this.attr.imgurl + "/images/PopupPlayer/close1.gif");var s="cursor:pointer;z-index:" + maxZ + ";margin-left:" + ((this.width-160)/2) + "px;";i.setAttribute("style",s);i.style.cssText=s;if (window.attachEvent){i.attachEvent("onclick",function(){yodio.util.hideThis(winName);});}else{i.addEventListener("click", function(){yodio.util.hideThis(winName);}, false)}return i;},getOutsideDiv: function(winName, maxZ)  {var o=document.createElement("div");var a=this.attr;var p="px; ";o.id=winName;var s="z-index: " + maxZ + "; position: absolute; width:" + (this.width+0) + p + "height:" + (this.height+20) + p + "display:none; ";switch(a.loc){case 0: s+="top:" + a.offY + p;s+="left:" + a.offX + p;break;case 1: s+="top:" + a.offY + p;s+="right:" + a.offX + p;break;case 2: s+="bottom:" + a.offY + p;s+="left:" + a.offX + p;break;case 3: s+="bottom:" + a.offY + p;s+="right:" + a.offX + p;break;}o.setAttribute("style",s);o.style.cssText=s;return o;} ,getPlayerDiv: function(m) {var p=document.createElement("div");p.id="yodioPlayer";var s="z-index: " + m + ";";p.setAttribute("style",s);p.style.cssText=s;p.innerHTML=this.getEmbedCode(m);return p;} ,getEmbedCode: function(maxZ){var s="";var a=this.attr;if(a.swaptext!=null){s="&swaptext=" + this.attr.swaptext}var i="";i+="<object id=\"yodioPlayer\" style=\"z-index:" + maxZ + "\" width=\"" + this.width + "\" height=\"" + this.height + "\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\">";i+="<param name=\"movie\" value=\"" + a.url + "/flash/multiplayer.swf\"/>";i+="<param name=\"wmode\" value=\"transparent\"/>";i+="<param name=\"allowFullScreen\" value=\"true\"/>";i+="<param name=\"allowScriptAccess\" value=\"always\"/>";i+="<param name=\"salign\" value=\"TL\"/>";i+="<param name=\"flashvars\" value=\"assetID=" + a.id + "&playerStyle=" + a.style + "&autoPlay=" + a.auto + "&skinId=" + a.skinId + s + "\"/>";i+="<param name=\"quality\" value=\"high\"/>";i+="<embed style=\"z-index:" + maxZ + "\"";i+=" width=\"" + this.width + "\"";i+=" height=\"" + this.height + "\"";i+=" flashvars=\"assetID=" + a.id + "&playerStyle=" + a.style + "&autoPlay=" + a.auto + "&skinId=" + a.skinId + s + "\"";i+=" allowFullScreen=\"true\"";i+=" allowScriptAccess=\"always\"";i+=" wmode=\"transparent\"";i+=" quality=\"high\"";i+=" bgcolor=\"#ffffff\"";i+=" name=\"yodioPlayer\"";i+=" id=\"yodioPlayer\""; i+=" salign=\"TL\"";i+=" src=\"" + a.url + "/flash/multiplayer.swf\"";i+=" type=\"application/x-shockwave-flash\">";i+="</embed>";i+="</object>";return i;}};yodio.util = {dom: function() {return document.getElementById;},hideThis: function(element) {if(document.getElementById(element)==null){return;}if (yodio.util.dom) {document.getElementById(element).style.display='none';}if (document.layers) {document.layers[element].display='none';}document.getElementById(element).innerHTML="";},  showThis: function(element,dom) {if(document.getElementById(element)==null){return;}if (yodio.util.dom) {document.getElementById(element).style.display='inline';}if (document.layers) {document.layers[element].display='inline';} },setCookie: function(name, value, expires, path, domain, secure) {var curCookie = name + "=" + escape(value) +((expires) ? "; expires=" + expires.toGMTString() : "") +((path) ? "; path=" + path : "") +((domain) ? "; domain=" + domain : "") +((secure) ? "; secure" : "");document.cookie = curCookie;},getCookie: function (name) {var dc = document.cookie;var prefix = name + "=";var begin = dc.indexOf("; " + prefix);if (begin == -1) {begin = dc.indexOf(prefix);if (begin != 0) {return null;}} else{begin += 2;}var end = document.cookie.indexOf(";", begin);if (end == -1){end = dc.length;}return unescape(dc.substring(begin + prefix.length, end));},deleteCookie: function(name, path, domain) {if (getCookie(name)) {document.cookie = name + "=" +((path) ? "; path=" + path : "") +((domain) ? "; domain=" + domain : "") +"; expires=Thu, 01-Jan-70 00:00:01 GMT";}},GetHighestZIndex: function() {var temp=Array();temp=document.getElementsByTagName("*");var maxz=-1;var thisZ=-1;for(i = 0; i < temp.length; i++){if (temp[i].currentStyle){thisZ = parseFloat(temp[i].currentStyle['zIndex']);  }else if(window.getComputedStyle){  thisZ = parseFloat(document.defaultView.getComputedStyle(temp[i],null).getPropertyValue('z-index'));  }if(!isNaN(thisZ)){   if(Number(thisZ)>maxz)   {maxz=Number(thisZ);   }}}return maxz;  },Start: function(attr) {var test=new yodio.Overlay(attr);test.CreateIt();},ContentLoaded: function (w, fn) {yodioDomReady.add(fn);}};yodio.domReadyEvent = function(){this.name="domReadyEvent";this.events={};this.domReadyID=1;this.bDone=false;this.DOMContentLoadedCustom=null;};yodio.domReadyEvent.prototype = {add: function(handler) {if (!handler.$$domReadyID) {handler.$$domReadyID = this.domReadyID++;if(this.bDone){handler();}this.events[handler.$$domReadyID] = handler;}},remove: function(handler) {if (handler.$$domReadyID) {delete this.events[handler.$$domReadyID];}},run: function() {if (this.bDone) {return;}this.bDone = true;for (var i in this.events) {this.events[i]();}},schedule: function() {if (this.bDone) {return;}if(/KHTML|WebKit/i.test(navigator.userAgent)) {if(/loaded|complete/.test(document.readyState)) {this.run();} else {setTimeout(this.name + ".schedule()", 100);}} else if(document.getElementById("__ie_onload")) {return true;}if(typeof this.DOMContentLoadedCustom === "function") {if(typeof document.getElementsByTagName !== 'undefined' && (document.getElementsByTagName('body')[0] !== null || document.body !== null)) {if(this.DOMContentLoadedCustom()) {this.run();} else {setTimeout(this.name + ".schedule()", 250);}}}return true;},init: function(domReadyEvent) {if(document.addEventListener) {document.addEventListener("DOMContentLoaded", function() { yodioDomReady.run(); }, false);}setTimeout("yodioDomReady.schedule()", 100);function run() {yodioDomReady.run();}if(typeof addEvent !== "undefined") {addEvent(window, "load", run);} else if(document.addEventListener) {document.addEventListener("load", run, false);} else if(typeof window.onload === "function") {var oldonload = window.onload;window.onload = function() {yodioDomReady.run();oldonload();};} else {window.onload = run;}}};if(typeof yodioDomReady == "undefined"){var yodioDomReady = new yodio.domReadyEvent();yodioDomReady.init();};yodio.util.ContentLoaded(window,function(){var attr={id:'4d120c3a-7a5d-4b16-9cbc-9dc1e8f95f20',url:'http://www.yodio.com',imgurl:'http://static.yodio.com',num:0,loc:1,offX:0,offY:155,style:2,auto:1,cook:0,skinId:0,milliseconds:-1,last:''};yodio.util.Start(attr);});