﻿// JScript File

function resizeIFrame()
{

    document.getElementById('contentPageFrame').height = 100;
    document.getElementById('contentPageFrame').height = window.frames["contentPageFrame"].document.body.scrollHeight ;
    if ( document.getElementById('contentPageFrame').height  < 350 )
    {
        document.getElementById('contentPageFrame').height = 380;
    }
    
    // SET THE PARTICULAR SUBLINK DIVISION
    var strFilePath = window.frames["contentPageFrame"].location.href;
    var startPos = strFilePath.lastIndexOf("/")
    var strFileName = strFilePath.substring(startPos+1, strFilePath.length);
    
    
    switch ( strFileName)
    {
        case "aboutus.htm":
        case "history.htm":
        case "vision.htm":
        case "mgmt-team-intro.htm":
        case "mgmt-team-rajesh.htm":
        case "mgmt-team-mangesh.htm":
        case "mgmt-team-hemant.htm":
        case "infrastructure.htm":
            document.getElementById('subLinkContainer').style.visibility = 'visible';
             document.getElementById('offeringsLinks').style.visibility = 'hidden';
            document.getElementById('aboutusSubLinks').style.visibility = 'visible';
            break;
        case "offerings.htm":
        case "e-LotteryExpert.htm":
        case "offerings-LE-intro.htm":
        case "offerings-LE-features.htm":
        case "offerings-LE-cs.htm":
        case "offerings-OLE-intro.htm":
        case "offerings-OLE-features.htm":
        case "offerings-OLE-details.htm":
        case "offerings-OLE-services.htm":
        case "offerings-OLE-games.htm":
        case "offerings-OLE-cs.htm":
        case "offerings-BE-intro.htm":
        case "offerings-BE-features.htm":
        case "offerings-BE-details.htm":
        case "offerings-TE-intro.htm":
        case "offerings-TE-features.htm":
        case "offerings-TE-cs.htm":
         case "offerings-TS-intro.htm":
        case "offerings-TS-features.htm":
        case "offerings-TS-cs.htm":
        case "transport-specialist.htm":
            document.getElementById('aboutusSubLinks').style.visibility = 'hidden';
            document.getElementById('subLinkContainer').style.visibility = 'visible';
            document.getElementById('offeringsLinks').style.visibility = 'visible';
            break;
        case "home.htm":
            document.getElementById('aboutusSubLinks').style.visibility = 'hidden';
            document.getElementById('offeringsLinks').style.visibility = 'hidden';
            break;
        case "case-studies.htm":  
        break;  
        default :
            document.getElementById('subLinkContainer').style.visibility = 'hidden';
            document.getElementById('aboutusSubLinks').style.visibility = 'hidden';
            document.getElementById('offeringsLinks').style.visibility = 'hidden';
            break;
    }
}
function setSubLinks()
{
    alert('Clicked');
}
