﻿// JScript File

function winopen(x,xname)
{
 window.open(x,xname,"height=400,width=600,left=200,top=100");
}


function winopen_corporate_adda(x,xname)
{
 window.open(x,xname,"height=320,width=665,left=200,top=100");
}


function winopen_corporate_sidcl(x,xname)
{
 window.open(x,xname,"height=428,width=665,left=200,top=100");
}


function winopenflash(x,xname)
{
 window.open(x,xname,"height=600,width=800,left=100,top=100");
}

function winopen_clients(x,xname)
{
 window.open(x,xname,"height=520,width=637,left=200,top=100,scrollbars=yes");
}

function winopen_news(x,xname,features)
{
 window.open(x,xname,features);
}

function winopenpurvi(x,xname)
{
 window.open(x,xname,"height=531,width=800,left=200,top=100");
}

function winopen_shristinagar_plan(x,xname)
{
 window.open(x,xname,"height=450,width=680,left=200,top=100,scrollbars=yes");
}

function winopen_shristi(x,xname)
{
 window.open(x,xname,"height=525,width=665,left=200,top=100");
}

/*
function CollapsableSubSubMenu(currentid)
{
    var menuCount = 12;
    var obj=null;
    debugger;
    for(var i=1; i < menuCount; i++){ 
        try{       
            obj = document.getElementById("_SSM"+i);
            alert(obj + '     ' + "_SSM"+i);
            if(obj){
                obj.style.display="none";
                obj=null;
            }
        }catch(e){}
    }
    obj = document.getElementById(currentid);
    obj.style.display="";
    obj=null;
    alert(obj + '     ' + currentid);
}
*/
function SubMenuController()
{
    var pagename=location.href;  
    //alert(pagename); 
    if(pagename.indexOf("projects_shristinagar_residential")>=0)
    {
        obj = document.getElementById("ssm_projects_shristinagar_residential");                    
        obj.style.display="";
    }else if(pagename.indexOf("projects_shristinagar_cbd")>=0)
    {
        obj = document.getElementById("ssm_projects_shristinagar_cbd");                    
        obj.style.display="";
    }
}

 