﻿// 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 yogamusic(a,itmno)
{
    if(a=="left")
    {
        if(document.getElementById("Uc_YogaMeditationMusic_new1_hidcurr").value==1)
        {           
            document.getElementById("Uc_YogaMeditationMusic_new1_hidcurr").value=document.getElementById("Uc_YogaMeditationMusic_new1_hidpage").value;
        }
        else
        {            
            document.getElementById("Uc_YogaMeditationMusic_new1_hidcurr").value=parseInt(document.getElementById("Uc_YogaMeditationMusic_new1_hidcurr").value)-1;
        }        
    }

    if(a=="right")
    {
      if(document.getElementById("Uc_YogaMeditationMusic_new1_hidcurr").value==document.getElementById("Uc_YogaMeditationMusic_new1_hidpage").value)
      {        
         document.getElementById("Uc_YogaMeditationMusic_new1_hidcurr").value=1;
      }
      else
      {        
         document.getElementById("Uc_YogaMeditationMusic_new1_hidcurr").value=parseInt(document.getElementById("Uc_YogaMeditationMusic_new1_hidcurr").value)+1;
      }      
    }
    
    httpRequest.open("GET","ajaxHomePage_new.aspx?current="+document.getElementById("Uc_YogaMeditationMusic_new1_hidcurr").value+"&page="+document.getElementById("Uc_YogaMeditationMusic_new1_hidpage").value+"&itemno="+itmno,true);
    httpRequest.onreadystatechange=showYogaMusicItem;
    httpRequest.send(null); 
}

function showYogaMusicItem()
{
    if(httpRequest.readyState==4)
    {          
        document.getElementById("Uc_YogaMeditationMusic_new1_dvYogaMeditationMusic").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("Uc_YogaMeditationMusic_new1_dvYogaMeditationMusic").innerHTML=strmusic;        
    }
}
var httpRequest1=makeAjaxObject();
function yogabook(a,itmno)
{
    if(a=="left")
    {
        if(document.getElementById("Uc_YogaMeditationBooks_new1_hidcurrBook").value==1)
        {           
            document.getElementById("Uc_YogaMeditationBooks_new1_hidcurrBook").value=document.getElementById("Uc_YogaMeditationBooks_new1_hidpageBook").value;
        }
        else
        {            
            document.getElementById("Uc_YogaMeditationBooks_new1_hidcurrBook").value=parseInt(document.getElementById("Uc_YogaMeditationBooks_new1_hidcurrBook").value)-1;
        }        
    }

    if(a=="right")
    {
      if(document.getElementById("Uc_YogaMeditationBooks_new1_hidcurrBook").value==document.getElementById("Uc_YogaMeditationBooks_new1_hidpageBook").value)
      {        
         document.getElementById("Uc_YogaMeditationBooks_new1_hidcurrBook").value=1;
      }
      else
      {        
         document.getElementById("Uc_YogaMeditationBooks_new1_hidcurrBook").value=parseInt(document.getElementById("Uc_YogaMeditationBooks_new1_hidcurrBook").value)+1;
      }             
    }
    
    httpRequest1.open("GET","ajaxHomePage_new.aspx?current="+document.getElementById("Uc_YogaMeditationBooks_new1_hidcurrBook").value+"&page="+document.getElementById("Uc_YogaMeditationBooks_new1_hidpageBook").value+"&itemno="+itmno,true);
    httpRequest1.onreadystatechange=showYogaBookItem;
    httpRequest1.send(null); 
}

function showYogaBookItem()
{
    if(httpRequest1.readyState==4)
    {          
        document.getElementById("Uc_YogaMeditationBooks_new1_dvYogaMeditationBooks").innerHTML=httpRequest1.responseText;        
    }
    else if(httpRequest1.readyState<4)
    {
        var strbook="<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("Uc_YogaMeditationBooks_new1_dvYogaMeditationBooks").innerHTML=strbook;                
    }
}

var httpRequest2=makeAjaxObject();

function yogadvd(a,itmno)
{
    if(a=="left")
    {
        if(document.getElementById("Uc_YogaMeditationDVD_new1_hidcurrDVD").value==1)
        {           
            document.getElementById("Uc_YogaMeditationDVD_new1_hidcurrDVD").value=document.getElementById("Uc_YogaMeditationDVD_new1_hidpageDVD").value;
        }
        else
        {            
            document.getElementById("Uc_YogaMeditationDVD_new1_hidcurrDVD").value=parseInt(document.getElementById("Uc_YogaMeditationDVD_new1_hidcurrDVD").value)-1;
        }        
    }

    if(a=="right")
    {
      if(document.getElementById("Uc_YogaMeditationDVD_new1_hidcurrDVD").value==document.getElementById("Uc_YogaMeditationDVD_new1_hidpageDVD").value)
      {        
         document.getElementById("Uc_YogaMeditationDVD_new1_hidcurrDVD").value=1;
      }
      else
      {        
         document.getElementById("Uc_YogaMeditationDVD_new1_hidcurrDVD").value=parseInt(document.getElementById("Uc_YogaMeditationDVD_new1_hidcurrDVD").value)+1;
      }      
    }
    
    httpRequest2.open("GET","ajaxHomePage_new.aspx?current="+document.getElementById("Uc_YogaMeditationDVD_new1_hidcurrDVD").value+"&page="+document.getElementById("Uc_YogaMeditationDVD_new1_hidpageDVD").value+"&itemno="+itmno,true);
    httpRequest2.onreadystatechange=showYogaDVDItem;
    httpRequest2.send(null); 
}

function showYogaDVDItem()
{
    if(httpRequest2.readyState==4)
    {          
        document.getElementById("Uc_YogaMeditationDVD_new1_dvYogaMeditationDVD").innerHTML=httpRequest2.responseText;        
    }
    else if(httpRequest2.readyState<4)
    {   
        var strdvd="<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("Uc_YogaMeditationDVD_new1_dvYogaMeditationDVD").innerHTML=strdvd;        
    }
}

var httpRequest3=makeAjaxObject();
function yogawear(a,itmno)
{
    if(a=="left")
    {
        if(document.getElementById("Uc_YogaMeditationWear_new1_hidcurrWear").value==1)
        {           
            document.getElementById("Uc_YogaMeditationWear_new1_hidcurrWear").value=document.getElementById("Uc_YogaMeditationWear_new1_hidpageWear").value;
        }
        else
        {            
            document.getElementById("Uc_YogaMeditationWear_new1_hidcurrWear").value=parseInt(document.getElementById("Uc_YogaMeditationWear_new1_hidcurrWear").value)-1;
        }        
    }

    if(a=="right")
    {
      if(document.getElementById("Uc_YogaMeditationWear_new1_hidcurrWear").value==document.getElementById("Uc_YogaMeditationWear_new1_hidpageWear").value)
      {        
         document.getElementById("Uc_YogaMeditationWear_new1_hidcurrWear").value=1;
      }
      else
      {        
         document.getElementById("Uc_YogaMeditationWear_new1_hidcurrWear").value=parseInt(document.getElementById("Uc_YogaMeditationWear_new1_hidcurrWear").value)+1;
      }      
    }
    
    httpRequest3.open("GET","ajaxHomePage_new.aspx?current="+document.getElementById("Uc_YogaMeditationWear_new1_hidcurrWear").value+"&page="+document.getElementById("Uc_YogaMeditationWear_new1_hidpageWear").value+"&itemno="+itmno,true);
    httpRequest3.onreadystatechange=showYogaWearItem;
    httpRequest3.send(null); 
}


function showYogaWearItem()
{
    if(httpRequest3.readyState==4)
    {          
        document.getElementById("Uc_YogaMeditationWear_new1_dvYogaMeditationWear").innerHTML=httpRequest3.responseText;        
    }
    else if(httpRequest3.readyState<4)
    {
        var strwear="<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("Uc_YogaMeditationWear_new1_dvYogaMeditationWear").innerHTML=strwear;        
    }
}

var httpRequest4=makeAjaxObject();
function yogaaccessories(a,itmno)
{
    if(a=="left")
    {
        if(document.getElementById("Uc_YogaMeditationAccessories_new1_hidcurrAccessories").value==1)
        {           
            document.getElementById("Uc_YogaMeditationAccessories_new1_hidcurrAccessories").value=document.getElementById("Uc_YogaMeditationAccessories_new1_hidpageAccessories").value;
        }
        else
        {            
            document.getElementById("Uc_YogaMeditationAccessories_new1_hidcurrAccessories").value=parseInt(document.getElementById("Uc_YogaMeditationAccessories_new1_hidcurrAccessories").value)-1;
        }         
    }

    if(a=="right")
    {
      if(document.getElementById("Uc_YogaMeditationAccessories_new1_hidcurrAccessories").value==document.getElementById("Uc_YogaMeditationAccessories_new1_hidpageAccessories").value)
      {        
         document.getElementById("Uc_YogaMeditationAccessories_new1_hidcurrAccessories").value=1;
      }
      else
      {        
         document.getElementById("Uc_YogaMeditationAccessories_new1_hidcurrAccessories").value=parseInt(document.getElementById("Uc_YogaMeditationAccessories_new1_hidcurrAccessories").value)+1;
      }       
    }
    
    httpRequest4.open("GET","ajaxHomePage_new.aspx?current="+document.getElementById("Uc_YogaMeditationAccessories_new1_hidcurrAccessories").value+"&page="+document.getElementById("Uc_YogaMeditationAccessories_new1_hidpageAccessories").value+"&itemno="+itmno,true);
    httpRequest4.onreadystatechange=showYogaAccessoriesItem;
    httpRequest4.send(null); 
}


function showYogaAccessoriesItem()
{
    if(httpRequest4.readyState==4)
    {          
        document.getElementById("Uc_YogaMeditationAccessories_new1_dvYogaMeditationAccessories").innerHTML=httpRequest4.responseText;        
    }
    else if(httpRequest4.readyState<4)
    {
        var stracc="<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("Uc_YogaMeditationAccessories_new1_dvYogaMeditationAccessories").innerHTML=stracc;        
    }
}

var httpRequesthelth=makeAjaxObject();
function yogahelth(a,itmno)
{
    if(a=="left")
    {
        if(document.getElementById("Uc_YogaMeditationHelth1_hidcurrHelth").value==1)
        {           
            document.getElementById("Uc_YogaMeditationHelth1_hidcurrHelth").value=document.getElementById("Uc_YogaMeditationHelth1_hidpageHelth").value;
        }
        else
        {            
            document.getElementById("Uc_YogaMeditationHelth1_hidcurrHelth").value=parseInt(document.getElementById("Uc_YogaMeditationHelth1_hidcurrHelth").value)-1;
        }         
    }

    if(a=="right")
    {
      if(document.getElementById("Uc_YogaMeditationHelth1_hidcurrHelth").value==document.getElementById("Uc_YogaMeditationHelth1_hidpageHelth").value)
      {        
         document.getElementById("Uc_YogaMeditationHelth1_hidcurrHelth").value=1;
      }
      else
      {        
         document.getElementById("Uc_YogaMeditationHelth1_hidcurrHelth").value=parseInt(document.getElementById("Uc_YogaMeditationHelth1_hidcurrHelth").value)+1;
      }       
    }
    
    httpRequesthelth.open("GET","ajaxHomePage_new.aspx?current="+document.getElementById("Uc_YogaMeditationHelth1_hidcurrHelth").value+"&page="+document.getElementById("Uc_YogaMeditationHelth1_hidpageHelth").value+"&itemno="+itmno,true);
    httpRequesthelth.onreadystatechange=showYogahelthItem;
    httpRequesthelth.send(null); 
}


function showYogahelthItem()
{
    if(httpRequesthelth.readyState==4)
    {          
        document.getElementById("Uc_YogaMeditationHelth1_dvYogaMeditationHelth").innerHTML=httpRequesthelth.responseText;        
    }
    else if(httpRequesthelth.readyState<4)
    {
        var stracc="<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("Uc_YogaMeditationHelth1_dvYogaMeditationHelth").innerHTML=stracc;        
    }
}
