﻿// PrepLogic Homepage JScript File
function redirectToSale() {
    window.location ='/products/exams/view-practice-exams.aspx';
}
function switchTabs(block) {
    switch (block)
    {
        case 'promotionalSaleBlock':
            $get('freeWhitePapersBlock').style.display = 'none';
            $get('promotionalSaleBlock').style.display = 'block';
            $get('promo_tabs').style.backgroundPosition = 1 + "px" + " " + 0 + "px";
            $get('PS_text').style.fontSize = "12px"
            $get('PS_text').style.fontWeight = "bold";
            $get('PS_text').style.color = "#314e6a"; //#314e6a
            $get('FWP_text').style.fontWeight = "normal";
            $get('FWP_text').style.color = "#314e6a"; //#314e6a
            break;
        case 'freeWhitePapersBlock':
            $get('freeWhitePapersBlock').style.display = 'block';
            $get('promotionalSaleBlock').style.display = 'none';
            $get('promo_tabs').style.backgroundPosition = 1 + "px" + " " + -36 + "px";
            $get('FWP_text').style.color = "#314e6a"; //#314e6a
            $get('FWP_text').style.fontWeight = "bold";
            $get('PS_text').style.fontWeight = "normal";
            $get('PS_text').style.color = "#314e6a"; //#314e6a
            $get('PS_text').style.fontWeight = "bold";
            $get('PS_text').style.fontSize = "11px"
            break;
        case 'offersForIndividualsBlock':
            $get('offersForIndividualsBlock').style.display = 'block';
            $get('volumeSalesSpecialsBlock').style.display = 'none';
            $get('toggle_tab').style.backgroundPosition = 0 + "px" + " " + -21 + "px";
            $get('VSS_text').style.fontWeight = "normal";
            $get('PLI_text').style.fontWeight = "bold";
            break;
        case 'volumeSalesSpecialsBlock':
            $get('offersForIndividualsBlock').style.display = 'none';
            $get('volumeSalesSpecialsBlock').style.display = 'block';
            $get('toggle_tab').style.backgroundPosition = 0 + "px" + " " + 0 + "px";
            $get('VSS_text').style.fontWeight = "bold";
            $get('PLI_text').style.fontWeight = "normal";
            break;
    }
}

