
/*------------------------------------------------------------------
[DVD Landing Page - Functions]
------------------------------------------------------------------*/
//These are for New Releases and Topsellers module
function DisplayNewReleases() {
    $("#BestSellers").hide();
    $("#NewReleases").show();
    $("#BestSellersLink").removeClass();
    $("#NewReleasesLink").addClass("active");
    
    //Call to  function that initiates the tracking
    ReportToWss(newReleasesDiv);
}
function DisplayBestSellers() {
	$("#BestSellers").show();
	$("#NewReleases").hide();
	$("#BestSellersLink").addClass("active");
	$("#NewReleasesLink").removeClass();

	//Call to  function that initiates the tracking
    ReportToWss(bestSellersDiv);     
}

//These are for Upcoming releases module
function DisplayPreviousMonth(currentLink) {        
    var nextMnthLink = document.getElementById("NextMnthLink");
    var curMnthLink = document.getElementById("CurMnthLink");
    
    currentLink.className = "active"; 
    if(nextMnthLink != undefined)
    {
        nextMnthLink.className = ""; 
    } 
    if(curMnthLink != undefined)
    {
        curMnthLink.className = ""; 
    } 
    
    $("#PreviousMonth").show();
    $("#CurrentMonth").hide();  
    $("#NextMonth").hide();
    
    //Call to function that initiates the tracking
    ReportToWss(currentLink);
}

function DisplayCurrentMonth(currentLink) {        
    var nextMnthLink = document.getElementById("NextMnthLink");
    var prevMnthLink = document.getElementById("PrevMnthLink");
    
    
    currentLink.className = "active"; 
    if(nextMnthLink != undefined)
    {
        nextMnthLink.className = ""; 
    }
    
    if(prevMnthLink != undefined)
    {
        prevMnthLink.className = ""; 
    }
    
    $("#PreviousMonth").hide();
    $("#CurrentMonth").show();  
    $("#NextMonth").hide();

    //Call to function that initiates the tracking
    ReportToWss(currentLink);
}

function DisplayNextMonth(currentLink) {        
    var prevMnthLink = document.getElementById("PrevMnthLink");
    var curMnthLink = document.getElementById("CurMnthLink");
    
    currentLink.className = "active"; 
    if(prevMnthLink != undefined)
    {
        prevMnthLink.className = ""; 
    }
    if(curMnthLink != undefined)
    {
        curMnthLink.className = ""; 
    }
    
    $("#PreviousMonth").hide();
    $("#CurrentMonth").hide();  
    $("#NextMonth").show();
    
    //Call to function that initiates the tracking
    ReportToWss(currentLink);
}