﻿// JScript File
 
 
var g_workFrame = getMainIframe();
var genre_list = fillGenrelist();
 
 function fillGenrelist()
 {
     var genre = new Array();
     genre[0] = "Rock";
     genre[1] = "Hip-Hop";
     genre[2] = "Rap"; 
     genre[3] = "Alternative";
     genre[4] = "R & B";
     genre[5] = "Indie"; 
     genre[6] = "Acoustic";
     genre[7] = "Punk";
     genre[8] = "Electronic"; 
     genre[9] = "Arabic style";
     genre[10] = "Djs sets";
     genre[11] = "Death metal"; 
     genre[12] = "Progressive";
     genre[13] = "Reggae";
     genre[14] = "Comedy"; 
     genre[15] = "Soul";
     genre[16] = "Jazz";
     genre[17] = "Funk"; 
     genre[18] = "Ambient";
     genre[19] = "Blues";
     genre[20] = "Classic rock"; 
     genre[21] = "Country";
     genre[22] = "Garage";
     genre[23] = "Psychedelic"; 
     genre[24] = "Latin";
     genre[25] = "Afro-beat";
     genre[26] = "Drum & bass"; 
     genre[27] = "Acappella";
     genre[28] = "House";
     genre[29] = "Trance"; 
     genre[30] = "Classical";
     genre[31] = "Power pop";
     genre[32] = "Breakbeat"; 
     genre[33] = "Industrial";
     genre[34] = "Gothic";
     genre[35] = "Tumtabalism"; 
     genre[36] = "Trip-hop";
     genre[37] = "Dub";
     genre[38] = "Disco House"; 
     genre[39] = "New Age";
     genre[40] = "Hardcore";
     genre[41] = "Surf rock"; 
     genre[42] = "Techno";
     genre[43] = "Folk";
     genre[44] = "Chillout"; 
     genre[45] = "World";
     genre[46] = "Other";
      
    return genre;
}
 

var oInterval;// = window.setInterval("fnDefinedVar()",1);
function getMainIframe()
{
   return  parent.document.getElementById('ifrmWork');
        
}
function fnDefinedVar(){
 
    try
    {
        document.getElementById("ucLogin_txtUserName").focus();    
    }
    catch(ex)
    {}
}

//function fnReDefinedVar()
//{
//    oInterval = window.setInterval("fnDefinedVar()",1);
//}

function playSongStruct(songInfo)
{
//    debugger;
    this.songId = songInfo[0];
    this.songName = songInfo[1];
    this.songUrl = songInfo[2];
    this.artistFirstName = songInfo[3];
    this.artistLastName = songInfo[4];
//    this.artistName = songInfo[3] + " " + songInfo[4];
    this.playListSongOrder = songInfo[5];
    this.imgAlbumPhotoUrl = songInfo[6];
    this.genreName = songInfo[7];
    this.albumName = songInfo[8];
}

function funScrollTop()
{
    window.scrollTo(0,0);
}


