var textPowerBy = '<a href="http://www.raudiostream.com/" target="_blank"><span class="msj_raudio">raudio</span><span class="msj_stream">stream</span></a>';var anchoThePlayer = 1;var altoThePlayer = 1;var anchoDisplay = 173;var anchoImgVideo = 367;var altoImgVideo = 247;var anchoMensajesBox = 357;var altoMensajesBox = 284;var mensajesMostrados = 20;var porcentajethumb = 0.25;var nombreFlashThePlayer = '_flash_the_player';var urlServidor = '';var urlServidorReal = '';var listaSkins = ['blue','default','gris','indigo','oliva','pink','purpura','red','slate'];var ipOyente = '190.231.24.220';var palabra = '7e7fa85c9280671956b95de623044852';var emisoraDefault = 4;var emisoras = new Array();emisoras[0] = ['4','BONGO STEREO','http://www.bongostereo.com/','0','default',1,0,'10','32','http://srv2.raudiostream.com',new Array('20', '97'),'15',new Array(),'1','120','1','0','',''];function datosEmisora(id){if (id > 0){for (var i = 0; i < emisoras.length; i++){if (emisoras[i][0] == id){return emisoras[i];}}}return false;}var requiredMajorVersion = 9;var requiredMinorVersion = 0;var requiredRevision = 45;var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;function ControlVersion(){var version;var axo;var e;try {axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");version = axo.GetVariable("$version");} catch (e) {}if (!version){try {axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");version = "WIN 6,0,21,0";axo.AllowScriptAccess = "always";version = axo.GetVariable("$version");} catch (e) {}}if (!version){try {axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version = axo.GetVariable("$version");} catch (e) {}}if (!version){try {axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version = "WIN 3,0,18,0";} catch (e) {}}if (!version){try {axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");version = "WIN 2,0,0,11";} catch (e) {version = -1;}}return version;}function GetSwfVer(){var flashVer = -1;if (navigator.plugins != null && navigator.plugins.length > 0) {if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;var descArray = flashDescription.split(" ");var tempArrayMajor = descArray[2].split(".");var versionMajor = tempArrayMajor[0];var versionMinor = tempArrayMajor[1];var versionRevision = descArray[3];if (versionRevision == "") {versionRevision = descArray[4];}if (versionRevision[0] == "d") {versionRevision = versionRevision.substring(1);} else {if (versionRevision[0] == "r") {versionRevision = versionRevision.substring(1);if (versionRevision.indexOf("d") > 0) {versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));}}}var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;}}else {if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) {flashVer = 4;}else {if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) {flashVer = 3;}else {if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) {flashVer = 2;}else {if ( isIE && isWin && !isOpera ) {flashVer = ControlVersion();}}}}}return flashVer;}function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision){versionStr = GetSwfVer();if (versionStr == -1 ) {return false;} else {if (versionStr != 0) {if (isIE && isWin && !isOpera) {tempArray = versionStr.split(" "); tempString= tempArray[1];versionArray  = tempString.split(",");} else {versionArray  = versionStr.split(".");}var versionMajor  = versionArray[0];var versionMinor  = versionArray[1];var versionRevision   = versionArray[2];if (versionMajor > parseFloat(reqMajorVer)) {return true;} else {if (versionMajor == parseFloat(reqMajorVer)) {if (versionMinor > parseFloat(reqMinorVer)) {return true;}else {if (versionMinor == parseFloat(reqMinorVer)) {if (versionRevision >= parseFloat(reqRevision)) {return true;}}}}}return false;}}}function AC_AddExtension(src, ext){  if (src.indexOf('?') != -1) { return src.replace(/\?/, ext+'?'); }  else { return src + ext; }}function AC_Generateobj(objAttrs, params, embedAttrs) {   var str = '';  if (isIE && isWin && !isOpera)  {str += '<object ';for (var i in objAttrs){  str += i + '="' + objAttrs[i] + '" ';}str += '>';for (var i in params){  str += '<param name="' + i + '" value="' + params[i] + '" /> ';}str += '</object>';  }  else  {str += '<embed ';for (var i in embedAttrs){  str += i + '="' + embedAttrs[i] + '" ';}str += '/>';  }  if (typeof document.getElementById('_embed_player') != "undefined") document.getElementById('_embed_player').innerHTML = str;  else document.write(str);}function AC_FL_RunContent(){  var ret = AC_GetArgs(  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" , "application/x-shockwave-flash");  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);}function AC_SW_RunContent(){  var ret = AC_GetArgs(  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000" , null);  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);}function AC_GetArgs(args, ext, srcParamName, classid, mimeType){  var ret = new Object();  ret.embedAttrs = new Object();  ret.params = new Object();  ret.objAttrs = new Object();  for (var i=0; i < args.length; i=i+2){var currArg = args[i].toLowerCase();switch (currArg){  case "classid":break;  case "pluginspage":ret.embedAttrs[args[i]] = args[i+1];break;  case "src":  case "movie":args[i+1] = AC_AddExtension(args[i+1], ext);ret.embedAttrs["src"] = args[i+1];ret.params[srcParamName] = args[i+1];break;  case "onafterupdate":  case "onbeforeupdate":  case "onblur":  case "oncellchange":  case "onclick":  case "ondblclick":  case "ondrag":  case "ondragend":  case "ondragenter":  case "ondragleave":  case "ondragover":  case "ondrop":  case "onfinish":  case "onfocus":  case "onhelp":  case "onmousedown":  case "onmouseup":  case "onmouseover":  case "onmousemove":  case "onmouseout":  case "onkeypress":  case "onkeydown":  case "onkeyup":  case "onload":  case "onlosecapture":  case "onpropertychange":  case "onreadystatechange":  case "onrowsdelete":  case "onrowenter":  case "onrowexit":  case "onrowsinserted":  case "onstart":  case "onscroll":  case "onbeforeeditfocus":  case "onactivate":  case "onbeforedeactivate":  case "ondeactivate":  case "type":  case "codebase":  case "id":ret.objAttrs[args[i]] = args[i+1];break;  case "width":  case "height":  case "align":  case "vspace":   case "hspace":  case "class":  case "title":  case "accesskey":  case "name":  case "tabindex":ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];break;  default:ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];}  }  ret.objAttrs["classid"] = classid;  if (mimeType){ ret.embedAttrs["type"] = mimeType; }  return ret;}if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {alert("Esta página requiere el archivo AC_RunActiveContent.js.");} else {var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);if(hasRightVersion) {AC_FL_RunContent('codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0','width', 1,'height', 1,'src', 'thePlayer191e','quality', 'low','pluginspage', 'http://www.macromedia.com/go/getflashplayer','align', 'middle','play', 'true','loop', 'true','scale', 'showall','wmode', 'window','devicefont', 'false','id', '_flash_the_player','name', '_flash_the_player','bgcolor', '#ffffff','menu', 'false','allowScriptAccess','always','swLiveConnect','true','allowFullScreen','false','wmode','transparent','movie', 'thePlayer191e','salign', '');} else {var alternateContent = 'El contenido HTML alternativo debe colocarse aquí. '+ 'Este contenido requiere Adobe Flash Player. '+ '<a href="https://www.macromedia.com/go/getflash/" target="_blank">Obtener Flash</a>';document.write(alternateContent);}}var autoPlay = 1;function createAjaxObj(){var httprequest = false;if (window.XMLHttpRequest){ httprequest = new XMLHttpRequest();if (httprequest.overrideMimeType){httprequest.overrideMimeType('text/xml');}}else if (window.ActiveXObject){ try {httprequest = new ActiveXObject("Msxml2.XMLHTTP");}catch (e){try {httprequest = new ActiveXObject("Microsoft.XMLHTTP");}catch (e){}}}return httprequest;}var ajaxpack = new Object();ajaxpack.basedomain = "http://" + window.location.hostname;ajaxpack.ajaxobj = createAjaxObj();ajaxpack.filetype = "txt";ajaxpack.addrandomnumber = 1; ajaxpack.getAjaxRequest = function(url, parameters, callbackfunc, filetype){ajaxpack.ajaxobj = createAjaxObj(); if (ajaxpack.addrandomnumber == 1) {var parameters = parameters + "&ajaxcachebust=" + new Date().getTime();}if (this.ajaxobj){this.filetype = filetype;this.ajaxobj.onreadystatechange = callbackfunc;this.ajaxobj.open('GET', url + "?" + parameters, true);this.ajaxobj.send(null);}};ajaxpack.postAjaxRequest = function(url, parameters, callbackfunc, filetype){ajaxpack.ajaxobj = createAjaxObj(); if (this.ajaxobj){this.filetype = filetype;this.ajaxobj.onreadystatechange = callbackfunc;this.ajaxobj.open('POST', url, true);this.ajaxobj.setRequestHeader("Content-type", "application/x-www-form-urlencoded");this.ajaxobj.setRequestHeader("Content-length", parameters.length);this.ajaxobj.setRequestHeader("Connection", "close");this.ajaxobj.send(parameters);}};function crearObjAjax(){var ajaxpack2 = new Object();ajaxpack2.basedomain = "http://" + window.location.hostname;ajaxpack2.ajaxobj = createAjaxObj();ajaxpack2.filetype = "txt";ajaxpack2.addrandomnumber = 1; ajaxpack2.getAjaxRequest = function(url, parameters, callbackfunc, filetype){ajaxpack2.ajaxobj = createAjaxObj(); if (ajaxpack2.addrandomnumber == 1) {var parameters = parameters + "&ajaxcachebust=" + new Date().getTime();}if (this.ajaxobj){this.filetype = filetype;this.ajaxobj.onreadystatechange = callbackfunc;this.ajaxobj.open('GET', url + "?" + parameters, true);this.ajaxobj.send(null);}};ajaxpack2.postAjaxRequest = function(url, parameters, callbackfunc, filetype){ajaxpack2.ajaxobj = createAjaxObj(); if (this.ajaxobj){this.filetype = filetype;this.ajaxobj.onreadystatechange = callbackfunc;this.ajaxobj.open('POST', url, true);this.ajaxobj.setRequestHeader("Content-type", "application/x-www-form-urlencoded");this.ajaxobj.setRequestHeader("Content-length", parameters.length);this.ajaxobj.setRequestHeader("Connection", "close");this.ajaxobj.send(parameters);}};return ajaxpack2;}dhtmlx=function(obj){for (var a in obj)dhtmlx[a]=obj[a];return dhtmlx;};dhtmlx.extend_api=function(name,map,ext){var t = window[name];if (!t)return;window[name]=function(obj){if (obj && typeof obj == "object" && !obj.tagName){var that = t.apply(this,(map._init?map._init(obj):arguments));for (var a in dhtmlx)if (map[a])this[map[a]](dhtmlx[a]);for (var a in obj){if (map[a])this[map[a]](obj[a]);else if (a.indexOf("on")==0){this.attachEvent(a,obj[a])}}}else{ var that = t.apply(this,arguments);}if (map._patch)map._patch(this);return that||this;};window[name].prototype=t.prototype;if (ext)dhtmlXHeir(window[name].prototype,ext)};dhtmlxAjax={get:function(url,callback){var t=new dtmlXMLLoaderObject(true);t.async=(arguments.length<3);t.waitCall=callback;t.loadXML(url); return t;}, post:function(url,post,callback){var t=new dtmlXMLLoaderObject(true);t.async=(arguments.length<4);t.waitCall=callback;t.loadXML(url,true,post); return t;}, getSync:function(url){return this.get(url,null,true); }, postSync:function(url,post){return this.post(url,post,null,true);}};function dtmlXMLLoaderObject(funcObject, dhtmlObject, async, rSeed){this.xmlDoc="";if (typeof (async)!= "undefined") this.async=async;else this.async=true;this.onloadAction=funcObject||null;this.mainObject=dhtmlObject||null;this.waitCall=null;this.rSeed=rSeed||false;return this;};dtmlXMLLoaderObject.prototype.waitLoadFunction=function(dhtmlObject){var once = true;this.check=function (){if ((dhtmlObject)&&(dhtmlObject.onloadAction != null)){if ((!dhtmlObject.xmlDoc.readyState)||(dhtmlObject.xmlDoc.readyState == 4)){if (!once)return;once=false;if (typeof dhtmlObject.onloadAction == "function")dhtmlObject.onloadAction(dhtmlObject.mainObject, null, null, null, dhtmlObject);if (dhtmlObject.waitCall){dhtmlObject.waitCall.call(this,dhtmlObject);dhtmlObject.waitCall=null}}}};return this.check;};dtmlXMLLoaderObject.prototype.getXMLTopNode=function(tagName, oldObj){if (this.xmlDoc.responseXML){var temp = this.xmlDoc.responseXML.getElementsByTagName(tagName);if(temp.length==0 && tagName.indexOf(":")!=-1) var temp = this.xmlDoc.responseXML.getElementsByTagName((tagName.split(":"))[1]);var z = temp[0]}else var z = this.xmlDoc.documentElement;if (z){this._retry=false;return z;};if ((_isIE)&&(!this._retry)){var xmlString = this.xmlDoc.responseText;var oldObj = this.xmlDoc;this._retry=true;this.xmlDoc=new ActiveXObject("Microsoft.XMLDOM");this.xmlDoc.async=false;this.xmlDoc["loadXM"+"L"](xmlString);return this.getXMLTopNode(tagName, oldObj);};dhtmlxError.throwError("LoadXML", "Incorrect XML", [ (oldObj||this.xmlDoc), this.mainObject ]);return document.createElement("DIV");};dtmlXMLLoaderObject.prototype.loadXMLString=function(xmlString){{ try{var parser = new DOMParser();this.xmlDoc=parser.parseFromString(xmlString, "text/xml")}catch (e){this.xmlDoc=new ActiveXObject("Microsoft.XMLDOM");this.xmlDoc.async=this.async;this.xmlDoc["loadXM"+"L"](xmlString)}};this.onloadAction(this.mainObject, null, null, null, this);if (this.waitCall){this.waitCall();this.waitCall=null}};dtmlXMLLoaderObject.prototype.loadXML=function(filePath, postMode, postVars, rpc){if (this.rSeed)filePath+=((filePath.indexOf("?") != -1) ? "&" : "?")+"a_dhx_rSeed="+(new Date()).valueOf();this.filePath=filePath;if ((!_isIE)&&(window.XMLHttpRequest)) this.xmlDoc=new XMLHttpRequest();else {if (document.implementation&&document.implementation.createDocument){this.xmlDoc=document.implementation.createDocument("", "", null);this.xmlDoc.onload=new this.waitLoadFunction(this);this.xmlDoc.load(filePath);return;} else this.xmlDoc=new ActiveXObject("Microsoft.XMLHTTP")};if (this.async)this.xmlDoc.onreadystatechange=new this.waitLoadFunction(this);this.xmlDoc.open(postMode ? "POST" : "GET", filePath, this.async);if (rpc){this.xmlDoc.setRequestHeader("User-Agent", "dhtmlxRPC v0.1 ("+navigator.userAgent+")");this.xmlDoc.setRequestHeader("Content-type", "text/xml")}else if (postMode)this.xmlDoc.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');this.xmlDoc.setRequestHeader("X-Requested-With","XMLHttpRequest");this.xmlDoc.send(null||postVars);if (!this.async)(new this.waitLoadFunction(this))()};dtmlXMLLoaderObject.prototype.destructor=function(){this.onloadAction=null;this.mainObject=null;this.xmlDoc=null;return null;};dtmlXMLLoaderObject.prototype.xmlNodeToJSON = function(node){var t={};for (var i=0;i<node.attributes.length;i++)t[node.attributes[i].name]=node.attributes[i].value;t["_tagvalue"]=node.firstChild?node.firstChild.nodeValue:"";for (var i=0;i<node.childNodes.length;i++){var name=node.childNodes[i].tagName;if (name){if (!t[name])t[name]=[];t[name].push(this.xmlNodeToJSON(node.childNodes[i]))}};return t;};function callerFunction(funcObject, dhtmlObject){this.handler=function(e){if (!e)e=window.event;funcObject(e, dhtmlObject);return true;};return this.handler;};function getAbsoluteLeft(htmlObject){return getOffset(htmlObject).left;};function getAbsoluteTop(htmlObject){return getOffset(htmlObject).top;};function getOffsetSum(elem) {var top=0, left=0;while(elem){top = top + parseInt(elem.offsetTop);left = left + parseInt(elem.offsetLeft);elem = elem.offsetParent};return {top: top, left: left};};function getOffsetRect(elem) {var box = elem.getBoundingClientRect();var body = document.body;var docElem = document.documentElement;var scrollTop = window.pageYOffset || docElem.scrollTop || body.scrollTop;var scrollLeft = window.pageXOffset || docElem.scrollLeft || body.scrollLeft;var clientTop = docElem.clientTop || body.clientTop || 0;var clientLeft = docElem.clientLeft || body.clientLeft || 0;var top = box.top + scrollTop - clientTop;var left = box.left + scrollLeft - clientLeft;return {top: Math.round(top), left: Math.round(left) };};function getOffset(elem) {if (elem.getBoundingClientRect && !_isChrome){return getOffsetRect(elem);}else {return getOffsetSum(elem);}};function convertStringToBoolean(inputString){if (typeof (inputString)== "string") inputString=inputString.toLowerCase();switch (inputString){case "1": case "true": case "yes": case "y": case 1: case true: return true;break;default: return false;}};function getUrlSymbol(str){if (str.indexOf("?")!= -1) return "&"; else{ return "?";}};function dhtmlDragAndDropObject(){if (window.dhtmlDragAndDrop)return window.dhtmlDragAndDrop;this.lastLanding=0;this.dragNode=0;this.dragStartNode=0;this.dragStartObject=0;this.tempDOMU=null;this.tempDOMM=null;this.waitDrag=0;window.dhtmlDragAndDrop=this;return this;};dhtmlDragAndDropObject.prototype.removeDraggableItem=function(htmlNode){htmlNode.onmousedown=null;htmlNode.dragStarter=null;htmlNode.dragLanding=null};dhtmlDragAndDropObject.prototype.addDraggableItem=function(htmlNode, dhtmlObject){htmlNode.onmousedown=this.preCreateDragCopy;htmlNode.dragStarter=dhtmlObject;this.addDragLanding(htmlNode, dhtmlObject)};dhtmlDragAndDropObject.prototype.addDragLanding=function(htmlNode, dhtmlObject){htmlNode.dragLanding=dhtmlObject};dhtmlDragAndDropObject.prototype.preCreateDragCopy=function(e){if ((e||event)&& (e||event).button == 2) return;if (window.dhtmlDragAndDrop.waitDrag){window.dhtmlDragAndDrop.waitDrag=0;document.body.onmouseup=window.dhtmlDragAndDrop.tempDOMU;document.body.onmousemove=window.dhtmlDragAndDrop.tempDOMM;return false;};window.dhtmlDragAndDrop.waitDrag=1;window.dhtmlDragAndDrop.tempDOMU=document.body.onmouseup;window.dhtmlDragAndDrop.tempDOMM=document.body.onmousemove;window.dhtmlDragAndDrop.dragStartNode=this;window.dhtmlDragAndDrop.dragStartObject=this.dragStarter;document.body.onmouseup=window.dhtmlDragAndDrop.preCreateDragCopy;document.body.onmousemove=window.dhtmlDragAndDrop.callDrag;if ((e)&&(e.preventDefault)){e.preventDefault();return false;};return false;};dhtmlDragAndDropObject.prototype.callDrag=function(e){if (!e)e=window.event;dragger=window.dhtmlDragAndDrop;if ((e.button == 0)&&(_isIE)) return dragger.stopDrag();if (!dragger.dragNode&&dragger.waitDrag){dragger.dragNode=dragger.dragStartObject._createDragNode(dragger.dragStartNode, e);if (!dragger.dragNode)return dragger.stopDrag();dragger.dragNode.onselectstart=function(){return false;};dragger.gldragNode=dragger.dragNode;document.body.appendChild(dragger.dragNode);document.body.onmouseup=dragger.stopDrag;dragger.waitDrag=0;dragger.dragNode.pWindow=window;dragger.initFrameRoute()};if (dragger.dragNode.parentNode != window.document.body){var grd = dragger.gldragNode;if (dragger.gldragNode.old)grd=dragger.gldragNode.old;grd.parentNode.removeChild(grd);var oldBody = dragger.dragNode.pWindow;if (_isIE){var div = document.createElement("Div");div.innerHTML=dragger.dragNode.outerHTML;dragger.dragNode=div.childNodes[0]} else dragger.dragNode=dragger.dragNode.cloneNode(true);dragger.dragNode.pWindow=window;dragger.gldragNode.old=dragger.dragNode;document.body.appendChild(dragger.dragNode);oldBody.dhtmlDragAndDrop.dragNode=dragger.dragNode};dragger.dragNode.style.left=e.clientX+15+(dragger.fx ? dragger.fx*(-1) : 0) +(document.body.scrollLeft||document.documentElement.scrollLeft)+"px";dragger.dragNode.style.top=e.clientY+3+(dragger.fy ? dragger.fy*(-1) : 0) +(document.body.scrollTop||document.documentElement.scrollTop)+"px";if (!e.srcElement)var z = e.target; else z=e.srcElement;dragger.checkLanding(z, e)};dhtmlDragAndDropObject.prototype.calculateFramePosition=function(n){if (window.name){var el = parent.frames[window.name].frameElement.offsetParent;var fx = 0;var fy = 0;while (el){fx+=el.offsetLeft;fy+=el.offsetTop;el=el.offsetParent};if ((parent.dhtmlDragAndDrop)){var ls = parent.dhtmlDragAndDrop.calculateFramePosition(1);fx+=ls.split('_')[0]*1;fy+=ls.split('_')[1]*1};if (n)return fx+"_"+fy; else this.fx=fx;this.fy=fy};return "0_0";};dhtmlDragAndDropObject.prototype.checkLanding=function(htmlObject, e){if ((htmlObject)&&(htmlObject.dragLanding)){if (this.lastLanding)this.lastLanding.dragLanding._dragOut(this.lastLanding);this.lastLanding=htmlObject;this.lastLanding=this.lastLanding.dragLanding._dragIn(this.lastLanding, this.dragStartNode, e.clientX, e.clientY, e);this.lastLanding_scr=(_isIE ? e.srcElement : e.target)}else {if ((htmlObject)&&(htmlObject.tagName != "BODY")) this.checkLanding(htmlObject.parentNode, e);else {if (this.lastLanding)this.lastLanding.dragLanding._dragOut(this.lastLanding, e.clientX, e.clientY, e);this.lastLanding=0;if (this._onNotFound)this._onNotFound()}}};dhtmlDragAndDropObject.prototype.stopDrag=function(e, mode){dragger=window.dhtmlDragAndDrop;if (!mode){dragger.stopFrameRoute();var temp = dragger.lastLanding;dragger.lastLanding=null;if (temp)temp.dragLanding._drag(dragger.dragStartNode, dragger.dragStartObject, temp, (_isIE ? event.srcElement : e.target))};dragger.lastLanding=null;if ((dragger.dragNode)&&(dragger.dragNode.parentNode == document.body)) dragger.dragNode.parentNode.removeChild(dragger.dragNode);dragger.dragNode=0;dragger.gldragNode=0;dragger.fx=0;dragger.fy=0;dragger.dragStartNode=0;dragger.dragStartObject=0;document.body.onmouseup=dragger.tempDOMU;document.body.onmousemove=dragger.tempDOMM;dragger.tempDOMU=null;dragger.tempDOMM=null;dragger.waitDrag=0};dhtmlDragAndDropObject.prototype.stopFrameRoute=function(win){if (win)window.dhtmlDragAndDrop.stopDrag(1, 1);for (var i = 0;i < window.frames.length;i++){try{if ((window.frames[i] != win)&&(window.frames[i].dhtmlDragAndDrop)) window.frames[i].dhtmlDragAndDrop.stopFrameRoute(window)}catch(e){}};try{if ((parent.dhtmlDragAndDrop)&&(parent != window)&&(parent != win)) parent.dhtmlDragAndDrop.stopFrameRoute(window)}catch(e){}};dhtmlDragAndDropObject.prototype.initFrameRoute=function(win, mode){if (win){window.dhtmlDragAndDrop.preCreateDragCopy();window.dhtmlDragAndDrop.dragStartNode=win.dhtmlDragAndDrop.dragStartNode;window.dhtmlDragAndDrop.dragStartObject=win.dhtmlDragAndDrop.dragStartObject;window.dhtmlDragAndDrop.dragNode=win.dhtmlDragAndDrop.dragNode;window.dhtmlDragAndDrop.gldragNode=win.dhtmlDragAndDrop.dragNode;window.document.body.onmouseup=window.dhtmlDragAndDrop.stopDrag;window.waitDrag=0;if (((!_isIE)&&(mode))&&((!_isFF)||(_FFrv < 1.8))) window.dhtmlDragAndDrop.calculateFramePosition()};try{if ((parent.dhtmlDragAndDrop)&&(parent != window)&&(parent != win)) parent.dhtmlDragAndDrop.initFrameRoute(window)}catch(e){};for (var i = 0;i < window.frames.length;i++){try{if ((window.frames[i] != win)&&(window.frames[i].dhtmlDragAndDrop)) window.frames[i].dhtmlDragAndDrop.initFrameRoute(window, ((!win||mode) ? 1 : 0))}catch(e){}}};var _isFF = false;var _isIE = false;var _isOpera = false;var _isKHTML = false;var _isMacOS = false;var _isChrome = false;if (navigator.userAgent.indexOf('Macintosh')!= -1) _isMacOS=true;if (navigator.userAgent.toLowerCase().indexOf('chrome')>-1) _isChrome=true;if ((navigator.userAgent.indexOf('Safari')!= -1)||(navigator.userAgent.indexOf('Konqueror') != -1)){var _KHTMLrv = parseFloat(navigator.userAgent.substr(navigator.userAgent.indexOf('Safari')+7, 5));if (_KHTMLrv > 525){_isFF=true;var _FFrv = 1.9} else _isKHTML=true}else if (navigator.userAgent.indexOf('Opera')!= -1){_isOpera=true;_OperaRv=parseFloat(navigator.userAgent.substr(navigator.userAgent.indexOf('Opera')+6, 3))}else if (navigator.appName.indexOf("Microsoft")!= -1){_isIE=true;if (navigator.appVersion.indexOf("MSIE 8.0")!= -1 && document.compatMode != "BackCompat") _isIE=8}else {_isFF=true;var _FFrv = parseFloat(navigator.userAgent.split("rv:")[1])};dtmlXMLLoaderObject.prototype.doXPath=function(xpathExp, docObj, namespace, result_type){if (_isKHTML || (!_isIE && !window.XPathResult)) return this.doXPathOpera(xpathExp, docObj);if (_isIE){if (!docObj)if (!this.xmlDoc.nodeName)docObj=this.xmlDoc.responseXML; else docObj=this.xmlDoc;if (!docObj)dhtmlxError.throwError("LoadXML", "Incorrect XML", [ (docObj||this.xmlDoc), this.mainObject ]);if (namespace != null)docObj.setProperty("SelectionNamespaces", "xmlns:xsl='"+namespace+"'");if (result_type == 'single'){return docObj.selectSingleNode(xpathExp);}else {return docObj.selectNodes(xpathExp)||new Array(0);}}else {var nodeObj = docObj;if (!docObj){if (!this.xmlDoc.nodeName){docObj=this.xmlDoc.responseXML; }else {docObj=this.xmlDoc}};if (!docObj)dhtmlxError.throwError("LoadXML", "Incorrect XML", [ (docObj||this.xmlDoc), this.mainObject ]);if (docObj.nodeName.indexOf("document")!= -1){nodeObj=docObj}else {nodeObj=docObj;docObj=docObj.ownerDocument};var retType = XPathResult.ANY_TYPE;if (result_type == 'single')retType=XPathResult.FIRST_ORDERED_NODE_TYPE; var rowsCol = new Array();var col = docObj.evaluate(xpathExp, nodeObj, function(pref){return namespace; }, retType, null);if (retType == XPathResult.FIRST_ORDERED_NODE_TYPE){return col.singleNodeValue;};var thisColMemb = col.iterateNext();while (thisColMemb){rowsCol[rowsCol.length]=thisColMemb;thisColMemb=col.iterateNext()};return rowsCol;}};function _dhtmlxError(type, name, params){if (!this.catches)this.catches=new Array();return this;};_dhtmlxError.prototype.catchError=function(type, func_name){this.catches[type]=func_name};_dhtmlxError.prototype.throwError=function(type, name, params){if (this.catches[type])return this.catches[type](type, name, params);if (this.catches["ALL"])return this.catches["ALL"](type, name, params);alert("Error type: "+arguments[0]+"\nDescription: "+arguments[1]);return null;};window.dhtmlxError=new _dhtmlxError();dtmlXMLLoaderObject.prototype.doXPathOpera=function(xpathExp, docObj){var z = xpathExp.replace(/[\/]+/gi, "/").split('/');var obj = null;var i = 1;if (!z.length)return [];if (z[0] == ".")obj=[docObj];else if (z[0] == ""){obj=(this.xmlDoc.responseXML||this.xmlDoc).getElementsByTagName(z[i].replace(/\[[^\]]*\]/g, ""));i++} else return [];for (i;i < z.length;i++)obj=this._getAllNamedChilds(obj, z[i]);if (z[i-1].indexOf("[")!= -1) obj=this._filterXPath(obj, z[i-1]);return obj;};dtmlXMLLoaderObject.prototype._filterXPath=function(a, b){var c = new Array();var b = b.replace(/[^\[]*\[\@/g, "").replace(/[\[\]\@]*/g, "");for (var i = 0;i < a.length;i++)if (a[i].getAttribute(b)) c[c.length]=a[i];return c;};dtmlXMLLoaderObject.prototype._getAllNamedChilds=function(a, b){var c = new Array();if (_isKHTML)b=b.toUpperCase();for (var i = 0;i < a.length;i++)for (var j = 0;j < a[i].childNodes.length;j++){if (_isKHTML){if (a[i].childNodes[j].tagName&&a[i].childNodes[j].tagName.toUpperCase()== b) c[c.length]=a[i].childNodes[j]}else if (a[i].childNodes[j].tagName == b)c[c.length]=a[i].childNodes[j]};return c;};function dhtmlXHeir(a, b){for (var c in b)if (typeof (b[c])== "function") a[c]=b[c];return a;};function dhtmlxEvent(el, event, handler){if (el.addEventListener)el.addEventListener(event, handler, false);else if (el.attachEvent)el.attachEvent("on"+event, handler)};dtmlXMLLoaderObject.prototype.xslDoc=null;dtmlXMLLoaderObject.prototype.setXSLParamValue=function(paramName, paramValue, xslDoc){if (!xslDoc)xslDoc=this.xslDoc; if (xslDoc.responseXML)xslDoc=xslDoc.responseXML;var item = this.doXPath("/xsl:stylesheet/xsl:variable[@name='"+paramName+"']", xslDoc, "http:/\/www.w3.org/1999/XSL/Transform", "single");if (item != null)item.firstChild.nodeValue=paramValue;};dtmlXMLLoaderObject.prototype.doXSLTransToObject=function(xslDoc, xmlDoc){if (!xslDoc)xslDoc=this.xslDoc;if (xslDoc.responseXML)xslDoc=xslDoc.responseXML; if (!xmlDoc)xmlDoc=this.xmlDoc;if (xmlDoc.responseXML)xmlDoc=xmlDoc.responseXML; if (!_isIE){if (!this.XSLProcessor){this.XSLProcessor=new XSLTProcessor();this.XSLProcessor.importStylesheet(xslDoc)};var result = this.XSLProcessor.transformToDocument(xmlDoc)}else {var result = new ActiveXObject("Msxml2.DOMDocument.3.0");try{xmlDoc.transformNodeToObject(xslDoc, result)}catch(e){result = xmlDoc.transformNode(xslDoc)}};return result;};dtmlXMLLoaderObject.prototype.doXSLTransToString=function(xslDoc, xmlDoc){var res = this.doXSLTransToObject(xslDoc, xmlDoc);if(typeof(res)=="string") return res;return this.doSerialization(res);};dtmlXMLLoaderObject.prototype.doSerialization=function(xmlDoc){if (!xmlDoc)xmlDoc=this.xmlDoc;if (xmlDoc.responseXML)xmlDoc=xmlDoc.responseXML; if (!_isIE){var xmlSerializer = new XMLSerializer();return xmlSerializer.serializeToString(xmlDoc);} else return xmlDoc.xml;};dhtmlxEventable=function(obj){obj.dhx_SeverCatcherPath="";obj.attachEvent=function(name, catcher, callObj){name='ev_'+name.toLowerCase();if (!this[name])this[name]=new this.eventCatcher(callObj||this);return(name+':'+this[name].addEvent(catcher));};obj.callEvent=function(name, arg0){name='ev_'+name.toLowerCase();if (this[name])return this[name].apply(this, arg0);return true;};obj.checkEvent=function(name){return (!!this['ev_'+name.toLowerCase()]); };obj.eventCatcher=function(obj){var dhx_catch = [];var z = function(){var res = true;for (var i = 0;i < dhx_catch.length;i++){if (dhx_catch[i] != null){var zr = dhx_catch[i].apply(obj, arguments);res=res&&zr}};return res;};z.addEvent=function(ev){if (typeof (ev)!= "function") ev=eval(ev);if (ev)return dhx_catch.push(ev)-1;return false;};z.removeEvent=function(id){dhx_catch[id]=null};return z;};obj.detachEvent=function(id){if (id != false){var list = id.split(':');this[list[0]].removeEvent(list[1])}}};function dhtmlxSlider(parentNod,size,skin,vertical,min,max,value,step){if (_isIE)try {document.execCommand("BackgroundImageCache", false, true)}catch (e){};if (!parentNod){var z="slider_div_"+(new Date()).valueOf()+Math.random(1000);var parentNod = document.createElement ("div");parentNod.setAttribute ("id", z);var child = document.body.lastChild;while (child.lastChild && child.lastChild.nodeType == 1)child=child.lastChild;child.parentNode.insertBefore(parentNod,child)}else if (typeof(parentNod)!="object") parentNod=document.getElementById(parentNod);if (typeof(size)=="object"){skin=size.skin;min=size.min;max=size.max;this.max=max; step=size.step; vertical=size.vertical; this.update_title = true;if (typeof size.update_title != "undefined"){ this.update_title = size.update_title;} if (size.con_id){ this.con_id = size.con_id;} value=size.value;size=size.size};this.size = size;this.value = value || 0;this.vMode=vertical||false;this.skin = dhtmlx.skin || skin || "default";this.parent = parentNod;this.isInit = false;this.disabled = false;this.value = value || min || 0;this.inputPriority = true;this.stepping = false;this.imgURL = window.dhx_globalImgPath||dhtmlx.image_path||"";this._skinsImgs =  {"default": {bg:1,ls:1,rs:1}, ball: {ls:1,lz:1,rz:1,rs:1}, zipper: {bg:1,lz:1,rz:1}, arrow: {bg:1,ls:1,rs:1}, arrowgreen: {bg:1,ls:1,rs:1}, simplesilver:{lz:1,ls:1,rs:1,rz:1}, simplegray: {lz:1,ls:1,rs:1,rz:1}, bar: {bg:1,ls:1,rs:1}};this._def = [min,max,step,value,size];dhtmlxEventable(this);return this;};dhtmlxSlider.prototype.createStructure = function(){if (this.con){this.con.parentNode.removeChild(this.con);this.con = null};if (this.vMode){this._sW="height";this._sH="width";this._sL="top";this._sT="left";var skinImgPath = this.imgURL+"skins/"+this.skin+"/vertical/"}else {this._sW="width";this._sH="height";this._sL="left";this._sT="top";var skinImgPath = this.imgURL+"skins/"+this.skin+"/"};this.con=document.createElement("DIV");this.con.onselectstart=function(){return false;};this.con._etype="slider";if (this.con_id) { this.con.id = this.con_id; } else { this.con.id = "_dhtmlxSlider_div" + new Date().getTime(); } this.con.className = "dhtmlxSlider" + (this.skin!='default'?"_"+this.skin:""); this.drag=document.createElement("DIV");this.drag._etype="drag";this.drag.className = "selector";this.drag.style.backgroundImage = "url("+skinImgPath+"selector.png)";var leftSide = document.createElement("DIV");leftSide.className = "leftSide";if (this._skinsImgs[this.skin]['ls'])leftSide.style.background = "url("+skinImgPath+"leftside_bg.gif)";this.leftZone = document.createElement("DIV");this.leftZone.className = "leftZone";if (this._skinsImgs[this.skin]['lz'])this.leftZone.style.background = "url("+skinImgPath+"leftzone_bg.gif)";this.leftZone.style.width = this.value + 'px';var rightSide = document.createElement("DIV");rightSide.className = "rightSide";if (this._skinsImgs[this.skin]['rs'])rightSide.style.background = "url("+skinImgPath+"rightside_bg.gif)";this.rightZone = document.createElement("DIV");this.rightZone.className = "rightZone";if (this._skinsImgs[this.skin]['rz'])this.rightZone.style.background = "url("+skinImgPath+"rightzone_bg.gif)";this.con.appendChild(leftSide);this.con.appendChild(this.leftZone);this.con.appendChild(this.rightZone);this.con.appendChild(rightSide);this.con.appendChild(this.drag);this.parent.appendChild(this.con);if (!this.parent.parentNode || !this.parent.parentNode.tagName)document.body.appendChild(this.parent);if (this.vMode){this._sW="height";this._sH="width";this._sL="top";this._sT="left";this.con.style.width = this.con.offsetHeight + 'px';for (var i=0;i<this.con.childNodes.length;i++){this.con.childNodes[i].style.fontSize = "0";var tmp = this.con.childNodes[i].offsetWidth;this.con.childNodes[i].style.width = this.con.childNodes[i].offsetHeight + 'px';this.con.childNodes[i].style.height = tmp + 'px';tmp = this.con.childNodes[i].offsetLeft;this.con.childNodes[i].style.left = this.con.childNodes[i].offsetTop + 'px';this.con.childNodes[i].style.top = tmp + 'px'};rightSide.style.top = this.size - rightSide.offsetHeight + 'px';this.zoneSize = this.size - rightSide.offsetHeight;this.dragLeft = this.drag.offsetTop;this.dragWidth = this.drag.offsetHeight;this.rightZone.style.height = this.zoneSize + 'px'}else {this.zoneSize = this.size - rightSide.offsetWidth;this.dragLeft = this.drag.offsetLeft;this.dragWidth = this.drag.offsetWidth;this.rightZone.style.width = this.zoneSize + 'px'};this.con.style[this._sW] = this.size+"px";this.con.onmousedown=this._onMouseDown;this.con.onmouseup = this.con.onmouseout = function () {clearInterval (this.that._int)};this.con.that = this;this._aCalc(this._def)};dhtmlxSlider.prototype._aCalc=function(def){if (!this.isInit)return;this.shift=def[0]||0;this.limit=(def[1]||100)-this.shift;this._mod=(def[4]-this.dragLeft*2-this.dragWidth)/this.limit;this._step=(def[2]||1);this.step=this._step*this._mod;this._xlimit=def[4]-this.dragLeft*2-this.dragWidth;if (!this.posX)this.posX=this._xlimit*((def[3]||0)-this.shift)/this.limit;this._applyPos(true);return this;};dhtmlxSlider.prototype.setMin=function(val){this._def[0] = val;this._aCalc(this._def)};dhtmlxSlider.prototype.setMax=function(val){this._def[1] = val;this._aCalc(this._def);this.max=this._def[1];};dhtmlxSlider.prototype.setStep=function(val){this._def[2] = val;this._aCalc(this._def)};dhtmlxSlider.prototype._applyPos=function(skip){if (!this.isInit)return;if (this.step!=1)this.posX=Math.round(this.posX/this.step)*this.step;if (this.posX<0)this.posX=0;if (this.value < (this._def[0] || 0)) this.value = this._def[0] || 0;if (this.value < this._def[3])this.value = this._def[3];if (this.value > this._def[1])this.value = this._def[1];if (this.posX>this._xlimit)this.posX=this._xlimit;var a_old=this.drag.style[this._sL];this.drag.style[this._sL]=this.posX+this.dragLeft*1+"px";this.leftZone.style[this._sW]=this.posX+this.dragLeft*1+5+"px";this.rightZone.style[this._sL]=this.posX+this.dragLeft*1+1+10+"px";this.rightZone.style[this._sW]=this.zoneSize-(this.posX+this.dragLeft*1)+"px";var nw=this.getValue();if (this._link){if (this._linkBoth)this._link.value=nw; else this._link.innerHTML=nw};if (!skip&&a_old!=this.drag.style[this._sL])this.callEvent("onChange",[nw,this]);this.value = this.getValue ();if(!this._dttp)this._setTooltip(nw)};dhtmlxSlider.prototype._setTooltip=function(nw){if (this.update_title) {this.con.title=nw;}};dhtmlxSlider.prototype.setSkin=function(skin) {this.skin = skin||"default";if (this.isInit)this.createStructure()};dhtmlxSlider.prototype.startDrag = function(e) {if (this._busy)return;if ((e.button === 0)|| (e.button === 1)) {this.drag_mx = e.clientX;this.drag_my = e.clientY;this.drag_cx = this.posX;this.d_b_move = document.body.onmousemove;this.d_b_up = document.body.onmouseup;var _c=this;document.body.onmouseup = function(e){_c.stopDrag(e||event);_c=null};document.body.onmousemove = function (e) {_c.onDrag(e||event)};this._busy=true}};dhtmlxSlider.prototype.onDrag = function(e) {if (this._busy){if (!this.vMode)this.posX = this.drag_cx + e.clientX - this.drag_mx; else this.posX = this.drag_cx + e.clientY - this.drag_my;this._applyPos()}};dhtmlxSlider.prototype.stopDrag = function(e) {document.body.onmousemove = this.d_b_move?this.d_b_move:null;document.body.onmouseup = this.d_b_up?this.d_b_up:null;this.d_b_move=this.d_b_up=null;this._busy=false;this.callEvent("onSlideEnd",[this.getValue()]);};dhtmlxSlider.prototype.getValue=function(){if ((!this._busy)&& (this.inputPriority)) return (Math.round (this.value / this._step) * this._step).toFixed(6)-0;return Math.round((Math.round((this.posX/this._mod)/this._step)*this._step+this.shift*1)*10000)/10000;};dhtmlxSlider.prototype.setValue=function(val, skip){this.value = val;this.posX=(Math.round(((val||0)-this.shift)*this._mod)); this._applyPos(skip==null?true:skip)};dhtmlxSlider.prototype._getActionElement=function(nod){if (nod._etype)return nod;if (nod.parentNode)return this._getActionElement(nod.parentNode);return null;};dhtmlxSlider.prototype._onMouseDown=function(e){if(this.that.disabled)return;e=e||event;var that=this.that;var nod=that._getActionElement(_isIE?e.srcElement:e.target);switch (nod._etype){case "slider": if (that.vMode)var z=e.clientY-(getAbsoluteTop(that.con)-document.body.scrollTop); else var z=e.clientX-(getAbsoluteLeft(that.con)-document.body.scrollLeft);var posX = that.posX;that.posX = z-that.dragLeft-that.dragWidth/2;that.direction = that.posX > posX ? 1 : -1;if (that.stepping){clearInterval (that._int);that.setValue (that.value + that._step * that.direction, false);that._int = setInterval (function () {that.setValue (that.value + that._step * that.direction, false)}, 600)} else {that._busy=true;that._applyPos();that._busy = false};break;case "drag": that.startDrag(e||event);break};return false;};dhtmlxSlider.prototype.setOnChangeHandler=function(func){this.attachEvent("onChange",func)};dhtmlxSlider.prototype._linkFrom=function(){if(this.disabled)return;this.setValue (parseFloat (this._link.value), false)};dhtmlxSlider.prototype.linkTo=function(obj){obj = (typeof(obj) != "object") ? document.getElementById(obj) : obj;this._link = obj;var name=obj.tagName.toString().toLowerCase();this._linkBoth=(((name=="input")||(name=="select")||(name=="textarea"))?1:0);if (this._linkBoth){var self=this;var f=function(){if (this._nextSlider)window.clearTimeout(this._nextSlider);this._nextSlider=window.setTimeout(function(){self._linkFrom()},500)};obj.onblur=obj.onkeypress=obj.onchange=f};this._applyPos()};dhtmlxSlider.prototype.enableTooltip=function(mode){this._dttp=(!convertStringToBoolean(mode));this._setTooltip(this._dttp?"":this.getValue())};dhtmlxSlider.prototype.setImagePath = function(path){this.imgURL = path};dhtmlxSlider.prototype.init = function() {this.isInit = true;this.createStructure()};dhtmlxSlider.prototype.setInputPriority = function (mode) {this.inputPriority = mode};dhtmlxSlider.prototype.setSteppingMode = function (mode) {this.stepping = mode};dhtmlxSlider.prototype.disable = function (mode) {this.disabled = mode};(function(){dhtmlx.extend_api("dhtmlxSlider",{_init:function(obj){return [ obj.parent, obj.size, obj.skin, obj.vertical, obj.min, obj.max, obj.value, obj.step ];}, link:"linkTo" },{})})();dhtmlx.skin='default';  if (typeof dd_domreadycheck=="undefined") var dd_domreadycheck=false;var anylinkmenu={menusmap: {},preloadimages: [],effects: {delayhide: 200, shadow:{enabled:true, opacity:0.3, depth: [3, 3]}, fade:{enabled:false, duration:500}}, dimensions: {},getoffset:function(what, offsettype){return (what.offsetParent)? what[offsettype]+this.getoffset(what.offsetParent, offsettype) : what[offsettype];},getoffsetof:function(el){el._offsets={left:this.getoffset(el, "offsetLeft"), top:this.getoffset(el, "offsetTop"), h: el.offsetHeight};},getdimensions:function(menu){this.dimensions={anchorw:menu.anchorobj.offsetWidth, anchorh:menu.anchorobj.offsetHeight,docwidth:(window.innerWidth ||this.standardbody.clientWidth)-20,docheight:(window.innerHeight ||this.standardbody.clientHeight)-15,docscrollx:window.pageXOffset || this.standardbody.scrollLeft,docscrolly:window.pageYOffset || this.standardbody.scrollTop};if (!this.dimensions.dropmenuw){this.dimensions.dropmenuw=menu.dropmenu.offsetWidth;this.dimensions.dropmenuh=menu.dropmenu.offsetHeight;}},isContained:function(m, e){var e=window.event || e;var c=e.relatedTarget || ((e.type=="mouseover")? e.fromElement : e.toElement);while (c && c!=m){try {c=c.parentNode;} catch(e){c=m;}}if (c==m) return true;else return false;},setopacity:function(el, value){el.style.opacity=value;if (typeof el.style.opacity!="string"){ el.style.MozOpacity=value;if (el.filters){el.style.filter="progid:DXImageTransform.Microsoft.alpha(opacity="+ value*100 +")";}}},showmenu:function(menuid){var menu=anylinkmenu.menusmap[menuid];clearTimeout(menu.hidetimer);this.getoffsetof(menu.anchorobj);this.getdimensions(menu);var posx=menu.anchorobj._offsets.left + (menu.orientation=="lr"? this.dimensions.anchorw : 0); var posy=menu.anchorobj._offsets.top+this.dimensions.anchorh - (menu.orientation=="lr"? this.dimensions.anchorh : 0);if (posx+this.dimensions.dropmenuw+this.effects.shadow.depth[0]>this.dimensions.docscrollx+this.dimensions.docwidth){ posx=posx-this.dimensions.dropmenuw + (menu.orientation=="lr"? -this.dimensions.anchorw : this.dimensions.anchorw);}if (posy+this.dimensions.dropmenuh>this.dimensions.docscrolly+this.dimensions.docheight){  posy=Math.max(posy-this.dimensions.dropmenuh - (menu.orientation=="lr"? -this.dimensions.anchorh : this.dimensions.anchorh), this.dimensions.docscrolly); }if (this.effects.fade.enabled){this.setopacity(menu.dropmenu, 0); if (this.effects.shadow.enabled)this.setopacity(menu.shadow, 0); }menu.dropmenu.setcss({left:posx+'px', top:posy+'px', visibility:'visible'});if (this.effects.shadow.enabled){menu.shadow.setcss({left:posx+anylinkmenu.effects.shadow.depth[0]+'px', top:posy+anylinkmenu.effects.shadow.depth[1]+'px', visibility:'visible'});}if (this.effects.fade.enabled){clearInterval(menu.animatetimer);menu.curanimatedegree=0;menu.starttime=new Date().getTime(); menu.animatetimer=setInterval(function(){anylinkmenu.revealmenu(menuid);}, 20);}},revealmenu:function(menuid){var menu=anylinkmenu.menusmap[menuid];var elapsed=new Date().getTime()-menu.starttime; if (elapsed<this.effects.fade.duration){this.setopacity(menu.dropmenu, menu.curanimatedegree);if (this.effects.shadow.enabled)this.setopacity(menu.shadow, menu.curanimatedegree*this.effects.shadow.opacity);}else{clearInterval(menu.animatetimer);this.setopacity(menu.dropmenu, 1);menu.dropmenu.style.filter="";}menu.curanimatedegree=(1-Math.cos((elapsed/this.effects.fade.duration)*Math.PI)) / 2;},setcss:function(param){for (prop in param){this.style[prop]=param[prop];}},setcssclass:function(el, targetclass, action){var needle=new RegExp("(^|\\s+)"+targetclass+"($|\\s+)", "ig");if (action=="check")return needle.test(el.className);else if (action=="remove")el.className=el.className.replace(needle, "");else if (action=="add" && !needle.test(el.className))el.className+=" "+targetclass;},hidemenu:function(menuid){var menu=anylinkmenu.menusmap[menuid];clearInterval(menu.animatetimer);menu.dropmenu.setcss({visibility:'hidden', left:0, top:0});menu.shadow.setcss({visibility:'hidden', left:0, top:0});},getElementsByClass:function(targetclass){if (document.querySelectorAll)return document.querySelectorAll("."+targetclass);else{var classnameRE=new RegExp("(^|\\s+)"+targetclass+"($|\\s+)", "i"); var pieces=[];var alltags=document.all? document.all : document.getElementsByTagName("*");for (var i=0; i<alltags.length; i++){if (typeof alltags[i].className=="string" && alltags[i].className.search(classnameRE)!=-1)pieces[pieces.length]=alltags[i];}return pieces;}},addDiv:function(divid, divclass, inlinestyle){var el=document.createElement("div");if (divid)el.id=divid;el.className=divclass;if (inlinestyle!="" && typeof el.style.cssText=="string")el.style.cssText=inlinestyle;else if (inlinestyle!="")el.setAttribute('style', inlinestyle);document.body.appendChild(el);return el;},getmenuHTML:function(menuobj){var menucontent=[];var frag="";for (var i=0; i<menuobj.items.length; i++){if (menuobj.items[i][1] == ""){frag+='<li class="menu-titulo">' + menuobj.items[i][0] + '</li>\n';}else{frag+='<li><a href="' + menuobj.items[i][1] + '" target="' + menuobj.linktarget + '">' + menuobj.items[i][0] + '</a></li>\n';}if (menuobj.items[i][2]=="efc" || i==menuobj.items.length-1){menucontent.push(frag);frag="";}}if (typeof menuobj.cols=="undefined")return '<ul>\n' + menucontent.join('') + '\n</ul>';else{frag="";for (var i=0; i<menucontent.length; i++){frag+='<div class="' + menuobj.cols.divclass + '" style="' + menuobj.cols.inlinestyle + '">\n<ul>\n' + menucontent[i] + '</ul>\n</div>\n';}return frag;}},addEvent:function(targetarr, functionref, tasktype){if (targetarr.length>0){var target=targetarr.shift();if (target.addEventListener)target.addEventListener(tasktype, functionref, false);else if (target.attachEvent)target.attachEvent('on'+tasktype, function(){return functionref.call(target, window.event)});this.addEvent(targetarr, functionref, tasktype);}},domready:function(functionref){ if (dd_domreadycheck){functionref();return;}if (document.addEventListener) {document.addEventListener("DOMContentLoaded", function(){document.removeEventListener("DOMContentLoaded", arguments.callee, false );functionref();dd_domreadycheck=true;}, false );}else if (document.attachEvent){if ( document.documentElement.doScroll && window == window.top) (function(){if (dd_domreadycheck) return;try{document.documentElement.doScroll("left");}catch(error){setTimeout( arguments.callee, 0);return;}functionref();dd_domreadycheck=true;})();}if (document.attachEvent && parent.length>0) this.addEvent(window, function(){functionref()}, "load");},addState:function(anchorobj, state){if (anchorobj.getAttribute('data-image')){var imgobj=(anchorobj.tagName=="IMG")? anchorobj : anchorobj.getElementsByTagName('img')[0];if (imgobj){imgobj.src=(state=="add")? anchorobj.getAttribute('data-overimage') : anchorobj.getAttribute('data-image');}}else anylinkmenu.setcssclass(anchorobj, "selectedanchor", state);},addState:function(anchorobj, state){if (anchorobj.getAttribute('data-image')){var imgobj=(anchorobj.tagName=="IMG")? anchorobj : anchorobj.getElementsByTagName('img')[0];if (imgobj){imgobj.src=(state=="add")? anchorobj.getAttribute('data-overimage') : anchorobj.getAttribute('data-image');}}else anylinkmenu.setcssclass(anchorobj, "selectedanchor", state);},setupmenu:function(targetclass, anchorobj, pos){this.standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body;var relattr=anchorobj.getAttribute("rel");dropmenuid=relattr.replace(/\[(\w+)\]/, '');var dropmenuvar=window[dropmenuid];var dropmenu=this.addDiv(null, dropmenuvar.divclass, dropmenuvar.inlinestyle); dropmenu.innerHTML=this.getmenuHTML(dropmenuvar);var menu=this.menusmap[targetclass+pos]={id: targetclass+pos,anchorobj: anchorobj,dropmenu: dropmenu,revealtype: (relattr.length!=dropmenuid.length && RegExp.$1=="click")? "click" : "mouseover",orientation: anchorobj.getAttribute("rev")=="lr"? "lr" : "ud",shadow: this.addDiv(null, "anylinkshadow", null) };menu.anchorobj._internalID=targetclass+pos;menu.anchorobj._isanchor=true;menu.dropmenu._internalID=targetclass+pos;menu.shadow._internalID=targetclass+pos;menu.dropmenu.setcss=this.setcss;menu.shadow.setcss=this.setcss;menu.shadow.setcss({width: menu.dropmenu.offsetWidth+"px", height:menu.dropmenu.offsetHeight+"px"});this.setopacity(menu.shadow, this.effects.shadow.opacity);this.addEvent([menu.anchorobj, menu.dropmenu, menu.shadow], function(e){ var menu=anylinkmenu.menusmap[this._internalID];if (this._isanchor && menu.revealtype=="mouseover" && !anylinkmenu.isContained(this, e)){ anylinkmenu.showmenu(menu.id);anylinkmenu.addState(this, "add");}else if (typeof this._isanchor=="undefined"){ clearTimeout(menu.hidetimer);}}, "mouseover");this.addEvent([menu.anchorobj, menu.dropmenu, menu.shadow], function(e){ if (!anylinkmenu.isContained(this, e)){var menu=anylinkmenu.menusmap[this._internalID];menu.hidetimer=setTimeout(function(){anylinkmenu.addState(menu.anchorobj, "remove");anylinkmenu.hidemenu(menu.id);}, anylinkmenu.effects.delayhide);}}, "mouseout");this.addEvent([menu.anchorobj, menu.dropmenu], function(e){ var menu=anylinkmenu.menusmap[this._internalID];if ( this._isanchor && menu.revealtype=="click"){if (menu.dropmenu.style.visibility=="visible")anylinkmenu.hidemenu(menu.id);else{anylinkmenu.addState(this, "add");anylinkmenu.showmenu(menu.id);}if (e.preventDefault)e.preventDefault();return false;}else menu.hidetimer=setTimeout(function(){anylinkmenu.hidemenu(menu.id)}, anylinkmenu.effects.delayhide);}, "click");},init:function(targetclass){this.domready(function(){anylinkmenu.trueinit(targetclass)});},trueinit:function(targetclass){var anchors=this.getElementsByClass(targetclass);var preloadimages=this.preloadimages;for (var i=0; i<anchors.length; i++){if (anchors[i].getAttribute('data-image')){ preloadimages[preloadimages.length]=new Image();preloadimages[preloadimages.length-1].src=anchors[i].getAttribute('data-image');}if (anchors[i].getAttribute('data-overimage')){ preloadimages[preloadimages.length]=new Image();preloadimages[preloadimages.length-1].src=anchors[i].getAttribute('data-overimage');}this.setupmenu(targetclass, anchors[i], i);}}};var nombrePlayer_g = nombreFlashThePlayer;var slider_volume = null;var vol_ant = 10;var enPlay = false;var skinActual = 'default';var cambiarSkin = 1;var autoStop = 0;var activarMensaje = 1;var esperaMensaje = 60;var id_emisora_actual = 0;var primeraCarga = true;var miliseg_entre_intentos = 200;var num_intentosSWF = (1000 / miliseg_entre_intentos) * 30; var datosE = false;if (emisoraDefault > 0){datosE = datosEmisora(emisoraDefault);if (datosE){skinActual = datosE[4];cambiarSkin = datosE[5];autoStop = datosE[3];activarMensaje = datosE[6];esperaMensaje = datosE[7];}else{emisoraDefault = 0;}}var ancho_player = anchoImgVideo;function mute(){if (slider_volume.getValue() > 0){vol_ant = slider_volume.getValue();slider_volume.setValue(0);volumen(0, slider_volume);$('btn_mute').src = 'skins/' + skinActual + '/sound_mute.png';}else{slider_volume.setValue(vol_ant);volumen(vol_ant, slider_volume);$('btn_mute').src = 'skins/' + skinActual + '/sound.png';}}function cargarPlayer(){if (!swfCargado){if (num_intentosSWF > 0){setTimeout(cargarPlayer, miliseg_entre_intentos);num_intentosSWF--;}else{window.location = window.location;}return;}if (emisoraDefault > 0){setTimeout(function () {sonarEmisora(nombreFlashThePlayer, emisoraDefault, '');volumen(5, slider_volume);anylinkmenu.trueinit("menuanchorclass");}, 50);}else{setTimeout(function () {mostrar_contenedor(true);$('id_thePlayer').style.visibility = 'visible';volumen(5, slider_volume);mostrarNavegacion(false);anylinkmenu.trueinit("menuanchorclass");}, 50);}}var swfCargado = false;function cargoSWF(){swfCargado = true;}function mostrar_contenedor(mostrar){if (mostrar){$('thePlayer_body').className = "";$('_raudioContenedor').style.visibility = 'visible';if (audioLogActivo == "0") $('_updown_audiolog').style.display = '';}else{$('_raudioContenedor').style.visibility = 'hidden';$('_updown_audiolog').style.display = 'none';}}function get_thePlayer(nombrePlayer){nombrePlayer_g = nombrePlayer;if (navigator.appName.indexOf("Microsoft") != -1){if (typeof window[nombrePlayer] != 'undefined'){return window[nombrePlayer];}}else if (typeof document[nombrePlayer] != 'undefined'){if (typeof document[nombrePlayer].length != 'undefined' && typeof document[nombrePlayer][1] != 'undefined'){return document[nombrePlayer][1];}if (typeof document[nombrePlayer] != 'undefined'){return document[nombrePlayer];}}return false;}var pals = 'BowgVIXpYwKF89kzTo5IaqHxDfhErwQa';var audiolog_fecha = '';function sonarEmisora(nombrePlayer, ide, fb){var player = get_thePlayer(nombrePlayer);if (!player){alert("Por favor Instale la última versión de Flash Player");return;}datosE = datosEmisora(ide);detenerAutoStop();if (fb != '' && datosE[13] == '1'){if (typeof id_timer_blindIOL != "undefined" && id_timer_blindIOL) clearTimeout(id_timer_blindIOL);clearTimeout(id_timer_ocultar_audiolog);}else if (datosE[13] == '1'){audiolog_mostrado = true;mostrarListaAudiolog();}if (!primeraCarga || (primeraCarga && autoPlay)){audiolog_fecha = fb;audiolog_hora = audiolog_fecha.split('_');audiolog_fecha = audiolog_hora[0];audiolog_hora = audiolog_hora[1];player.playEmisora(ide, fb, datosE[9], ipOyente, palabra, pals, "0");$('btn_play').src = 'skins/' + skinActual + '/stop.png';PlayPause = ponerEnPause;esta_en_pause = false;}else if (primeraCarga && !autoPlay){PlayPause = function() { sonarEmisora(nombrePlayer, ide, fb); };}reconfigurarPlayer(ide);if (datosE[2] != ''){var ne = "<a href='" + datosE[2] + "' target='_blank'>" + datosE[1] + "</a>";}else{var ne = datosE[1];}actualizarTextosPlayer(ne, 'online || ' + textPowerBy, true);var ieaa = id_emisora_actual;id_emisora_actual = ide;if (ieaa != ide){if (datosE[13] == '1') slideShowEmisora();if (typeof datosE[12] != "undefined" && datosE[13] == '1'){if (datosE[12].length > 0){cargarAudiolog(datosE[12]);mostrarAudiolog(true);}}if (datosE[6] > 0){$('id_shoutBox').style.display = 'block';recargarMensajes();}}primeraCarga = false;}function emisoraActualOffline(msj){ponerEnPause();actualizarTextoOffline(msj);if (msj.indexOf("Podcast") > -1){PlayPause = function() { sonarEmisora(nombrePlayer_g, datosE[0], ''); };setTimeout(PlayPause, 3000);}}function emisoraActualOnline(){ponerEnPlay();actualizarTextoOnline('online || ' + textPowerBy);}function actualizarTextoEmisora(texto){$('_texto_emisora').innerHTML = texto;}function actulizarTextoKbps(kbps){if (kbps.indexOf("/") != -1){var temp = kbps.split("/");if (datosE[15] == '1'){kbps = temp.join('<span class="msj_stream">/</span>');}else{kbps = temp[0] + " Oy.";}}else if (datosE[15] == '0'){kbps = "";}$('_texto_kbps').innerHTML = kbps;}function actualizarTextoOnline(texto){$('_texto_offline').style.display = 'none';$('_texto_online').style.display = '';$('_texto_online').innerHTML = texto;}function actualizarTextoOffline(texto){$('_texto_offline').style.display = '';$('_texto_online').style.display = 'none';$('_texto_offline').innerHTML = texto;detenerAutoStop();}function actualizarTextosPlayer(textoEmisora, textoOnline, online){actualizarTextoEmisora(textoEmisora);if (online){actualizarTextoOnline(textoOnline);}else{actualizarTextoOffline(textoOnline);}}function radioNoDetenido(activo){if (activo){$('_radioNoDetenido').style.display = '';}else{$('_radioNoDetenido').style.display = 'none';}blindRND(activo, '_radioNoDetenido');}var audioLogActivo = "0";function audioLog(activo){if (activo){audioLogActivo = "1";$('_audioLog').style.display = '';$('btn_play').src = 'skins/' + skinActual + '/pause.png';$('_updown_audiolog').style.display = 'none';$("_audiolog_ir_online").style.display = '';blindIOL(true);slider_audiolog.disable(false);actualizar_slider_audiolog(true);}else{audioLogActivo = "0";$('_audioLog').style.display = 'none';$('_updown_audiolog').style.display = '';$("_audiolog_ir_online").style.display = 'none';blindIOL(false);mostrar_audiolog_slider(false);actualizar_slider_audiolog(false);}blindRND(activo, '_audioLog');}function playAudioLog_activar_slider(){slider_audiolog.disable(false);actualizar_slider_audiolog(true);}function estadoAudioLog(){return audioLogActivo;}var id_timer_blindRND = null;var RND_visible = true;function blindRND(activo, cual){if (activo){if (RND_visible){$(cual).style.visibility = 'hidden';RND_visible = false;}else{$(cual).style.visibility = 'visible';RND_visible = true;}id_timer_blindRND = setTimeout("blindRND(true, '" + cual + "')", 500);}else{$(cual).style.visibility = 'visible';RND_visible = true;if (typeof id_timer_blindRND != "undefined" && id_timer_blindRND) clearTimeout(id_timer_blindRND);}}var id_timer_blindIOL = null;var IOL_visible = true;function blindIOL(activo){if (activo){if (IOL_visible){$('_bull_ir_online').style.visibility = 'hidden';IOL_visible = false;}else{$('_bull_ir_online').style.visibility = 'visible';IOL_visible = true;}id_timer_blindIOL = setTimeout("blindIOL(true)", 500);}else{$('_bull_ir_online').style.visibility = 'hidden';IOL_visible = false;if (typeof id_timer_blindIOL != "undefined" && id_timer_blindIOL) clearTimeout(id_timer_blindIOL);}}function ponerEnPause(){pausarEmisora(nombrePlayer_g, true);detenerAutoStop();}function ponerEnPlay(){pausarEmisora(nombrePlayer_g, false);}PlayPause = ponerEnPause;var esta_en_pause = true;function pausarEmisora(nombrePlayer, pause){if (pause && esta_en_pause) return;if (!pause && !esta_en_pause) return;var player = get_thePlayer(nombrePlayer);if (!player){alert("Por favor instale la ultima versión de Flash Player");return;}player.pausar(pause);pausarEmisoraActPlayer(pause);}function pausarEmisoraActPlayer(pause){if (pause){$('btn_play').src = 'skins/' + skinActual + '/play.png';PlayPause = ponerEnPlay;esta_en_pause = true;if (audioLogActivo == "1") actualizar_slider_audiolog(false);}else{if (audioLogActivo == "0") $('btn_play').src = 'skins/' + skinActual + '/stop.png';else $('btn_play').src = 'skins/' + skinActual + '/pause.png';PlayPause = ponerEnPause;esta_en_pause = false;if (audioLogActivo == "1") actualizar_slider_audiolog(true);}}function reconfigurarPlayer(ide){$('id_thePlayer').style.visibility = 'hidden';if (datosE[5] <= 0 && datosE[16] <= 0){$('skins_sep').style.display = 'none';$('skins_td').style.display = 'none';$('cam_sep').style.display = 'none';$('cam_td').style.display = 'none';}else if (datosE[5] > 0 && (datosE[16] > 0 && datosE[13] == '1')){$('skins_sep').style.display = '';$('skins_td').style.display = '';$('cam_sep').style.display = '';$('cam_td').style.display = '';}else if (datosE[5] > 0){$('skins_sep').style.display = '';$('skins_td').style.display = '';$('cam_sep').style.display = 'none';$('cam_td').style.display = 'none';}else if (datosE[16] > 0 && datosE[13] == '1'){$('skins_sep').style.display = 'none';$('skins_td').style.display = 'none';$('cam_sep').style.display = '';$('cam_td').style.display = '';}else{$('skins_sep').style.display = 'none';$('skins_td').style.display = 'none';$('cam_sep').style.display = 'none';$('cam_td').style.display = 'none';}if (skinActual == "") cambiarPiel(datosE[4]);else cambiarPiel(skinActual);if (primeraCarga) { setTimeout("mostrar_contenedor(true);$('id_thePlayer').style.visibility = 'visible';", 50);}else { mostrar_contenedor(true);$('id_thePlayer').style.visibility = 'visible'; }}var min_autostop = 0;var seg_autostop = 0;var id_timer_autostop = 0;var autostopActual = 0;function configurarAutoStop(){autostopActual = datosE[3];reconfigurarAutoStop();}function reconfigurarAutoStop(){if (id_timer_autostop > 0) clearTimeout(id_timer_autostop);if (autostopActual <= 0){$('_texto_autostop').innerHTML = '';}else{min_autostop = autostopActual;seg_autostop = 1;actualizarAutoStop();}}function detenerAutoStop(){var temp = autostopActual;autostopActual = 0;reconfigurarAutoStop();autostopActual = temp;}function actualizarAutoStop(){tiempo_faltante = restar_seg();$('_texto_autostop').innerHTML = tiempo_faltante;if (tiempo_faltante == '00:00'){ponerEnPause();}else{id_timer_autostop = setTimeout(actualizarAutoStop, 1000);}}function restar_seg(){seg_autostop--;if (seg_autostop < 0){if (min_autostop > 0){seg_autostop = 59;min_autostop--;}else{return "00:00";}}txt_min = '';if (min_autostop < 10) txt_min = '0';txt_seg = '';if (seg_autostop < 10) txt_seg = '0';return txt_min + min_autostop + ':' + txt_seg + seg_autostop;}function slideShowEmisora(){if (datosE[13] != '1') return;obj_slideShow.stopTimers();if (typeof datosE[10] != "undefined"){if (datosE[10].length > 0){$(thumbid).innerHTML = '';for (var i = 0; i < datosE[10].length; i++){$(thumbid).innerHTML += '<li value="' + datosE[10][i] + '">&nbsp;</li>';}if (datosE[10].length <= 1){mostrarNavegacion(false);}else{mostrarNavegacion(true);}}else{$(thumbid).innerHTML = '<li value="0">&nbsp;</li>';mostrarNavegacion(false);}}else{$(thumbid).innerHTML = '<li value="0">&nbsp;</li>';mostrarNavegacion(false);}autodelay = datosE[11];obj_slideShow.init();obj_slideShow.lim();}function cargarAudiolog(audiologs){$("_contenido_audiologs").innerHTML = '';for (var i = 0; i < audiologs.length; i++){$("_contenido_audiologs").innerHTML += '<div class="evento_audiologs audiologs_items"><a href="#nogo" onClick="sonarEmisora(nombreFlashThePlayer, ' + id_emisora_actual + ', \'' + audiologs[i][1] + "_" + audiologs[i][2] + '\');mostrar_audiolog_slider(true, \'' + str_replace(':', '', audiologs[i][2].substring(0,5)) + '\', \'' + str_replace(':', '', audiologs[i][3].substring(0,5)) + '\');return false" title="' + audiologs[i][0] + '">' + audiologs[i][0] + '</a></div>';$("_contenido_audiologs").innerHTML += '<div class="fecha_audiologs audiologs_items"><a href="#nogo" onClick="sonarEmisora(nombreFlashThePlayer, ' + id_emisora_actual + ', \'' + audiologs[i][1] + "_" + audiologs[i][2] + '\');mostrar_audiolog_slider(true, \'' + str_replace(':', '', audiologs[i][2].substring(0,5)) + '\', \'' + str_replace(':', '', audiologs[i][3].substring(0,5)) + '\');return false" title="' + audiologs[i][1] + '">' + audiologs[i][1] + '</a></div>';$("_contenido_audiologs").innerHTML += '<div class="horaini_audiologs audiologs_items"><a href="#nogo" onClick="sonarEmisora(nombreFlashThePlayer, ' + id_emisora_actual + ', \'' + audiologs[i][1] + "_" + audiologs[i][2] + '\');mostrar_audiolog_slider(true, \'' + str_replace(':', '', audiologs[i][2].substring(0,5)) + '\', \'' + str_replace(':', '', audiologs[i][3].substring(0,5)) + '\');return false" title="' + audiologs[i][2].substring(0,5) + '">' + audiologs[i][2].substring(0,5) + '</a></div>';$("_contenido_audiologs").innerHTML += '<div class="horafin_audiologs audiologs_items audiologs_items_right"><a href="#nogo" onClick="sonarEmisora(nombreFlashThePlayer, ' + id_emisora_actual + ', \'' + audiologs[i][1] + "_" + audiologs[i][2] + '\');mostrar_audiolog_slider(true, \'' + str_replace(':', '', audiologs[i][2].substring(0,5)) + '\', \'' + str_replace(':', '', audiologs[i][3].substring(0,5)) + '\');return false" title="' + audiologs[i][3].substring(0,5) + '">' + audiologs[i][3].substring(0,5) + '</a></div>';}}function mostrarAudiolog(mostrar){audiolog_mostrado = true;mostrarListaAudiolog();if (mostrar){$("_updown_audiolog").style.visibility = 'visible';}else{$("_updown_audiolog").style.visibility = 'hidden';}}var audiolog_mostrado = false;var id_timer_ocultar_audiolog = 0;function mostrarListaAudiolog(){if (audiolog_mostrado){$("_audiolog_ir_online").style.display = 'none';$("_lista_audiologs").style.visibility = 'hidden';$("_lista_audiologs").style.height = '0px';$("_updown_audiolog").style.top = "0px";$("_updown_audiolog").className = 'updown_audiolog down_audiolog';$("_updown_audiolog").title = "abrir AudioLog";if (audioLogActivo == "1"){blindIOL(false);$("_updown_audiolog").style.display = '';}clearTimeout(id_timer_ocultar_audiolog);}else{if (audioLogActivo == "1"){$("_audiolog_ir_online").style.display = '';$("_updown_audiolog").style.display = 'none';blindIOL(true);}else{$("_updown_audiolog").style.top = Math.ceil(altoImgVideo / 2) + "px";$("_updown_audiolog").className = 'updown_audiolog up_audiolog';$("_updown_audiolog").title = "cerrar AudioLog";}$("_lista_audiologs").style.height = Math.ceil(altoImgVideo / 2) + 'px';$("_lista_audiologs").style.visibility = 'visible';}audiolog_mostrado = !audiolog_mostrado;}function mostrarListaAudiolog_mo(){if (!audiolog_mostrado){mostrarListaAudiolog();}}function ocultarAudioLog_mout(){id_timer_ocultar_audiolog = setTimeout(function () { audiolog_mostrado = true;mostrarListaAudiolog(); }, 2000);}function ocultarAudioLog_mo(){clearTimeout(id_timer_ocultar_audiolog);}function act_pag(url){window.location = "http://srv2.raudiostream.com/raudiostream/player/thePlayer.php?id=29&autoplay=1&fondo=121212";}function aps(nps){pals = nps;}function volumen(nv, s){player = get_thePlayer(nombrePlayer_g);if (!player){alert("Por favor Instale la última versión de Flash Player");return;}player.ajustar_volumen(nv / 10);if (nv == 0){$('btn_mute').src = 'skins/' + skinActual + '/sound_mute.png';}else{$('btn_mute').src = 'skins/' + skinActual + '/sound.png';}cargarCSSVolume();}function cambiarPiel(itemSkin){if (skinActual != itemSkin && itemSkin != ''){if (skinActual != '') var sa = skinActual;else var sa = itemSkin;skinActual = itemSkin;cargarCSS(urlServidor + 'skins/thePlayer_' + skinActual + '.css', '_skin_' + skinActual + '_thePlayer', true);$('btn_play').src = str_replace(sa, skinActual, $('btn_play').src);$('btn_skins').src = str_replace(sa, skinActual, $('btn_skins').src);$('btn_cam').src = str_replace(sa, skinActual, $('btn_cam').src);$('btn_mute').src = str_replace(sa, skinActual, $('btn_mute').src);}}function rs_alerta(msj){alert(msj);}var video_mostrado = false;function activarVideo(){if (datosE[17] != "" && datosE[13] == '1' && !video_mostrado){obj_slideShow.stopTimers();$("webCam").innerHTML = '<' + 'object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="' + anchoImgVideo + '" height="' + altoImgVideo + '"' + '>' +'<' + 'param name="movie" value="' + urlServidor + 'rswebcamv2.swf" /' + '>' +'<' + 'param name="allowFullScreen" value="true" /' + '>' +'<' + 'param name="AllowScriptAccess" value="always" /' + '>' +'<' + 'param name="allowNetworking" value="all" /' + '>' +'<' + 'param name="wmode" value="transparent" /' + '>' +'<' + 'param name="quality" value="high" /' + '>' +'<' + 'param name="flashvars" value="channelName=' + datosE[17] + '&cunsumer_key=' + datosE[18] + '&ancho=367&alto=275" /' + '>' +'<' + 'embed wmode="transparent" allowFullScreen="true" AllowScriptAccess="always" allowNetworking="all" src="' + urlServidor + 'rswebcamv2.swf" flashvars="channelName=' + datosE[17] + '&cunsumer_key=' + datosE[18] + '&ancho=367&alto=275" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="' + anchoImgVideo + '" height="' + altoImgVideo + '"' + '>' + '<' + '/embed' + '>' +'<' + '/object' + '>';$("imagearea").style.display = 'none';$("thumbwrapper").style.display = 'none';$("contenedorWebCam").style.display = '';$("maskWebCam").style.display = '';$("webCam").style.display = '';$('btn_cam').src = 'skins/' + skinActual + '/cam_off.png';video_mostrado = true;}else if (datosE[17] != "" && datosE[13] == '1' && video_mostrado){$("contenedorWebCam").style.display = 'none';$("webCam").style.display = 'none';$("maskWebCam").style.display = 'none';$("webCam").innerHTML = '';$("imagearea").style.display = '';$("thumbwrapper").style.display = '';$('btn_cam').src = 'skins/' + skinActual + '/cam_on.png';slideShowEmisora();video_mostrado = false;}else{alert("Este servicio no ha sido activado para su emisora\n\nPor favor solicitelo gratis a nuestros asesores de servicio");}}function cargarCSS(file, id, recargar){var head = document.getElementsByTagName('head').item(0);var styleTag = $(id);if(styleTag && !recargar) return;else if(styleTag && recargar) head.removeChild(styleTag);style = document.createElement('link');style.href = file;style.rel = 'stylesheet';style.type = 'text/css';style.id = id;head.appendChild(style);}function cargarCSSVolume(){var vol = slider_volume.getValue();$("_dhtmlxSlider_div").className = "dhtmlxSlider volume" + vol;}function $(id){return document.getElementById(id);}function str_replace(que, conque, str){var str2 = str;str2 = str2.split(que);str2 = str2.join(conque);return str2;}var skinmenu1 = {divclass:'anylinkmenu', inlinestyle:'', linktarget:''};skinmenu1.items = new Array();skinmenu1.items[skinmenu1.items.length] = [ "Skins", "" ];for (var i = 0; i < listaSkins.length; i++){var textSkin = listaSkins[i];textSkin = textSkin.split("_");textSkin = textSkin.join(" ");skinmenu1.items[skinmenu1.items.length] = [ textSkin, "#nogo\" onclick=\"cambiarPiel('" + listaSkins[i] + "')" ];}var slider_volume = new dhtmlxSlider("_volumen", {con_id: "_dhtmlxSlider_div",min: 0,max: 10,step: 1,size: 60,vertical: false});slider_volume.init();slider_volume.attachEvent("onChange", volumen);slider_volume.setValue(5);cargarCSSVolume(5);var sa = skinActual;skinActual = '';cambiarPiel(sa);cargarPlayer();var imgid = 'image';var imgdir = '../lib';var thumbid = 'thumbs';var auto = true;var autodelay = 5;var imgwidth = 367;var imgheight = 247;var porcentajethumb = 0.25;var imgphp = 'mostrar_ads.php?id=';var slider_audiolog = null;crearHTMLSlider();var obj_slideShow=function(){var bxs,bxe,fxs,fxe,ys,ye,ta,ia,ie,st,ss,ft,fs,xp,yp,ci,t,tar,tarl;ta=document.getElementById(thumbid);ia=document.getElementById(imgid);t=ta.getElementsByTagName('li');ie=document.all?true:false;st=10; ss=5; ft=10; fs=10; xp,yp=0;return{init:function(){window.onresize=function(){setTimeout("obj_slideShow.lim()",500)};ys=this.toppos(ta); ye=ys+ta.offsetHeight;len=t.length;tar=[];for(i=0;i<len;i++){var id=t[i].value;id = "rs_ads_" + id;tar[i]=id;t[i].onclick=new Function("obj_slideShow.getimg('"+id+"')");if(i==0){this.getimg(id)}}tarl=tar.length;},scrl:function(d){clearInterval(ta.timer);var l=(d==-1)?0:(t[tarl-1].offsetLeft-(ta.parentNode.offsetWidth-t[tarl-1].offsetWidth));ta.timer=setInterval(function(){obj_slideShow.mv(d,l)},st);},mv:function(d,l){ta.style.left=ta.style.left||'0px';var left=ta.style.left.replace('px','');if(d==1){if(l-Math.abs(left)<=ss){this.cncl(ta.id); ta.style.left='-'+l+'px';}else{ta.style.left=left-ss+'px'}}else{if(Math.abs(left)-l<=ss){this.cncl(ta.id); ta.style.left=l+'px';}else{ta.style.left=parseInt(left)+ss+'px';}}},cncl:function(){clearTimeout(ta.timer);},getimg:function(id){if (auto){clearTimeout(ia.timer);}if (ci!=null) {var ts,tsl,x;ts=ia.getElementsByTagName('div');tsl=ts.length;x=0;for(x;x<tsl;x++){if(ci.id!=id){var o=ts[x]; clearInterval(o.timer); o.timer=setInterval(function(){obj_slideShow.fdout(o)},fs);}}}if (!document.getElementById(id)) {var i = document.createElement('div');ia.appendChild(i);i.id=id;i.av=0;if (typeof imgwidth != 'undefined' && imgwidth > 0){i.style.width = imgwidth + 'px';}if (typeof imgheight != 'undefined' && imgheight > 0){i.style.height = imgheight + 'px';}if (id != "rs_ads_0") {cargar_contenido_ads(id);}else {i.innerHTML = '<img src="' + urlServidor + 'slideshow/images/default.png" width="' + imgwidth + '" height="' + imgheight + '" />';}} else {i = document.getElementById(id); clearInterval(i.timer);}i.timer = setInterval(function(){obj_slideShow.fdin(i)}, fs);},nav:function(d){var c=0;for(key in tar){if(tar[key]==ci.id){c=key;}}if(tar[parseInt(c)+d]){this.getimg(tar[parseInt(c)+d]);}else{if(d==1){this.getimg(tar[0]);}else{this.getimg(tar[tarl-1])}}},auto:function(){ia.timer=setInterval(function(){obj_slideShow.nav(1);},autodelay*1000);},fdin:function(i){i.av=100;if(i.av>=100){if(auto){this.auto()}; clearInterval(i.timer); ci=i;}},fdout:function(i){i.av=0;if(i.av<=0){clearInterval(i.timer); if(i.parentNode){i.parentNode.removeChild(i);}}},lim:function(){var taw,taa,len;taw=ta.parentNode.offsetWidth;taa=taw/4;bxs=obj_slideShow.leftpos(ta);bxe=bxs+taa;fxe=bxs+taw;fxs=fxe-taa;},pos:function(e){xp=ie?event.clientX+document.documentElement.scrollLeft:e.pageX; yp=ie?event.clientY+document.documentElement.scrollTop:e.pageY;if(xp>bxs&&xp<bxe&&yp>ys&&yp<ye){obj_slideShow.scrl(-1);}else if(xp>fxs&&xp<fxe&&yp>ys&&yp<ye){obj_slideShow.scrl(1);}else{obj_slideShow.cncl();}},leftpos:function(t){var l=0;if(t.offsetParent){while(1){l+=t.offsetLeft;if(!t.offsetParent){break;}t=t.offsetParent;}}else if(t.x){l+=t.x;}return l;},toppos:function(t){var p=0;if(t.offsetParent){while(1){p+=t.offsetTop; if(!t.offsetParent){break}; t=t.offsetParent;}}else if(t.y){p+=t.y;}return p;},stopTimers:function(){if (typeof ta != "undefined" && typeof ta.timer != "undefined") clearInterval(ta.timer);if (typeof ia != "undefined" && typeof ia.timer != "undefined") clearTimeout(ia.timer);if (typeof o != "undefined" && typeof o.timer != "undefined") clearInterval(o.timer);if (typeof i != "undefined" && typeof i.timer != "undefined") clearInterval(i.timer);}};}();function crearHTMLSlider(){document.getElementById('id_slideShow').innerHTML = '' +'<div id="_audiologs">' +'<div id="_lista_audiologs" class="lista_audiologs skin_lista_audiologs" onmouseover="ocultarAudioLog_mo()" onmouseout="ocultarAudioLog_mout()">' +'<div id="_titulo_audiologs" class="titulo_audiologs skin_titulo_audiologs"></div>' +'<div class="contenedor_audiologs">' +'<div id="_evento_audiologs" class="evento_audiologs skin_evento_audiologs">Evento</div>' +'<div id="_fecha_audiologs" class="fecha_audiologs skin_fecha_audiologs">Fecha</div>' +'<div id="_horaini_audiologs" class="horaini_audiologs skin_horaini_audiologs">Hora de Inicio</div>' +'<div id="_horafin_audiologs" class="horafin_audiologs skin_horafin_audiologs">Hora de Fin</div>' +'<div id="_contenido_audiologs"></div>' +'</div>' +'<div id="_audiolog_s1"><table align="center" width="95%" height="20" border="0" cellspacing="0" cellpadding="0"><tr><td width="33%" align="left" class="audiolog_hora" id="_audiolog_horaini"></td><td width="34%" align="center" class="audiolog_hora" id="_audiolog_horaact"></td><td width="33%" align="right" class="audiolog_hora" id="_audiolog_horafin"></td></tr></table></div>' +'<div id="_audiolog_s2"><table align="center" border="0" cellspacing="0" cellpadding="0"><tr><td class="tdslider_audiolog"><div id="_audiolog_slider"></div></td></tr></table></div>' +'</div>' +'</div>' +'<a href="javascript:mostrarListaAudiolog()" onmouseover="mostrarListaAudiolog_mo()" title="abrir AudioLog" id="_updown_audiolog" class="updown_audiolog down_audiolog" style="display:none"></a>' +'<a class="ir_online skin_ir_online" id="_audiolog_ir_online" title="escuchar emisora en vivo" style="display:none" href="#nogo" onClick="sonarEmisora(nombreFlashThePlayer, id_emisora_actual, \'\');return false"><span id="_bull_ir_online">&bull;</span> en vivo&nbsp;&nbsp;</a>' +'<div id="imagearea">' +'<div id="image">' +'<a href="http://www.raudiostream.com/" title="www.raudiostream.com" target="_blank" class="logo_audiolog"></a>' +'<a href="javascript:obj_slideShow.nav(-1)" class="imgnav" id="previmg"></a>' +'<a href="javascript:obj_slideShow.nav(1)" class="imgnav" id="nextimg"></a>' +'</div>' +'</div>' +'<div id="thumbwrapper" style="display:none">' +'<div id="thumbarea" onmouseover="mostrar_thumbs(true)" onmouseout="mostrar_thumbs(false)">' +'<ul id="' + thumbid + '" class="thumbs_out">' +'</ul>' +'<a href="#nogo" onmouseover="obj_slideShow.scrl(-1)" onmouseout="obj_slideShow.cncl()" class="imgnav-peq" id="previmg-peq"></a>' +'<a href="#nogo" onmouseover="obj_slideShow.scrl(1)" onmouseout="obj_slideShow.cncl()" class="imgnav-peq" id="nextimg-peq"></a>' +'</div>' +'</div>' +'<div id="contenedorWebCam">' +'<a href="http://www.raudiostream.com/" title="www.raudiostream.com" target="_blank" class="logo_audiolog"></a>' +'<div id="webCam" style="display:none"></div>' +'<div id="maskWebCam" style="display:none"><iframe width="100%" height="100%" frameborder="no" scrolling="no" allowtransparency="true" framespacing="0" src="about:blank"></iframe></div>' +'</div>';slider_audiolog = new dhtmlxSlider("_audiolog_slider", {con_id: "_dhtmlxSlider_audiolog",update_title: false,min: 0,max: 339,step: 1,size: 339,vertical: false});slider_audiolog.init();slider_audiolog.attachEvent("onChange", audiolog_change);slider_audiolog.attachEvent("onSlideEnd", audiolog_mouseup);dhtmlxEvent($("_dhtmlxSlider_audiolog"), "mouseup", audiolog_mouseup);slider_audiolog.setValue(1);$("_dhtmlxSlider_audiolog").className = "dhtmlxSlider_audiolog";$("_audiolog_s1").style.display = 'none';$("_audiolog_s2").style.display = 'none';}function audiolog_change(v, s){actualizar_slider_audiolog(false);date_audiolog_ha.setTime(date_audiolog_hi.getTime() + (v * 1000));var h = date_audiolog_ha.getHours();if (h < 10) h = '0' + h;var m = date_audiolog_ha.getMinutes();if (m < 10) m = '0' + m;var s = date_audiolog_ha.getSeconds();if (s < 10) s = '0' + s;$("_audiolog_horaact").innerHTML = h + ':' + m + ':' + s;$("_dhtmlxSlider_audiolog").title = $("_audiolog_horaact").innerHTML;}function audiolog_mouseup(){var h = date_audiolog_ha.getHours();if (h < 10) h = '0' + h;var m = date_audiolog_ha.getMinutes();if (m < 10) m = '0' + m;var s = date_audiolog_ha.getSeconds();if (s < 10) s = '0' + s;var player = get_thePlayer(nombreFlashThePlayer);var fb = audiolog_fecha + '_' + h + ':' + m + ':' + s;esta_en_pause = false;pausarEmisoraActPlayer(false);player.playEmisora(id_emisora_actual, fb, datosE[9], ipOyente, palabra, pals, "1");slider_audiolog.disable(true);}var date_audiolog_hi = new Date();var date_audiolog_hf = new Date();var date_audiolog_ha = new Date();var ajuste_hf_audiolog = 0;function mostrar_audiolog_slider(mostrar, horaini, horafin){if (mostrar){while (horaini.length < 4) horaini = '0' + horaini;while (horafin.length < 4) horafin = '0' + horafin;var horaini_hora = horaini.substring(0,2);var horaini_min = horaini.substring(2);var horafin_hora = horafin.substring(0,2);var horafin_min = horafin.substring(2);date_audiolog_hi.setHours(horaini_hora);date_audiolog_hi.setMinutes(horaini_min);date_audiolog_hi.setSeconds(0);date_audiolog_ha.setHours(horaini_hora);date_audiolog_ha.setMinutes(horaini_min);date_audiolog_ha.setSeconds(0);date_audiolog_hf.setHours(horafin_hora);date_audiolog_hf.setMinutes(horafin_min);date_audiolog_hf.setSeconds(0);horaini = horaini_hora + ':' + horaini_min;horafin = horafin_hora + ':' + horafin_min;$("_audiolog_horaini").innerHTML = horaini;$("_audiolog_horaact").innerHTML = horaini + ':00';$("_audiolog_horafin").innerHTML = horafin;ajuste_hf_audiolog = 0;if (date_audiolog_hf.getTime() < date_audiolog_hi.getTime()){ajuste_hf_audiolog = 1*24*60*60*1000;}slider_audiolog.setMin(0);slider_audiolog.setMax(((date_audiolog_hf.getTime() + ajuste_hf_audiolog) - date_audiolog_hi.getTime()) / 1000);slider_audiolog.setValue(0);$("_audiolog_s1").style.display = '';$("_audiolog_s2").style.display = '';}else{$("_audiolog_s1").style.display = 'none';$("_audiolog_s2").style.display = 'none';$("_audiolog_horaini").innerHTML = '';$("_audiolog_horaact").innerHTML = '';$("_audiolog_horafin").innerHTML = '';date_audiolog_hi = new Date();date_audiolog_ha = new Date();date_audiolog_hf = new Date();}}function actualizar_slider_audiolog(activo){if (typeof id_timer_act_sld_aul != "undefined" && id_timer_act_sld_aul) clearTimeout(id_timer_act_sld_aul);if (activo){if ((date_audiolog_ha.getTime() + 1000) >= (date_audiolog_hf.getTime() + ajuste_hf_audiolog)){sonarEmisora(nombreFlashThePlayer, id_emisora_actual, '');return;}date_audiolog_ha.setTime(date_audiolog_ha.getTime() + 1000);var h = date_audiolog_ha.getHours();if (h < 10) h = '0' + h;var m = date_audiolog_ha.getMinutes();if (m < 10) m = '0' + m;var s = date_audiolog_ha.getSeconds();if (s < 10) s = '0' + s;$("_audiolog_horaact").innerHTML = h + ':' + m + ':' + s;slider_audiolog.setValue(slider_audiolog.getValue() + 1);$("_dhtmlxSlider_audiolog").title = $("_audiolog_horaact").innerHTML;id_timer_act_sld_aul = setTimeout("actualizar_slider_audiolog(true)", 1000);}}function mostrar_thumbs(mostrar){if (mostrar){document.getElementById(thumbid).className = 'thumbs_in';}else{document.getElementById(thumbid).className = 'thumbs_out';}}function mostrarNavegacion(mostrar){if (mostrar){document.getElementById('previmg').style.visibility = 'visible';document.getElementById('nextimg').style.visibility = 'visible';}else{document.getElementById('previmg').style.visibility = 'hidden';document.getElementById('nextimg').style.visibility = 'hidden';}}ajaxpack_ads = new Array();function cargar_contenido_ads(id){var id_s = new String(id);id_s = id_s.replace("rs_ads_", "");ajaxpack_ads[parseInt(id_s)] = crearObjAjax();ajaxpack_ads[parseInt(id_s)].addrandomnumber = 0;ajaxpack_ads[parseInt(id_s)].getAjaxRequest('../lib/mostrar_ads.php', "id=" + id_s, function () { cargar_contenido_ads_ajax(parseInt(id_s)); }, "txt");}function cargar_contenido_ads_ajax(id){var myajax = ajaxpack_ads[id].ajaxobj;var myfiletype = ajaxpack_ads[id].filetype;if (myajax.readyState == 4) {if (myajax.status == 200 || window.location.href.indexOf("http") == -1) {if (myfiletype == "txt"){var respuesta = new String();respuesta = myajax.responseText;document.getElementById("rs_ads_" + id).innerHTML = respuesta;return;}}}}