var Entities={page:"",showCount:3,users:new Array(),artists:new Array(),groups:new Array(),ShowPopular:function(_1){
this.page=_1;
var _2="<Request><MethodName>GetPopularEntities</MethodName></Request>";
new Ajax.Request(AjaxUrl.ApiV2,{method:"post",postBody:_2,contentType:"application/xml",onSuccess:function(_3){
Entities.ShowPopularComplete(_3);
}});
},ShowPopularComplete:function(_4){
var _5=_4.responseXML.documentElement;
var _6=_5.getElementsByTagName("status")[0].childNodes[0].nodeValue;
var _7=_5.getElementsByTagName("message")[0].childNodes[0].nodeValue;
if(_6=="true"){
for(var i=0;i<Entities.showCount;i++){
Entities.users[i]=new UserData();
Entities.users[i].UserID=_5.getElementsByTagName("UserID")[i].childNodes[0].nodeValue;
Entities.users[i].UserName=_5.getElementsByTagName("UserName")[i].childNodes[0].nodeValue;
Entities.users[i].UserPhoto=_5.getElementsByTagName("UserPhoto")[i].childNodes[0].nodeValue;
Entities.artists[i]=new UserData();
Entities.artists[i].UserID=_5.getElementsByTagName("ArtistID")[i].childNodes[0].nodeValue;
Entities.artists[i].UserName=_5.getElementsByTagName("ArtistName")[i].childNodes[0].nodeValue;
Entities.artists[i].UserPhoto=_5.getElementsByTagName("ArtistPhoto")[i].childNodes[0].nodeValue;
Entities.groups[i]=new GroupData();
Entities.groups[i].GroupID=_5.getElementsByTagName("GroupID")[i].childNodes[0].nodeValue;
Entities.groups[i].GroupName=_5.getElementsByTagName("GroupName")[i].childNodes[0].nodeValue;
Entities.groups[i].GroupPhoto=_5.getElementsByTagName("GroupPhoto")[i].childNodes[0].nodeValue;
}
switch(Entities.page){
case "index":
Entities.ShowPopularAtIndexPage();
break;
case "user":
Entities.ShowPopularAtUserPage();
break;
case "group":
Entities.ShowPopularAtGroupPage();
break;
}
}
},ShowPopularAtIndexPage:function(){
var _9=new Array();
_9.push("<div style='margin:0 0 10px 8px;'>");
for(var i=0;i<this.users.length;i++){
_9.push("\t<div style='float:left; width:110px;'>");
_9.push("\t\t<div align='left'><img src='../images/photoFrame_01.gif' width='100'></div>");
_9.push("\t\t<div>");
_9.push("\t\t\t<div style='float:left;'><img src='../images/photoFrame_02.gif'></div>");
_9.push("\t\t\t<div style='float:left;border:1px none #ff9900; width:71px;' align='center'>");
_9.push("\t\t\t\t<a href='../profile/friend/?cid="+this.users[i].UserID+"' target='_blank'>");
_9.push("\t\t\t\t<img src='"+this.users[i].UserPhoto+"' width='69' height='69' border='1' style='border-color:#c0c0c0;' align='top'>");
_9.push("\t\t\t\t</a>");
_9.push("\t\t\t<span class='text13'><a href='../profile/friend/?cid="+this.users[i].UserID+"' target='_blank' class='link4'>"+ShortString(this.users[i].UserName,8)+"</a></span></div>");
_9.push("\t\t\t<div style='float:left;border:1px none #ff9900;' align='left'><img src='../images/photoFrame_04.gif'></div>");
_9.push("\t\t</div>");
_9.push("\t\t<div style='float:none; height:80px; border:1px none #000000;'>&nbsp;</div>");
_9.push("\t\t<div align='left'><img src='../images/photoFrame_05.gif'></div>");
_9.push("\t</div>");
}
_9.push("</div>");
_9.push("<div style='margin:0 0 10px 8px;'>");
_9.push("\t<div align='left' style='margin:5px 0 0 5px;'><img src='../images/popularArtistas.gif' width='162' height='19'></div>");
for(var i=0;i<this.artists.length;i++){
_9.push("\t<div style='float:left; width:110px;'>");
_9.push("\t\t<div align='left'><img src='../images/photoFrame_01.gif' width='100'></div>");
_9.push("\t\t<div>");
_9.push("\t\t\t<div style='float:left;'><img src='../images/photoFrame_02.gif'></div>");
_9.push("\t\t\t<div style='float:left;border:1px none #ff9900; width:71px;' align='center'>");
_9.push("\t\t\t\t<a href='../profile/friend/?cid="+this.artists[i].UserID+"' target='_blank'>");
_9.push("\t\t\t\t<img src='"+this.artists[i].UserPhoto+"' width='69' height='69' border='1' style='border-color:#c0c0c0;' align='top'>");
_9.push("\t\t\t\t</a>");
_9.push("\t\t\t<span class='text13'><a href='../profile/friend/?cid="+this.artists[i].UserID+"' target='_blank' class='link4'>"+ShortString(this.artists[i].UserName,8)+"</a></span></div>");
_9.push("\t\t\t<div style='float:left;border:1px none #ff9900;' align='left'><img src='../images/photoFrame_04.gif'></div>");
_9.push("\t\t</div>");
_9.push("\t\t<div style='float:none; height:80px; border:1px none #000000;'>&nbsp;</div>");
_9.push("\t\t<div align='left'><img src='../images/photoFrame_05.gif'></div>");
_9.push("\t</div>");
}
_9.push("</div>");
_9.push("<div style='margin:0 0 10px 8px;'>");
_9.push("\t<div align='left' style='margin:5px 0 0 5px;'><img src='../images/popularGroups.gif' width='162' height='19'></div>");
for(var i=0;i<this.groups.length;i++){
_9.push("\t<div style='float:left; width:110px;'>");
_9.push("\t\t<div align='left'><img src='../images/photoFrame_01.gif' width='100'></div>");
_9.push("\t\t<div>");
_9.push("\t\t\t<div style='float:left;'><img src='../images/photoFrame_02.gif'></div>");
_9.push("\t\t\t<div style='float:left; border:1px none #ff9900; width:71px;' align='center'>");
_9.push("\t\t\t\t<a href='../groups/?gid="+this.groups[i].GroupID+"' target='_blank'>");
_9.push("\t\t\t\t<img src='"+this.groups[i].GroupPhoto+"' width='69' height='69' border='1' style='border-color:#c0c0c0;' align='top'>");
_9.push("\t\t\t\t</a>");
_9.push("\t\t\t<span class='text13'><a href='../groups/?gid="+this.groups[i].GroupPhoto+"' target='_blank' class='link4'>"+ShortString(this.groups[i].GroupName,8)+"</a></span></div>");
_9.push("\t\t\t<div style='float:left;border:1px none #ff9900;' align='left'><img src='../images/photoFrame_04.gif'></div>");
_9.push("\t\t</div>");
_9.push("\t\t<div style='float:none; height:80px; border:1px none #000000;'>&nbsp;</div>");
_9.push("\t\t<div align='left'><img src='../images/photoFrame_05.gif'></div>");
_9.push("\t</div>");
}
_9.push("</div>");
$("MostPopularPanel").innerHTML=_9.join("");
},ShowPopularAtUserPage:function(){
var _d=new Array();
_d.push("<div style='margin:0 0 10px 8px;'>");
_d.push("\t<div align='left' style='float:left; margin-top:20px;'><img src='/images/popularMembers2.gif'></div>");
for(var i=0;i<this.users.length;i++){
if((this.users.length-i)==1){
_d.push("\t<div style='float:left; width:110px;'>");
}else{
_d.push("\t<div style='float:left; width:110px; margin-right:10px;'>");
}
_d.push("\t\t<div style='float:left;border:1px none #ff9900; width:71px;' align='center'>");
_d.push("\t\t\t<a href='/profile/friend/?cid="+this.users[i].UserID+"' target='_blank'>");
_d.push("\t\t\t<img src='"+this.users[i].UserPhoto+"' width='69' height='69' border='1' style='border-color:#c0c0c0;' align='top'>");
_d.push("\t\t\t</a>");
_d.push("\t\t\t<span class='text13'><a href='/profile/friend/?cid="+this.users[i].UserID+"' target='_blank' class='link4'>"+ShortString(this.users[i].UserName,8)+"</a></span>");
_d.push("\t\t</div>");
_d.push("\t\t<div style='float:none; height:95px; border:1px none #000000;'>&nbsp;</div>");
_d.push("\t</div>");
}
_d.push("</div>");
_d.push("<div style='margin:0 0 10px 8px;'>");
_d.push("\t<div align='left' style='float:left; margin-top:20px;'><img src='/images/popularArtistas2.gif'></div>");
for(var i=0;i<this.artists.length;i++){
if((this.artists.length-i)==1){
_d.push("\t<div style='float:left; width:110px;'>");
}else{
_d.push("\t<div style='float:left; width:110px; margin-right:10px;'>");
}
_d.push("\t\t<div style='float:left;border:1px none #ff9900; width:71px;' align='center'>");
_d.push("\t\t\t<a href='/profile/friend/?cid="+this.artists[i].UserID+"' target='_blank'>");
_d.push("\t\t\t<img src='"+this.artists[i].UserPhoto+"' width='69' height='69' border='1' style='border-color:#c0c0c0;' align='top'>");
_d.push("\t\t\t</a>");
_d.push("\t\t\t<span class='text13'><a href='/profile/friend/?cid="+this.artists[i].UserID+"' target='_blank' class='link4'>"+ShortString(this.artists[i].UserName,8)+"</a></span>");
_d.push("\t\t</div>");
_d.push("\t\t<div style='float:none; height:95px; border:1px none #000000;'>&nbsp;</div>");
_d.push("\t</div>");
}
_d.push("</div>");
_d.push("<div style='margin:0 0 10px 8px;'>");
_d.push("\t<div align='left' style='float:left; margin-top:20px;'><img src='/images/popularGroups2.gif'></div>");
for(var i=0;i<this.groups.length;i++){
if((this.groups.length-i)==1){
_d.push("\t<div style='float:left; width:110px;'>");
}else{
_d.push("\t<div style='float:left; width:110px; margin-right:10px;'>");
}
_d.push("\t\t<div style='float:left; border:1px none #ff9900; width:71px;' align='center'>");
_d.push("\t\t\t<a href='/groups/?gid="+this.groups[i].GroupID+"' target='_blank'>");
_d.push("\t\t\t<img src='"+this.groups[i].GroupPhoto+"' width='69' height='69' border='1' style='border-color:#c0c0c0;' align='top'>");
_d.push("\t\t\t</a>");
_d.push("\t\t\t<span class='text13'><a href='/groups/?gid="+this.groups[i].GroupID+"' target='_blank' class='link4'>"+ShortString(this.groups[i].GroupName,8)+"</a></span>");
_d.push("\t\t</div>");
_d.push("\t\t<div style='float:none; height:95px; border:1px none #000000;'>&nbsp;</div>");
_d.push("\t</div>");
}
_d.push("</div>");
$("MostPopularPanel").innerHTML=_d.join("");
},ShowPopularAtGroupPage:function(){
this.ShowPopularAtUserPage();
}};
var Panel={LoadContent:function(_11,_12,_13){
LoadPage(_11,_12,_13);
},Load:function(_14,_15){
}};
function CreateGroupLogoPanel(){
var col=$("left_");
var _17=new Array();
var div=col.appendChild(document.createElement("div"));
div.id="left_0";
div.className="panel";
_17.push("<div id='left_0_name' class='panelhandle text2'>GROUP LOGO:</div>");
_17.push("<div id='GroupLogoLoader' align='center'><br>");
_17.push("\t<span><img src='/images/loadingArrows.gif' name='loadingArrows' align='absbottom' id='loadingArrows' onbeforeunload='MM_preloadImages(\"/images/loadingArrows.gif\")'></span>");
_17.push("\t<span id='GroupLoaderText' class='text1'>&nbsp;loading . . .</span>");
_17.push("\t<br><br>");
_17.push("</div>");
_17.push("<div id='GroupLogoContent' class='panelcontent'>&nbsp;</div>");
div.innerHTML=_17.join("");
}
function CreateGroupInfoPanel(){
var col=$("left_");
var _1a=new Array();
var div=col.appendChild(document.createElement("div"));
div.id="left_1";
div.className="panel";
_1a.push("<div id='left_1_handle' class='panelhandle' align='left'><span id='GroupName' class='text3'>&nbsp;</span></div>");
_1a.push("<div id='GroupInfoLoader' align='center'>");
_1a.push("\t<span><img src='/images/loadingArrows.gif' name='loadingArrows' align='absbottom' id='loadingArrows' onbeforeunload='MM_preloadImages(\"/images/loadingArrows.gif\")'></span>");
_1a.push("\t<span id='GroupLoaderText' class='text1'>&nbsp;loading . . .</span>");
_1a.push("\t<br><br>");
_1a.push("</div>");
_1a.push("<div id='GroupInfoContent' class='panelcontent' align='left'>&nbsp;</div>");
div.innerHTML=_1a.join("");
}
function CreateGroupMembersPanel(){
var col=$("left_");
var _1d=new Array();
var div=col.appendChild(document.createElement("div"));
div.id="left_2";
div.className="panel";
_1d.push("<div id='left_2_handle' class='panelhandle'>");
_1d.push("\t<span>GROUP MEMBERS:</span>&nbsp;&nbsp;");
_1d.push("\t<span id='GroupMembersCount'>&nbsp;</span>");
_1d.push("</div>");
_1d.push("<div id='GroupMembersLoader' align='center'>");
_1d.push("   <br/><br/><br/><br/>");
_1d.push("   <br/><br/><br/><br/>");
_1d.push("   <br/><br/><br/><br/>");
_1d.push("\t  <span><img src='/images/ajaxLoader3.gif' width='24' height='24'></span>");
_1d.push("   <br/><br/><br/><br/>");
_1d.push("   <br/><br/><br/><br/>");
_1d.push("   <br/><br/><br/><br/>");
_1d.push("</div>");
_1d.push("<div id='GroupMembersContent' class='panelcontent' style='border:1px none #000000;'>&nbsp;</div>");
div.innerHTML=_1d.join("");
}
function CreateGroupGalleryPanel(){
var col=$("right_");
var _20=new Array();
var div=col.appendChild(document.createElement("div"));
div.id="right_0";
div.className="panel";
_20.push("<div id='right_0_name' class='panelhandle text2'>GROUP GALLERY:</div>");
_20.push("<div id='GroupPhotoPanelContent' class='panelcontent'>No photos.</div>");
div.innerHTML=_20.join("");
}
function CreateGroupCommentsPanel(){
var col=$("right_");
var _23=new Array();
var div=col.appendChild(document.createElement("div"));
div.id="right_1";
div.className="panel";
_23.push("<div id='right_1_name' class='panelhandle text2'>GROUP COMMENTS:</div>");
_23.push("<div id='GroupCommentsPanelContent' class='panelcontent'>&nbsp;</div>");
div.innerHTML=_23.join("");
}
function SaveGroupPanelOrder(_25){
var _26="";
for(var i=0;i<_25.length;i++){
_26+=GetSortOrder(_25[i]);
if((i+1)!=_25.length){
_26+="&";
}
}
var req="<request><methodname>SaveGroupPanelOrder</methodname><data><groupid>"+Group.ID+"</groupid><panelorder>"+_26+"</panelorder></data></request>";
new Ajax.Request(AjaxUrl.Api,{postBody:req,contentType:"application/xml"});
}
function SaveGroupPanelOrderReply(_29){
}
function ParsePanelOrder(_2a,_2b){
var _2c=_2b.split("&");
return _2c[_2a].split(",");
}
function SaveUserPanelOrder(_2d){
var _2e="";
for(var i=0;i<_2d.length;i++){
_2e+=GetSortOrder(_2d[i]);
if((i+1)!=_2d.length){
_2e+="&amp;";
}
}
var req="<Request><MethodName>SaveUserPanelOrder</MethodName><UserID>"+User.CustomerID+"</UserID><PanelOrder>"+_2e+"</PanelOrder></Request>";
new Ajax.Request(AjaxUrl.ApiV2,{postBody:req,contentType:"application/xml",onSuccess:function(_31){
SaveUserPanelOrderReply(_31);
}});
}
function SaveUserPanelOrderReply(_32){
}
function GetSortOrder(col){
var str=Sortable.serialize(col);
var arr=str.split("&");
var _36=new Array();
_36.push(col);
_36.push(",");
for(var i=0;i<arr.length;i++){
var _38=arr[i].split("=");
_36.push(_38[1]);
if((i+1)!=arr.length){
_36.push(",");
}
}
return _36.join("");
}
function CreateGalleryPanel(){
var col=$("right_");
var _3a=new Array();
var div=col.appendChild(document.createElement("div"));
div.id="right_0";
div.className="panel";
_3a.push("\t <div id='right_0_name' class='panelhandle text2'>PHOTO GALLERY</div>");
_3a.push("\t <div id='generalphotopanel' class='panelcontent'>[ l o a d i n g ]</div>");
if(!Friend.CustomerID){
_3a.push("\t <div class='text2' style='padding-bottom:3px;'><a href='javascript:ActionBox.Open(&quot;PhotoMgtPanel.html&quot;, ShowPhotoMgt, ReloadPhotoGalleries, true)'>Click here to upload photos.</a></div>");
}
div.innerHTML=_3a.join("");
}
function CreateTherePanel(){
var col=$("right_");
var _3d=new Array();
var div=col.appendChild(document.createElement("div"));
div.id="right_1";
div.className="panel";
_3d.push("\t <div id='right_1_name' class='panelhandle text2'>THERE 3D WORLD</div>");
_3d.push("\t <div id='therepanel' class='panelcontent' style='margin-left:0px; height:250px;'>&nbsp;</div>");
div.innerHTML=_3d.join("");
}
function CreateUserCommentsPanel(){
var col=$("right_");
var _40=new Array();
var div=col.appendChild(document.createElement("div"));
div.id="right_2";
div.className="panel";
_40.push("\t <div id='right_2_name' class='panelhandle text2'>MY FRIENDS' COMMENTS</div>");
_40.push("\t <div id='usercommentspanel' class='panelcontent'>&nbsp;</div>");
div.innerHTML=_40.join("");
}
function CreatePopularPanel(){
var col=$("right_");
var _43=new Array();
var div=col.appendChild(document.createElement("div"));
div.id="right_3";
div.className="panel";
div.style.height="310px";
_43.push("\t <div id='right_1_name' class='panelhandle text2'>FEATURED MEMBERS</div>");
_43.push("\t <div id='MostPopularPanel' class='panelcontent' align='center' style='width:450px;'><br><br><img src='../images/ajaxLoader2.gif'></div>");
div.innerHTML=_43.join("");
}
function CreateVideoAdPanel(){
var col=$("right_");
var _46=new Array();
var div=col.appendChild(document.createElement("div"));
div.id="right_4";
div.className="panel";
div.style.height="310px";
_46.push("<div class='panelhandle text2'>");
_46.push("\t\t<div class='text1' style='float:right; padding-right:5px; font-weight:normal;'>");
_46.push("\t\t\t<a href='javascript:DeletePanel(&quot;right_&quot;, 4)'>del</a>");
_46.push("\t\t</div>");
_46.push("\t\t<div id='right_4_name'>THERE VIDEO</div>");
_46.push("</div>");
_46.push("<div id='VideoAdPanel' class='panelcontent' align='center' style='width:450px;'>");
_46.push("<object width='425' height='275'><param name='movie' value='http://www.youtube.com/v/4PfkwMdmfM0'></param><param  name='wmode' value='transparent'></param><embed src='http://www.youtube.com/v/4PfkwMdmfM0' type='application/x-shockwave-flash' wmode='transparent' width='425' height='275'></embed></object>");
_46.push("</div>");
div.innerHTML=_46.join("");
}
function CreateSearchBarPanel(){
var col=$("right_");
var _49=new Array();
var div=col.appendChild(document.createElement("div"));
div.id="right_5";
div.className="panel";
var _4b="<form method='get' action=' http://www.google.com.ph/custom ' target='google_window'> <table bgcolor='#ffffff'> <tr><td nowrap='nowrap' valign='top' align='left' height='32'> <a href=' http://www.google.com/ '> <img src='http://www.google.com/logos/Logo_25wht.gif ' border='0' alt='Google' align='middle'></img></a> <label for='sbi' style='display: none'>Enter your search terms</label> <input type='text' name='q' size='31' maxlength='255' value='' id='sbi'></input> <label for='sbb' style='display: none'>Submit search form</label> <input type='submit' name='sa' value='Search' id='sbb'></input> <input type='hidden' name='client' value='pub-9806334931652730'></input> <input type='hidden' name='forid' value='1'></input> <input type='hidden' name='channel' value='6163195775'></input> <input type='hidden' name='ie' value='ISO-8859-1'></input> <input type='hidden' name='oe' value='ISO-8859-1'></input> <input type='hidden' name='cof' value='GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1'></input> <input type='hidden' name='hl' value='en'></input> </td></tr></table> </form>";
_49.push("\t<div id='right_5_handle' class='panelhandle'>&nbsp;</div>");
_49.push("\t<div id='SearchBarPanel' class='panelcontent'>"+_4b+"</script></div>");
div.innerHTML=_49.join("");
}
function CreateUserPhotoPanel(){
var col=$("left_");
var _4d=new Array();
var div=col.appendChild(document.createElement("div"));
div.id="left_0";
div.className="panel";
_4d.push("\t<div id='left_0_name' class='panelhandle text2'>MY PROFILE PHOTO</div>");
_4d.push("\t <div id='profilephotopanel' class='panelcontent'>[ l o a d i n g ]</div>");
if(!Friend.CustomerID){
_4d.push("\t <div class='text2' style='padding-bottom:3px;'><a href='javascript:ActionBox.Open(&quot;PhotoMgtPanel.html&quot;, ShowPhotoMgt, ReloadPhotoGalleries, true)'>Click here to upload photos.</a></div>");
}
div.innerHTML=_4d.join("");
}
function CreateUserInfoPanel(){
var col=$("left_");
var _50=new Array();
var div=col.appendChild(document.createElement("div"));
div.id="left_1";
div.className="panel alignleft";
_50.push("\t<div id='left_1_handle' class='panelhandle'>");
_50.push("\t\t<div>");
_50.push("\t\t\t<span id='ViewFirstName' class='text3'>&nbsp;</span>");
_50.push("\t\t\t<span id='AvatarName' class='text4'>&nbsp;</span>");
_50.push("\t\t</div>");
_50.push("\t\t<div id='SexAgeStatus' class='text4'>&nbsp;</div>");
_50.push("\t</div>");
_50.push("\t<div id='userinfopanel' class='panelcontent'>&nbsp;</div>");
div.innerHTML=_50.join("");
}
function CreateFriendsPanel(){
var col=$("left_");
var _53=new Array();
var div=col.appendChild(document.createElement("div"));
div.id="left_2";
div.className="panel";
_53.push("\t<div id='left_2_handle' class='panelhandle text2'>MY FRIENDS <span id='FriendCount'>&nbsp;</span></div>");
_53.push("\t<div id='friendslistpanel' class='panelcontent2'>&nbsp;</div>");
div.innerHTML=_53.join("");
}
function CreateGroupsPanel(){
var col=$("left_");
var _56=new Array();
var div=col.appendChild(document.createElement("div"));
div.id="left_3";
div.className="panel";
_56.push("\t<div id='left_3_handle' class='panelhandle text2'>MY GROUPS <span id='GroupCount'>&nbsp;</span></div>");
_56.push("\t<div id='GroupsPanelLoader' align='center'>");
_56.push("\t\t<span><img src='/images/loadingArrows.gif' name='loadingArrows' align='absbottom' id='loadingArrows'></span>");
_56.push("\t\t<span id='GroupsPanelLoaderText' class='text1'>&nbsp;loading . . .</span>");
_56.push("\t</div>");
_56.push("\t<div id='groupspanel' class='panelcontent'>&nbsp;</div> ");
div.innerHTML=_56.join("");
}
function GetSongs(){
Script.Load("../scripts/Songs.js","Songs.Get");
}
function CloseFlashDetect(){
ShowLayer("GnFlashDetect",false);
document.getElementById("MusicPanel").innerHTML="<div align='center'>This content requires<br/>"+"the Adobe Flash Player 9.<br/><br/><a href='http://www.adobe.com/go/getflash/' target='_blank'>"+"<img src='/images/GetFlash.gif' width='88' height='31' border='0'></a><br/><br/>"+"Clicking the above link will launch a new browser and it's all worth it.</div>";
}
function LoadMusicPlayer(){
var oid;
var cid=Cookie.GetValue("cid");
var _5a="false";
var url="";
var _5c="";
if(Friend.CustomerID){
if(cid){
_5a="true";
}else{
cid=0;
}
oid=Friend.CustomerID;
}else{
oid=cid;
}
if(AppIsLocal()){
url="http://localhost/GrooveNet.Web/songs/GrooveNetMp3Player";
_5c="http://localhost/GrooveNet.Web/songs/playerProductInstall";
}else{
url="/songs/GrooveNetMp3Player";
_5c="/songs/playerProductInstall";
}
var _5d=9;
var _5e=0;
var _5f=0;
var _60=DetectFlashVer(6,0,65);
var _61=DetectFlashVer(_5d,_5e,_5f);
if(_60&&!_61){
var _62=(isIE==true)?"ActiveX":"PlugIn";
var _63=window.location;
document.title=document.title.slice(0,47)+" - Flash Player Installation";
var _64=document.title;
AC_FL_RunContent_LowVersion("src",_5c,"FlashVars","MMredirectURL="+_63+"&MMplayerType="+_62+"&MMdoctitle="+_64+"","width","100%","height","100%","align","middle","id","GrooveNetMp3Player","quality","high","bgcolor","#ffffff","name","GrooveNetMp3Player","allowScriptAccess","sameDomain","type","application/x-shockwave-flash","pluginspage","http://www.adobe.com/go/getflashplayer");
}else{
if(_61){
AC_FL_RunContent("src",url,"width","180","height","295","align","middle","id","GrooveNetMp3Player","quality","high","bgcolor","#ffffff","name","GrooveNetMp3Player","wmode","transparent","flashvars","oid="+oid+"&cid="+cid+"&grab="+_5a+"","allowScriptAccess","sameDomain","type","application/x-shockwave-flash","pluginspage","http://www.adobe.com/go/getflashplayer");
}else{
var _65="<div align='center'>This content requires<br/>the Adobe Flash Player 9.<br/>"+"<br/><a href='http://www.adobe.com/go/getflash/' target='_blank'>"+"<img src='/images/GetFlash.gif' width='88' height='31' border='0'></a><br/><br/>"+"Clicking the above link will launch a new browser and it's all worth it.</div>";
document.getElementById("MusicPanel").innerHTML=_65;
}
}
}
function CreateMusicPanel(){
var col=$("left_");
var _67=new Array();
var div=col.appendChild(document.createElement("div"));
div.id="left_4";
div.className="panel";
div.style.height="335px";
_67.push("<div id='left_4_name' class='panelhandle text2'>MUSIC</div>");
_67.push("<div class='panelcontent' align='right'>");
if(!Friend.CustomerID){
_67.push("\t<div>");
_67.push("\t\t<a href='javascript:ActionBox.Open(null, GetSongs, LoadMusicPlayer, false);'>edit playlist</a>");
_67.push("\t\t|");
_67.push("\t\t<a href='javascript:ActionBox.Open(&quot;../songs/UploadTemplate.aspx?cid="+Cookie.GetValue("cid")+"&quot;, null, LoadMusicPlayer, false);'>add songs</a>");
_67.push("\t</div>");
}
_67.push("\t\t<div>&nbsp;</div>");
_67.push("\t\t<div id='MusicPanel'><div align='center'>This content requires<br/>the Adobe Flash Player 9.<br/><br/><a href=http://www.adobe.com/go/getflash/><img src='/images/GetFlash.gif' width='88' height='31' border='0'></a></div></div>");
_67.push("</div>");
div.innerHTML=_67.join("");
}
function Nada(){
}
function CreateAdsensePanel(){
}


