var SubUrl="/";function initAlbum(B){window.location.href = B[B.selectedIndex].value;}function initTopListen(A){getTopListen(A,"")}function initTopDownload(A){getTopDownload(A,"")}function initTopEmail(A){getTopEmail(A,"")}function initTopHit(A){getTopHit(A,"")}function ProcessLayoutAlbum(){var A=document.getElementById("albumPanel");if(A){A.innerHTML='<div style="width:100%;height:200px;vertical-align:top;text-align:center;"><img src="/images/ajax-loader.gif" width="50" height="50" style="margin-top:30px;" /></div>'}}function ProcessLayoutTopListen(){var A=document.getElementById("topListenPanel");if(A){A.innerHTML='<div style="width:100%;height:200px;vertical-align:top;text-align:center;"><img src="/images/ajax-loader.gif" width="50" height="50" style="margin-top:30px;" /></div>'}}function ProcessLayoutTopDownload(){var A=document.getElementById("topDownloadPanel");if(A){A.innerHTML='<div style="width:100%;height:200px;vertical-align:top;text-align:center;"><img src="/images/ajax-loader.gif" width="50" height="50" style="margin-top:30px;" /></div>'}}function ProcessLayoutTopEmail(){var A=document.getElementById("topEmailPanel");if(A){A.innerHTML='<div style="width:100%;height:200px;vertical-align:top;text-align:center;"><img src="/images/ajax-loader.gif" width="50" height="50" style="margin-top:30px;" /></div>'}}function ProcessLayoutTopHit(){var A=document.getElementById("topHitPanel");if(A){A.innerHTML='<div style="width:100%;height:200px;vertical-align:top;text-align:center;"><img src="/images/ajax-loader.gif" width="50" height="50" style="margin-top:30px;" /></div>'}}function GetXmlHttpObject(){var A=null;if(window.XMLHttpRequest){A=new XMLHttpRequest()}else{if(window.ActiveXObject){A=new ActiveXObject("Microsoft.XMLHTTP")}}return A}function getDataAlbum(E,C,D){var F;ProcessLayoutAlbum();F=GetXmlHttpObject();if(F==null){alert("Browser does not support HTTP Request");return}var B=Math.random()*5;var A=SubUrl+"Farm/ListAlbum.aspx?rnd="+B+"&pIndex="+E+"&pSize="+C+"&order="+D;F.onreadystatechange=function(){if(F.readyState==4||F.readyState=="complete"){var G=document.getElementById("albumPanel");if(G){G.innerHTML=F.responseText}}};if(BrowserDetect.browser=="Firefox"){F.open("GET",A,true)}else{F.open("POST",A,true)}F.send(null)}function getTopListen(C,D){var E;ProcessLayoutTopListen();E=GetXmlHttpObject();if(E==null){alert("Browser does not support HTTP Request");return}var A=Math.random()*5;var B=SubUrl+"Farm/TopListen.aspx?rnd="+A+"&pIndex="+C+"&filter="+D;E.onreadystatechange=function(){if(E.readyState==4||E.readyState=="complete"){var F=document.getElementById("topListensPanel");if(F){F.innerHTML=E.responseText}}};if(BrowserDetect.browser=="Firefox"){E.open("GET",B,true)}else{E.open("POST",B,true)}E.send(null)}function getTopDownload(C,D){var E;ProcessLayoutTopDownload();E=GetXmlHttpObject();if(E==null){alert("Browser does not support HTTP Request");return}var A=Math.random()*5;var B=SubUrl+"Farm/TopDownload.aspx?rnd="+A+"&pIndex="+C+"&filter="+D;E.onreadystatechange=function(){if(E.readyState==4||E.readyState=="complete"){var F=document.getElementById("topDownloadPanel");if(F){F.innerHTML=E.responseText}}};if(BrowserDetect.browser=="Firefox"){E.open("GET",B,true)}else{E.open("POST",B,true)}E.send(null)}function getTopEmail(C,D){var E;ProcessLayoutTopEmail();E=GetXmlHttpObject();if(E==null){alert("Browser does not support HTTP Request");return}var A=Math.random()*5;var B=SubUrl+"Farm/TopEmail.aspx?rnd="+A+"&pIndex="+C+"&filter="+D;E.onreadystatechange=function(){if(E.readyState==4||E.readyState=="complete"){var F=document.getElementById("topEmailPanel");if(F){F.innerHTML=E.responseText}}};if(BrowserDetect.browser=="Firefox"){E.open("GET",B,true)}else{E.open("POST",B,true)}E.send(null)}function getTopHit(C,D){var E;ProcessLayoutTopHit();E=GetXmlHttpObject();if(E==null){alert("Browser does not support HTTP Request");return}var A=Math.random()*5;var B=SubUrl+"Farm/TopHit.aspx?rnd="+A+"&pIndex="+C+"&filter="+D;E.onreadystatechange=function(){if(E.readyState==4||E.readyState=="complete"){var F=document.getElementById("topHitPanel");if(F){F.innerHTML=E.responseText}}};if(BrowserDetect.browser=="Firefox"){E.open("GET",B,true)}else{E.open("POST",B,true)}E.send(null)};
