﻿// JScript File
var httpRequest=makeAjaxObject();

function makeAjaxObject()
{
    var objRequest;
    if(window.XMLHttpRequest)
    {
        objRequest=new XMLHttpRequest();        
    }
    else if(window.ActiveXObject)
    {
        try
        {
            objRequest=new ActiveXObject("Msxml2.XMLHTTP");
        }
        catch(e)
        {
            objRequest=new ActiveXObject("Microsoft.XMLHTTP");
        }
    }
    return objRequest;
}


function YogaMusic1(a,itmno)
{
    if(a=="left")
    {
        if(document.getElementById("hidYMcurr"+itmno).value==1)
        {           
            document.getElementById("hidYMcurr"+itmno).value=document.getElementById("hidYMpage"+itmno).value;
        }
        else
        {            
            document.getElementById("hidYMcurr"+itmno).value=parseInt(document.getElementById("hidYMcurr"+itmno).value)-1;
        }        
    }

    if(a=="right")
    {
      if(document.getElementById("hidYMcurr"+itmno).value==document.getElementById("hidYMpage"+itmno).value)
      {        
         document.getElementById("hidYMcurr"+itmno).value=1;
      }
      else
      {        
         document.getElementById("hidYMcurr"+itmno).value=parseInt(document.getElementById("hidYMcurr"+itmno).value)+1;
      }      
    }
    
    httpRequest.open("GET","ajaxYogaMusic.aspx?current="+document.getElementById("hidYMcurr"+itmno).value+"&page="+document.getElementById("hidYMpage"+itmno).value+"&itemno="+itmno,true);
    httpRequest.onreadystatechange=showYogaMusic1;
    httpRequest.send(null); 
}


function showYogaMusic1()
{
    if(httpRequest.readyState==4)
    {          
        document.getElementById("dvYogaMusic1").innerHTML=httpRequest.responseText;        
    }
    else if(httpRequest.readyState<4)
    {
        var strmusic="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"+
                      "<tr>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "</tr>"+
        "</table>";
        document.getElementById("dvYogaMusic1").innerHTML=strmusic;        
    }
}


//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

var httpRequest1=makeAjaxObject();

function YogaMusic2(a,itmno)
{
    if(a=="left")
    {
        if(document.getElementById("hidYMcurr"+itmno).value==1)
        {           
            document.getElementById("hidYMcurr"+itmno).value=document.getElementById("hidYMpage"+itmno).value;
        }
        else
        {            
            document.getElementById("hidYMcurr"+itmno).value=parseInt(document.getElementById("hidYMcurr"+itmno).value)-1;
        }        
    }

    if(a=="right")
    {
      if(document.getElementById("hidYMcurr"+itmno).value==document.getElementById("hidYMpage"+itmno).value)
      {        
         document.getElementById("hidYMcurr"+itmno).value=1;
      }
      else
      {        
         document.getElementById("hidYMcurr"+itmno).value=parseInt(document.getElementById("hidYMcurr"+itmno).value)+1;
      }      
    }
    
    httpRequest1.open("GET","ajaxYogaMusic.aspx?current="+document.getElementById("hidYMcurr"+itmno).value+"&page="+document.getElementById("hidYMpage"+itmno).value+"&itemno="+itmno,true);
    httpRequest1.onreadystatechange=showYogaMusic2;
    httpRequest1.send(null); 
}


function showYogaMusic2()
{
    if(httpRequest1.readyState==4)
    {          
        document.getElementById("dvYogaMusic2").innerHTML=httpRequest1.responseText;        
    }
    else if(httpRequest1.readyState<4)
    {
        var strmusic="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"+
                      "<tr>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "</tr>"+
        "</table>";
        document.getElementById("dvYogaMusic2").innerHTML=strmusic;        
    }
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

var httpRequest2=makeAjaxObject();

function YogaMusic3(a,itmno)
{
    if(a=="left")
    {
        if(document.getElementById("hidYMcurr"+itmno).value==1)
        {           
            document.getElementById("hidYMcurr"+itmno).value=document.getElementById("hidYMpage"+itmno).value;
        }
        else
        {            
            document.getElementById("hidYMcurr"+itmno).value=parseInt(document.getElementById("hidYMcurr"+itmno).value)-1;
        }        
    }

    if(a=="right")
    {
      if(document.getElementById("hidYMcurr"+itmno).value==document.getElementById("hidYMpage"+itmno).value)
      {        
         document.getElementById("hidYMcurr"+itmno).value=1;
      }
      else
      {        
         document.getElementById("hidYMcurr"+itmno).value=parseInt(document.getElementById("hidYMcurr"+itmno).value)+1;
      }      
    }
    
    httpRequest2.open("GET","ajaxYogaMusic.aspx?current="+document.getElementById("hidYMcurr"+itmno).value+"&page="+document.getElementById("hidYMpage"+itmno).value+"&itemno="+itmno,true);
    httpRequest2.onreadystatechange=showYogaMusic3;
    httpRequest2.send(null); 
}


function showYogaMusic3()
{
    if(httpRequest2.readyState==4)
    {          
        document.getElementById("dvYogaMusic3").innerHTML=httpRequest2.responseText;        
    }
    else if(httpRequest2.readyState<4)
    {
        var strmusic="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"+
                      "<tr>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "</tr>"+
        "</table>";
        document.getElementById("dvYogaMusic3").innerHTML=strmusic;        
    }
}

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

var httpRequest3=makeAjaxObject();

function YogaMusic4(a,itmno)
{
    if(a=="left")
    {
        if(document.getElementById("hidYMcurr"+itmno).value==1)
        {           
            document.getElementById("hidYMcurr"+itmno).value=document.getElementById("hidYMpage"+itmno).value;
        }
        else
        {            
            document.getElementById("hidYMcurr"+itmno).value=parseInt(document.getElementById("hidYMcurr"+itmno).value)-1;
        }        
    }

    if(a=="right")
    {
      if(document.getElementById("hidYMcurr"+itmno).value==document.getElementById("hidYMpage"+itmno).value)
      {        
         document.getElementById("hidYMcurr"+itmno).value=1;
      }
      else
      {        
         document.getElementById("hidYMcurr"+itmno).value=parseInt(document.getElementById("hidYMcurr"+itmno).value)+1;
      }      
    }
    
    httpRequest3.open("GET","ajaxYogaMusic.aspx?current="+document.getElementById("hidYMcurr"+itmno).value+"&page="+document.getElementById("hidYMpage"+itmno).value+"&itemno="+itmno,true);
    httpRequest3.onreadystatechange=showYogaMusic4;
    httpRequest3.send(null); 
}


function showYogaMusic4()
{
    if(httpRequest3.readyState==4)
    {          
        document.getElementById("dvYogaMusic4").innerHTML=httpRequest3.responseText;        
    }
    else if(httpRequest3.readyState<4)
    {
        var strmusic="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"+
                      "<tr>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "</tr>"+
        "</table>";
        document.getElementById("dvYogaMusic4").innerHTML=strmusic;        
    }
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

var httpRequest4=makeAjaxObject();

function YogaMusic5(a,itmno)
{
    if(a=="left")
    {
        if(document.getElementById("hidYMcurr"+itmno).value==1)
        {           
            document.getElementById("hidYMcurr"+itmno).value=document.getElementById("hidYMpage"+itmno).value;
        }
        else
        {            
            document.getElementById("hidYMcurr"+itmno).value=parseInt(document.getElementById("hidYMcurr"+itmno).value)-1;
        }        
    }

    if(a=="right")
    {
      if(document.getElementById("hidYMcurr"+itmno).value==document.getElementById("hidYMpage"+itmno).value)
      {        
         document.getElementById("hidYMcurr"+itmno).value=1;
      }
      else
      {        
         document.getElementById("hidYMcurr"+itmno).value=parseInt(document.getElementById("hidYMcurr"+itmno).value)+1;
      }      
    }
    
    httpRequest4.open("GET","ajaxYogaMusic.aspx?current="+document.getElementById("hidYMcurr"+itmno).value+"&page="+document.getElementById("hidYMpage"+itmno).value+"&itemno="+itmno,true);
    httpRequest4.onreadystatechange=showYogaMusic5;
    httpRequest4.send(null); 
}


function showYogaMusic5()
{
    if(httpRequest4.readyState==4)
    {          
        document.getElementById("dvYogaMusic5").innerHTML=httpRequest4.responseText;        
    }
    else if(httpRequest4.readyState<4)
    {
        var strmusic="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"+
                      "<tr>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "</tr>"+
        "</table>";
        document.getElementById("dvYogaMusic5").innerHTML=strmusic;        
    }
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

var httpRequest5=makeAjaxObject(); 
 
function YogaMusic6(a,itmno)
{
    if(a=="left")
    {
        if(document.getElementById("hidYMcurr"+itmno).value==1)
        {           
            document.getElementById("hidYMcurr"+itmno).value=document.getElementById("hidYMpage"+itmno).value;
        }
        else
        {            
            document.getElementById("hidYMcurr"+itmno).value=parseInt(document.getElementById("hidYMcurr"+itmno).value)-1;
        }        
    }

    if(a=="right")
    {
      if(document.getElementById("hidYMcurr"+itmno).value==document.getElementById("hidYMpage"+itmno).value)
      {        
         document.getElementById("hidYMcurr"+itmno).value=1;
      }
      else
      {        
         document.getElementById("hidYMcurr"+itmno).value=parseInt(document.getElementById("hidYMcurr"+itmno).value)+1;
      }      
    }
    
    httpRequest5.open("GET","ajaxYogaMusic.aspx?current="+document.getElementById("hidYMcurr"+itmno).value+"&page="+document.getElementById("hidYMpage"+itmno).value+"&itemno="+itmno,true);
    httpRequest5.onreadystatechange=showYogaMusic6;
    httpRequest5.send(null); 
}


function showYogaMusic6()
{
    if(httpRequest5.readyState==4)
    { 
        document.getElementById("dvYogaMusic6").innerHTML=httpRequest5.responseText;        
    }
    else if(httpRequest5.readyState<4)
    {
        var strmusic="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"+
                      "<tr>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "</tr>"+
        "</table>";
        document.getElementById("dvYogaMusic6").innerHTML=strmusic;        
    }
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


var httpRequest6=makeAjaxObject();

function YogaMusic7(a,itmno)
{
    if(a=="left")
    {
        if(document.getElementById("hidYMcurr"+itmno).value==1)
        {           
            document.getElementById("hidYMcurr"+itmno).value=document.getElementById("hidYMpage"+itmno).value;
        }
        else
        {            
            document.getElementById("hidYMcurr"+itmno).value=parseInt(document.getElementById("hidYMcurr"+itmno).value)-1;
        }        
    }

    if(a=="right")
    {
      if(document.getElementById("hidYMcurr"+itmno).value==document.getElementById("hidYMpage"+itmno).value)
      {        
         document.getElementById("hidYMcurr"+itmno).value=1;
      }
      else
      {        
         document.getElementById("hidYMcurr"+itmno).value=parseInt(document.getElementById("hidYMcurr"+itmno).value)+1;
      }      
    }
    
    httpRequest6.open("GET","ajaxYogaMusic.aspx?current="+document.getElementById("hidYMcurr"+itmno).value+"&page="+document.getElementById("hidYMpage"+itmno).value+"&itemno="+itmno,true);
    httpRequest6.onreadystatechange=showYogaMusic7;
    httpRequest6.send(null); 
}


function showYogaMusic7()
{
    if(httpRequest6.readyState==4)
    {          
        document.getElementById("dvYogaMusic7").innerHTML=httpRequest6.responseText;        
    }
    else if(httpRequest6.readyState<4)
    {
        var strmusic="<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"+
                      "<tr>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "<td width=\"125\" align=\"center\" valign=\"middle\"><a href=\"#\"><img src=\"images/commentloader.gif\" alt=\"\" title=\"\"></a></td>"+
                        "</tr>"+
        "</table>";
        document.getElementById("dvYogaMusic7").innerHTML=strmusic;        
    }
}




