﻿
var ISSUEmonth;
var fnl_month;
var LastIssue;



NDX_fname=0;
NDX_link=13;
NDX_fname=0;
NDX_Title=3;
NDX_Summary=5;
NDX_Section=1;
NDX_Priority=7;
NDX_images=13;
NDX_Author=4;
NDX_Columns=2;
NDX_images_name=0;
NDX_images_desc=1;
NDX_images_thumb=2;
NDX_New=11;
NDX_Breaking_news=12;
NDX_Page=9;
CIndex=3; 
NDX_Order=8;
NDX_Audios=15;
NDX_C_SECTION=0;
studies="دراسات";
poetry="شعر";
narrative="قص / سرد";
critisism="نقد";
milestones="علامات";
books="كتب";
reports="رسائل وتقارير";
events="أنشطة ثقـافية";
dossier="ملف العدد";
encounters="مواجهات / شهادات";
index="فهرس العدد";
previous="أعداد سابقـة";
links="روابط ذات صلة";
contactus="اتـصل بـنا";
novel="رواية العدد";
darwishtexts="نصوص لدرويش";
elegies="مراثي الشاعر";
obituaries="مقالات وداعية";
worldpoet="في قلب العالم";

//variables of functiion start
var fnl_info
var btSec
var ISSUEyear
var L_Date
var My_day

var issuedate
var sec_id
var issuenum
var ISSUEmonth
var Server="";

//variables of Section Functions 
var ISSUEyear;
var	ISSUEmonthday;
var ISSUEweekday;
var EISSUEmonth;
var section_id ;

//variables of Index Functions 
var date1 ;

var req = null;
var req1 = null;

var xml1="http://aeid:442/Common/Archive.xml";
var xml="http://aeid:442/Data/2009/1/1/Default.xml";

var xmlDoc;
var xmlArchive;
//var xml="http://poetry.sakhr.com.eg/Common/Archive.xml"


function processReqChange() 
{
    
    // only if req shows "complete"
    if (req.readyState == 4) 
    {  
        // only if "OK" 
        if (req.status == 200) 
        {
            // ...processing statements go here...
             xmlDoc = req.responseXML;
             xmlDoc.async=false;
             
             xmlArchive = req1.responseXML;
             xmlArchive.async=false;
             
             Start();
             GetYamanyJSHomPageValues();
        } 
        else 
        {
            alert("There was a problem retrieving the XML data:\n" + req.statusText);

        }
    }
}

if (window.XMLHttpRequest  && (document.implementation && document.implementation.createDocument)   )
{
  p=document.location.href;


    if (p.indexOf("Date=")==-1) 
    {       
    
            p=p.split("/");
    	    ulimit =p.length;
    	    var Server="";
    	    for(var con=0 ;con<ulimit-5;con=con+1)
	        {
    	        Server=Server+p[con]+"/";
    	    }
    		
		    issuedate=p[ulimit-4]+"/"+p[ulimit-3]+"/"+p[ulimit-2];
    		
    	

              req = new XMLHttpRequest();
              if (req.overrideMimeType) 
              {
                    //req.overrideMimeType('text/xml');
                    req.open("GET", Server+"Data/"+issuedate+"/Default.xml", true);
                    req.send(null);
                    req.onreadystatechange = processReqChange;
                    

              }
              
              req1 = new XMLHttpRequest();
              if (req1.overrideMimeType) 
              {
                    //req.overrideMimeType('text/xml');
                    req1.open("GET", Server+"Common/Archive.xml", true);
                    req1.send(null);
                    req1.onreadystatechange = processReqChange;


              }
      }
} 
else if (document.implementation && document.implementation.createDocument)
{
    alert("NotNormalBehaviour")
    xmlDoc=document.implementation.createDocument("","",null);
  
    xmlDoc.async=false;
    
    xmlArchive=document.implementation.createDocument("","",null);
    xmlArchive.async=false;
    Start();
}
else if (window.ActiveXObject)
{

    xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
    xmlArchive=new ActiveXObject("Microsoft.XMLDOM");
    xmlDoc.async=false;
    xmlArchive.async=false;
    Start();
}


//function onreadystatechange()
//{ alert(req.readyState)
//      //document.ajax.dyn.value="Wait server...";
//      if(req.readyState == 4)
//      {
//            if(req.status == 0)
//            {
//                  // process a XML document here
//                  var doc = req.responseXML;
//                  //var element = doc.getElementsByTagName('root').item(0);
//                  //document.ajax.dyn.value= element.firstChild.data;
//            }     
//            else  
//            {
//                alert("Error: returned status code " + req.status + " " + req.statusText)
//                  //document.ajax.dyn.value="Error: returned status code " + req.status + " " + req.statusText;
//            }   
//      } 

//}





function Start()
{



    p=document.location.href;


    if (p.indexOf("Date=")==-1) 
    {       
    
            p=p.split("/");
    	    ulimit =p.length;
    	    
    	    for(var con=0 ;con<ulimit-5;con=con+1)
	        {
    	        Server=Server+p[con]+"/";
    	    }
    		
		    issuedate=p[ulimit-4]+"/"+p[ulimit-3]+"/"+p[ulimit-2];
    		
          
    	
            if(window.ActiveXObject)
            {	
            
                xmlDoc.load(Server+"Data/"+issuedate+"/Default.xml");
          
                xmlArchive.load(Server+"Common/Archive.xml");
                qryArchive=xmlArchive.selectNodes("Data");
                
                 btArchive=qryArchive.nextNode();
                 
                LastIssue=btArchive.childNodes[0].childNodes[1].text;
                
                Email=btArchive.childNodes[0].childNodes[2].text;
                CollectionDocName=btArchive.childNodes[0].childNodes[3].text;
                CollectionImageName=btArchive.childNodes[0].childNodes[4].text;
                IdrisiServer=btArchive.childNodes[0].childNodes[6].text;
           }
           else if (document.implementation && document.implementation.createDocument)
           {
               
    //            xmlDoc.load(Server+"Data/"+issuedate+"/Default.xml");
    //            
    //            xmlArchive.load(Server+"Common/Archive.xml");

                qryArchive=  xmlArchive.getElementsByTagName("Data");
               
                LastIssue=xmlArchive.getElementsByTagName("LastIssue")[0].childNodes[0].nodeValue
                
                	        
	            Email=xmlArchive.getElementsByTagName("Email")[0].childNodes[0].nodeValue;
    	      
	            CollectionDocName=xmlArchive.getElementsByTagName("CollectionDocName")[0].childNodes[0].nodeValue;
                CollectionImageName=xmlArchive.getElementsByTagName("CollectionImageName")[0].childNodes[0].nodeValue;
                IdrisiServer=xmlArchive.getElementsByTagName("IdrisiServer")[0].childNodes[0].nodeValue;

            }
            
            if(window.ActiveXObject)
            {
                qryIssue=xmlDoc.selectNodes("Data/issue");
                
                btIssue=qryIssue.nextNode();
                 issuenum=btIssue.childNodes[1].text;
                 issuedate=btIssue.childNodes[0].text;
                pubyear=btIssue.childNodes[2].text;
                Hijri_Date=btIssue.childNodes[3].text;	
                Forms=btIssue.childNodes[4].text;
            }
            else if(document.implementation && document.implementation.createDocument)
            {
                 qryIssue=  xmlDoc.getElementsByTagName("Data");
                 qryIssue=qryIssue[0].getElementsByTagName("issue");
                 issuenum=qryIssue[0].getElementsByTagName("issuenum")[0].childNodes[0].nodeValue;
                 
                 issuedate=qryIssue[0].getElementsByTagName("issuedate")[0].childNodes[0].nodeValue;
                 pubyear=qryIssue[0].getElementsByTagName("pubyear")[0].childNodes[0].nodeValue;
                 Hijri_Date=qryIssue[0].getElementsByTagName("HDate")[0].childNodes[0].nodeValue;
                 Forms=qryIssue[0].getElementsByTagName("Forms")[0].childNodes[0].nodeValue;
                 
                 
            }
            
            if(window.ActiveXObject)
            {
                qrySec=xmlDoc.selectNodes("Data/Sections");
                btSec=qrySec.nextNode();
                
            }
            else if(document.implementation && document.implementation.createDocument)
            {
                qrySec=xmlDoc.getElementsByTagName("Data");
                qrySec=qrySec[0].getElementsByTagName("Sections");
                btSec=qrySec[0].getElementsByTagName("Section");
                
            }
       
           if(window.ActiveXObject)
            {
             qryArt=xmlDoc.selectNodes("Data/Articles");
             btArt=qryArt.nextNode();
            }
            else if(document.implementation && document.implementation.createDocument)
            {
                qryArt=xmlDoc.getElementsByTagName("Data");
                qryArt=qryArt[0].getElementsByTagName("Articles");
                btArt=qryArt[0].getElementsByTagName("Article");
            }
       
            if(window.ActiveXObject)
            {
                qryArt2=xmlDoc.selectNodes("Data/Articles/Article");
                btArt2=qryArt2.nextNode();
            }
            else if(document.implementation && document.implementation.createDocument)
            {
                qryArt2=btArt;
                btArt2=btArt;
            }
         
            date1 = new Date(issuedate);
        
	        ISSUEyear= date1.getFullYear();
	        ISSUEmonthday=date1.getDate(); //Day(issuedate);
            ISSUEweekday=FISSUEweekday(date1.getDay());
              var tmpmonth=date1.getMonth();
            tmpmonth=tmpmonth+1;
           
            FISSUEmonth(tmpmonth);

            L_Date=issuedate;
            //EISSUEmonth=EFISSUEmonth(jissuedate.getMonth()+1)
             
    	    for (var counter=0;counter<=L_Date.length-1;counter=counter+1)
	        {
    		
		        myChar=L_Date.substr(counter,1);
    	
		        if (myChar=="/" || myChar=="\\") 
		        {
			        First_Pos=counter;
			        break;
		        }
            }
	        My_day= L_Date.substr(0,First_Pos);
        	
	        My_month=L_Date.substr(First_Pos+1,2);
	        //My_month=L_Date.getMonth()+1;
	       // alert(L_Date)
    	    //alert(First_Pos)
	        if (My_month.slice(-1)=="/" || My_month.slice(-1)=="\\")
	        { 
	            My_month=My_month.substr(0,1);
	        }
	        My_year= ISSUEmonthday ;
    	    //alert(My_month);
	        //My_month=parseInt(My_month,2);
    	    
    	
	        switch( My_month)
	        {
		        case "1":
		            fnl_month="January";
		            break;
		        case "2":
		            fnl_month="Febreuary";
		            break;
		        case "3":
		            fnl_month="March";
		            break;
		        case "4":
		            fnl_month="April";
		            break;
		        case "5":
		            fnl_month="May";
		            break;
		        case "6":
		            fnl_month="June";
		            break;
		        case "7":
		            fnl_month="July";
		            break;
		        case "8":
		            fnl_month="August";
		            break;
		        case "9":
		            fnl_month="September";
		            break;
		        case "10":
		            fnl_month="October";
		            break;
		        case "11":
       	            fnl_month="November";
       	            break;
		        case "12":
		            fnl_month="December";
		            break;
		            default:
		               break;
        		    
            }
            //EISSUEmonth=EFISSUEmonth(jissuedate.getMonth()+1)
            EISSUEmonth = fnl_month ;
	        fnl_info=" Issue "+issuenum+" "+fnl_month+" "+My_day;
	        
	        CIssueNum=issuenum;
	        CIssueYear=pubyear;
            //fnl_info=" ISSUE NO "+CIssueNum+", "+ISSUEmonthday+" "+EISSUEmonth+" "+ISSUEyear
    }


}

function EFISSUEmonth(month) {
switch (month) {
	case 1:return "Jan"
	case 2:return "Feb"
	case 3:return "March"
	case 4:return "April"
	case 5:return "May"
	case 6:return "Jun"
	case 7:return "July"
	case 8:return "August"
	case 9:return "September"
	case 10:return "October"
	case 11:return "November"
	case 12:return "December"
}}
function GetYamanyJSHomPageValues()
{         
    if(document.location.href.indexOf("efault.xml")>-1)
    {
         if( ISSUEyear == undefined)
         {
             setTimeout("GetYamanyJSHomPageValues()",1000);
             return ;
         }
         document.getElementById('spc').innerHTML ="&nbsp;&nbsp;";
         document.getElementById('issuenum').innerHTML=" <font face='arial' style='color: black;font-size:10px; text-decoration:none;'><b>عدد </b>"+ issuenum+"</font>";
         document.getElementById('issuenum').innerHTML+= "<font face='arial' style='color: black;font-size:10px; text-decoration:none;'><b> "+ISSUEmonth+"</b></font>";
         document.getElementById('issuenum').innerHTML+="<font face='arial' style='color: black;font-size:10px; text-decoration:none;'>"+ISSUEyear+"</font>";
         document.getElementById('fnl').innerHTML="<a href='http://www.al-kalimah.com/English/2007/January/Edefault.html'><font face='arial'  style='color: black;font-size:10px; text-decoration:none;'>"+fnl_info+"</font></a>";
         if(L_Date=='2009/1/1')
         { 
              document.getElementById('goodart').innerHTML ="<table align='center' border='1' bordercolor='Black' width='100%'><tr><td align=center><font color='#AE0007' face='Simplified Arabic' style='text-decoration:none;font-size:20pt;'><b>عــدد ممـتــاز</b></font></td></tr></table>"
           
          }
            if(L_Date=='2008/10/1' || L_Date=='2008/11/1' ||L_Date=='2008/12/1')
                  {
                        document.getElementById('Darweesh').innerHTML =("<br\><a href='http://www.al-kalimah.com/data/2008/9/1/' target='new'><img src='old_cover_tmb.gif' border='0' alt='عدد خاص (محمود درويش)'/>	<br><font face='Simplified Arabic' size='3'><b>عدد خاص (محمود درويش)</b></font></a>")                 
                  }
      }
}
function GetIndexPageScripts()
{

    if( issuenum == undefined  ||  fnl_info == undefined)
    {
        
        setTimeout("GetIndexPageScripts()",1000);
        return ;
    }
      document.getElementById('issuenum1').innerHTML="<font color='gray'><u>"+issuenum+"</u> </font>" ;
      document.getElementById('year1').innerHTML+="<font color='gray' ><u>"+ISSUEmonth+"</u>    </font>";
      document.getElementById('spc7').innerHTML ="<font color='gray'> <u>&nbsp;</u>"

      ISSUEyear=date1.getFullYear();
      document.getElementById('year1').innerHTML+="<font color='gray' face='Simplified Arabic'> <u>"+ISSUEyear+"</u> </font>";
      document.getElementById('issuenumleft').innerHTML+=" "+issuenum;
      document.getElementById('issuenumleft').innerHTML+=" "+ISSUEmonth;

      document.getElementById('issuenumleft').innerHTML+=" "+ ISSUEyear;
      document.getElementById('fnl').innerHTML=fnl_info ;
}

function GetSectionPageScripts()
{
    if(issuenum == undefined)
    {
        setTimeout("GetSectionPageScripts()",1000);
        return ;
    }
    document.getElementById('issuenum1').innerHTML="<font color='gray'><u>"+ issuenum+"</u></font>" ;
    document.getElementById('spc17').innerHTML ="<font color='gray'><u>&nbsp;</u>";
    document.getElementById('year1').innerHTML+="<font color='gray'><u>"+ISSUEmonth+"</u></font>";
    ISSUEyear=date1.getFullYear();
    document.getElementById('year1').innerHTML+="<font color='gray' face='Simplified Arabic'><u>"+ISSUEyear+"</u></font>";
    document.getElementById('spc6').innerHTML ="&nbsp;";
    path =document.location.href;
    path=path.toUpperCase();

    if (window.ActiveXObject)
    {
	      if(path.indexOf("HOWTOUSE")==-1 && path.indexOf("ADVERT")==-1 && path.indexOf("SEARCHPAGE.XML")==-1)
	      {
		      document.write ("<img alt='' 		src='../../../../Common/Images/grayball.gif'/>");
	      }	
    }
    else if (document.implementation && document.implementation.createDocument)
    {

	      if(path.indexOf("HOWTOUSE")==-1 && path.indexOf("ADVERT")==-1 && path.indexOf("SEARCHPAGE.XML")==-1)
	      {
	        document.getElementById('graygif').innerHTML="<img alt='' 		src='../../../../Common/Images/grayball.gif'/>";
	      }
    }
}
function GetArticlePageScripts()
{
    if(issuenum == undefined)
    {
        setTimeout("GetArticlePageScripts()",1000);
        return ;
    }
    ISSUEyear=date1.getFullYear();
    document.getElementById('issuenum1').innerHTML="<font color='gray'><u>"+ issuenum+"</u></font>" ;
    document.getElementById('year1').innerHTML+="<font color='gray'><u>"+ISSUEmonth+"</u></font>";
    document.getElementById('year1').innerHTML+="<font color='gray'  ><u>"+ISSUEyear+"</u></font>";
}


function getSearch()
{
/*
it="<iframe id='searchframe' width='100%' height='100px' src='searchframe.htm' frameborder=0/>"
document.getElementById('search').innerHTML =it;	
*/

	it="<table width=100% border=0 bordercolor=gray CELLPADDING=2 cellspacing=0><tr><td align=center>";
//	it=it+"<td width=88 bgcolor=#990033><font COLOR=white size=3 face='arabic transparent'><b>";
//	it=it+"<img align=middle border=0 src='../../../../Common/images/searchC1.GIF' border=0></b></font>";
//	it=it+"</td><tr><td><INPUT  TYPE=text NAME='SearchWord' VALUE='' size='10'>";
//	it=it+"</td></tr><tr>";
//	it=it+"<td valign=bottom><a href='javascript:IdrSearch()'>";
	
	it=it+"<A href='"+"SearchPage.xml"+"'>";	
	//it=it+"<img align=middle src='../../../../Common/images/search.GIF' border=0 name=search/></A>";
	it=it+"<font color='#AE0007' face='Simplified Arabic' style=text-indent:5px;text-decoration:none;font-size:19px;'><b>البحث بالمجلة</b></font>";
	
//	it=it+"<font size=2 face='arabic transparent' color=#990033><b><u>";
//	it=it+"<img align=middle border=0 src='../../../../Common/images/searchC2.GIF' border=0 name=search>";
	it=it+"</td></tr></table>";
	 document.getElementById('search').innerHTML =it;
debugger;
	
}

function FISSUEweekday(weekday)
{

 switch (weekday)
 {
	case 6:
	    FISSUEweekday="السبت";
	    break;
	case 0:
	    FISSUEweekday="الأحد";
	    break;
	case 1:
	    FISSUEweekday="الإثنين";
	    break;
	case 2:
	    FISSUEweekday="الثلاثاء";
	    break;
	case 3:
	    FISSUEweekday="الأربعاء";
	    break;
	case 4:
	    FISSUEweekday="الخميس";
	    break;
	case 5:
	    FISSUEweekday="الجمعة";
	    break;
    }

}

function FISSUEmonth(month)
{
    
    switch (month)
    {
	    case 1:
	        ISSUEmonth="يناير";
	        break;
	    case 2:
	        ISSUEmonth="فبراير";
	        break;
	    case 3:
	        ISSUEmonth="مارس";
	        break;
	    case 4:
	        ISSUEmonth="أبريل";
	        break;
	    case 5:
	        ISSUEmonth="مايو";
	        break;
	    case 6:
	        ISSUEmonth="يونيو";
	        break;
	    case 7:
	        ISSUEmonth="يوليو";
	        break;
	    case 8:
            ISSUEmonth="أغسطس";
            break;
	    case 9:
	        ISSUEmonth="سبتمبر";
	        break;
	    case 10:
	        ISSUEmonth="أكتوبر";
	        break;
	    case 11:
	        ISSUEmonth="نوفمبر";
	        break;
	    case 12:
	        ISSUEmonth="ديسمبر";
	        break;
	        default:
	             break;
    }

    
}


//'------------------------------------------
function gettitles(sec_id)
{   

    if( btSec == undefined)
    {
        
        setTimeout("gettitles("+sec_id+")",1000);
        return ;
    }
   
    if(window.ActiveXObject)
    {
        it="<tr><td height=30  valign=center><a href=default.xml> "	;
	    it=it+"&nbsp;";
	    it=it+" <font color='#AE0007' face='Simplified Arabic' style='text-indent:5px; text-decoration:none;text-indent:11px;font-size:19px;'><b>"+btSec.childNodes[0].text+"&nbsp;</b></font>";
	    it=it+"</a></td></tr>";
	    document.write (it);
var yamany = ""
        for (t=1; t<=btSec.childNodes.length-1;t=t+1)
        {
            
	        it="<tr><td height=10  valign=bottom nowrap=nowrap>"	;
       
            if(btSec.childNodes[t].text==studies)
            {
                it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Studies.xml   STYLE='text-decoration: none; color=gray'>";
                it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</b></font></A>";
            }
            else if(btSec.childNodes[t].text==poetry)
            {
                it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Poetry.xml   STYLE='text-decoration: none; color=gray'>";
                it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</b></font></A>";
            }
            else if(btSec.childNodes[t].text==narrative)
            {
                it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Narrative.xml   STYLE='text-decoration: none; color=gray'>";
                it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</b></font></A>";
            }
            else if(btSec.childNodes[t].text==critisism)
            {
                it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Criticism.xml   STYLE='text-decoration: none; color=gray'>";
                it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</b></font></A>";
            }
            else if(btSec.childNodes[t].text==milestones)
            {
                it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Milestones.xml   STYLE='text-decoration: none; color=gray'>";
                it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</b></font></A>";
            }
            
            else if(btSec.childNodes[t].text==books)
            {
            it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Books.xml   STYLE='text-decoration: none; color=gray'>";
                it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</b></font></A>";
            }
            else if(btSec.childNodes[t].text==reports)
            {
            it=it+"&nbsp;&nbsp;&nbsp;<img	src=../../../../common/images/grayball.gif align=bottom border=0>";
                it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Reports.xml   STYLE='text-decoration: none; color=gray'>";
                it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</b></font></A>";
            }
            else if(btSec.childNodes[t].text==events)
            {
            it=it+"&nbsp;&nbsp;&nbsp;<img src=../../../../common/images/grayball.gif align=bottom border=0>";
                it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Events.xml   STYLE='text-decoration: none; color=gray'>";
                it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</b></font></A>";
            }
            else if(btSec.childNodes[t].text==dossier)
            {
            it=it+"&nbsp;&nbsp;&nbsp;<img src=../../../../common/images/grayball.gif align=bottom border=0>";
                it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Dossier.xml   STYLE='text-decoration: none; color=gray'>" ;
                it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</b></font></A>";
            }
            else if(btSec.childNodes[t].text==encounters)
            {
            it=it+"&nbsp;&nbsp;&nbsp;<img src=../../../../common/images/grayball.gif align=bottom border=0>";
                it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Encounters.xml   STYLE='text-decoration: none; color=gray'>";
                it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</b></font></A>";
            }
            else if(btSec.childNodes[t].text==index)
            {
            it=it+"&nbsp;&nbsp;&nbsp;<img src=../../../../common/images/grayball.gif align=bottom border=0>";
                it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Index.xml   STYLE='text-decoration: none; color=gray'>"   ;
                it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</b></font></A>";
            }    
            else if(btSec.childNodes[t].text==previous)
            {
                
                it=it+"<A href=../../../../Data/"+issuedate+"/PreviousIssues.xml   STYLE='text-decoration: none; color=gray'>";
                it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:7px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</b></font></A>";
            }
            else if(btSec.childNodes[t].text==links)
            {
            
                it=it+"<A href=../../../../Data/"+issuedate+"/RelatedLinks.xml   STYLE='text-decoration: none; color=gray'>";    
                it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:7px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</b></font></A>";
            }   
            else if(btSec.childNodes[t].text==contactus)
            {
                it=it+"<A href=../../../../Data/"+issuedate+"/ContactUs.xml   STYLE='text-decoration: none; color=gray'>"   ;
                it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:7px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</b></font></A>";
            }
            else if(btSec.childNodes[t].text==novel)
            {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                   it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Novel.xml   STYLE='text-decoration: none; color=gray'>"   ;
                    it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</b></font></A>";                   
            }
            else if(btSec.childNodes[t].text==darwishtexts)
            {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                   it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/DarwishTexts.xml   STYLE='text-decoration: none; color=gray'>"   ;
                    it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</b></font></A>";                   
            }
            else if(btSec.childNodes[t].text==elegies)
            {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                   it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Elegies.xml   STYLE='text-decoration: none; color=gray'>"   ;
                    it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</b></font></A>";                   
            }
            else if(btSec.childNodes[t].text==obituaries)
            {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                   it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Obituaries.xml   STYLE='text-decoration: none; color=gray'>"   ;
                    it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</b></font></A>";                   
            }
            else if(btSec.childNodes[t].text==worldpoet)
            {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                   it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/WorldPoet.xml   STYLE='text-decoration: none; color=gray'>"   ;
                    it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</b></font></A>";                   
            }
//            it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</b></font></A>";
	        it=it+"</td></tr>";
	        yamany+=it ;
	        
	        document.write (it);
       }
       debugger ;
   }
   else if(document.implementation && document.implementation.createDocument)
   {
        it1="<tr><td height=30 valign=center><a href=default.xml> "	;
	    it1=it1+"&nbsp;";
	    
	    it1=it1+" <font color='#AE0007' face='Simplified Arabic' style='text-indent:5px; text-decoration:none;text-indent:11px;font-size:19px;'><b>"+btSec[0].childNodes[0].nodeValue+"&nbsp;</b></font>";
	    it1=it1+"</a></td></tr>";
	   //document.getElementById('rightmenu').innerHTML =it+document.getElementById('rightmenu').innerHTML;
        it="";
        for (t=1; t<=btSec.length-1;t=t+1)
        {
            
	        it+="<tr><td height=10 valign=bottom nowrap=nowrap>&nbsp;"	;
       
            if(btSec[t].childNodes[0].nodeValue==studies)
            {
                it=it+"&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Studies.xml   STYLE='text-decoration: none; color=gray'>";
                 it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</b></font></A>";
            }
            else if(btSec[t].childNodes[0].nodeValue==poetry)
            {
                it=it+"&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Poetry.xml   STYLE='text-decoration: none; color=gray'>";
                 it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</b></font></A>";
            }
            else if(btSec[t].childNodes[0].nodeValue==narrative)
            {
                it=it+"&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Narrative.xml   STYLE='text-decoration: none; color=gray'>";
                 it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</b></font></A>";
            }
            else if(btSec[t].childNodes[0].nodeValue==critisism)
            {
                it=it+"&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Criticism.xml   STYLE='text-decoration: none; color=gray'>";
                 it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</b></font></A>";
            }
            else if(btSec[t].childNodes[0].nodeValue==milestones)
            {
                it=it+"&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Milestones.xml   STYLE='text-decoration: none; color=gray'>";
                 it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</b></font></A>";
            }
            else if(btSec[t].childNodes[0].nodeValue==books)
            {
                it=it+"&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Books.xml   STYLE='text-decoration: none; color=gray'>";
                 it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</b></font></A>";
            }
            else if(btSec[t].childNodes[0].nodeValue==reports)
            {
                it=it+"&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Reports.xml   STYLE='text-decoration: none; color=gray'>";
                 it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</b></font></A>";
            }
            else if(btSec[t].childNodes[0].nodeValue==events)
            {
                it=it+"&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Events.xml   STYLE='text-decoration: none; color=gray'>";
                 it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</b></font></A>";
            }
            else if(btSec[t].childNodes[0].nodeValue==dossier)
            {
                it=it+"&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Dossier.xml   STYLE='text-decoration: none; color=gray'>" ;
                 it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</b></font></A>";
            }
            else if(btSec[t].childNodes[0].nodeValue==encounters)
            {
                it=it+"&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Encounters.xml   STYLE='text-decoration: none; color=gray'>";
                 it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</b></font></A>";
            }
            else if(btSec[t].childNodes[0].nodeValue==index)
            {
                it=it+"&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Index.xml   STYLE='text-decoration: none; color=gray'>"   ;
                 it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</b></font></A>";
            }    
            else if(btSec[t].childNodes[0].nodeValue==previous)
            {
                
                it=it+"<A href=../../../../Data/"+issuedate+"/PreviousIssues.xml   STYLE='text-decoration: none; color=gray'>";
                 it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</b></font></A>";
            }
            else if(btSec[t].childNodes[0].nodeValue==links)
            {
                it=it+"<A href=../../../../Data/"+issuedate+"/RelatedLinks.xml   STYLE='text-decoration: none; color=gray'>";    
                 it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</b></font></A>";
            }   
            else if(btSec[t].childNodes[0].nodeValue==contactus)
            {
                it=it+"<A href=../../../../Data/"+issuedate+"/ContactUs.xml   STYLE='text-decoration: none; color=gray'>"   ;
                 it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+ btSec[t].childNodes[0].nodeValue+"</b></font></A>";
            }
            else if(btSec[t].childNodes[0].nodeValue==novel)
            {
                    it=it+"&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                   it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Novel.xml   STYLE='text-decoration: none; color=gray'>"   ;
                    it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</b></font></A>";
            }
            else if(btSec[t].childNodes[0].nodeValue==darwishtexts)
            {
                    it=it+"&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                   it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/DarwishTexts.xml   STYLE='text-decoration: none; color=gray'>"   ;
                    it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</b></font></A>";
            }
            else if(btSec[t].childNodes[0].nodeValue==elegies)
            {
                    it=it+"&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                   it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Elegies.xml   STYLE='text-decoration: none; color=gray'>"   ;
                    it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</b></font></A>";
            }
            else if(btSec[t].childNodes[0].nodeValue==obituaries)
            {
                    it=it+"&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                   it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Obituaries.xml   STYLE='text-decoration: none; color=gray'>"   ;
                    it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</b></font></A>";
            }
            else if(btSec[t].childNodes[0].nodeValue==worldpoet)
            {
                    it=it+"&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                   it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/WorldPoet.xml   STYLE='text-decoration: none; color=gray'>"   ;
                    it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</b></font></A>";
            }
            //it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</b></font></A>";
	        it=it+"</td></tr>";
	        
       } 
        document.getElementById('rightmenu').innerHTML =it1+it+document.getElementById('rightmenu').innerHTML;
         
   }


}

//'-------------------------------


////'-------------------------------------------------------------------------------------


function getFirstPageArticles()
{                   
         if( L_Date == undefined)
         {
         
                setTimeout("getFirstPageArticles()",1000);  
                return ;
         } 
                         
		for (var counter=0;counter<=L_Date.length-1;counter=counter+1)
	    {
		
		    myChar=L_Date.substr(counter,1);
	
		    if (myChar=="/" || myChar=="\\") 
		    {
			    First_Pos=counter;
			    break;
		    }
        }
        
		My_day= L_Date.substr(0,First_Pos);
    	
	    My_month=L_Date.substr(First_Pos+1,1);
	    if(My_day=='2008' && My_month=='9')
	    {
			pge="";
			pge= "<table border=1 bordercolor=#000000 frame=lhs rules=rows height=1000px width=100% cellpadding=2><tr>";
			rightcol="<td valign=top align='center' width=50%><font color='AE0007' style='FONT-FAMILY: Simplified Arabic;font-size:16pt;MARGIN-RIGHT: 3px;text-decoration :none;'><b>";
			leftcol="<td valign=top width=50%><font color=#000000 style='FONT-FAMILY: Simplified Arabic;font-size:12pt;MARGIN-RIGHT: 3px;text-decoration :none;'><b>";
			leftcol+="<br/>";
			leftcol+="<br/>";
			leftcol+="هذا عدد خاص، عدد استثنائي من (الكلمة)، لأن رحيل الشاعر الكبير الذي خصصنا له هذا العدد خاص واستثنائي. لذلك أثار رحيله اهتماما واسعا وغير مسبوق، لا في الثقافة العربية وحدها، وإنما في العديد من الثقافات الإنسانية. ويسعى هذا العدد الذي سيبقى مفتوحا من (الكلمة) لتجسيد بعض ملامح هذه الظاهرة، ولتأكيد حضور محمود درويش وفاعليته في الثقافة العربية والإنسانية رغم رحيله. ولهذا تغير فيه (الكلمة) تبويبها المألوف ليستوعب العدد بعض ما أثاره رحيل الشاعر وليجسد الق حضوره الدائم والمستمر.</font></b></td>";
			rightcol+="عدد خاص <br/><font size='5' color='Black'>محمود درويش</font><br/>فداحة الغياب / ألق الحضور</b>";
			rightcol+="<br/>";
			rightcol+="<img src='Drwish-Default.jpg' width='315px' height='220px' >";
			rightcol+="<br/>";
			rightcol+="<font size='6' color='Black'>(1941 - 2008)</font></b></td>";
			pge=pge+rightcol+leftcol+"</tr></table>";
			 document.getElementById('priority').innerHTML =pge;
			//alert('2008 shahr 8');
			return;
	    }
		
    if(window.ActiveXObject)
    {
        pge="";
        pge= "<table border=1 frame=vsides rules=cols width=100% cellpadding=15 cellspacing=0><tr>";

        rightcol="<td valign=top width=50%>";
        leftcol="<td valign=top width=50%>";
        articlesadded=0;
        currentart=articlesadded+1;


        for(var j=1;j<=20;j=j+1)
        {
	        for (var t=0 ;t<= btArt.childNodes.length-1;t=t+1)
	        { 
        		
		        if( btArt.childNodes[t].childNodes[NDX_Priority].text =="2")
		        {
        		
				        if(btArt.childNodes[t].childNodes[NDX_Page].text == j)
       			        {
       			            priorityTitle.style.visibility="visible";
			                link1=btArt.childNodes[t].childNodes[NDX_link].text;
			                link1=link1+".xml";
        			        		
				            if ( (articlesadded % 2)==0)
				            {
						        rightcol=rightcol+"<table border=0 ><tr><td><a href=../../../../data/"+ issuedate+"/"+link1+"> <font face=Simplified Arabic color=#AE0007 style='font-weight:bold;font-size:19pt;FONT-FAMILY: Simplified Arabic;text-decoration:none;text-indent:0px;line-height:30px'>"+btArt.childNodes[t].childNodes[NDX_Title].text;
				    	        rightcol=rightcol+"</font></a><br><font  color=#333333 style='FONT-FAMILY: Simplified Arabic;font-weight:bold;font-size: 15pt;text-decoration:none;text-indent: 5px;' ><b>" +btArt.childNodes[t].childNodes[NDX_Author].text;
				    	        rightcol=rightcol+"<b></font><br/><font color=#000000 style='FONT-FAMILY: Simplified Arabic;font-size:12pt;MARGIN-RIGHT: 3px;text-decoration :none;'><b>" +btArt.childNodes[t].childNodes[NDX_Summary].text;
				    	        rightcol=rightcol+"</b><a href=../../../../data/"+ issuedate+"/"+link1+" style='color: #5B6FB5;'>...<u>اقرأ المزيد</u></a>";
				    	        rightcol=rightcol+"</td><tr><tr><td align=center><br><img src='../../../../common/images/3squr.gif'>";
				    	        rightcol=rightcol+"</td></tr><tr><td><br></td></tr></table>";
				    	        articlesadded=articlesadded+1;
    			            }
				            else
				            {
				    	        leftcol=leftcol+"<table bfcolor=green border=0><tr><td><a href=../../../../data/"+ issuedate+"/"+link1+"> <font face=Simplified Arabic color=#AE0007 style='font-weight:bold;font-size:19pt;FONT-FAMILY: Simplified Arabic;text-decoration:none;text-indent:0px;line-height:30px'><b>"+btArt.childNodes[t].childNodes[NDX_Title].text;
				    	        leftcol=leftcol+"</b></font></a><br><font  color=#333333 style='FONT-FAMILY: Simplified Arabic;font-weight:bold;font-size: 15pt;text-decoration:none;text-indent: 5px;'><b>" +btArt.childNodes[t].childNodes[NDX_Author].text;
				    	        leftcol=leftcol+"</b></font><br/><font color=#000000 style='FONT-FAMILY: Simplified Arabic;font-size:12pt;MARGIN-RIGHT: 3px;text-decoration :none;'><b>" +btArt.childNodes[t].childNodes[NDX_Summary].text;
				    	        leftcol=leftcol+"</b><a href=../../../../data/"+ issuedate+"/"+link1+" style='color: #5B6FB5;'><b>...<u>اقرأ المزيد</u></b></a>";
				    	        leftcol=leftcol+"</td><tr><tr><td align=center><br><img src='../../../../common/images/3squr.gif'>";
				    	        leftcol=leftcol+"</td></tr><tr><td><br></td></tr></table>";
				    	        articlesadded=articlesadded+1;
				            }	
				            break;
       		            }	
        	        }
		        }
                if( j !=articlesadded)
                {
                    break;
                }
            }
            rightcol= rightcol+"</td>";
            leftcol=leftcol+ "</td>";
            pge=pge+rightcol+leftcol+"</tr></table>";
            priorityTitle.style.visibility="visible";
            priority.innerHTML=pge;
    }
    else if (document.implementation && document.implementation.createDocument)
    {
        pge="";
        pge= "<table border=1 bordercolor=black frame=border rules=cols  width=100% cellpadding=15><tr>";

        rightcol="<td valign=top width=50%>";
        leftcol="<td valign=top width=50%>";
        articlesadded=0;
        currentart=articlesadded+1;
        

        for(var j=1;j<=20;j=j+1)
        {
       //  alert("articlesadded: "+articlesadded);
		        //alert("J: "+j);
		        
	        for (var t=0 ;t<= btArt.length-1;t=t+1)
	        { 
	        
	        //if (j==10 && t==44)
        	//	alert(btArt[t].getElementsByTagName("Page")[0].childNodes[0])
        		// btArt.childNodes[t].childNodes[NDX_Priority].text =="2"
        		if( btArt[t].getElementsByTagName("Priority")[0].childNodes[0] != undefined  || btArt[t].getElementsByTagName("Page")[0].childNodes[0] != undefined)
        		{
		            if( btArt[t].getElementsByTagName("Priority")[0].childNodes[0].nodeValue =="2")
		            {	  
        		
		                    if( btArt[t].getElementsByTagName("Page")[0].childNodes[0].nodeValue == j)
       			            {
       			                    document.getElementById('priority').style.visibility="visible";
			                        link1=btArt[t].getElementsByTagName("Country")[0].childNodes[0].nodeValue
			                        link1=link1+".xml";
                			       
        				        
                                    if ( (articlesadded % 2)==0)

                                    {

                                           rightcol=rightcol+"<table border=0 ><tr><td><a href=../../../../data/"+ issuedate+"/"+link1+"> <font face=Simplified Arabic color=#AE0007 style='font-weight:bold;font-size:19pt;FONT-FAMILY: Simplified Arabic;text-decoration:none;text-indent:0px;line-height:30px'>"+btArt[t].getElementsByTagName("Title")[0].childNodes[0].nodeValue;
                                             if (btArt[t].getElementsByTagName("Auth")[0].childNodes[0]!=undefined)
                                             {

                                                rightcol=rightcol+"</font></a><br><font  color=#333333 style='FONT-FAMILY: Simplified Arabic;font-weight:bold;font-size: 15pt;text-decoration:none;text-indent: 5px;' ><b>" +btArt[t].getElementsByTagName("Auth")[0].childNodes[0].nodeValue;
                                             }   
                                             if (btArt[t].getElementsByTagName("Summary")[0].childNodes[0]!=undefined)
                                             {   
                                                rightcol=rightcol+"<b></font><br/><font color=#000000 style='FONT-FAMILY: Simplified Arabic;font-size:12pt;MARGIN-RIGHT: 3px;text-decoration :none;'><b>" +btArt[t].getElementsByTagName("Summary")[0].childNodes[0].nodeValue;
                                             }
                                             if (issuedate!=undefined   &&  link1 !=undefined)
                                             {
                                                rightcol=rightcol+"</b><a href=../../../../data/"+ issuedate+"/"+link1+" style='color: #5B6FB5;'>...<u>اقرأ المزيد</u></a>";                                                     
                                             }
                                                rightcol=rightcol+"</td><tr><tr><td align=center><br><img src='../../../../common/images/3squr.gif'>";
                                                rightcol=rightcol+"</td></tr><tr><td><br></td></tr></table>";
                                                 if (btArt[t].getElementsByTagName("Auth")[0].childNodes[0]!=undefined)
                                             {
                                                articlesadded=articlesadded+1;
                                               }
                                            
                                        }
                        

                                    else

                                    {

                                          leftcol=leftcol+"<table bfcolor=green border=0><tr><td><a href=../../../../data/"+ issuedate+"/"+link1+"> <font face=Simplified Arabic color=#AE0007 style='font-weight:bold;font-size:19pt;FONT-FAMILY: Simplified Arabic;text-decoration:none;text-indent:0px;line-height:30px'><b>"+btArt[t].getElementsByTagName("Title")[0].childNodes[0].nodeValue;
                                        if (btArt[t].getElementsByTagName("Auth")[0].childNodes[0]!=undefined)
                                        {  
                                            leftcol=leftcol+"</b></font></a><br><font  color=#333333 style='FONT-FAMILY: Simplified Arabic;font-weight:bold;font-size: 15pt;text-decoration:none;text-indent: 5px;'><b>" +btArt[t].getElementsByTagName("Auth")[0].childNodes[0].nodeValue;
                                        }
                                        if (btArt[t].getElementsByTagName("Summary")[0].childNodes[0]!=undefined)
                                        {
                                            leftcol=leftcol+"</b></font><br/><font color=#000000 style='FONT-FAMILY: Simplified Arabic;font-size:12pt;MARGIN-RIGHT: 3px;text-decoration :none;'><b>" +btArt[t].getElementsByTagName("Summary")[0].childNodes[0].nodeValue;
                                         }
                                          if (issuedate!=undefined   &&  link1 !=undefined)
                                          {
                                            leftcol=leftcol+"</b><a href=../../../../data/"+ issuedate+"/"+link1+" style='color: #5B6FB5;'><b>...<u>اقرأ المزيد</u></b></a>";
                                          }
                                            leftcol=leftcol+"</td><tr><tr><td align=center><br><img src='../../../../common/images/3squr.gif'>";
                                            leftcol=leftcol+"</td></tr><tr><td><br></td></tr></table>";
                                            if (btArt[t].getElementsByTagName("Auth")[0].childNodes[0]!=undefined)
                                            {  
                                                articlesadded=articlesadded+1;
                                            }
                                         
                                    }           
				                    break;
       		                }
       		      
        	          }
        	     }
        	     else
        	     {
        	         break;
        	     }    	
		    }
		      
		       
            if( j !=articlesadded)
            {
           
                break;
            }
                
         }
           
            rightcol= rightcol+"</td>";
            leftcol=leftcol+ "</td>";
            pge=pge+rightcol+leftcol+"</tr></table>";
            document.getElementById('priorityTitle').style.visibility="visible";
             document.getElementById('priority').innerHTML =pge;
            //priority.innerHTML=pge;
    
    }

}

////'-----------------------------------------------------

function getbottomlinks()
{
        if( btSec == undefined)
        {
            setTimeout("getbottomlinks()",1000);
            return ;
        }
   

       if(window.ActiveXObject)
       {
            it= "<A href=http://www.al-kalimah.com style='text-decoration:none;'> <font color=white face='arabic transparent' style='text-decoration:none;font-size:16px'><b>الصفحة الرئيسية |</b></font>" ;
            it=it+ "<A href=../../../../Data/"+issuedate+"/Default.xml style='text-decoration:none;'> <font color=white  face='arabic transparent' style='text-decoration:none;font-size:16px'><b>العدد الحالي |</b></font>" ;
            for(var t=1 ; t<=btSec.childNodes.length-1;t=t+1)
            {
        	
	            if(btSec.childNodes[t].text==studies)
	            {
                    it=it+"<A href=../../../../Data/"+issuedate+"/Studies.xml  style='text-decoration:none;' >";
                }
                else if(btSec.childNodes[t].text==poetry)
                {
                        it=it+"<A href=../../../../Data/"+issuedate+"/Poetry.xml style='text-decoration:none;'>";
                }
                else if(btSec.childNodes[t].text==narrative)
                {
                    it=it+"<A href=../../../../Data/"+issuedate+"/Narrative.xml style='text-decoration:none;'>";
                }
                else if(btSec.childNodes[t].text==critisism)
                {
                    it=it+"<A href=../../../../Data/"+issuedate+"/Criticism.xml style='text-decoration:none;'>";
                }
                else if(btSec.childNodes[t].text==milestones)
                {
                    it=it+"<A href=../../../../Data/"+issuedate+"/Milestones.xml style='text-decoration:none;'>";
                }    
                else if(btSec.childNodes[t].text==books)
                {
                    it=it+"<A href=../../../../Data/"+issuedate+"/Books.xml   style='text-decoration:none;'>";
                }
                else if(btSec.childNodes[t].text==reports)
                {
                    it=it+"<A href=../../../../Data/"+issuedate+"/Reports.xml style='text-decoration:none;'>";
                }
                else if(btSec.childNodes[t].text==events)
                {
                    it=it+"<A href=../../../../Data/"+issuedate+"/Events.xml   STYLE='text-decoration: none; color=gray'>";
                }    
                else if(btSec.childNodes[t].text==dossier)
                {
                    it=it+"<A href=../../../../Data/"+issuedate+"/Dossier.xml   STYLE='text-decoration: none; color=gray'>" ;
                }    
                else if(btSec.childNodes[t].text==encounters)
                {       
                    it=it+"<A href=../../../../Data/"+issuedate+"/Encounters.xml   STYLE='text-decoration: none; color=gray'>";
                }    
                else if(btSec.childNodes[t].text==index)
                {
                    it=it+"<A href=../../../../Data/"+issuedate+"/Index.xml   STYLE='text-decoration: none; color=gray'>";
                }    
                else if(btSec.childNodes[t].text==previous)
                {
                    it=it+"<A href=../../../../Data/"+issuedate+"/PreviousIssues.xml   STYLE='text-decoration: none; color=gray'>";
                }    
                else if(btSec.childNodes[t].text==links)
                {
                    it=it+"<A href=../../../../Data/"+issuedate+"/RelatedLinks.xml   STYLE='text-decoration: none; color=gray'>";
                }
                else if(btSec.childNodes[t].text==contactus)
                {
                    it=it+"<A href=../../../../Data/"+issuedate+"/ContactUs.xml   STYLE='text-decoration: none; color=gray'>"    ;
                }
                else if(btSec.childNodes[t].text==novel)
                {
                      it=it+"<A href=../../../../Data/"+issuedate+"/Novel.xml   STYLE='text-decoration: none; color=gray'>"    ;
                }    
                else if(btSec.childNodes[t].text==darwishtexts)
                {
                      it=it+"<A href=../../../../Data/"+issuedate+"/DarwishTexts.xml   STYLE='text-decoration: none; color=gray'>"    ;
                }
                else if(btSec.childNodes[t].text==elegies)
                {
                      it=it+"<A href=../../../../Data/"+issuedate+"/Elegies.xml   STYLE='text-decoration: none; color=gray'>"    ;
                }
                else if(btSec.childNodes[t].text==obituaries)
                {
                      it=it+"<A href=../../../../Data/"+issuedate+"/Obituaries.xml   STYLE='text-decoration: none; color=gray'>"    ;
                }
        	    else if(btSec.childNodes[t].text==worldpoet)
                {
                      it=it+"<A href=../../../../Data/"+issuedate+"/WorldPoet.xml   STYLE='text-decoration: none; color=gray'>"    ;
                }
	            it=it+" <font color=white  face='arabic transparent' style='font-size:16px' style='text-decoration:none'><b>"+btSec.childNodes[t].text;
    	        if(t!= btSec.childNodes.length-1)
    	        {
    	            it=it+"|";
    	        }
    	        else
                {
        	        it=it+"</font></b></A>";
                }
	        }
	        document.write (it);
	 }
	 else if(document.implementation && document.implementation.createDocument)
	 {
	
	     it= "<A href=http://www.al-kalimah.com> <font color=white face='arabic transparent' style='text-decoration:none;font-size:16px'><b>الصفحة الرئيسية |</b></font>" ;
	 
         it=it+ "<A href=../../../../Data/"+issuedate+"/Default.xml style='text-decoration:none;'> <font color=white  face='arabic transparent' style='text-decoration:none;font-size:16px'><b>العدد الحالي |</b></font>" ;
         
         for(var t=1 ; t<=btSec.length-1;t=t+1)
         {
         
            if(btSec[t].childNodes[0].nodeValue==studies)
	          {
                  it=it+"<A href=../../../../Data/"+issuedate+"/Studies.xml   style='text-decoration:none;'>";
              }
              else if(btSec[t].childNodes[0].nodeValue==poetry)
              {
                   it=it+"<A href=../../../../Data/"+issuedate+"/Poetry.xml style='text-decoration:none;'>";
              }
              else if(btSec[t].childNodes[0].nodeValue==narrative)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/Narrative.xml style='text-decoration:none;'>";
              }
              else if(btSec[t].childNodes[0].nodeValue==critisism)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/Criticism.xml style='text-decoration:none;'>";
              }
              else if(btSec[t].childNodes[0].nodeValue==milestones)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/Milestones.xml style='text-decoration:none;'>";
              }    
              else if(btSec[t].childNodes[0].nodeValue==books)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/Books.xml   style='text-decoration:none;'>";
              }
              else if(btSec[t].childNodes[0].nodeValue==reports)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/Reports.xml style='text-decoration:none;'>";
              }
              else if(btSec[t].childNodes[0].nodeValue==events)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/Events.xml   STYLE='text-decoration: none; color=gray'>";
              }    
              else if(btSec[t].childNodes[0].nodeValue==dossier)
              {
                 it=it+"<A href=../../../../Data/"+issuedate+"/Dossier.xml   STYLE='text-decoration: none; color=gray'>" ;
              }    
              else if(btSec[t].childNodes[0].nodeValue==encounters)
              {       
                 it=it+"<A href=../../../../Data/"+issuedate+"/Encounters.xml   STYLE='text-decoration: none; color=gray'>";
              }    
              else if(btSec[t].childNodes[0].nodeValue==index)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/Index.xml   STYLE='text-decoration: none; color=gray'>";
              }    
              else if(btSec[t].childNodes[0].nodeValue==previous)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/PreviousIssues.xml   STYLE='text-decoration: none; color=gray'>";
              }    
              else if(btSec[t].childNodes[0].nodeValue==links)
              {
                 it=it+"<A href=../../../../Data/"+issuedate+"/RelatedLinks.xml   STYLE='text-decoration: none; color=gray'>";
              }
              else if(btSec[t].childNodes[0].nodeValue==contactus)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/ContactUs.xml   STYLE='text-decoration: none; color=gray'>"    ;
              }
              else if(btSec[t].childNodes[0].nodeValue==novel)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/Novel.xml   STYLE='text-decoration: none; color=gray'>"    ;
              }
              else if(btSec[t].childNodes[0].nodeValue==darwishtexts)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/DarwishTexts.xml   STYLE='text-decoration: none; color=gray'>"    ;
              }
              else if(btSec[t].childNodes[0].nodeValue==elegies)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/Elegies.xml   STYLE='text-decoration: none; color=gray'>"    ;
              }    
              else if(btSec[t].childNodes[0].nodeValue==obituaries)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/Obituaries.xml   STYLE='text-decoration: none; color=gray'>"    ;
              }
              else if(btSec[t].childNodes[0].nodeValue==worldpoet)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/WorldPoet.xml   STYLE='text-decoration: none; color=gray'>"    ;
              }
              
              it=it+" <font color=white  face='arabic transparent' style='font-size:16px;text-decoration:none'><b>"+btSec[t].childNodes[0].nodeValue;
    	      if(t!= btSec.length-1)
    	      {
    	          it=it+"|";
    	      }
    	      else
              {
        	      it=it+"</font></b></A>";
              }
	        }
	       document.getElementById('bottomlinks').innerHTML=it;
	  }

} 
////' ---------------------------
function writelink(linksource,linktext )
{

    sectionlink= "<a href=" + linksource + "  STYLE='text-decoration: underline; color=gray'>" + linktext + "</a>";
    document.write(sectionlink);

}
////'---------------------------------


var reqArtTitleAuthor = null;
var xmlArtTitleAuthor;

function processTitleAuthorReqChange() 
{
    // only if req shows "complete"
    if (reqArtTitleAuthor.readyState == 4) 
    {  
        // alert("Request Status:  "+reqArtTitleAuthor.status)
        // only if "OK" 
        if (reqArtTitleAuthor.status == 200) 
        {
            // ...processing statements go here...
            
             xmlArtTitleAuthor = reqArtTitleAuthor.responseXML;
             xmlArtTitleAuthor.async=false;
           
             getTitleAuthorReal();
        } 
        else 
        {
            alert("There was a problem retrieving the XML data:\n" + req.statusText);

        }
    }
}


     
function getTitleAuthor()
{
    if (window.XMLHttpRequest  && (document.implementation && document.implementation.createDocument)    )
    {
         reqArtTitleAuthor = new XMLHttpRequest();
         if (reqArtTitleAuthor.overrideMimeType) 
         {
           p=document.location.href;
            
            reqArtTitleAuthor.open("GET", p, true);
            reqArtTitleAuthor.send(null);
            reqArtTitleAuthor.onreadystatechange = processTitleAuthorReqChange;
        }      

    }
    else if(window.ActiveXObject)
    {
        xmlArtTitleAuthor=new ActiveXObject("Microsoft.XMLDOM");
        xmlArtTitleAuthor.async=false;
                       
        p=document.location.href;
        xmlArtTitleAuthor.load(p);

        getTitleAuthorReal();
    }
    else if (document.implementation && document.implementation.createDocument)
    {        
        xmlArtTitleAuthor=document.implementation.createDocument("","",null);
        xmlArtTitleAuthor.async=false;
        p=document.location.href;
        xmlArtTitleAuthor.load(p);

        getTitleAuthorReal();
    }

}

function getTitleAuthorReal()
{
/*
    if(window.ActiveXObject)
    {
         x=self.location.href;
        p=x.toUpperCase();
        p=p.split("/");
        ulimit=p.length;
        var it="";
        
        for(var t=0; t<=btArt.childNodes.length-1;t=t+1)
        {
        
            if ((btArt.childNodes[t].childNodes[NDX_link].text+".xml").toUpperCase()==p[ulimit-1])
            {
    	    
                if(btArt.childNodes[t].childNodes[NDX_Author].text!="")
                {
                    it="&nbsp;<img  src=../../../../Common/Images/grayball.gif></img>";
                    it=it+"<a href=javascript:IdrSearchAuthor()><font color='gray' style='text-decoration:none'>";
                    it=it+"&nbsp;<u>"+btArt.childNodes[t].childNodes[NDX_Author].text;
                    it=it+"</u></font></a>";
                }
                it="<a>"+it+"</a>";
    		      
                document.write (it);
            }
        }
   
    }
    */
    if(window.ActiveXObject)
    {
		
        qryart=xmlArtTitleAuthor.selectNodes("ALL/Article");
        
        cauth=qryart.nextNode();
        FP_auth=cauth.childNodes[3].text;
        document.status=FP_auth;
        
        var it="";
        it="&nbsp;<img  src=../../../../Common/Images/grayball.gif></img>";
        it=it+"<a href=javascript:IdrSearchAuthor()><font color='gray' style='text-decoration:none'>";
        it=it+"&nbsp;<u>"+FP_auth;
        it=it+"</u></font></a>";
        it="<a>"+it+"</a>";
        document.write (it);
        
    }
    /*
    else if(document.implementation && document.implementation.createDocument)
    {
    
     //alert(btArt[1].getElementsByTagName("C_COUNTRY")[0].childNodes[0].nodeValue);
        x=self.location.href;
        p=x.toUpperCase();
        p=p.split("/");
        ulimit=p.length;
        var btx;
        var it="";
    
     
        //  btx=btArt[10].getElementsByTagName("Country")[0].childNodes[0].nodeValue;   
         
        
        //alert(p[ulimit-1]);
        //alert(btArt.length);
        for(var t=0; t<=btArt.length-1;t=t+1)
        {
            if(btArt[t].getElementsByTagName("Country")[0].childNodes[0]!=undefined)
            {
                btx=btArt[t].getElementsByTagName("Country")[0].childNodes[0].nodeValue;
   
                      
           
            
                if ((btx+".xml").toUpperCase()==p[ulimit-1])
                {
                        if(btArt[t].getElementsByTagName("Auth")[0].childNodes[0].nodeValue!="")
                        {
                          
                            it="<img  src=../../../../Common/Images/grayball.gif></img>";
                            it=it+"<a href=javascript:IdrSearchAuthor()><font color='gray' style='text-decoration:none'>";
                            it=it+"<u>&nbsp;"+btArt[t].getElementsByTagName("Auth")[0].childNodes[0].nodeValue;
                            it=it+"</u></font></a>";
                        }

                 //   it="<a>"+it+"</a>";
    		         document.getElementById('author_name').innerHTML =it; 
                }
          }
      }
      
      
  }*/
	else if(document.implementation && document.implementation.createDocument)
	{
				 
				qryart=xmlArtTitleAuthor.getElementsByTagName("ALL");
				qryart=qryart[0].getElementsByTagName("Article");
				qryart=qryart[0].getElementsByTagName("C_AUTH");
             cauth=qryart[0].childNodes[0].nodeValue;
             FP_AUTH=cauth;
              it="<img  src=../../../../Common/Images/grayball.gif></img>";
                            it=it+"<a href=javascript:IdrSearchAuthor()><font color='gray' style='text-decoration:none'>";
                            it=it+"<u>&nbsp;"+FP_AUTH;
                            it=it+"</u></font></a>";
                            document.getElementById('author_name').innerHTML =it; 
             
	}  

}

////'--------------------------------------------------------------
////////////////
//////////////////////////
////////////////////////////////////


var reqArtPic = null;
var xmlArtPic;

function processArtPicReqChange() 
{
    // only if req shows "complete"
    if (reqArtPic.readyState == 4) 
    {  
        // alert("Request Status:  "+reqArtPic.status)
        // only if "OK" 
        if (reqArtPic.status == 200) 
        {
            // ...processing statements go here...
            
             xmlArtPic = reqArtPic.responseXML;
             xmlArtPic.async=false;
           
             writearticlepicReal();
        } 
        else 
        {
            alert("There was a problem retrieving the XML data:\n" + req.statusText);

        }
    }
}


     
function writearticlepic()
{
    if (window.XMLHttpRequest  && (document.implementation && document.implementation.createDocument)    )
    {
         reqArtPic = new XMLHttpRequest();
         if (reqArtPic.overrideMimeType) 
         {
           p=document.location.href;
            
            reqArtPic.open("GET", p, true);
            reqArtPic.send(null);
            reqArtPic.onreadystatechange = processArtPicReqChange;
        }      

    }
    else if(window.ActiveXObject)
    {
        xmlArtPic=new ActiveXObject("Microsoft.XMLDOM");
        xmlArtPic.async=false;
                       
        p=document.location.href;
        xmlArtPic.load(p);

        writearticlepicReal();
    }
    else if (document.implementation && document.implementation.createDocument)
    {        
        xmlArtPic=document.implementation.createDocument("","",null);
        xmlArtPic.async=false;
        p=document.location.href;
        xmlArtPic.load(p);

        writearticlepicReal();
    }

}


function writearticlepicReal()
{

 if (window.ActiveXObject)
 {
  
       
	    qryprint = xmlArtPic.selectNodes("ALL/images");
	    btprint = qryprint.nextNode();
        if (btprint.childNodes.length !=0)
        {
            for(var ct=0;ct<=btprint.childNodes.length-1;ct=ct+1)
            {
                piclinkthumb=btprint.childNodes[ct].childNodes[0].text;
                sectionlink= "<img  src="+piclinkthumb+" border=0></img><br></br>";
                document.write(sectionlink);
            }
       }
   }
   else if(document.implementation && document.implementation.createDocument)
   {
   
	    qryprint = xmlArtPic.getElementsByTagName("ALL");
	    btprint = qryprint[0].getElementsByTagName("images");
	    sectionlink="";
        if (btprint.length !=0)
        {
            for(var ct=0;ct<=btprint.length-1;ct=ct+1)
            {
                piclinkthumb=btprint[ct].childNodes[0].nodeValue;
                sectionlink+= "<img  src="+piclinkthumb+" border=0></img><br></br>";
               
               
            }
            document.getElementById('articlepic').innerHTML+=sectionlink;
       }
   
   }

   
}
////'-------------------------------
function gettitleswithselected(sec_id)
{

   if( btSec == undefined)
    {
       
        setTimeout("gettitleswithselected("+sec_id+")",1000);
        return ;
    }
   

    if(window.ActiveXObject)
    {
        p=document.location.href;
        p=p.split("/");
        ulimit =p.length;
        issuedate=p[ulimit-4]+"/"+p[ulimit-3]+"/"+p[ulimit-2];
        var xSection=sec_id;
       
        
        sectioncount=0;

        it="<tr><td height=30 valign=center nowrap=nowrap> <a href=default.xml>";
        it=it+" <font  color=#AE0007 face=Simplified Arabic style='text-decoration:none;text-indent:11px;font-size:19px;'><b>"+btSec.childNodes[0].text+"</b></font>";
        it=it+"</td></tr>";
        document.write (it);
        for(var t=1; t<=btSec.childNodes.length-1;t=t+1)
        {   
            if(t==sec_id)
            {
                it="<tr><td height=5 valign=top nowrap=nowrap>";
                if(btSec.childNodes[t].text==studies)
                {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Studies.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes[t].text+"</font></b></A>";
                }
                else if(btSec.childNodes[t].text==poetry)
                {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Poetry.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes[t].text+"</font></b></A>";
                }                
                else if(btSec.childNodes[t].text==narrative)
                {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Narrative.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes[t].text+"</font></b></A>";
                }                
                else if(btSec.childNodes[t].text==critisism)
                {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Criticism.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes[t].text+"</font></b></A>";
                }
                else if(btSec.childNodes[t].text==milestones)
                {       
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Milestones.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes[t].text+"</font></b></A>";
                }    
                else if(btSec.childNodes[t].text==books)
                {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                   it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Books.xml   STYLE='text-decoration: none; color=gray'>";
                   it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes[t].text+"</font></b></A>";
                }
                else if(btSec.childNodes[t].text==reports)
                {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Reports.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes[t].text+"</font></b></A>";
                }    
                else if(btSec.childNodes[t].text==events)
                {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Events.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes[t].text+"</font></b></A>";
                }    
                else if(btSec.childNodes[t].text==dossier)
                {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Dossier.xml   STYLE='text-decoration: none; color=gray'>" ;
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes[t].text+"</font></b></A>";
                }
                else if(btSec.childNodes[t].text==encounters)
                {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Encounters.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes[t].text+"</font></b></A>";
                }
                else if(btSec.childNodes[t].text==index)
                {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Index.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes[t].text+"</font></b></A>";
                }
                else if(btSec.childNodes[t].text==previous)
                {
                
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/PreviousIssues.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:7px;text-decoration:none;'><b>"+btSec.childNodes[t].text+"</font></b></A>";
                }                
                else if(btSec.childNodes[t].text==links)
                {
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/RelatedLinks.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:7px;text-decoration:none;'><b>"+btSec.childNodes[t].text+"</font></b></A>";
                }
                else if(btSec.childNodes[t].text==contactus)
                {
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/ContactUs.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:7px;text-decoration:none;'><b>"+btSec.childNodes[t].text+"</font></b></A>";
                }
                else if(btSec.childNodes[t].text==novel)
                {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                       it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Novel.xml   STYLE='text-decoration: none; color=gray'>";
                       it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes[t].text+"</font></b></A>";
                }
                else if(btSec.childNodes[t].text==darwishtexts)
                {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                       it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/DarwishTexts.xml   STYLE='text-decoration: none; color=gray'>";
                       it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes[t].text+"</font></b></A>";
                }
                else if(btSec.childNodes[t].text==elegies)
                {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                       it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Elegies.xml   STYLE='text-decoration: none; color=gray'>";
                       it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes[t].text+"</font></b></A>";
                }
                else if(btSec.childNodes[t].text==obituaries)
                {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                       it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Obituaries.xml   STYLE='text-decoration: none; color=gray'>";
                       it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes[t].text+"</font></b></A>";
                }
                else if(btSec.childNodes[t].text==worldpoet)
                {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                       it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/WorldPoet.xml   STYLE='text-decoration: none; color=gray'>";
                       it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes[t].text+"</font></b></A>";
                }
    	        //it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes[t].text+"</font></b></A>";
    	        it=it+"</td></tr>";
                document.write (it);
             }
             else
             {    
                 it="<tr><td height=20 valign=top nowrap=nowrap>"	;
                    
                 if(btSec.childNodes[t].text==studies)
                 {
                 
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Studies.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</font></b></A>";
                 }
                 else if(btSec.childNodes[t].text==poetry)
                 {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                        it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Poetry.xml   STYLE='text-decoration: none; color=gray'>";
                        it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</font></b></A>";
                 }
                 else if(btSec.childNodes[t].text==narrative)
                 {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                      it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Narrative.xml   STYLE='text-decoration: none; color=gray'>";
                      it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</font></b></A>";
                 }
                 else if(btSec.childNodes[t].text==critisism)
                 {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                        it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Criticism.xml   STYLE='text-decoration: none; color=gray'>";
                        it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</font></b></A>";
                 }
                 else if(btSec.childNodes[t].text==milestones)
                 {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                        it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Milestones.xml   STYLE='text-decoration: none; color=gray'>";
                        it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</font></b></A>";
                 }
                 else if(btSec.childNodes[t].text==books)
                 {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                        it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Books.xml   STYLE='text-decoration: none; color=gray'>";
                        it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</font></b></A>";
                 }
                 else if(btSec.childNodes[t].text==reports)
                 {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                        it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Reports.xml   STYLE='text-decoration: none; color=gray'>";
                        it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</font></b></A>";
                 }    
                 else if(btSec.childNodes[t].text==events)
                 {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                        it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Events.xml   STYLE='text-decoration: none; color=gray'>";
                        it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</font></b></A>";
                 }    
                 else if(btSec.childNodes[t].text==dossier)
                 {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                        it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Dossier.xml   STYLE='text-decoration: none; color=gray'>" ;
                        it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</font></b></A>";
                 }
                 else if(btSec.childNodes[t].text==encounters)
                 {
                    it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                       it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Encounters.xml   STYLE='text-decoration: none; color=gray'>";
                       it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</font></b></A>";
                 }
                 else if(btSec.childNodes[t].text==index)
                 {
                    
                     it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                        it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Index.xml   STYLE='text-decoration: none; color=gray'>"    ;
                        it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</font></b></A>";
                 }
                 else if(btSec.childNodes[t].text==previous)
                 {
                 
                     it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/PreviousIssues.xml   STYLE='text-decoration: none; color=gray'>";
                     it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:7px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</font></b></A>";
                 }
                 else if(btSec.childNodes[t].text==links)
                 {
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/RelatedLinks.xml   STYLE='text-decoration: none; color=gray'>"  ;  
                    it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:7px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</font></b></A>";
                 }
                 else if(btSec.childNodes[t].text==contactus)
                 {
                        it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/ContactUs.xml   STYLE='text-decoration: none; color=gray'>"    ;
                        it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:7px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</font></b></A>";
                 }
                 else if(btSec.childNodes[t].text==novel)
                 {
                         it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                       it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Novel.xml   STYLE='text-decoration: none; color=gray'>"    ;
                       it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</font></b></A>";
                 }
                 else if(btSec.childNodes[t].text==darwishtexts)
                 {
                         it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                       it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/DarwishTexts.xml   STYLE='text-decoration: none; color=gray'>"    ;
                       it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</font></b></A>";
                 }
                 else if(btSec.childNodes[t].text==elegies)
                 {
                         it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                       it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Elegies.xml   STYLE='text-decoration: none; color=gray'>"    ;
                       it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</font></b></A>";
                 }
                 else if(btSec.childNodes[t].text==obituaries)
                 {
                         it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                       it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Obituaries.xml   STYLE='text-decoration: none; color=gray'>"    ;
                       it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</font></b></A>";
                 }
                 else if(btSec.childNodes[t].text==worldpoet)
                 {
                         it=it+"&nbsp;&nbsp;&nbsp;<img 	src=../../../../common/images/grayball.gif align=bottom border=0>";
                       it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/WorldPoet.xml   STYLE='text-decoration: none; color=gray'>"    ;
                       it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</font></b></A>";
                 }
//                 it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:7px;text-decoration:none;'><b>"+btSec.childNodes(t).text+"</font></b></A>";
                 it=it+"</td></tr>";
                 document.write (it);
            }
         }
     }
     else if(document.implementation && document.implementation.createDocument)
     {
     
        p=document.location.href;
        p=p.split("/");
        ulimit =p.length;
        issuedate=p[ulimit-4]+"/"+p[ulimit-3]+"/"+p[ulimit-2];
        
        var xSection=sec_id;
        sectioncount=0;
        
        it1="<tr><td height=30 valign=center nowrap=nowrap> <a href=default.xml style='text-decoration:none;'>";
        
        it1=it1+" <font  color=#AE0007 face=Simplified Arabic style='text-decoration:none;text-indent:11px;font-size:19px;'><b>"+btSec[0].childNodes[0].nodeValue+"</b></font>";
        it1=it1+"</td></tr>";
        it="";
        
        for(var t=1; t<=btSec.length-1;t=t+1)
        {
            if(t==sec_id)
            {
                it+="<tr><td height=5 valign=top nowrap=nowrap>&nbsp;";
                if(btSec[t].childNodes[0].nodeValue==studies)
                {
                
                    it=it+"&nbsp;&nbsp; <img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Studies.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                }
                else if(btSec[t].childNodes[0].nodeValue==poetry)
                {
                    it=it+"&nbsp;&nbsp; <img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                   it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Poetry.xml   STYLE='text-decoration: none; color=gray'>";
                   it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                }                
                else if(btSec[t].childNodes[0].nodeValue==narrative)
                {
                    it=it+"&nbsp;&nbsp; <img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Narrative.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                }                
                else if(btSec[t].childNodes[0].nodeValue==critisism)
                {
                    it=it+"&nbsp;&nbsp; <img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Criticism.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                }
                else if(btSec[t].childNodes[0].nodeValue==milestones)
                {       
                    it=it+"&nbsp;&nbsp; <img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Milestones.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                }    
                else if(btSec[t].childNodes[0].nodeValue==books)
                {
                    it=it+"&nbsp;&nbsp; <img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                   it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Books.xml   STYLE='text-decoration: none; color=gray'>";
                   it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                }
                else if(btSec[t].childNodes[0].nodeValue==reports)
                {
                    it=it+"&nbsp;&nbsp; <img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Reports.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                }    
                else if(btSec[t].childNodes[0].nodeValue==events)
                {
                    it=it+"&nbsp;&nbsp; <img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Events.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                }    
                else if(btSec[t].childNodes[0].nodeValue==dossier)
                {
                    it=it+"&nbsp;&nbsp; <img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Dossier.xml   STYLE='text-decoration: none; color=gray'>" ;
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                }
                else if(btSec[t].childNodes[0].nodeValue==encounters)
                {
                    it=it+"&nbsp;&nbsp; <img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Encounters.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                }
                else if(btSec[t].childNodes[0].nodeValue==index)
                {
                    it=it+"&nbsp;&nbsp; <img 	src=../../../../common/images/redball.gif align=bottom border=0>";
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Index.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                }
                else if(btSec[t].childNodes[0].nodeValue==previous)
                {
                    
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/PreviousIssues.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:7px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                }                
                else if(btSec[t].childNodes[0].nodeValue==links)
                {
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/RelatedLinks.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:7px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>"; 

                }
                else if(btSec[t].childNodes[0].nodeValue==contactus)
                {
                    
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/ContactUs.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:7px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                }
                else if(btSec[t].childNodes[0].nodeValue==novel)
                {
                       it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Novel.xml   STYLE='text-decoration: none; color=gray'>";
                       it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                }
                else if(btSec[t].childNodes[0].nodeValue==darwishtexts)
                {
                       it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/DarwishTexts.xml   STYLE='text-decoration: none; color=gray'>";
                       it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                }
                else if(btSec[t].childNodes[0].nodeValue==elegies)
                {
                       it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Elegies.xml   STYLE='text-decoration: none; color=gray'>";
                       it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                }
                else if(btSec[t].childNodes[0].nodeValue==obituaries)
                {
                       it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Obituaries.xml   STYLE='text-decoration: none; color=gray'>";
                       it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                }
                else if(btSec[t].childNodes[0].nodeValue==worldpoet)
                {
                       it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/WorldPoet.xml   STYLE='text-decoration: none; color=gray'>";
                       it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                }
    	        //it=it+" <font color=#AE0007  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
    	        it=it+"</td></tr>";
             //document.getElementById('rightmenu').innerHTML =it1+it+document.getElementById('rightmenu').innerHTML;  
             }
             
             else
             {
                 it+="<tr><td height=20 valign=top nowrap=nowrap>&nbsp;"	;
                 if(btSec[t].childNodes[0].nodeValue==studies)
                 {
                    it=it+"&nbsp;&nbsp;<img	src=../../../../common/images/grayball.gif align=bottom border=0>";
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Studies.xml   STYLE='text-decoration: none; color=gray'>";
                    it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                 }
                 else if(btSec[t].childNodes[0].nodeValue==poetry)
                 {
                    it=it+"&nbsp;&nbsp;<img	src=../../../../common/images/grayball.gif align=bottom border=0>";
                        it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Poetry.xml   STYLE='text-decoration: none; color=gray'>";
                        it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                 }
                 else if(btSec[t].childNodes[0].nodeValue==narrative)
                 {
                 it=it+"&nbsp;&nbsp;<img	src=../../../../common/images/grayball.gif align=bottom border=0>";
                      it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Narrative.xml   STYLE='text-decoration: none; color=gray'>";
                      it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                 }
                 else if(btSec[t].childNodes[0].nodeValue==critisism)
                 {
                 it=it+"&nbsp;&nbsp;<img	src=../../../../common/images/grayball.gif align=bottom border=0>";
                        it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Criticism.xml   STYLE='text-decoration: none; color=gray'>";
                        it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                 }
                 else if(btSec[t].childNodes[0].nodeValue==milestones)
                 {
                 it=it+"&nbsp;&nbsp;<img	src=../../../../common/images/grayball.gif align=bottom border=0>";
                        it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Milestones.xml   STYLE='text-decoration: none; color=gray'>";
                        it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                 }
                 else if(btSec[t].childNodes[0].nodeValue==books)
                 {
                 it=it+"&nbsp;&nbsp;<img	src=../../../../common/images/grayball.gif align=bottom border=0>";
                        it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Books.xml   STYLE='text-decoration: none; color=gray'>";
                        it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                 }
                 else if(btSec[t].childNodes[0].nodeValue==reports)
                 {
                 it=it+"&nbsp;&nbsp;<img	src=../../../../common/images/grayball.gif align=bottom border=0>";
                        it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Reports.xml   STYLE='text-decoration: none; color=gray'>";
                        it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                 }    
                 else if(btSec[t].childNodes[0].nodeValue==events)
                 {
                 it=it+"&nbsp;&nbsp;<img	src=../../../../common/images/grayball.gif align=bottom border=0>";
                        it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Events.xml   STYLE='text-decoration: none; color=gray'>";
                        it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                 }    
                 else if(btSec[t].childNodes[0].nodeValue==dossier)
                 {
                 it=it+"&nbsp;&nbsp;<img	src=../../../../common/images/grayball.gif align=bottom border=0>";
                        it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Dossier.xml   STYLE='text-decoration: none; color=gray'>" ;
                        it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                 }
                 else if(btSec[t].childNodes[0].nodeValue==encounters)
                 {
                 it=it+"&nbsp;&nbsp;<img	src=../../../../common/images/grayball.gif align=bottom border=0>";
                       it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Encounters.xml   STYLE='text-decoration: none; color=gray'>";
                       it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                 }
                 else if(btSec[t].childNodes[0].nodeValue==index)
                 {
                 it=it+"&nbsp;&nbsp;<img	src=../../../../common/images/grayball.gif align=bottom border=0>";
                        it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Index.xml   STYLE='text-decoration: none; color=gray'>"    ;
                        it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                 }
                 else if(btSec[t].childNodes[0].nodeValue==previous)
                 {
                     it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/PreviousIssues.xml   STYLE='text-decoration: none; color=gray'>";
                     it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:7px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                 }
                 else if(btSec[t].childNodes[0].nodeValue==links)
                 {
                    it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/RelatedLinks.xml   STYLE='text-decoration: none; color=gray'>"  ;  
                    it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:7px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                 }
                 else if(btSec[t].childNodes[0].nodeValue==contactus)
                 {
                        it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/ContactUs.xml   STYLE='text-decoration: none; color=gray'>"    ;
                        it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:7px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                 }
                 
                 else if(btSec[t].childNodes[0].nodeValue==novel)
                 {
                 it=it+"&nbsp;&nbsp;<img	src=../../../../common/images/grayball.gif align=bottom border=0>";
                       it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Novel.xml   STYLE='text-decoration: none; color=gray'>"    ;
                       it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                 }
                 else if(btSec[t].childNodes[0].nodeValue==darwishtexts)
                 {
                 it=it+"&nbsp;&nbsp;<img	src=../../../../common/images/grayball.gif align=bottom border=0>";
                       it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/DarwishTexts.xml   STYLE='text-decoration: none; color=gray'>"    ;
                       it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                 }
                 else if(btSec[t].childNodes[0].nodeValue==elegies)
                 {
                 it=it+"&nbsp;&nbsp;<img	src=../../../../common/images/grayball.gif align=bottom border=0>";
                       it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Elegies.xml   STYLE='text-decoration: none; color=gray'>"    ;
                       it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                 }
                 else if(btSec[t].childNodes[0].nodeValue==obituaries)
                 {
                 it=it+"&nbsp;&nbsp;<img	src=../../../../common/images/grayball.gif align=bottom border=0>";
                       it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/Obituaries.xml   STYLE='text-decoration: none; color=gray'>"    ;
                       it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                 }
                 else if(btSec[t].childNodes[0].nodeValue==worldpoet)
                 {
                 it=it+"&nbsp;&nbsp;<img	src=../../../../common/images/grayball.gif align=bottom border=0>";
                       it=it+"&nbsp;<A href=../../../../Data/"+issuedate+"/WorldPoet.xml   STYLE='text-decoration: none; color=gray'>"    ;
                       it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:17px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                 }
//                 it=it+" <font color=#4A4848  face='Simplified Arabic' style='font-size:17px;text-indent:7px;text-decoration:none;'><b>"+btSec[t].childNodes[0].nodeValue+"</font></b></A>";
                 it=it+"</td></tr>";
               //  document.write (it);
            }
         }
         document.getElementById('rightmenu').innerHTML =it1+it+document.getElementById('rightmenu').innerHTML;  
     
     }

}


function writeRedlinksection(linksource,linktext )
{

    sectionlink= "<a href=" + linksource + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + linktext + "</b></font></a>";
    document.write(sectionlink);

}

function getindexarticles()
{

if( btSec == undefined)
    {
        setTimeout("getindexarticles()",1000);
        return ;
    }

    if(window.ActiveXObject)
    {
        count=0;
        indexhtml="";
        sectionindex=0;
        for(var j=2 ;j<= btSec.childNodes.length-4;j=j+1)
        {  
            if(btSec.childNodes[j].text==studies)
	        {
	            indexhtml=indexhtml+" <table><tr><td><a href='Studies.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec.childNodes[j].text+"</b></font></a></td></tr></table><br/>";
            }
            else if(btSec.childNodes[j].text==poetry)
            {
                indexhtml=indexhtml+" <table><tr><td><a href='Poetry.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec.childNodes[j].text+"</b></font></a></td></tr></table><br/>";
            }            
            else if(btSec.childNodes[j].text==narrative)
            {
                indexhtml=indexhtml+" <table><tr><td><a href='Narrative.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec.childNodes[j].text+"</b></font></a></td></tr></table><br/>";
            }         
            else if(btSec.childNodes[j].text==critisism)
            {
                indexhtml=indexhtml+" <table><tr><td><a href='Criticism.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec.childNodes[j].text+"</b></font></a></td></tr></table><br/>";
            }
            else if(btSec.childNodes[j].text==milestones)
            {
               indexhtml=indexhtml+" <table><tr><td><a href='Milestones.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec.childNodes[j].text+"</b></font></a></td></tr></table><br/>";
            }
            else if(btSec.childNodes[j].text==books)
            {
               indexhtml=indexhtml+" <table><tr><td><a href='Books.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec.childNodes[j].text+"</b></font></a></td></tr></table><br/>";
            }
            else if(btSec.childNodes[j].text==reports)
            {
               indexhtml=indexhtml+" <table><tr><td><a href='Reports.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec.childNodes[j].text+"</b></font></a></td></tr></table><br/>";
            }
            else if(btSec.childNodes[j].text==events)
            {
                indexhtml=indexhtml+" <table><tr><td><a href='Events.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec.childNodes[j].text+"</b></font></a></td></tr></table><br/>";
            }
            else if(btSec.childNodes[j].text==dossier)
            {
                indexhtml=indexhtml+" <table><tr><td><a href='Dossier.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec.childNodes[j].text+"</b></font></a></td></tr></table><br/>";
            }
            else if(btSec.childNodes[j].text==encounters)
            {
                indexhtml=indexhtml+" <table><tr><td><a href='Encounters.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec.childNodes[j].text+"</b></font></a></td></tr></table><br/>";
            }
            else if(btSec.childNodes[j].text==index)
            {
                indexhtml=indexhtml+" <table><tr><td><a href='Index.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec.childNodes[j].text+"</b></font></a></td></tr></table><br/>";
            }
            else if(btSec.childNodes[j].text==previous)
            {
                 indexhtml=indexhtml+" <table><tr><td><a href='PreviousIssues.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec.childNodes[j].text+"</b></font></a></td></tr></table><br/>";
            }
            else if(btSec.childNodes[j].text==links)
            {            
                indexhtml=indexhtml+" <table><tr><td><a href='RelatedLinks.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec.childNodes[j].text+"</b></font></a></td></tr></table><br/>";
            }    
            else if(btSec.childNodes[j].text==contactus)
            {
                 indexhtml=indexhtml+" <table><tr><td><a href='ContactUs.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec.childNodes[j].text+"</b></font></a></td></tr></table><br/>";
            } 
            else if(btSec.childNodes[j].text==novel)
            {
                 indexhtml=indexhtml+" <table><tr><td><a href='Novel.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec.childNodes[j].text+"</b></font></a></td></tr></table><br/>";
            }   
            else if(btSec.childNodes[j].text==darwishtexts)
            {
                 indexhtml=indexhtml+" <table><tr><td><a href='DarwishTexts.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec.childNodes[j].text+"</b></font></a></td></tr></table><br/>";
            }
            else if(btSec.childNodes[j].text==elegies)
            {
                     indexhtml=indexhtml+" <table><tr><td><a href='Elegies.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec.childNodes[j].text+"</b></font></a></td></tr></table><br/>";
            }
            else if(btSec.childNodes[j].text==obituaries)
            {
                     indexhtml=indexhtml+" <table><tr><td><a href='Obituaries.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec.childNodes[j].text+"</b></font></a></td></tr></table><br/>";
            }
            else if(btSec.childNodes[j].text==worldpoet)
            {
                     indexhtml=indexhtml+" <table><tr><td><a href='WorldPoet.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec.childNodes[j].text+"</b></font></a></td></tr></table><br/>";
            }
            count=0;
	        if (j != btSec.childNodes.length-4)
	        {
		        for (var i=0; i<= btArt.childNodes.length-1;i=i+1)
		        {
		                  
		            if( btArt.childNodes[i].childNodes[NDX_Section].text == btSec.childNodes[j].text )
			        {
			            count=count+1;
				        indexhtml=indexhtml+"<table border=0 width=100% cellspacing=0 cellpadding=0 ><tr><td width=5%/><td valign=top><table border=0 cellspacing=0 cellpadding=0><tr><td > <a href='";
				        indexhtml=indexhtml+btArt.childNodes[i].childNodes[NDX_link].text+".xml"+"'>";
				        indexhtml=indexhtml+"<font face=Simplified color=#AE0007 Arabic style='text-decoration:none;font-size:18pt;line-height:40px'><b>"+btArt.childNodes[i].childNodes[NDX_Title].text+"</b></font>";
				        indexhtml=indexhtml+"</a></td></tr></table></td><td width=10></td><td width=190 valign=top align=right style='padding-top: 9px;'>";
				        indexhtml=indexhtml+"<font face=Simplified Arabic color=#333333  style='font-size: 15pt;text-decoration:none;'><b>"+ btArt.childNodes[i].childNodes[NDX_Author].text+"</b></font>";
				        indexhtml=indexhtml+"</td></tr></table>";
			        }
		        }
		        indexhtml=indexhtml+"<br>";
	        }
        }	
        document.write(indexhtml);	
	//indexitems.innerHtml=indexitems.innerHtml+ indexhtml;
	}
	else if(document.implementation && document.implementation.createDocument)
	{
	    count=0;
        indexhtml="";
        sectionindex=0;
        for(var j=2 ;j<= btSec.length-4;j=j+1)
        {                 
	        if(btSec[j].childNodes[0].nodeValue==studies)
	        {
                indexhtml=indexhtml+" <table><tr><td><a href='Studies.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec[j].childNodes[0].nodeValue+"</b></font></a></td></tr></table><br/>";
                
            }
            else if(btSec[j].childNodes[0].nodeValue==poetry)
            {
                indexhtml=indexhtml+" <table><tr><td><a href='Poetry.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec[j].childNodes[0].nodeValue+"</b></font></a></td></tr></table><br/>";
            }            
            else if(btSec[j].childNodes[0].nodeValue==narrative)
            {
                indexhtml=indexhtml+" <table><tr><td><a href='Narrative.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec[j].childNodes[0].nodeValue+"</b></font></a></td></tr></table><br/>";
            }         
            else if(btSec[j].childNodes[0].nodeValue==critisism)
            {
                indexhtml=indexhtml+" <table><tr><td><a href='Criticism.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec[j].childNodes[0].nodeValue+"</b></font></a></td></tr></table><br/>";
            }
            else if(btSec[j].childNodes[0].nodeValue==milestones)
            {
                indexhtml=indexhtml+" <table><tr><td><a href='Milestones.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec[j].childNodes[0].nodeValue+"</b></font></a></td></tr></table><br/>";
            }
            else if(btSec[j].childNodes[0].nodeValue==books)
            {
                indexhtml=indexhtml+" <table><tr><td><a href='Books.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec[j].childNodes[0].nodeValue+"</b></font></a></td></tr></table><br/>";
            }
            else if(btSec[j].childNodes[0].nodeValue==reports)
            {
                indexhtml=indexhtml+" <table><tr><td><a href='Reports.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec[j].childNodes[0].nodeValue+"</b></font></a></td></tr></table><br/>";
            }
            else if(btSec[j].childNodes[0].nodeValue==events)
            {
                indexhtml=indexhtml+" <table><tr><td><a href='Events.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec[j].childNodes[0].nodeValue+"</b></font></a></td></tr></table><br/>";
            }
            else if(btSec[j].childNodes[0].nodeValue==dossier)
            {
                indexhtml=indexhtml+" <table><tr><td><a href='Dossier.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec[j].childNodes[0].nodeValue+"</b></font></a></td></tr></table><br/>";
            }
            else if(btSec[j].childNodes[0].nodeValue==encounters)
            {
                indexhtml=indexhtml+" <table><tr><td><a href='Encounters.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec[j].childNodes[0].nodeValue+"</b></font></a></td></tr></table><br/>";
            }
            else if(btSec[j].childNodes[0].nodeValue==index)
            {
                indexhtml=indexhtml+" <table><tr><td><a href='Index.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec[j].childNodes[0].nodeValue+"</b></font></a></td></tr></table><br/>";
            }
            else if(btSec[j].childNodes[0].nodeValue==previous)
            {
                indexhtml=indexhtml+" <table><tr><td><a href='PreviousIssues.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec[j].childNodes[0].nodeValue+"</b></font></a></td></tr></table><br/>";
            }
            else if(btSec[j].childNodes[0].nodeValue==links)
            {            
                indexhtml=indexhtml+" <table><tr><td><a href='RelatedLinks.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec[j].childNodes[0].nodeValue+"</b></font></a></td></tr></table><br/>";
            }    
            else if(btSec[j].childNodes[0].nodeValue==contactus)
            {
                indexhtml=indexhtml+" <table><tr><td><a href='ContactUs.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec[j].childNodes[0].nodeValue+"</b></font></a></td></tr></table><br/>";
            } 
            else if(btSec[j].childNodes[0].nodeValue==novel)
            {
                     indexhtml=indexhtml+" <table><tr><td><a href='Novel.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec[j].childNodes[0].nodeValue+"</b></font></a></td></tr></table><br/>";
            }
                  
            else if(btSec[j].childNodes[0].nodeValue==darwishtexts)
            {
                     indexhtml=indexhtml+" <table><tr><td><a href='DarwishTexts.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec[j].childNodes[0].nodeValue+"</b></font></a></td></tr></table><br/>";
            }   
            else if(btSec[j].childNodes[0].nodeValue==elegies)
            {
                     indexhtml=indexhtml+" <table><tr><td><a href='Elegies.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec[j].childNodes[0].nodeValue+"</b></font></a></td></tr></table><br/>";
            }   
            else if(btSec[j].childNodes[0].nodeValue==obituaries)
            {
                     indexhtml=indexhtml+" <table><tr><td><a href='Obituaries.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec[j].childNodes[0].nodeValue+"</b></font></a></td></tr></table><br/>";
            }   
            else if(btSec[j].childNodes[0].nodeValue==worldpoet)
            {
                     indexhtml=indexhtml+" <table><tr><td><a href='WorldPoet.xml'> <font face=Simplified Arabic; color=#AE0007 Arabic style='text-decoration:none;text-indent:2px;font-size:21pt;' ><b>"+btSec[j].childNodes[0].nodeValue+"</b></font></a></td></tr></table><br/>";
            } 
                 

            count=0;
	        if (j != btSec.length-4)
	        {
	        for (var i=0; i<= btArt.length-1;i=i+1)
		        {
         	        //if( btArt.childNodes[i].childNodes[NDX_Section].text == btSec.childNodes[j].text )
			        if( btArt[i].getElementsByTagName("Section")[0].childNodes[0].nodeValue == btSec[j].childNodes[0].nodeValue )
			        {
				        count=count+1;
				        indexhtml=indexhtml+"<table border=0 width=100% cellspacing=0 cellpadding=0 ><tr><td width='5%'/><td valign=top><table border=0 cellspacing=0 cellpadding=0><tr><td > <a href='";
				        
                        
                         if (btArt[i].getElementsByTagName("Country")[0].childNodes[0]!= undefined )
				            indexhtml=indexhtml+btArt[i].getElementsByTagName("Country")[0].childNodes[0].nodeValue+".xml"+"'>";
                          else
				            indexhtml=indexhtml+"'>";

                        if (btArt[i].getElementsByTagName("Title")[0].childNodes[0]!= undefined )
				            indexhtml=indexhtml+"<font face=Simplified color=#AE0007 Arabic style='text-decoration:none;font-size:18pt;line-height:40px'><b>"+btArt[i].getElementsByTagName("Title")[0].childNodes[0].nodeValue+"</b></font>";
				       
				        indexhtml=indexhtml+"</a></td></tr></table></td><td width=10></td><td width=190 valign=top align=right style='padding-top:9px;'>";
				       
				        if (btArt[i].getElementsByTagName("Auth")[0].childNodes[0])
				        indexhtml=indexhtml+"<font face=Simplified Arabic color=#333333  style='font-size: 15pt;text-decoration:none; font-weight:bold;'><b>"+ btArt[i].getElementsByTagName("Auth")[0].childNodes[0].nodeValue+"</b></font>";
				          
				        indexhtml=indexhtml+"</td></tr></table>";
				        
			        }
		        }
		        
		        indexhtml=indexhtml+"<br>";		  
	        }
         
        }	
       
        document.getElementById('indexitems').innerHTML=indexhtml;
        
        
	 }

}
////'-------------------------------

/////////////////////////////////////////////////////
var reqSecArticles = null;
var xmlSecArticles;

function processSectionArticlesReqChange1() 
{   
    // only if req shows "complete"
    if (reqSecArticles.readyState == 4) 
    {  
        //
        // only if "OK" 
        if (reqSecArticles.status == 200) 
        {
            // ...processing statements go here...
            
             xmlSecArticles = reqSecArticles.responseXML;
             xmlSecArticles.async=false;
           
             getorderedarticlesbysectionReal();
        } 
        else 
        {
            alert("There was a problem retrieving the XML data:\n" + req.statusText);

        }
    }
}


     
function getorderedarticlesbysection1()
{
    if (window.XMLHttpRequest  && (document.implementation && document.implementation.createDocument)    )
    {
         reqSecArticles = new XMLHttpRequest();
         if (reqSecArticles.overrideMimeType) 
         {
            //alert(document.location.href);
            //p=document.location.href;
           p = "http://aeid:442/data/2009/1/1/default.xml"
            reqSecArticles.open("GET", p, true);
            reqSecArticles.send(null);
            //SectionPageSectionID = section_id ; 
            
            reqSecArticles.onreadystatechange = processSectionArticlesReqChange();
            
        }      

    }
    else if(window.ActiveXObject)
    {
         
         
         xmlSecArticles=new ActiveXObject("Microsoft.XMLDOM");
         xmlSecArticles.async=false;
    	pp=document.location.href;
	    xmlSecArticles.load(pp);
	   // SectionPageSectionID = section_id ; 
	    
          getorderedarticlesbysectionReal();
    }
    else if (document.implementation && document.implementation.createDocument)
    {
        
        xmlSecArticles=document.implementation.createDocument("","",null);
        xmlSecArticles.async=false;
    	pp=document.location.href;
	    xmlSecArticles.load(pp);
	    //SectionPageSectionID = section_id ; 

          getorderedarticlesbysectionReal();
        
    
    }

}


function getorderedarticlesbysectionReal1()
{ if( SectionPageSectionID == undefined)
    {
        
        setTimeout("getorderedarticlesbysectionReal()",1000);
        return ;
    }

     if (window.ActiveXObject)
     {
       
         
	    
	    qryArt1=xmlSecArticles.selectNodes("Data/Articles");
	    btArt1=qryArt1.nextNode();
        it="";
        for(var j=0; j<=90;j=j+1)
        {
            for(var i=0 ;i<=btArt1.childNodes.length-1;i=i+1)
           {
                link2=btArt1.childNodes[i].childNodes[NDX_link].text;
                
                if(link2.indexOf(".xml")==-1)
                {
                link2=link2+".xml";
                }
                //تغيير فونت الأقسام//
                
                if(btArt1.childNodes[i].childNodes[NDX_Order].text==j) 
                {
                    it=it+"<table border=0><tr><td  width=6.95% ></td><td>";
                    it=it+"<font face=Simplified Arabic color=black style='font-size: 16pt;line-height:30px'><b>"+ btArt1.childNodes[i].childNodes[NDX_Audios].text+"</b></font></td></tr></table>";
                    it=it+"<table border=0 width=100% cellpadding=1 cellspacing=0><tr valign=top><td width=38px/><td  dir=rtl><table border=0 cellspacing=0 cellpadding=0><tr><td><a href='";
                    it=it+link2+"'>";
                    it=it+"<font face=Simplified Arabic  color=#AE0007 style='font-size:18pt;text-decoration:none;'><b>"+btArt1.childNodes[i].childNodes[NDX_Title].text+"</b></font>";
                    it=it+"</a></td></tr></table></td><td nowrap=nowrap dir=rtl> ";
                    it=it+"</td></tr></table>";
                    it=it+"<table border=0 cellspacing=0 cellpading=0><tr><td><font face=Simplified Arabic color=#333333 style='font-size: 14pt;text-indent:27pt'><b>"+ btArt1.childNodes[i].childNodes[NDX_Author].text+"</b></font> <font face=Simplified Arabic color=#333333 style='font-size: 20pt;text-indent:10pt'><b>"+btArt1.childNodes[i].childNodes[NDX_Columns].text+"</b></font></td></tr> </table>";
                    it=it+"<table boder=0> <tr><td  width=6.95% ></td><td>";
                    it=it+"<font face=Simplified Arabic color=black style='font-size: 12pt;line-height:30px'><b>"+ btArt1.childNodes[i].childNodes[NDX_Summary].text+"</b></font></td></tr></table><br/>";
                    
                    break;
                    
                }
            }
        }
        articlesitem.innerHTML =  it;
        //document.getElementById('section_name3').innerHTML+="<div>"+it +"</div>"
    }
    
    else if (document.implementation && document.implementation.createDocument)
    {
      
	    
	    qryArt1=xmlSecArticles.getElementsByTagName("Data");
	    
	    qryArt1=qryArt1[0].getElementsByTagName("Articles");
	    btArt1 =qryArt1[0].getElementsByTagName("Article");
	    
        it="";
        
        for(var j=0; j<=40;j=j+1)
        {
            for(var i=0 ;i<=btArt1.length-1;i=i+1)
           {
                 
                if(btArt1[i].getElementsByTagName("Country")[0].childNodes[0]!=undefined)
                {
                 
                    link2=btArt1[i].getElementsByTagName("Country")[0].childNodes[0].nodeValue;
                    if(link2.indexOf(".xml")==-1)
                    {
                        link2=link2+".xml";
                    }
                    
                    if(btArt1[i].getElementsByTagName("Order")[0].childNodes[0].nodeValue==j) 
                    {
                        if(btArt1[i].getElementsByTagName("Audios")[0].childNodes[0]!=undefined)
                        {it=it+"<table border=0><tr><td  width=6.95% ></td><td width=70%>";
                        
                        it=it+"<font face=Simplified Arabic color=black style='font-size: 16pt;line-height:30px'><b>"+ btArt1[i].getElementsByTagName("Audios")[0].childNodes[0].nodeValue+"</b></font></td></tr></table>";
                        }
                        it=it+"<table border=0 width=100% cellpadding=1 cellspacing=0><tr valign=top><td width=38px/><td  dir=rtl><table border=0 cellspacing=0 cellpadding=0><tr><td><a href='";
                        it=it+link2+"'>";
                        it=it+"<font face=Simplified Arabic  color=#AE0007 style='font-size:18pt;text-decoration:none;'><b>"+btArt1[i].getElementsByTagName("Title")[0].childNodes[0].nodeValue+"</b></font>";
                        it=it+"</a></td></tr></table></td><td nowrap=nowrap dir=rtl> ";
                        it=it+"</td></tr></table>";
                        
                        if(btArt1[i].getElementsByTagName("Column")[0].childNodes[0]==undefined)
                        {
                          if(btArt1[i].getElementsByTagName("Auth")[0].childNodes[0]!=undefined)
                            {
                          it=it+"<table border=0 cellspacing=0 cellpading=0><tr><td width=38px/><td><font face=Simplified Arabic color=#333333 style='font-size: 14pt;text-indent:27pt'><b>"+ btArt1[i].getElementsByTagName("Auth")[0].childNodes[0].nodeValue + "</b></font> <font face=Simplified Arabic color=#333333 style='font-size: 20pt;text-indent:10pt'><b>"+"</b></font></td></tr> </table>";
                             }                                                                                                                                                                    
                        }
                        else
                        {
                        alert(btArt1[i].getElementsByTagName("Column")[0].childNodes[0])
                            it=it+"<table border=0 cellspacing=0 cellpading=0><tr><td width=38px/><td><font face=Simplified Arabic color=#333333 style='font-size: 14pt;text-indent:27pt'><b>"+ btArt1[i].getElementsByTagName("Auth")[0].childNodes[0].nodeValue + "</b></font> <font face=Simplified Arabic color=#333333 style='font-size: 20pt;text-indent:10pt'><b>"+btArt1[i].getElementsByTagName("Column")[0].childNodes[0].nodeValue +"</b></font></td></tr> </table>";
                        }
                        
                        it=it+"<table boder=0> <tr><td  width=6.95% ></td><td>";
                        //it=it+"<font face=Simplified Arabic color=black style='font-size: 12pt;line-height:30px'><b>"+ btArt1[i].getElementsByTagName("Summary")[0].childNodes[0].nodeValue+"</b></font></td></tr></table><br/>";
                        if(btArt1[i].getElementsByTagName("Summary")[0].childNodes[0]!=undefined)
                        {
                            it=it+"<font face=Simplified Arabic color=black style='font-size: 12pt;line-height:30px'><b>"+ btArt1[i].getElementsByTagName("Summary")[0].childNodes[0].nodeValue+"</b></font></td></tr></table><br/>";
                        }
                        else
                        {
                           it=it+"</td></tr></table><br/>";
                        }
                        
                        break;
                        
                    }
                    
                }
                
            } 


        
        } 
        
    }
document.getElementById('section_name3').innerHTML+="<div>"+ it +"</div>"

}

////////////////////////'--------------------------------
var reqSecPic = null;
var xmlSecPic;

function processSectionPicReqChange() 
{ //alert("Request Ready:  "+reqSecPic.readyState)
    // only if req shows "complete"
    if (reqSecPic.readyState == 4) 
    {  
        //
        // only if "OK" 
        if (reqSecPic.status == 200) 
        {
            // ...processing statements go here...
            
             xmlSecPic = reqSecPic.responseXML;
             xmlSecPic.async=false;
           
             writesectionpicReal();
        } 
        else 
        {
            alert("There was a problem retrieving the XML data:\n" + req.statusText);

        }
    }
}


     
function writesectionpic()
{
    if (window.XMLHttpRequest  && (document.implementation && document.implementation.createDocument)    )
    {
         reqSecPic = new XMLHttpRequest();
         if (reqSecPic.overrideMimeType) 
         {
            p=document.location.href;

            reqSecPic.open("GET", p, true);
            reqSecPic.send(null);
           
            reqSecPic.onreadystatechange = processSectionPicReqChange();
            
        }      

    }
    else if(window.ActiveXObject)
    {
         
         
        xmlSecPic=new ActiveXObject("Microsoft.XMLDOM");
        xmlSecPic.async=false;
        p=document.location.href;
        xmlSecPic.load(p);
	    
        writesectionpicReal();
    }
    else if (document.implementation && document.implementation.createDocument)
    {
        
      
        xmlSecPic=document.implementation.createDocument("","",null);
        xmlSecPic.async=false;
        
	    p=document.location.href;
        xmlSecPic.load(p);

          writesectionpicReal();
        
    
    }

}
function writesectionpicReal( )
{

    if (window.ActiveXObject)
    {
     
        
	    qryprint = xmlprint.selectNodes("Data/Articles/Article/images");
    	
        btprint = qryprint.nextNode();
        if( btprint.childNodes.length !=0 )
        {
            for(var ct=0; ct<= btprint.childNodes.length-1;ct=ct+1)
            {
                piclinkthumb=	btprint.childNodes[ct].childNodes[0].text;
                sectionlink= "<img src="+piclinkthumb+" border=0 width=117 height=167></img><br></br>";
                document.write(sectionlink);
            }
        }
    }
    else if (document.implementation && document.implementation.createDocument)
    {
        
	    qryprint = xmlprint.getElementsByTagName("Data");
	    qryprint = qryprint[0].getElementsByTagName("Articles");
	    qryprint = qryprint[0].getElementsByTagName("Article");
	    btprint = qryprint[0].getElementsByTagName("images");
	    
    	
        
        if( btprint.length !=0 )
        {
            for(var ct=0; ct<= btprint.length-1;ct=ct+1)
            {
                piclinkthumb=	btprint[ct].childNodes[0].nodeValue;
                sectionlink= "<img src="+piclinkthumb+" border=0></img><br></br>";
                
                document.getElementById('sectionimage').innerHTML=sectionlink;
              
            }
        }     
    }   
}


//////////////////
//////////////////////////
////////////
////'--------------

var reqArtpdf = null;
var xmlArtpdf;

function processArticlePdfChange() 
{
    // only if req shows "complete"
    if (reqArtpdf.readyState == 4) 
    {  
        // alert("Request Status:  "+reqSecName.status)
        // only if "OK" 
        if (reqArtpdf.status == 200) 
        {
            // ...processing statements go here...
            
             xmlArtpdf = reqArtpdf.responseXML;
             xmlArtpdf.async=false;
           
             PutOnlyPdfReal();
        } 
        else 
        {
            alert("There was a problem retrieving the XML data:\n" + req.statusText);

        }
    }
}


     
function PutOnlyPdf()
{
    if (window.XMLHttpRequest  && (document.implementation && document.implementation.createDocument)    )
    {
         reqArtpdf = new XMLHttpRequest();
         if (reqArtpdf.overrideMimeType) 
         {
            path =document.location.href;
        
            path=path.split("/");
            var tmp=path.length-1;
            fname=path[tmp];
            fname1=path[path.length-1].split(".");
            

            p=Server+"Data/"+issuedate+"/"+fname;

            reqArtpdf.open("GET", p, true);
            reqArtpdf.send(null);
            reqArtpdf.onreadystatechange = processArticlePdfChange;
        }      

    }
    else if(window.ActiveXObject)
    {
        path =document.location.href;
        
        path=path.split("/");
        var tmp=path.length-1;
        fname=path[tmp];
       
        fname1=path[path.length-1].split(".");
        
         if (window.ActiveXObject)
         {
             xmlArtpdf=new ActiveXObject("Microsoft.XMLDOM");
              xmlArtpdf.async=false;
         }
         else if (document.implementation && document.implementation.createDocument)
         {
              xmlArtpdf=document.implementation.createDocument("","",null);
         }
        p=Server+"Data/"+issuedate+"/"+fname;
        xmlArtpdf.load(p);

        PutOnlyPdfReal();
    }
    else if (document.implementation && document.implementation.createDocument)
    {        
         path =document.location.href;
        
        path=path.split("/");
        var tmp=path.length-1;
        fname=path[tmp];
        fname1=path[path.length-1].split(".");
        
        xmlArtpdf=document.implementation.createDocument("","",null);
        xmlArtpdf.async=false;

        p=Server+"Data/"+issuedate+"/"+fname;
        xmlArtpdf.load(p);

        PutOnlyPdfReal();
    }

}

function PutOnlyPdfReal()
{

    if (window.ActiveXObject)
    {
        
        
        var PdfExist;
        PdfExist=xmlArtpdf.selectNodes("ALL/Article/C_PRICE");
        if(PdfExist[0].text=="5")
        {
	        pdflink="<a  href=pdf/"+fname1[0]+".pdf "+"target=new>";
            pdflink=pdflink+" <img src=../../../../Common/Images/logoPDF.gif border=0  pdf align=absbottom></a>";
            document.write(pdflink);
        }
    }
    else if (document.implementation && document.implementation.createDocument)
    {
       
        var PdfExist;
        PdfExist=xmlArtpdf.getElementsByTagName("Article");
        PdfExist=PdfExist[0].getElementsByTagName("C_PRICE");
        
        if(PdfExist[0].childNodes[0].nodeValue=="5")
        {
	        pdflink="<a  href=pdf/"+fname1[0]+".pdf "+"target=new>";
            pdflink=pdflink+" <img src=../../../../Common/Images/logoPDF.gif border=0 alt='عرض' pdf align=absbottom></a>";
            document.getElementById('pdfpic').innerHTML =pdflink;

        }
    
    }

}

function Putwavlink()
{

    if (window.ActiveXObject)
    {
        path =document.location.href;
	    path=path.split("/");
	    
	    fname=path[path.length-1].split(".");
	    wavpath="wav/"+fname[0]+".wma";
    	

	 //   wavlink="<a href='javascript:playsound1(wavpath)'> <img src=../../../../Common/Images/listen2text.gif border=0  align=absbottom /> </a>";
	    //wavlink="<a ><embed  src='"+ wavpath +"' width='200' height='40'><param name='AutoStart' value='0'></embed></a>"; 
        wavlink="<object height='45' width='300' classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95'><param name='AutoStart' value='0' /><param name='ClickToPlay' value='False' /><param name='FileName' value='"+wavpath+"' /></object>"
	    
	     document.write(wavlink);
    }
    else if (document.implementation && document.implementation.createDocument)
    {
        
        path =document.location.href;
	    path=path.split("/");
	    fname=path[path.length-1].split(".");
	    wavpath="wav/"+fname[0]+".wma";
    	
	 wavlink="<object id='MMPlayer1' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 type=application/x-oleobject height=40 width=200 align=absmiddle "
wavlink+="classid=CLSID:clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6>"
wavlink+="<param name='FileName' value='"+wavpath+"'><param name='ShowControls' value='1'>"
wavlink+="<param name='ShowStatusBar' value='0'><param name='ShowDisplay' value='0'>"
wavlink+="<param name='DefaultFrame' value='Slide'><param name='PlayCount' value='1'><param name='Autostart' value='0'>"
wavlink+="<embed src='"+wavpath+"' width='200' height='70' autostart='0' loop='0'align='absmiddle' type='application/x-mplayer2'" 
wavlink+="pluginspage='http://www.microsoft.com/Windows/MediaPlayer/download/default.asp'showcontrols='1' showdisplay='0' showstatusbar='1' > </embed></object>"

	    document.getElementById('wav_link').innerHTML =wavlink;
	    
    }	
    //document.write(wavlink);

}
function Putstopwavlink()
{

   if (window.ActiveXObject)
    {
        
    	
	    
	    wavlink="<a href='javascript:stopsound1()'> <img src=../../../../Common/Images/stop.gif border=0  align=absbottom /> </a>";
 
	     document.write(wavlink);
    }
    else if (document.implementation && document.implementation.createDocument)
    {
        
        wavlink="<a href='javascript:stopsound1()'> <img src=../../../../Common/Images/stop.gif border=0  align=absbottom /> </a>";
	    document.getElementById('stop_wav').innerHTML =wavlink;
	    
    }
      
}

function playsound1(s)
{
    if (window.ActiveXObject)
    {
        
         document.all.tags('bgsound')[0].src="";
        
      
         wav_link.innerHTML =wavlink;
         
    }
    else if (document.implementation && document.implementation.createDocument)
    {
        document.getElementsByTagName('bgsound').src="" ;
         document.getElementById('wav_link').innerHTML =wavlink;
     //   document.all.tags('bgsound')[0].src=s;
    }
}

function stopsound1()
{
    if (window.ActiveXObject)
    {
       document.all.tags('bgsound')[0].src="";
    }
    else if (document.implementation && document.implementation.createDocument)
    {
        document.getElementsByTagName('bgsound').src="" ;
     //   document.all.tags('bgsound')[0].src=s;
    }
}
//////-------------------------------------

var reqSelected = null;
var xmlSelected;

function processSelectedReqChange() 
{
   // alert(reqSelected.readyState)
    // only if req shows "complete"
    if (reqSelected.readyState == 4) 
    {  
        // only if "OK" 
        if (reqSelected.status == 200) 
        {
            // ...processing statements go here...
            
             
             xmlSelected = reqSelected.responseXML;
             xmlSelected.async=false;
            
             WriteRealSelectedArticle();
        } 
        else 
        {
            alert("There was a problem retrieving the XML data:\n" + req.statusText);

        }
    }
}


function WriteSelectedArticle()
{

    if (window.XMLHttpRequest  && (document.implementation && document.implementation.createDocument)    )
    {

         reqSelected = new XMLHttpRequest();
         if (reqSelected.overrideMimeType) 
         {
            path = document.location.href;
            path = path.split("/");
            ub   = path.length;
            newpath=path[ub-5]+"/"+path[ub-4]+"/"+path[ub-3]+"/"+path[ub-2]+"/"+"selected.xml"
         
            p=Server+newpath;
            //req.overrideMimeType('text/xml');
            
            reqSelected.open("GET", p, true);
            reqSelected.send(null);
            reqSelected.onreadystatechange = processSelectedReqChange;
        }      

    }
    else if(window.ActiveXObject)
    {
        path = document.location.href;
	    path = path.split("/");
	    ub   = path.length;
	    newpath=path[ub-5]+"/"+path[ub-4]+"/"+path[ub-3]+"/"+path[ub-2]+"/"+"selected.xml"
    	
       
       
       
            xmlSelected= new ActiveXObject("Microsoft.XMLDOM");
            xmlSelected.async=false;
            
       
        p=Server+newpath;
        xmlSelected.load(p);
        
         WriteRealSelectedArticle();
    }
    else if (document.implementation && document.implementation.createDocument)
    {
        path = document.location.href;
	    path = path.split("/");
	    ub   = path.length;
	    newpath=path[ub-5]+"/"+path[ub-4]+"/"+path[ub-3]+"/"+path[ub-2]+"/"+"selected.xml"
    	
       
        
        xmlSelected=document.implementation.createDocument("","",null);
        xmlSelected.async=false;
            
        p=Server+newpath;
        xmlSelected.load(p);
        
      WriteRealSelectedArticle();
        
    
    
    }

}



function WriteRealSelectedArticle()
{
  
    if(window.ActiveXObject)
    {
     
       
       
        SelectedArts=xmlSelected.selectNodes("Data/Articles/Article");
       
       
        it="<table> ";
        for(var i=0; i<=SelectedArts.length-1;i=i+1)
        {
            it=it+"<tr><td><a href=../../../"+SelectedArts[i].childNodes[2].text;
            it=it+"/"+SelectedArts[i].childNodes[3].text;
            it=it+"/"+SelectedArts[i].childNodes[4].text ;
            it=it+"/"+SelectedArts[i].childNodes[5].text+" target=new>";
            it=it+"<br/><font color=#AE0007 face=Simplified Arabic style='text-decoration:none;font-size:11pt;'><b>";
            it=it+ SelectedArts[i].childNodes[0].text+"</b></font></a></td></tr>";
            it=it+"<tr><td><font  color=#333333 face=Simplified Arabic  style='text-decoration:none;font-size:11pt'  ><b>"+ SelectedArts[i].childNodes[1].text+"</b></font></td></tr>";
        }
        it=it+"</table>";
        document.write(it);
    }
    else if (document.implementation && document.implementation.createDocument)
    {

        
        SelectedArts= xmlSelected.getElementsByTagName("Data");
        SelectedArts=SelectedArts[0].getElementsByTagName("Articles");
        SelectedArts=SelectedArts[0].getElementsByTagName("Article");
        
  
        it="<table> ";
        for(var i=0; i<=SelectedArts.length-1;i=i+1)
        {
            it=it+"<tr><td><a href=../../../"+SelectedArts[i].getElementsByTagName("year")[0].childNodes[0].nodeValue;
            it=it+"/"+SelectedArts[i].getElementsByTagName("month")[0].childNodes[0].nodeValue;
            it=it+"/"+SelectedArts[i].getElementsByTagName("day")[0].childNodes[0].nodeValue ;
            it=it+"/"+SelectedArts[i].getElementsByTagName("fname")[0].childNodes[0].nodeValue+" target=new>";
            it=it+"<br/><font color=#AE0007 face=Simplified Arabic style='text-decoration:none;font-size:11pt;'><b>";
            it=it+ SelectedArts[i].getElementsByTagName("title")[0].childNodes[0].nodeValue+"</b></font></a></td></tr>";
            it=it+"<tr><td><font  color=#333333 face=Simplified Arabic  style='text-decoration:none;font-size:11pt'  ><b>"+ SelectedArts[i].getElementsByTagName("author")[0].childNodes[0].nodeValue+"</b></font></td></tr>";
        }
        it=it+"</table>";
      
         document.getElementById('SelectedArticle').innerHTML =it;
         
    
    
    }

}


 function space()
{
 document.getElementById('spc').innerHTML ="&nbsp;&nbsp;";
return  "&nbsp;";
// document.write("&nbsp;");
}
///////////////
///////////////////
//////////////


var reqArticleContent = null;
var xmlArticleContent;

function processArticleContentReqChange() 
{

    // only if req shows "complete"
    if (reqArticleContent.readyState == 4) 
    {  
        // alert("Request Status:  "+reqSecName.status)
        // only if "OK" 
        if (reqArticleContent.status == 200) 
        {
            // ...processing statements go here...
            
             xmlArticleContent = reqArticleContent.responseXML;
             xmlArticleContent.async=false;
           
             PutArticleContentReal();
        } 
        else 
        {
            alert("There was a problem retrieving the XML data:\n" + req.statusText);

        }
    }
}


     
function PutArticleContent()
{
    if (window.XMLHttpRequest  && (document.implementation && document.implementation.createDocument)    )
    {
         reqArticleContent = new XMLHttpRequest();
         if (reqArticleContent.overrideMimeType) 
         {
           p=document.location.href;
            
            reqArticleContent.open("GET", p, true);
            reqArticleContent.send(null);
            reqArticleContent.onreadystatechange = processArticleContentReqChange;
        }      

    }
    else if(window.ActiveXObject)
    {
        xmlArticleContent=new ActiveXObject("Microsoft.XMLDOM");
        xmlArticleContent.async=false;
                       
        p=document.location.href;
        xmlArticleContent.load(p);

        PutArticleContentReal();
    }
    else if (document.implementation && document.implementation.createDocument)
    {        
        xmlArticleContent=document.implementation.createDocument("","",null);
        xmlArticleContent.async=false;
        p=document.location.href;
        xmlArticleContent.load(p);

        PutArticleContentReal();
    }

}

function PutArticleContentReal()
{

     if (window.ActiveXObject)
     {
         
        var qryprint;
        qryprint=xmlArticleContent.getElementsByTagName("Content");
         
        var content=qryprint[0].xml;
        document.write(content);
    }
    else if (document.implementation && document.implementation.createDocument)
    {
        
        var qryprint;
        var content="";
        qryprint=xmlArticleContent.getElementsByTagName("Content");
        var serializer = new XMLSerializer();
        var xmlart = serializer.serializeToString(xmlArticleContent);
        var startcontent=xmlart.indexOf("<Content>")+9;
         
        var endcontent=xmlart.indexOf("</Content>");
        artcontent= xmlart.substr(startcontent,endcontent-startcontent);
     
        document.getElementById('artcontent').innerHTML =artcontent;    
        
    
    }

    
}

function HowToUse(link)
{

    if (window.ActiveXObject)
    {
    path = link;
    end= path.indexOf("Data");
    localpath= path.substr(0,end);
    localpath+="HowToUse.html";
    howtohtml="<a href='"+localpath+"'>";
    howtohtml+="<font color='#AE0007' face='Simplified Arabic' style='text-decoration:none;font-size:11pt;text-indent:3px'><b>كيف تستخدم الكلمة</b></font></a>";
    document.write( howtohtml); 
    }
    else if (document.implementation && document.implementation.createDocument)
    {
        path = link;
        end= path.indexOf("Data");
        localpath= path.substr(0,end);
        localpath+="HowToUse.html";
        howtohtml="<a href='"+localpath+"'>";
        howtohtml+="<font color='#AE0007' face='Simplified Arabic' style='text-decoration:none;font-size:11pt;text-indent:3px'><b>كيف تستخدم الكلمة</b></font></a>";
        document.getElementById('howto').innerHTML =howtohtml; 
    
    }
 
    
}


var reqPrint = null;
var xmlprint;

function processPrintReqChange() 
{
   // alert("Request Ready:  "+req.readyState)
    // only if req shows "complete"
    if (reqPrint.readyState == 4) 
    {  
        // only if "OK" 
        if (reqPrint.status == 200) 
        {
            // ...processing statements go here...
            
             xmlprint = reqPrint.responseXML;
             xmlprint.async=false;
            
             GetRealPrintInSection();
        } 
        else 
        {
            alert("There was a problem retrieving the XML data:\n" + reqPrint.statusText);

        }
    }
}


function GetPrintInSection()
{
    if (window.XMLHttpRequest  && (document.implementation && document.implementation.createDocument)    )
    {
         reqPrint = new XMLHttpRequest();
         if (reqPrint.overrideMimeType) 
         {
            p=document.location.href;
            
            reqPrint.open("GET", p, true);
            reqPrint.send(null);
            reqPrint.onreadystatechange = processPrintReqChange;
        }      

    }
    else if(window.ActiveXObject)
    {
         
         xmlprint=new ActiveXObject("Microsoft.XMLDOM");
         xmlprint.async=false;
        
         p=document.location.href;
         xmlprint.load(p);
        
         GetRealPrintInSection();
    }
    else if (document.implementation && document.implementation.createDocument)
    {
       
        xmlprint=document.implementation.createDocument("","",null);
        xmlprint.async=false;
        p=document.location.href;
        xmlprint.load(p);
        
        GetRealPrintInSection();
        
    
    
    }

}


function GetRealPrintInSection()
{
 if( btSec == undefined)
    {
        
        setTimeout("GetRealPrintInSection()",1000);
        return ;
    }
   
   if(window.ActiveXObject)
    {
         
         var qryprint;
         qryprint=xmlprint.getElementsByTagName("Articles");
         section_name=qryprint[0].attributes[0].value;
           
         var section_id=0;
         for(var t=0; t<=btSec.childNodes.length-1;t=t+1)
         {
           
            if (btSec.childNodes[t].text==section_name)
            {
             section_id=t;
             SectionPageSectionID = section_id ;
             break;
             
            }
         }
    }
    else if (document.implementation && document.implementation.createDocument)
    {
        
            
            var qryprint;
            qryprint=xmlprint.getElementsByTagName("Articles");
         
           section_name=qryprint[0].attributes[0].value;
           
            var section_id=0;
            for(var t=0; t<=btSec.length-1;t=t+1)
            {
                if (btSec[t].childNodes[0].nodeValue==section_name)
                {
                  section_id=t;
                  SectionPageSectionID = section_id ;
                  break;
                }
            }
        
      }
      gettitleswithselected(section_id);
      //alert("SectionId :  "+section_id);
}



function getbottomlinks1()
{


       if(window.ActiveXObject)
       {
           
            for(var t=1 ; t<=btSec.childNodes.length-1;t=t+1)
            {
        		
	            if(btSec.childNodes[t].text==studies)
	            {
                    it=it+"<A href=Studies.xml  style='text-decoration:none;' >";
                }
                else if(btSec.childNodes[t].text==poetry)
                {
                        it=it+"<A href=Poetry.xml style='text-decoration:none;'>";
                }
                else if(btSec.childNodes[t].text==narrative)
                {
                    it=it+"<A href=Narrative.xml style='text-decoration:none;'>";
                }
                else if(btSec.childNodes[t].text==critisism)
                {
                    it=it+"<A href=Criticism.xml style='text-decoration:none;'>";
                }
                else if(btSec.childNodes[t].text==milestones)
                {
                    it=it+"<A href=Milestones.xml style='text-decoration:none;'>";
                }    
                else if(btSec.childNodes[t].text==books)
                {
                    it=it+"<A href=Books.xml   style='text-decoration:none;'>";
                }
                else if(btSec.childNodes[t].text==reports)
                {
                    it=it+"<A href=Reports.xml style='text-decoration:none;'>";
                }
                else if(btSec.childNodes[t].text==events)
                {
                    it=it+"<A href=Events.xml   STYLE='text-decoration: none; color=gray'>";
                }    
                else if(btSec.childNodes[t].text==dossier)
                {
                    it=it+"<A href=Dossier.xml   STYLE='text-decoration: none; color=gray'>" ;
                }    
                else if(btSec.childNodes[t].text==encounters)
                {       
                    it=it+"<A href=Encounters.xml   STYLE='text-decoration: none; color=gray'>";
                }    
                else if(btSec.childNodes[t].text==index)
                {
					
                    it=it+"<A href=Index.xml   STYLE='text-decoration: none; color=gray'>";
                }    
                else if(btSec.childNodes[t].text==previous)
                {
                    it=it+"<A href=PreviousIssues.xml   STYLE='text-decoration: none; color=gray'>";
                }    
                else if(btSec.childNodes[t].text==links)
                {
                    it=it+"<A href=RelatedLinks.xml   STYLE='text-decoration: none; color=gray'>";
                }
                else if(btSec.childNodes[t].text==contactus)
                {
                    it=it+"<A href=ContactUs.xml   STYLE='text-decoration: none; color=gray'>"    ;
                }
                else if(btSec.childNodes[t].text==novel)
                {
                      it=it+"<A href=Novel.xml   STYLE='text-decoration: none; color=gray'>"    ;
                }    
                else if(btSec.childNodes[t].text==darwishtexts)
                {
                      it=it+"<A href=DarwishTexts.xml   STYLE='text-decoration: none; color=gray'>"    ;
                }    
                else if(btSec.childNodes[t].text==elegies)
                {
                      it=it+"<A href=Elegies.xml   STYLE='text-decoration: none; color=gray'>"    ;
                }    
                else if(btSec.childNodes[t].text==obituaries)
                {
                      it=it+"<A href=Obituaries.xml   STYLE='text-decoration: none; color=gray'>"    ;
                }    
                else if(btSec.childNodes[t].text==worldpoet)
                {
                      it=it+"<A href=WorldPoet.xml   STYLE='text-decoration: none; color=gray'>"    ;
                }    
                        
        	   
	            it=it+" <font color=white  face='arabic transparent' style='font-size:16px' style='text-decoration:none'><b>"+btSec.childNodes[t].text;
    	        if(t!= btSec.childNodes.length-1)
    	        {
    	            it=it+"|";
    	            
    	        }
    	        else
                {
        	        it=it+"</font></b></A>";
                }
	        }
	        document.write (it);
	 }
	 else if(document.implementation && document.implementation.createDocument)
	 {
	
	    
         
         for(var t=1 ; t<=btSec.length-1;t=t+1)
         {
         
            if(btSec[t].childNodes[0].nodeValue==studies)
	          {
                  it=it+"<A href=../../../../Data/"+issuedate+"/Studies.xml   style='text-decoration:none;'>";
              }
              else if(btSec[t].childNodes[0].nodeValue==poetry)
              {
                   it=it+"<A href=../../../../Data/"+issuedate+"/Poetry.xml style='text-decoration:none;'>";
              }
              else if(btSec[t].childNodes[0].nodeValue==narrative)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/Narrative.xml style='text-decoration:none;'>";
              }
              else if(btSec[t].childNodes[0].nodeValue==critisism)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/Criticism.xml style='text-decoration:none;'>";
              }
              else if(btSec[t].childNodes[0].nodeValue==milestones)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/Milestones.xml style='text-decoration:none;'>";
              }    
              else if(btSec[t].childNodes[0].nodeValue==books)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/Books.xml   style='text-decoration:none;'>";
              }
              else if(btSec[t].childNodes[0].nodeValue==reports)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/Reports.xml style='text-decoration:none;'>";
              }
              else if(btSec[t].childNodes[0].nodeValue==events)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/Events.xml   STYLE='text-decoration: none; color=gray'>";
              }    
              else if(btSec[t].childNodes[0].nodeValue==dossier)
              {
                 it=it+"<A href=../../../../Data/"+issuedate+"/Dossier.xml   STYLE='text-decoration: none; color=gray'>" ;
              }    
              else if(btSec[t].childNodes[0].nodeValue==encounters)
              {       
                 it=it+"<A href=../../../../Data/"+issuedate+"/Encounters.xml   STYLE='text-decoration: none; color=gray'>";
              }    
              else if(btSec[t].childNodes[0].nodeValue==index)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/Index.xml   STYLE='text-decoration: none; color=gray'>";
              }    
              else if(btSec[t].childNodes[0].nodeValue==previous)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/PreviousIssues.xml   STYLE='text-decoration: none; color=gray'>";
              }    
              else if(btSec[t].childNodes[0].nodeValue==links)
              {
                 it=it+"<A href=../../../../Data/"+issuedate+"/RelatedLinks.xml   STYLE='text-decoration: none; color=gray'>";
              }
              else if(btSec[t].childNodes[0].nodeValue==contactus)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/ContactUs.xml   STYLE='text-decoration: none; color=gray'>"    ;
              }
              else if(btSec[t].childNodes[0].nodeValue==novel)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/Novel.xml   STYLE='text-decoration: none; color=gray'>"    ;
              }    
              else if(btSec[t].childNodes[0].nodeValue==darwishtexts)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/DarwishTexts.xml   STYLE='text-decoration: none; color=gray'>"    ;
              }    
              else if(btSec[t].childNodes[0].nodeValue==elegies)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/Elegies.xml   STYLE='text-decoration: none; color=gray'>"    ;
              }    
              else if(btSec[t].childNodes[0].nodeValue==obituaries)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/Obituaries.xml   STYLE='text-decoration: none; color=gray'>"    ;
              }    
              else if(btSec[t].childNodes[0].nodeValue==worldpoet)
              {
                  it=it+"<A href=../../../../Data/"+issuedate+"/WorldPoet.xml   STYLE='text-decoration: none; color=gray'>"    ;
              }    
              it=it+" <font color=white  face='arabic transparent' style='font-size:16px;text-decoration:none'><b>"+btSec[t].childNodes[0].nodeValue;
    	      if(t!= btSec.length-1)
    	      {
    	          it=it+"|";
    	      }
    	      else
              {
        	      it=it+"</font></b></A>";
              }
	        }
	       document.getElementById('bottomlinks').innerHTML+=it;
	  }

} 


////////////////////////////////////////////////////

var Server1 = "";
var reqPrintIndex = null;
var xmlprintIndex;

function processPrintIndexReqChange() 
{
    // only if req shows "complete"
    if (reqPrintIndex.readyState == 4) 
    {  
         //alert("Request Status:  "+reqPrintIndex.status)
        // only if "OK" 
        if (reqPrintIndex.status == 200) 
        {
            // ...processing statements go here...
            
             xmlprintIndex = reqPrintIndex.responseXML;
             xmlprintIndex.async=false;
           
             GetRealPrintInIndex();
        } 
        else 
        {
            alert("There was a problem retrieving the XML data:\n" + req.statusText);

        }
    }
}


function GetPrintInIndex()
{
    if (window.XMLHttpRequest  && (document.implementation && document.implementation.createDocument)    )
    {
         reqPrintIndex = new XMLHttpRequest();
         if (reqPrintIndex.overrideMimeType) 
         {
            p1=document.location.href;
                              
          path1=p1.split("/");
          ub=path1.length;
          var Server1="";
          for(var con=0;con< ub-1;con=con+1)
          {
            Server1=Server1+path1[con]+"/";
          }
          
          newpath=Server1+"default.xml";
            
            reqPrintIndex.open("GET", newpath, true);
            reqPrintIndex.send(null);
            reqPrintIndex.onreadystatechange = processPrintIndexReqChange;
        }      

    }
    else if(window.ActiveXObject)
    {
         
        xmlprintIndex=new ActiveXObject("Microsoft.XMLDOM");
        xmlprintIndex.async=false;
        p1=document.location.href;
        path1=p1.split("/");
        ub=path1.length;
        var Server1="";
        for(var con=0;con< ub-1;con=con+1)
        {
            Server1=Server1+path1[con]+"/";
        }
        newpath=Server1+"default.xml";
        xmlprintIndex.load(newpath);

        GetRealPrintInIndex();
    }
    else if (document.implementation && document.implementation.createDocument)
    {
 
        
        xmlprintIndex=document.implementation.createDocument("","",null);
        xmlprintIndex.async=false;
        p1=document.location.href;

        path1=p1.split("/");
        ub=path1.length;
        var Server1="";
        for(var con=0;con< ub-1;con=con+1)
        {
            Server1=Server1+path1[con]+"/";
        }

        newpath=Server1+"default.xml";
        xmlprintIndex.load(newpath);

        GetRealPrintInIndex();
        
    
    
    }

}


function GetRealPrintInIndex()
{
 if( My_day == undefined)
         {
         
                setTimeout("GetRealPrintInIndex()",1000);  
                return ;
         } 
   if(window.ActiveXObject)
    {
         
        var qryprint;
        qryprint =xmlprintIndex.selectNodes("Data/Sections/Section");
        sectionname1 =Server1+"PreviousIssues.xml";
        var currYear=0;
        currYear=My_day;
        currYear=currYear-2006;
        if(currYear==1)
        {
          writelink( sectionname1,"السنة الأولى");
        }
        else if(currYear==2)
        {
          writelink( sectionname1,"السنة الثانية");
        }
        else if(currYear==3)
        {
            writelink( sectionname1,"السنة الثالثة");
        }
        else if(currYear==4)
        {
            writelink( sectionname1,"السنة الرابعة");
        }
    }
    else if (document.implementation && document.implementation.createDocument)
    {
        
            
          var qryprint;
          qryprint =xmlprintIndex.getElementsByTagName("Data");
         
          //selectNodes("Data/Sections/Section");
          qryprint=qryprint[0].getElementsByTagName("Sections");
          qryprint=qryprint[0].getElementsByTagName("Section");
          sectionname1 =Server1+"PreviousIssues.xml";
           
          var currYear=0;
          currYear=My_day;
          currYear=currYear-2006;
          
          if(currYear==1)
          {
            sectionlink= "<a href=" + sectionname1 + "  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + " السنة الأولى " + "</u></font></a>";
            document.getElementById("yearindex").innerHTML=sectionlink;
            //writelink( sectionname1,"السنة الأولى");
          }
          else if(currYear==2)
          {
           sectionlink= "<a href=" + sectionname1 + "  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" +" السنة الثانية "+ "</u></font></a>";
            document.getElementById("yearindex").innerHTML=sectionlink;
            
          }
          else if(currYear==3)
          {
           sectionlink= "<a href=" + sectionname1 + "  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + " السنة الثالثة "+ "</u></font></a>";
            document.getElementById("yearindex").innerHTML=sectionlink;
          
          }
           else if(currYear==4)
          {
           sectionlink= "<a href=" + sectionname1 + "  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + " السنة الرابعة "+ "</u></font></a>";
            document.getElementById("yearindex").innerHTML=sectionlink;
          
          }

      }
   //  if(document.location.href.indexOf("ndex.xml")>-1)
     //   gettitleswithselected(1);
}
     
     
     
     
     
     
     ////////////////////////////////////////////////////
     

var reqSecName = null;
var xmlSecName;

function processSectionNameReqChange() 
{
    // only if req shows "complete"
    if (reqSecName.readyState == 4) 
    {  
        // alert("Request Status:  "+reqSecName.status)
        // only if "OK" 
        if (reqSecName.status == 200) 
        {
            // ...processing statements go here...
            
             xmlSecName = reqSecName.responseXML;
             xmlSecName.async=false;
           
             GetRealSectionName();
        } 
        else 
        {
            alert("There was a problem retrieving the XML data:\n" + req.statusText);

        }
    }
}


     
function GetSectionName()
{
    if (window.XMLHttpRequest  && (document.implementation && document.implementation.createDocument)    )
    {
         reqSecName = new XMLHttpRequest();
         if (reqSecName.overrideMimeType) 
         {
           p=document.location.href;
            
            reqSecName.open("GET", p, true);
            reqSecName.send(null);
            reqSecName.onreadystatechange = processSectionNameReqChange;
        }      

    }
    else if(window.ActiveXObject)
    {
         
      
          xmlSecName=new ActiveXObject("Microsoft.XMLDOM");
          xmlSecName.async=false;
          p=document.location.href;
          xmlSecName.load(p);

          GetRealSectionName();
    }
    else if (document.implementation && document.implementation.createDocument)
    {
          
          xmlSecName=document.implementation.createDocument("","",null);
          xmlSecName.async=false;
          p=document.location.href;
          xmlSecName.load(p);

          GetRealSectionName();
        
    
    }

}


function GetRealSectionName()
{

if( btSec == undefined)
    {
        
        setTimeout("GetRealSectionName()",1000);
        return ;
    }
        if(window.ActiveXObject)
                         {
                        
                              
                              var qryprint;
                              qryprint=xmlSecName.getElementsByTagName("Articles");
                              section_name=qryprint[0].attributes[0].value;
                              if(section_name==studies)
                              {
                                section_namelink="Studies.xml";
                              }
                              else if (section_name== poetry)
                              {
                                section_namelink="Poetry.xml";
                              }
                              else if (section_name== narrative)
                              {
                                  section_namelink="Narrative.xml";
                              }
                             
                              else if (section_name== critisism)
                              {
                                section_namelink="Criticism.xml";
                              }
                              else if (section_name== milestones)
                              {
                                section_namelink="Milestones.xml";
                              }
                              else if (section_name== books)
                              {
                                  section_namelink="Books.xml";
                              }
                              else if (section_name== reports)
                              {
                                section_namelink="Reports.xml";
                              }
                              else if (section_name== events)
                              {
                                section_namelink="Events.xml";
                              }
                              else if (section_name== dossier)
                              {
                                  section_namelink="Dossier.xml";
                              }
                              else if (section_name== encounters)
                              {
                                section_namelink="Encounters.xml";
                              }
                              else if (section_name== index)
                              {
                                section_namelink="Index.xml";
                              }
                              else if (section_name== previous)
                              {
                                section_namelink="PreviousIssues.xml"
                              }
                              else if (section_name== links)
                              {
                                section_namelink="RelatedLinks.xml";
                              }
                              else if (section_name== contactus)
                              {
                                section_namelink="ContactUs.xml";
                              }
                              else if(section_name== novel)
                              {
                                section_namelink="Novel.xml";
                              
                              }
                              else if(section_name== darwishtexts)
                              {
                                section_namelink="DarwishTexts.xml";
                              
                              }
                              else if(section_name== elegies)
                              {
                                section_namelink="Elegies.xml";
                              
                              }
                              else if(section_name== obituaries)
                              {
                                section_namelink="Obituaries.xml";
                              
                              }
                              else if(section_name== worldpoet)
                              {
                                section_namelink="WorldPoet.xml";
                              
                              }
                              else
                              {
                                 section_namelink="";
                                 section_name="";
                              }
                              //writelink(section_namelink,section_name);
                              document.getElementById("section_name").innerHTML="<a href=" + section_namelink+ "  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                             //document.getElementById("section_name").innerHTML=section_namelink;

                              
                              
                      
                              
                              
                              
                              
                              
                              
                             if(section_name== studies)
                            {
                                 sectionlink= "<a href='Studies.xml' STYLE='text-decoration: none '><font face='Simplified Arabic'  color='#AE0007' style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                                 
                                 document.getElementById("section_name1").innerHTML=sectionlink;
                             
                            }
                            else if (section_name== poetry)
                            {
                            sectionlink= "<a href=" + "Poetry.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                             document.getElementById("section_name1").innerHTML=sectionlink;
                              
                            }
                            else if (section_name== narrative)
                            {
                            sectionlink= "<a href=" + "Narrative.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                             document.getElementById("section_name1").innerHTML=sectionlink;
                                   
                            }
                            else if (section_name== critisism)
                            {
                            sectionlink= "<a href=" + "Criticism.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                             document.getElementById("section_name1").innerHTML=sectionlink;
                              
                            }
                            else if (section_name== milestones)
                            {
                            sectionlink= "<a href=" + "Milestones.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                             document.getElementById("section_name1").innerHTML=sectionlink;
                              
                            }
                            else if (section_name== books)
                            {
                            sectionlink= "<a href=" + "Books.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                             document.getElementById("section_name1").innerHTML=sectionlink;
                              
                            }
                         
                            else if (section_name== reports)
                            {
                              sectionlink= "<a href=" + "Reports.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                             document.getElementById("section_name1").innerHTML=sectionlink;
                              
                            }
                            else if (section_name== events)
                            {
                            sectionlink= "<a href=" + "Events.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                             document.getElementById("section_name1").innerHTML=sectionlink;
                              
                            }
                            else if (section_name== dossier)
                            {
                              sectionlink= "<a href=" + "Dossier.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                             document.getElementById("section_name1").innerHTML=sectionlink;
                              
                            }  
                            else if (section_name== encounters)
                            {
                            sectionlink= "<a href=" + "Encounters.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                             document.getElementById("section_name1").innerHTML=sectionlink;
                              
                            }
                            else if (section_name== index)
                            {
                            sectionlink= "<a href=" + "Index.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                             document.getElementById("section_name1").innerHTML=sectionlink;
                              
                            }
                            else if (section_name== previous)
                            {
                            sectionlink= "<a href=" + "PreviousIssues.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                             document.getElementById("section_name1").innerHTML=sectionlink;
                              section_namelink="PreviousIssues.xml";
                            }
                            else if (section_name== links)
                            {
                            sectionlink= "<a href=" + "RelatedLinks.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                             document.getElementById("section_name1").innerHTML=sectionlink;
                              
                            }
                            else if (section_name== contactus)
                            {
                              
                              sectionlink= "<a href=" + "ContactUs.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                             document.getElementById("section_name1").innerHTML=sectionlink;
                            }
                            else if(section_name==novel)
                            {
                            sectionlink= "<a href=" + "Novel.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                             document.getElementById("section_name1").innerHTML=sectionlink;
                              
                            }
                            else if(section_name=="كيف تستخدم الكلمة")
                            {
                              
                                sectionlink= "<a href=" + "HowToUse.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                             document.getElementById("section_name1").innerHTML=sectionlink;
                            }
                            else if(section_name==darwishtexts)
                            {
                            sectionlink= "<a href=" + "darwishtexts.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                             document.getElementById("section_name1").innerHTML=sectionlink;
                              
                            }
                            else if(section_name==elegies)
                            {
                            sectionlink= "<a href=" + "elegies.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                             document.getElementById("section_name1").innerHTML=sectionlink;
                              
                            }
                            else if(section_name==obituaries)
                            {
                            sectionlink= "<a href=" + "obituaries.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                             document.getElementById("section_name1").innerHTML=sectionlink;
                              
                            }
                            else if(section_name==worldpoet)
                            {
                            sectionlink= "<a href=" + "worldpoet.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                             document.getElementById("section_name1").innerHTML=sectionlink;
                             
                            }
                            
                            
                          
                       }
                         
                         
                         
                         
                         
                         
                         
                         else if (document.implementation && document.implementation.createDocument)
                         {
                         
                              
                              var qryprint;
                              qryprint=xmlSecName.getElementsByTagName("Articles");
                              
                              section_name=qryprint[0].attributes[0].value;
                              
                              
                              if(section_name==studies)
                              {
                                 section_namelink= "<a href='Studies.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                 
                                document.getElementById("section_name").innerHTML=section_namelink;
                                
                                
                              }
                              else if (section_name== poetry)
                              {
                                section_namelink= "<a href='Poetry.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                                
                                //section_namelink="Poetry.xml";
                              }
                              else if (section_name== narrative)
                              {
                               section_namelink= "<a href='Narrative.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                                
                               //   section_namelink="Narrative.xml";
                              }
                             
                              else if (section_name== critisism)
                              {
                              section_namelink= "<a href='Criticism.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                               
                                //section_namelink="Criticism.xml";
                              }
                              else if (section_name== milestones)
                              {
                              section_namelink= "<a href='Milestones.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                               
                                
                              }
                              else if (section_name== books)
                              {
                                section_namelink= "<a href='Books.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                               
                              }
                              else if (section_name== reports)
                              {
                                section_namelink= "<a href='Reports.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                                
                                
                              }
                              else if (section_name== events)
                              {
                                section_namelink= "<a href='Events.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                               
                              }
                              else if (section_name== dossier)
                              {
                              section_namelink= "<a href='Dossier.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                      
                                  
                              }
                              else if (section_name== encounters)
                              {
                              section_namelink= "<a href='Encounters.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                               
                              }
                              else if (section_name== index)
                              {
                                section_namelink= "<a href='Index.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                               
                                
                              }
                              else if (section_name== previous)
                              {
                              section_namelink= "<a href='PreviousIssues.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                               
                                
                              }
                              else if (section_name== links)
                              {
                              section_namelink= "<a href='RelatedLinks.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                               
                               
                              }
                              else if (section_name== contactus)
                              {
                              section_namelink= "<a href='ContactUs.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                               
                               
                              }
                              else if(section_name== novel)
                              {
                                section_namelink= "<a href='Novel.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                              }
                              else if(section_name== darwishtexts)
                              {
                                section_namelink= "<a href='darwishtexts.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                              }
                              else if(section_name== elegies)
                              {
                                section_namelink= "<a href='Elegies.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                              }
                              else if(section_name== obituaries)
                              {
                                section_namelink= "<a href='Obituaries.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                              }
                              else if(section_name== worldpoet)
                              {
                                section_namelink= "<a href='WorldPoet.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                              }
                              
                            
                            
                            
                            
                                    
                                    if(section_name== studies)
                                {
                                     sectionlink= "<a href='Studies.xml' STYLE='text-decoration: none '><font face='Simplified Arabic'  color='#AE0007' style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                                     
                                     document.getElementById("section_name1").innerHTML=sectionlink;
                                 
                                }
                                else if (section_name== poetry)
                                {
                                sectionlink= "<a href=" + "Poetry.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                                 document.getElementById("section_name1").innerHTML=sectionlink;
                                  
                                }
                                else if (section_name== narrative)
                                {
                                sectionlink= "<a href=" + "Narrative.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                                 document.getElementById("section_name1").innerHTML=sectionlink;
                                       
                                }
                                else if (section_name== critisism)
                                {
                                sectionlink= "<a href=" + "Criticism.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                                 document.getElementById("section_name1").innerHTML=sectionlink;
                                  
                                }
                                else if (section_name== milestones)
                                {
                                sectionlink= "<a href=" + "Milestones.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                                 document.getElementById("section_name1").innerHTML=sectionlink;
                                  
                                }
                                else if (section_name== books)
                                {
                                sectionlink= "<a href=" + "Books.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                                 document.getElementById("section_name1").innerHTML=sectionlink;
                                  
                                }
                             
                                else if (section_name== reports)
                                {
                                  sectionlink= "<a href=" + "Reports.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                                 document.getElementById("section_name1").innerHTML=sectionlink;
                                  
                                }
                                else if (section_name== events)
                                {
                                sectionlink= "<a href=" + "Events.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                                 document.getElementById("section_name1").innerHTML=sectionlink;
                                  
                                }
                                else if (section_name== dossier)
                                {
                                  sectionlink= "<a href=" + "Dossier.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                                 document.getElementById("section_name1").innerHTML=sectionlink;
                                  
                                }  
                                else if (section_name== encounters)
                                {
                                sectionlink= "<a href=" + "Encounters.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                                 document.getElementById("section_name1").innerHTML=sectionlink;
                                  
                                }
                                else if (section_name== index)
                                {
                                sectionlink= "<a href=" + "Index.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                                 document.getElementById("section_name1").innerHTML=sectionlink;
                                  
                                }
                                else if (section_name== previous)
                                {
                                sectionlink= "<a href=" + "PreviousIssues.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                                 document.getElementById("section_name1").innerHTML=sectionlink;
                                  section_namelink="PreviousIssues.xml";
                                }
                                else if (section_name== links)
                                {
                                sectionlink= "<a href=" + "RelatedLinks.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                                 document.getElementById("section_name1").innerHTML=sectionlink;
                                  
                                }
                                else if (section_name== contactus)
                                {
                                  
                                  sectionlink= "<a href=" + "ContactUs.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                                 document.getElementById("section_name1").innerHTML=sectionlink;
                                }
                                else if(section_name==novel)
                                {
                                sectionlink= "<a href=" + "Novel.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                                 document.getElementById("section_name1").innerHTML=sectionlink;
                                  
                                }
                                else if(section_name=="كيف تستخدم الكلمة")
                                {
                                  
                                    sectionlink= "<a href=" + "HowToUse.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                                 document.getElementById("section_name1").innerHTML=sectionlink;
                                }
                                else if(section_name==darwishtexts)
                                {
                                sectionlink= "<a href=" + "darwishtexts.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                                 document.getElementById("section_name1").innerHTML=sectionlink;
                                  
                                }
                                else if(section_name==elegies)
                                {
                                sectionlink= "<a href=" + "elegies.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                                 document.getElementById("section_name1").innerHTML=sectionlink;
                                  
                                }
                                else if(section_name==obituaries)
                                {
                                    sectionlink= "<a href=" + "obituaries.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                                    document.getElementById("section_name1").innerHTML=sectionlink;
                                  
                                }
                                else if(section_name==worldpoet)
                                {
                                    sectionlink= "<a href=" + "worldpoet.xml" + "  STYLE='text-decoration: none '><font face=Simplified Arabic  color=#AE0007 style='font-size:19pt;text-indent:12px;'><b>" + section_name + "</b></font></a>";
                                    document.getElementById("section_name1").innerHTML=sectionlink;
                                 
                                }
                                
                         }
}
       
       
       
       
       
       
       
       
       
       
       /////////////////////////
          
     ////////////////////////////////////////////////////
     

var reqArtRMenu = null;
var xmlArtrMenu;

function processArticleRightMenuReqChange() 
{
    // only if req shows "complete"
    if (reqArtRMenu.readyState == 4) 
    {  
        // alert("Request Status:  "+reqArtRMenu.status)
        // only if "OK" 
        if (reqArtRMenu.status == 200) 
        {
            // ...processing statements go here...
            
             xmlArtrMenu = reqArtRMenu.responseXML;
             xmlArtrMenu.async=false;
           
             GetArticleRightMenuReal();
        } 
        else 
        {
            alert("There was a problem retrieving the XML data:\n" + req.statusText);

        }
    }
}


     
function GetArticleRightMenu()
{
    if (window.XMLHttpRequest  && (document.implementation && document.implementation.createDocument)    )
    {
         reqArtRMenu = new XMLHttpRequest();
         if (reqArtRMenu.overrideMimeType) 
         {
           p=document.location.href;
            
            reqArtRMenu.open("GET", p, true);
            reqArtRMenu.send(null);
            reqArtRMenu.onreadystatechange = processArticleRightMenuReqChange;
        }      

    }
    else if(window.ActiveXObject)
    {
        xmlArtrMenu=new ActiveXObject("Microsoft.XMLDOM");
        xmlArtrMenu.async=false;
                       
        p=document.location.href;
        xmlArtrMenu.load(p);

        GetArticleRightMenuReal();
    }
    else if (document.implementation && document.implementation.createDocument)
    {        
        xmlArtrMenu=document.implementation.createDocument("","",null);
        xmlArtrMenu.async=false;
        p=document.location.href;
        xmlArtrMenu.load(p);

        GetArticleRightMenuReal();
    }

}
function GetArticleRightMenuReal()
{
     if (window.ActiveXObject)
                      {
                        qryprint=xmlArtrMenu.selectNodes("ALL");
                         btprint=qryprint.nextNode();
                          
                        for(var t=0;t<= btprint.childNodes[0].childNodes.length-1;t=t+1)
                        {
                          v=btprint.childNodes[0].childNodes[t].NodeName;
                         if( v=="C_SECTION")
                           {
                           NDX_C_SECTION=t;
                          }
                        }
                  
                        section_name=btprint.childNodes[0].childNodes[NDX_C_SECTION].text;
                        section_id=0;
                        for(var t=0; t<= btSec.childNodes.length-1;t=t+1)
                        {
                          if( btSec.childNodes[t].text==section_name)
                          {
                              section_id=t;
                              SectionPageSectionID = section_id ;
                              break;
                          }
                        }
                      
                        gettitleswithselected(section_id);
                    }
                    else if (document.implementation && document.implementation.createDocument)
                    {
                      
                         
                         
                        qryprint=xmlArtrMenu.getElementsByTagName("ALL");
                        btprint=qryprint[0].getElementsByTagName("C_SECTION");
                                                
                        //NDX_C_SECTION=btprint[0].childNodes[0].nodeValue;
                         
                        section_name=btprint[0].childNodes[0].nodeValue;
                        
                        //btprint[0].childNodes[0].childNodes[NDX_C_SECTION].text;
                        section_id=0;
                        for(var t=0; t<= btSec.length-1;t=t+1)
                        {
                          if( btSec[t].childNodes[0].nodeValue==section_name)
                          {
                              section_id=t;
                              SectionPageSectionID = section_id ; 
                              break;
                          }
                                                  
                       }
                       
                      gettitleswithselected(section_id);
                        
                    }
}


/////////////////////////
/////////////////////////
/////////////////////////




var reqArtSecName = null;
var xmlArtSecName;

function processArticleSectionReqChange() 
{
    // only if req shows "complete"
    if (reqArtSecName.readyState == 4) 
    {  
        // alert("Request Status:  "+reqSecName.status)
        // only if "OK" 
        if (reqArtSecName.status == 200) 
        {
            // ...processing statements go here...
            
             xmlArtSecName = reqArtSecName.responseXML;
             xmlArtSecName.async=false;
           
             GetArticleSectionReal();
        } 
        else 
        {
            alert("There was a problem retrieving the XML data:\n" + req.statusText);

        }
    }
}


     
function GetArticleSection()
{
    if (window.XMLHttpRequest  && (document.implementation && document.implementation.createDocument)    )
    {
         reqArtSecName = new XMLHttpRequest();
         if (reqArtSecName.overrideMimeType) 
         {
           p=document.location.href;
            
            reqArtSecName.open("GET", p, true);
            reqArtSecName.send(null);
            reqArtSecName.onreadystatechange = processArticleSectionReqChange;
        }      

    }
    else if(window.ActiveXObject)
    {
        xmlArtSecName=new ActiveXObject("Microsoft.XMLDOM");
        xmlArtSecName.async=false;
                       
        p=document.location.href;
        xmlArtSecName.load(p);

        GetArticleSectionReal();
    }
    else if (document.implementation && document.implementation.createDocument)
    {        
        xmlArtSecName=document.implementation.createDocument("","",null);
        xmlArtSecName.async=false;
        p=document.location.href;
        xmlArtSecName.load(p);

        GetArticleSectionReal();
    }

}
function GetArticleSectionReal()
{
       if (window.ActiveXObject)
                      {
                           
                            qryprint=xmlArtSecName.selectNodes("ALL");
                            btprint=qryprint.nextNode();
                          
                            for(var t=0 ;t<= btprint.childNodes[0].childNodes.length-1;t=t+1)
                            {
                                v=btprint.childNodes[0].childNodes[t].nodeName;
                                
                                if(v=="C_SECTION")
                                {
                                    NDX_C_SECTION=t;
                                }
                            }
                            
                            
                            section_name=btprint.childNodes[0].childNodes[NDX_C_SECTION].text;
                            
                            
                            if(section_name==studies)
                            {
                              section_namelink="Studies.xml";
                            }
                            else if (section_name== poetry)
                            {
                              section_namelink="Poetry.xml";
                            }
                            else if (section_name== narrative)
                            {
                              section_namelink="Narrative.xml";
                            }
                            else if (section_name== critisism)
                            {
                              section_namelink="Criticism.xml";
                            }
                            else if (section_name== milestones)
                            {
                              section_namelink="Milestones.xml";
                            }
                            else if (section_name== books)
                            {
                              section_namelink="Books.xml";
                            }
                            else if (section_name== reports)
                            {
                              section_namelink="Reports.xml";
                            }
                            else if (section_name== events)
                            {
                              section_namelink="Events.xml";
                            }
                            else if (section_name== dossier)
                            {
                              section_namelink="Dossier.xml";
                            }
                            else if (section_name== encounters)
                            {
                              section_namelink="Encounters.xml";
                            }
                            else if (section_name== index)
                            {
                              section_namelink="Index.xml";
                            }
                            else if (section_name== previous)
                            {
                              section_namelink="PreviousIssues.xml";
                            }
                            else if (section_name== links)
                            {
                              section_namelink="RelatedLinks.xml";
                            }
                            else if (section_name== contactus)
                            {
                              section_namelink="ContactUs.xml";
                            }
                            else if(section_name== novel)
                            {
                             section_namelink="Novel.xml";
                            }
                            else if(section_name== darwishtexts)
                            {
                             section_namelink="DarwishTexts.xml";
                            }
                            else if(section_name== elegies)
                            {
                             section_namelink="Elegies.xml";
                            }
                             else if(section_name== obituaries)
                            {
                             section_namelink="Obituaries.xml";
                            }
                            else if(section_name== worldpoet)
                            {
                             section_namelink="WorldPoet.xml";
                            }
                            writelink(section_namelink,section_name)
                      }
                      else if (document.implementation && document.implementation.createDocument)
                      {
                            //qryprint=xmlprint.selectNodes("ALL");
                            qryprint=xmlArtSecName.getElementsByTagName("ALL");
                            btprint=qryprint[0].getElementsByTagName("Article");
                          
                                                     
                            
                            section_name=btprint[0].getElementsByTagName("C_SECTION")[0].childNodes[0].nodeValue;
                            
                            if(section_name==studies)
                            {
                                section_namelink= "<a href='Studies.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                               
                              //section_namelink="Studies.xml";
                            }
                            else if (section_name== poetry)
                            {
                              section_namelink= "<a href='Poetry.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                            
                              //section_namelink="Poetry.xml";
                            }
                            else if (section_name== narrative)
                            {
                            section_namelink= "<a href='Narrative.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                              //section_namelink="Narrative.xml";
                            }
                            else if (section_name== critisism)
                            {
                            section_namelink= "<a href='Criticism.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                              //section_namelink="Criticism.xml";
                            }
                            else if (section_name== milestones)
                            {
                            section_namelink= "<a href='Milestones.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                            
                            }
                            else if (section_name== books)
                            {
                            section_namelink= "<a href='Books.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                              
                            }
                            else if (section_name== reports)
                            {
                            section_namelink= "<a href='Reports.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                              
                            }
                            else if (section_name== events)
                            {
                            section_namelink= "<a href='Events.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                              
                            }
                            else if (section_name== dossier)
                            {
                              section_namelink= "<a href='Dossier.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                              
                            }
                            else if (section_name== encounters)
                            {
                                section_namelink= "<a href='Encounters.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                              
                            }
                            else if (section_name== index)
                            {
                            section_namelink= "<a href='Index.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                              
                            }
                            else if (section_name== previous)
                            {
                            section_namelink= "<a href='PreviousIssues.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                              //section_namelink="PreviousIssues.xml";
                            }
                            else if (section_name== links)
                            {
                            section_namelink= "<a href='RelatedLinks.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                              //section_namelink="RelatedLinks.xml";
                            }
                            else if (section_name== contactus)
                            {
                            section_namelink= "<a href='ContactUs.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                              
                            }
                            else if(section_name== novel)
                            {
                            section_namelink= "<a href='Novel.xml'  STYLE='text-decoration: none; color=gray'><font color='gray'><u>" + section_name+ "</u></font></a>";
                                document.getElementById("section_name").innerHTML=section_namelink;
                             
                            }
                                                  
                           
                       }
}



////////////////
//////////////////////
///////////////////////////



var reqIdrSearch = null;
var xmlIdrSearch ;

function processIdrSearchReqChange() 
{
    // only if req shows "complete"
    if (reqIdrSearch.readyState == 4) 
    {  
        // alert("Request Status:  "+reqSecName.status)
        // only if "OK" 
        if (reqIdrSearch.status == 200) 
        {
            // ...processing statements go here...
            
             xmlIdrSearch = reqIdrSearch.responseXML;
             xmlIdrSearch.async=false;
           
             IdrSearchAuthorReal();
        } 
        else 
        {
            alert("There was a problem retrieving the XML data:\n" + req.statusText);

        }
    }
}


     
function IdrSearchAuthor()
{
    if (window.XMLHttpRequest  && (document.implementation && document.implementation.createDocument)    )
    {
         reqIdrSearch = new XMLHttpRequest();
         if (reqIdrSearch.overrideMimeType) 
         {
           p=document.location.href;
            
            reqIdrSearch.open("GET", p, true);
            reqIdrSearch.send(null);
            reqIdrSearch.onreadystatechange = processIdrSearchReqChange;
        }      

    }
    else if(window.ActiveXObject)
    {
        xmlIdrSearch=new ActiveXObject("Microsoft.XMLDOM");
        xmlIdrSearch.async=false;
                       
        p=document.location.href;
        xmlIdrSearch.load(p);

        IdrSearchAuthorReal();
    }
    else if (document.implementation && document.implementation.createDocument)
    {        
        xmlIdrSearch=document.implementation.createDocument("","",null);
        xmlIdrSearch.async=false;
        p=document.location.href;
        xmlIdrSearch.load(p);

        IdrSearchAuthorReal();
    }
}

  function IdrSearchAuthorReal()
  {
			if(window.ActiveXObject)
			{	 
			 
             qryprint2=xmlIdrSearch.selectNodes("ALL/Article");
             cauth=qryprint2.nextNode();
             
           //  FP_AUTH=cauth.childNodes[3].text;
             FP_AUTH=document.status;
             //alert(FP_AUTH);
             
		     CollName="alkalimahXML4";
			 MatchLevel=document.SrchInput.elements["IGO_MATCH"].value;
			 SearchType=document.SrchInput.elements["IGO_SEARCH"].value;
             
			 Syn="Search \""+CollName+"\""+" using Exact For \"C_Auth\" = ^"+FP_AUTH+"^"
			 document.SrchInput.IGO_QUERY.value=Syn
			document.SrchInput.IGO_WORDS.value=FP_AUTH
         l=  document.location.host+document.location.pathname
            l=l.toLowerCase();
	          var x= l.indexOf("data")+5;
	          var searchdate=l.substr(x);
	          searchdate=searchdate.split("/");
	           mydate=searchdate[0]+"/"+searchdate[1]+"/"+searchdate[2]

              document.SrchInput.action="../../../../Common/kalimah_Tmp/Results.asp?NewSearch=true&min=0&max=10&uni=1&dt="+mydate;
    
//   document.SrchInput.action="../../../../Common/kalimah_Tmp/Results.asp?NewSearch=true&min=0&max=10&uni=1"
       document.SrchInput.target="new";
       
			 document.SrchInput.submit();
			 }
			 else if (document.implementation && document.implementation.createDocument)
			 {
			    
				qryprint2=xmlIdrSearch.getElementsByTagName("ALL");
				qryprint2=qryprint2[0].getElementsByTagName("Article");
				qryprint2=qryprint2[0].getElementsByTagName("C_AUTH");
             cauth=qryprint2[0].childNodes[0].nodeValue;
             FP_AUTH=cauth;
		     CollName="alkalimahXML4";
			 MatchLevel=document.SrchInput.elements["IGO_MATCH"].value;
			 SearchType=document.SrchInput.elements["IGO_SEARCH"].value;
             //if (C_AUTH!=""){
			 Syn="Search \""+CollName+"\""+" using Exact For \"C_Auth\" = ^"+FP_AUTH+"^"
			 document.SrchInput.IGO_QUERY.value=Syn
             document.SrchInput.IGO_WORDS.value=FP_AUTH

            l=  document.location.host+document.location.pathname
            l=l.toLowerCase();
	          var x= l.indexOf("data")+5;
	          var searchdate=l.substr(x);
	          searchdate=searchdate.split("/");
	           mydate=searchdate[0]+"/"+searchdate[1]+"/"+searchdate[2]

              document.SrchInput.action="../../../../Common/kalimah_Tmp/Results.asp?NewSearch=true&min=0&max=10&uni=1&dt="+mydate;

//			 document.SrchInput.action="../../../../Common/kalimah_Tmp/Results.asp?NewSearch=true&min=0&max=10&uni=1"
       document.SrchInput.target="new";
			 document.SrchInput.submit();
			 
			 }
}



///////////////////
///////////////////////////
/////////////////////////////////



var reqISectionIntro = null;
var xmlISectionIntro ;

function processSectionIntroChange() 
{
    // only if req shows "complete"
    if (reqISectionIntro.readyState == 4) 
    {  
        // alert("Request Status:  "+reqSecName.status)
        // only if "OK" 
        if (reqISectionIntro.status == 200) 
        {
            // ...processing statements go here...
            
             xmlISectionIntro = reqISectionIntro.responseXML;
             xmlISectionIntro.async=false;
           
             GetSectionIntroReal();
        } 
        else 
        {
            alert("There was a problem retrieving the XML data:\n" + req.statusText);

        }
    }
}


     
function GetSectionIntro()
{
    if (window.XMLHttpRequest  && (document.implementation && document.implementation.createDocument)    )
    {
         reqISectionIntro = new XMLHttpRequest();
         if (reqISectionIntro.overrideMimeType) 
         {
            xmlISectionIntro=document.implementation.createDocument("","",null);
            xmlISectionIntro.async=false;
            p=document.location.href;
            p=p.split("/");
            ulimit =p.length;
            
            var path="";
            for(var con=0;con<= ulimit-2;con=con+1)
            {
              path=path+p[con]+"/";
            }
              
            path=path+"i"+p[ulimit-1];
                                
                                
            
            reqISectionIntro.open("GET", path, true);
            reqISectionIntro.send(null);
            reqISectionIntro.onreadystatechange = processSectionIntroChange;
        }      

    }
    else if(window.ActiveXObject)
    {
        
        xmlISectionIntro=new ActiveXObject("Microsoft.XMLDOM");
        xmlISectionIntro.async=false;
        p=document.location.href;
    
        p=p.split("/");
        
        ulimit =p.length;
        
        var path="";
       
        for(var con=0;con<= ulimit-2;con=con+1)
        {
          path=path+p[con]+"/";
        }
          
        path=path+"i"+p[ulimit-1];
					
        xmlISectionIntro.load(path);

        GetSectionIntroReal();
    }
    else if (document.implementation && document.implementation.createDocument)
    {        
        xmlISectionIntro=document.implementation.createDocument("","",null);
        xmlISectionIntro.async=false;
        p=document.location.href;
        p=p.split("/");
        ulimit =p.length;
        
        var path="";
        for(var con=0;con<= ulimit-2;con=con+1)
        {
          path=path+p[con]+"/";
        }
          
        path=path+"i"+p[ulimit-1];
        
        xmlISectionIntro.load(path);

        GetSectionIntroReal();
    }
}

  function GetSectionIntroReal()
  {
  
    if (window.ActiveXObject)
        {
          
          
            
            
            var qryintro;
            qryintro=xmlISectionIntro.getElementsByTagName("intro");
            
            btintro=qryintro.nextNode();
            
            xx=btintro.xml;
            
            if(xx=="<intro>1</intro>" ||xx=="<intro></intro>")
            {
             intro.innerHTML="";
            }
            else
            {
				
                  intro.innerHTML=xx+"<hr/>";
            }
           
        }
        else if (document.implementation && document.implementation.createDocument)
        {
            
          
//            var qryintro;
//            qryintro=xmlISectionIntro.getElementsByTagName("intro");
            
            var btintro;
          
          
             var serializer = new XMLSerializer();
              var xmlISectionIntro1 = serializer.serializeToString(xmlISectionIntro);
              var startcontent=xmlISectionIntro1.indexOf("<intro>")+7;
              var endcontent=xmlISectionIntro1.indexOf("</intro>");
              btintro= xmlISectionIntro1.substr(startcontent,endcontent-startcontent);
              
             //btintro=qryintro[0].getElementsByTagName("intro")[0].childNodes[0].nodeValue;
            
           if(btintro!="1" &&btintro!="")
            {
              
              
              document.getElementById("section_name2").innerHTML +="<table border='0' cellpadding='5'><tr><td><font face='simplified arabic'  color='black' style='font-size:15pt;'><a>" + btintro+"<hr/>";
                     
              
            }
       
            
       }
  
  }
  
  
  
  
  
  
  
  
  ////////////////
  ////////////////////
  ////////////////////////////
  
var SectionPageSectionID ;



var reqOrdSecArts = null;
var xmlOrdSecArts ;

function processOrdSecArticlesChange() 
{
    // only if req shows "complete"
    if (reqOrdSecArts.readyState == 4) 
    {  
       
        // only if "OK" 
        if (reqOrdSecArts.status == 200) 
        {
            // ...processing statements go here...
            
             xmlOrdSecArts = reqOrdSecArts.responseXML;
             xmlOrdSecArts.async=false;
           
             getorderedarticlesbysectionReal();
        } 
        else 
        {
            alert("There was a problem retrieving the XML data:\n" + req.statusText);

        }
    }
}


     
function getorderedarticlesbysection()
{
    if (window.XMLHttpRequest  && (document.implementation && document.implementation.createDocument))
    {
         reqOrdSecArts = new XMLHttpRequest();
         if (reqOrdSecArts.overrideMimeType) 
         {
           p=document.location.href;
            
            reqOrdSecArts.open("GET", p, true);
            reqOrdSecArts.send(null);
            reqOrdSecArts.onreadystatechange = processOrdSecArticlesChange;
        }      

    }
    else if(window.ActiveXObject)
    {
        xmlOrdSecArts=new ActiveXObject("Microsoft.XMLDOM");
        xmlOrdSecArts.async=false;
                       
        p=document.location.href;
        xmlOrdSecArts.load(p);

        getorderedarticlesbysectionReal();
    }
    else if (document.implementation && document.implementation.createDocument)
    {        
        xmlOrdSecArts=document.implementation.createDocument("","",null);
        xmlOrdSecArts.async=false;
        p=document.location.href;
        xmlOrdSecArts.load(p);

        getorderedarticlesbysectionReal();
    }
}

  
function getorderedarticlesbysectionReal()
{

     if (window.ActiveXObject)
     {
	    qryArt1=xmlOrdSecArts.selectNodes("Data/Articles");
	    btArt1=qryArt1.nextNode();
        it="";
        for(var j=0; j<=90;j=j+1)
        {
            for(var i=0 ;i<=btArt1.childNodes.length-1;i=i+1)
           {
                link2=btArt1.childNodes[i].childNodes[NDX_link].text;
                
                if(link2.indexOf(".xml")==-1)
                {
                link2=link2+".xml";
                }
                //تغيير فونت الأقسام//
                
                if(btArt1.childNodes[i].childNodes[NDX_Order].text==j) 
                {
                    it=it+"<table border=0><tr><td  width=6.95% ></td><td>";
                    it=it+"<font face=Simplified Arabic color=black style='font-size: 16pt;line-height:30px'><b>"+ btArt1.childNodes[i].childNodes[NDX_Audios].text+"</b></font></td></tr></table>";
                    it=it+"<table border=0 width=100% cellpadding=1 cellspacing=0><tr valign=top><td width=38px/><td  dir=rtl><table border=0 cellspacing=0 cellpadding=0><tr><td><a href='";
                    it=it+link2+"'>";
                    it=it+"<font face=Simplified Arabic  color=#AE0007 style='font-size:18pt;text-decoration:none;'><b>"+btArt1.childNodes[i].childNodes[NDX_Title].text+"</b></font>";
                    it=it+"</a></td></tr></table></td><td nowrap=nowrap dir=rtl> ";
                    it=it+"</td></tr></table>";
                    it=it+"<table border=0 cellspacing=0 cellpading=0><tr><td><font face=Simplified Arabic color=#333333 style='font-size: 14pt;text-indent:27pt'><b>"+ btArt1.childNodes[i].childNodes[NDX_Author].text+"</b></font> <font face=Simplified Arabic color=#333333 style='font-size: 20pt;text-indent:10pt'><b>"+btArt1.childNodes[i].childNodes[NDX_Columns].text+"</b></font></td></tr> </table>";
                    it=it+"<table boder=0> <tr><td  width=6.95% ></td><td>";
                    it=it+"<font face=Simplified Arabic color=black style='font-size: 12pt;line-height:30px'><b>"+ btArt1.childNodes[i].childNodes[NDX_Summary].text+"</b></font></td></tr></table><br/>";
                    
                    break;
                    
                }
            }
        }
        articlesitem.innerHTML =  it;
       
    }
    
    else if (document.implementation && document.implementation.createDocument)
    {
     
	    qryArt1=xmlOrdSecArts.getElementsByTagName("Data");
	    
	    qryArt1=qryArt1[0].getElementsByTagName("Articles");
	    btArt1 =qryArt1[0].getElementsByTagName("Article");
	    
        it="";
        
        for(var j=0; j<=90;j=j+1)
        {
            for(var i=0 ;i<=btArt1.length-1;i=i+1)
           {
                 
                if(btArt1[i].getElementsByTagName("Country")[0].childNodes[0]!=undefined)
                {
                 
                    link2=btArt1[i].getElementsByTagName("Country")[0].childNodes[0].nodeValue;
                    if(link2.indexOf(".xml")==-1)
                    {
                        link2=link2+".xml";
                    }
                    
                    if(btArt1[i].getElementsByTagName("Order")[0].childNodes[0].nodeValue==j) 
                    {
                        if(btArt1[i].getElementsByTagName("Audios")[0].childNodes[0]!=undefined)
                        {it=it+"<table border=0 width=100%><tr><td  width=6.95% ></td><td width=70%>";
                        
                        it=it+"<font face=Simplified Arabic color=black style='font-size: 16pt;line-height:30px'><b>"+ btArt1[i].getElementsByTagName("Audios")[0].childNodes[0].nodeValue+"</b></font></td></tr></table>";
                        }
                        it=it+"<table border=0 width=100% cellpadding=1 cellspacing=0><tr valign=top><td width=38px/><td  dir=rtl><table border=0 cellspacing=0 cellpadding=0><tr><td><a href='";
                        it=it+link2+"'>";
                        it=it+"<font face=Simplified Arabic  color=#AE0007 style='font-size:18pt;text-decoration:none;'><b>"+btArt1[i].getElementsByTagName("Title")[0].childNodes[0].nodeValue+"</b></font>";
                        it=it+"</a></td></tr></table></td><td nowrap=nowrap dir=rtl> ";
                        it=it+"</td></tr></table>";
                        
                        if(btArt1[i].getElementsByTagName("Column")[0].childNodes[0]==undefined)
                        {
                          if(btArt1[i].getElementsByTagName("Auth")[0].childNodes[0]!=undefined)
                            {
                          it=it+"<table border=0 cellspacing=0 cellpading=0><tr><td width=38px/><td><font face=Simplified Arabic color=#333333 style='font-size: 14pt;text-indent:27pt'><b>"+ btArt1[i].getElementsByTagName("Auth")[0].childNodes[0].nodeValue + "</b></font> <font face=Simplified Arabic color=#333333 style='font-size: 20pt;text-indent:10pt'><b>"+"</b></font></td></tr> </table>";
                             }                                                                                                                                                                    
                        }
                        else
                        {
                      //  alert(btArt1[i].getElementsByTagName("Column")[0].childNodes[0])
                            it=it+"<table border=0 cellspacing=0 cellpading=0><tr><td width=38px/><td><font face=Simplified Arabic color=#333333 style='font-size: 14pt;text-indent:27pt'><b>"+ btArt1[i].getElementsByTagName("Auth")[0].childNodes[0].nodeValue + "</b></font> <font face=Simplified Arabic color=#333333 style='font-size: 20pt;text-indent:10pt'><b>"+btArt1[i].getElementsByTagName("Column")[0].childNodes[0].nodeValue +"</b></font></td></tr> </table>";
                        }
                        
                        it=it+"<table boder=0> <tr><td  width=6.95% ></td><td>";
                        //it=it+"<font face=Simplified Arabic color=black style='font-size: 12pt;line-height:30px'><b>"+ btArt1[i].getElementsByTagName("Summary")[0].childNodes[0].nodeValue+"</b></font></td></tr></table><br/>";
                        if(btArt1[i].getElementsByTagName("Summary")[0].childNodes[0]!=undefined)
                        {
                            it=it+"<font face=Simplified Arabic color=black style='font-size: 12pt;line-height:30px'><b>"+ btArt1[i].getElementsByTagName("Summary")[0].childNodes[0].nodeValue+"</b></font></td></tr></table><br/>";
                        }
                        else
                        {
                           it=it+"</td></tr></table><br/>";
                        }
                        
                        break;
                    }
                }
            } 
        } 
       document.getElementById('section_name3').innerHTML+="<div>"+ it +"</div>";
    }
    
 

}


function CreateBookmarkLink() 
     { title = "الكلمة - مجلة أدبية فكرية شهرية";   
     url = "http://www.al-kalimah.com";  	
        if (window.sidebar) 
        { // Mozilla Firefox Bookmark		
         window.sidebar.addPanel(title, url,"");	
        }
        else if( window.external ) 
        { // IE Favorite		
	     window.external.AddFavorite( url, title); 

        }	
        else if(window.opera && window.print) 
        { // Opera Hotlist
        		return true; 
        } 
   }
