﻿//var SessionName;  //mae_session
function getCookie(c_name)
{
    /*SessionName = document.form1.SessionThemeName.value; //mae_session
    if(SessionName != "") //mae_session
    {
        alert(SessionName);
        return SessionName; //mae_session
    }*/
    
  
        if (document.cookie.length>0)
          {
            
          c_start=document.cookie.indexOf(c_name + "=")
          if (c_start!=-1)
            { 
            c_start=c_start + c_name.length+1 
            c_end=document.cookie.indexOf(";",c_start)
            if (c_end==-1) c_end=document.cookie.length
            return unescape(document.cookie.substring(c_start,c_end))
            } 
          }
  
return ""
}
var theme =  getCookie("IftaaPreferredTheme");
var MouseOverSubMenuColor=GetSubMenuBG_Hover(theme);
var MouseOverSubMenuTextColor ="#000000";
var SubMenuBorder="#000000";
var SubMenuColor="#dedede";
var SubMenuTextColor=GetSubMenuFont_Color(theme);

function GetSubMenuBG_Hover(PageTheme)  // to get subMenu Cell Background Colour on mouse rollover according to the current page theme
{
    var BG_Hover = "";
    if(PageTheme == "Green") {BG_Hover="#ADC786";}
    if(PageTheme == "Green_en") {BG_Hover="#ADC786";}
    if(PageTheme == "Gray") {BG_Hover="Gray";}    
    if(PageTheme == "LightGreen") {BG_Hover="#d4dec2";}
    if(PageTheme == "Gold") {BG_Hover="#c3b98b";}
    if(PageTheme == "LightGold") {BG_Hover="#cccca7";}
    if(PageTheme == "Blue") {BG_Hover="#96a6b1";}
    if(PageTheme == "Blue_en") {BG_Hover="#96a6b1";}
    return BG_Hover;
}
function GetSubMenuFont_Color(PageTheme) // to get subMenu Cell Font Colour on mouse rollover according to the current page theme
{
    var Font_Color = "";
    if(PageTheme == "Green") {Font_Color="#3C462B";}
    if(PageTheme == "Green_en") {Font_Color="#3C462B";}
    if(PageTheme == "Gray") {Font_Color="Black";}    
    if(PageTheme == "LightGreen") {Font_Color="#3C462B";}
    if(PageTheme == "Gold") {Font_Color="#5b4100";}
    if(PageTheme == "LightGold") {Font_Color="5b4100";}
    if(PageTheme == "Blue") {Font_Color="#143250";}
    if(PageTheme == "Blue_en") {Font_Color="#143250";}
    return Font_Color;
}


stm_bm(["menu7938",700,"","blank.gif",0,"","",1,0,250,0,1000,1,0,0,"","",0,0,1,2,"default","hand",""],this);
stm_bp("p0",[0,4,0,0,0,0,0,0,100,"",-2,"",-2,50,0,0,"#999999","#FFFFF7","/App_Themes/"+theme+"/images/nav_cell.jpg",3,0,0,"#000000"]);

stm_ai("p0i0",[2,"","/App_Themes/"+theme+"/images/link06.jpg","/App_Themes/"+theme+"/images/link06.jpg",51,36,0,"","_self","","","","",0,0,0,"","",0,0,0,0,1,"#FFFFF7",1,"#B5BED6",1,"","",3,3,0,0,"#FFFFF7","#000000","#000000","#000000","8pt Verdana","8pt Verdana",0,0],47,36);
stm_bpx("p1","p0",[1,4,0,0,0,3,0,0,100,"",-2,"",-2,50,0,0,"#999999",SubMenuColor,""]);
stm_aix("p1i0","p0i0",[0,"Topics","","",-1,-1,0,"","_self","","","","",0,0,0,"","",0,0,0,0,1,"#FFFFFF",1,MouseOverSubMenuColor,0,"","",3,3,1,1,SubMenuBorder,"#000000",SubMenuTextColor,MouseOverSubMenuTextColor,"bold 7pt Verdana","bold 7pt Verdana"],80,0);
stm_aix("p1i1","p1i0",[0,"Indexes","","",-1,-1,0,""],80,0);
stm_ep();

stm_aix("p0i1","p0i0",[2,"","/App_Themes/"+theme+"/images/link05.jpg","/App_Themes/"+theme+"/images/link05.jpg",140],140,37);
stm_bpx("p2","p1",[]);stm_aix("p2i0","p1i0",[0,"Browse by Volume","","",-1,-1,0,""],150,0);
stm_aix("p2i1","p1i0",[0,"Browse by Topic","","",-1,-1,0,""],150,0);
stm_aix("p2i2","p1i0",[0,"Indexes","","",-1,-1,0,""],150,0);
stm_aix("p2i3","p1i0",[0,"Browse by Publication Date","","",-1,-1,0,""],150,0);
stm_aix("p2i4","p1i0",[0,"Browse by Scholar","","",-1,-1,0,""],150,0);
stm_aix("p2i5","p1i0",[0,"Browse by Research Title","","",-1,-1,0,""],150,0);
stm_aix("p2i6","p1i0",[0,"Browse by Page","","",-1,-1,0,""],150,0);
stm_ep();

stm_aix("p0i2","p0i0",[2,"","/App_Themes/"+theme+"/images/link04.jpg","/App_Themes/"+theme+"/images/link04.jpg",136],136,37);
stm_bpx("p3","p1",[]);
stm_aix("p3i0","p1i0",[0,"Browse by Volume","","",-1,-1,0,""],120,0);///Fatawa/FatawaChapters.aspx?MenuID=3&View=tree&NodeID=1&PageNo=1&BookID=8&Rokn=false
stm_aix("p3i1","p1i0",[0,"Browse by Topic","","",-1,-1,0,""],120,0);
stm_aix("p3i2","p1i0",[0,"Alphabetical Lexicon","","",-1,-1,0,""],120,0);///Fatawa/FatawaAlph.aspx?MenuID=3&section=8
stm_aix("p3i3","p1i0",[0,"Contemporary Fatwas","","",-1,-1,0,""],120,0);
stm_aix("p3i4","p1i0",[0,"Indexes","","",-1,-1,0,""],120,0);
stm_aix("p3i5","p1i0",[0,"Browse by Page","","",-1,-1,0,""],120,0);///Fatawa/Showbypage.aspx?MenuID=3&BookID=8
stm_ep();

stm_aix("p0i3","p0i0",[2,"","/App_Themes/"+theme+"/images/link03.jpg","/App_Themes/"+theme+"/images/link03.jpg",89],89,37);
stm_bpx("p4","p1",[]);
stm_aix("p4i0","p1i0",[0,"Browse by Volume","","",-1,-1,0,"/Fatawa/FatawaChapters.aspx?MenuID=0&View=tree&NodeID=1&PageNo=1&BookID=14&Rokn=false"],120,0);
stm_aix("p4i1","p1i0",[0,"Browse by Topic","","",-1,-1,0,""],120,0);
stm_aix("p4i2","p1i0",[0,"Alphabetical Lexicon","","",-1,-1,0,"/Fatawa/FatawaAlph.aspx?MenuID=0&section=14"],120,0);
stm_aix("p4i3","p1i0",[0,"Contemporary Fatwas","","",-1,-1,0,""],120,0);
stm_aix("p4i4","p1i0",[0,"Indexes","","",-1,-1,0,""],120,0);
stm_aix("p4i5","p1i0",[0,"Browse by Page","","",-1,-1,0,"/Fatawa/Showbypage.aspx?MenuID=0&BookID=14"],120,0);
stm_ep();

stm_aix("p0i4","p0i0",[2,"","/App_Themes/"+theme+"/images/link02.jpg","/App_Themes/"+theme+"/images/link02.jpg",139],139,37);
stm_bpx("p5","p1",[]);
stm_aix("p5i0","p1i0",[0,"Browse by Volume","","",-1,-1,0,""],150,0);
stm_aix("p5i1","p1i0",[0,"Browse by Topic","","",-1,-1,0,""],150,0);
stm_aix("p5i2","p1i0",[0,"Indexes","","",-1,-1,0,""],150,0);
stm_aix("p5i3","p1i0",[0,"Browse by Publication Date","","",-1,-1,0,""],150,0);
stm_aix("p5i4","p1i0",[0,"Browse by Name","","",-1,-1,0,""],150,0);
stm_aix("p5i5","p1i0",[0,"Browse by Research Title","","",-1,-1,0,""],150,0);
stm_aix("p5i6","p1i0",[0,"Browse by Page","","",-1,-1,0,""],150,0);
stm_ep();

stm_aix("p0i5","p0i0",[2,"","/App_Themes/"+theme+"/images/link01.jpg","/App_Themes/"+theme+"/images/link01.jpg",162],162,37);
stm_bpx("p6","p1",[]);
stm_aix("p6i0","p1i0",[0,"Browse by Volume","","",-1,-1,0,"/Fatawa/FatawaChapters.aspx?MenuID=0&View=tree&NodeID=1&PageNo=1&BookID=7&Rokn=false"],120,0);
stm_aix("p6i1","p1i0",[0,"Browse by Topic","","",-1,-1,0,""],120,0);
stm_aix("p6i2","p6i1",[0,"Alphabetical Lexicon","","",-1,-1,0,"/Fatawa/FatawaAlph.aspx?MenuID=0&section=7"],120,0);
stm_aix("p6i3","p6i1",[0,"Contemporary Fatwas","","",-1,-1,0,""],120,0);
stm_aix("p6i4","p6i1",[0,"Indexes","","",-1,-1,0,""],120,0);
stm_aix("p6i5","p6i1",[0,"Browse by Page","","",-1,-1,0,"/Fatawa/Showbypage.aspx?MenuID=0&BookID=7"],120,0);
stm_ep();

stm_ep();
stm_em();
