var msg=new Array()

msg[0]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=171'> ماشاء الله  موقع وليس مثله موقع  [ المقطع : امرأة !! ] </a></div>"
msg[1]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=648'> التعليقجزاااااكم الله الف الف الف خيييييييييير  [ المقطع : رؤية الله  ] </a></div>"
msg[2]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=648'> يارب لا تحرمنا من روية وجهك  
يارب اغفر لي ذنوبي   [ المقطع : رؤية الله  ] </a></div>"
msg[3]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=622'> التعليق عايز اكلم الشيخ \فى مشكلة مهمة جدا جدا جدا  [ المقطع : كم رقمك يا شيخ ] </a></div>"
msg[4]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=648'> الله يرزقنا الجنه ولذه النظر الى الله  [ المقطع : رؤية الله  ] </a></div>"
msg[5]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=616'> الله يجزاكم ألف خير ورحم الله موتانا وموتا المسلمي  [ المقطع : من زانية إلى داعية ثم قصاص ] </a></div>"
msg[6]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=715'> سم الله ماشاء الله  الموقع جميل جدا جزام الله خيرا  [ المقطع : اسطوانة رسائل إلى الشباب_بالفلاش_الشيخ محمود المصرى أبو عمار ] </a></div>"
msg[7]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=642'> التعليق اللهم ثبتنا على دينك
.... آآميـــــــــــ  [ المقطع : أربعة دقائق من ذهب ] </a></div>"
msg[8]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=622'> انا عايزة نمره الشيخ
  [ المقطع : كم رقمك يا شيخ ] </a></div>"
msg[9]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=1046'> رحمك الرب يا أم خالد وأسكنك الفردوس الأعلى   [ المقطع : قصة أم خالد الصابرة على المصائب ] </a></div>"
msg[10]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=716'> التعليق بارك الله فيكم وجمعنا وياكم في الجنة بأذن   [ المقطع : إنسانيون بلاحد ــ مرئي ] </a></div>"
msg[11]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=690'> Good for that site and hope see it the beast :D
  [ المقطع : مات أمام فلم جنسي ] </a></div>"
msg[12]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=648'> التعليق ماشاء الله  [ المقطع : رؤية الله  ] </a></div>"
msg[13]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=966'> يا شيخ وجدي غنيم لا خوف على الإسلام فهو دين الله و  [ المقطع : أوقفوا هذا الكفر يا علماء المسلمين ] </a></div>"
msg[14]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=355'> فعلا دة مسلم سعيد  [ المقطع : أصغر داعية في العالم ] </a></div>"
msg[15]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=11'> التعليق بارك الله فيك يا شيخ والله اننا نحبك في ال  [ المقطع : دعاء مبكي من ليالي رمضان ] </a></div>"
msg[16]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=716'> رووووووووووووووووووووعه  [ المقطع : إنسانيون بلاحد ــ مرئي ] </a></div>"
msg[17]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=1066'> التعليقsalamo 3alaykom ikhwani almoslimin la9ad  s  [ المقطع : لماذا أسلمت وكيف أسلمت مؤثرة جداً  ] </a></div>"
msg[18]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=622'> والله انت 100 100  [ المقطع : كم رقمك يا شيخ ] </a></div>"
msg[19]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=648'> اللهم اعتقنا من النيران  [ المقطع : رؤية الله  ] </a></div>"
msg[20]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=648'> التعلق   بسم الله ماشاء الله رائع جدا 
  [ المقطع : رؤية الله  ] </a></div>"
msg[21]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=622'> اريد رقم تليفونك لا ني عاوزك في موضوع مهم  [ المقطع : كم رقمك يا شيخ ] </a></div>"
msg[22]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=622'> نمره الشيخ محمد حسان  [ المقطع : كم رقمك يا شيخ ] </a></div>"
msg[23]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=982'> لتعليق                                         الا  [ المقطع : مسلسل سنوات الضياع ] </a></div>"
msg[24]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=1114'> التعليق
جزاكم الله خيرا وجعله في ميزان كل من ساهم  [ المقطع : الشيخ المغامسى وهو فى غرفة العناية المركزة ] </a></div>"
msg[25]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=166'> التعليق رائع  [ المقطع : طفل صغير ذو صوت رائع ] </a></div>"
msg[26]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=1094'> sob7an allah 
ya7dy mn ysh2a  [ المقطع : الفنانة حلا شيحة تحكى قصة توبتها  ] </a></div>"
msg[27]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=1263'> ااشكركم  كثيرا على هذه القناة اتمى من كل القنوات ا  [ المقطع : الحلقة الأولي من برنامج أضواء وأصداء ] </a></div>"
msg[28]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=11'> بارك الله عملك  [ المقطع : دعاء مبكي من ليالي رمضان ] </a></div>"
msg[29]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=648'> جزاكم الله خير الجزاء والله لم أسمع في حياتي مقطع   [ المقطع : رؤية الله  ] </a></div>"


speed=20                      // Sets the speed in milliseconds at which the link or text scrolls.

var divwidth=400           // Sets the width of the div or layer in pixels.  You will have to play with this to get it set correctly.

var divheight=20            // Sets the height of the div or layer in pixels.  Same as above.





var divincbt=1                 

var divinctb=-1

var divincrl=10

var divinclr=-30



var divpause=3500        // Sets how long to pause in milliseconds before scrolling the next link or text. 



var divtop="0"              // divtop and divleft set the top and left positions of the container div or layer in pixels. 

var divleft="0"               



var divcolor="e3e3e3"      // Sets the background color of the div or layer



var divname1="scroll2"  // Sets the name of your div or layer for the first link or text that is displayed

var divname2="scroll3"  // Sets the name of your div or layer for the next link or text to be displayed



/*

   The variable whichscroll is used to set the direction of the scrolling.  It is currently set to 1.

    1 = Bottom to Top

    2 = Top to Bottom

    3 = Right to Left

    4 = Left to Right

*/

var whichscroll="1"



/* END OF CONFIGURATION VARIABLES */

/* THERE IS NO NEED TO CHANGE THE VARIABLES OR SCRIPTS BELOW */



var divinc

var stopposa

var stopposb

var scrollmsga

var scrollmsgb 

var thediva

var thedivb

var posa

var posb

var i=msg.length

var firsttime="y"

var divprop

var whichdiv=divname1

if(whichscroll=="1")

  {

   stopposa=0

   stopposb=divheight*-1

   divprop="top"

   divinc=divincbt

  }

if(whichscroll=="2")

  {

   stopposa=0

   stopposb=divheight

   divprop="top"

   divinc=divinctb

  }

if(whichscroll=="3")

  {

   stopposa=0

   stopposb=divwidth*-1

   divprop="left"

   divinc=divincrl

  }

if(whichscroll=="4")

  {

   stopposa=1

   stopposb=divwidth+2

   divprop="left"

   divinc=divinclr

  }



function Scrollboxa(obja)

     {

         savobja=obja

         posa=posa-divinc

         if(((whichscroll=="1" || whichscroll=="3")&&(posa<=stopposa))||

           ((whichscroll=="2" || whichscroll=="4")&&(posa>=stopposa)))

           {

            clearTimeout(scrollmsga)

            setTimeout("scrollit()",divpause)

           } 

         else

             {

              if(document.getElementById) // IE5 and NS6

                {

                 eval("elma.style."+divprop+"=posa")

                 elma.style.visibility="visible"

                }

              if(document.layers)    // NS4+

                {

                 eval("obja."+divprop+"=posa")

                 document.main.visibility="show"

                }

              scrollmsga=setTimeout("Scrollboxa(savobja)",speed)

             }

     }

function Scrollboxb(objb)

     {

         savobjb=objb

         posb=posb-divinc

         if(((whichscroll=="1" || whichscroll=="3")&&(posb<=stopposb))||

            ((whichscroll=="2" || whichscroll=="4")&&(posb>=stopposb)))

           {

            clearTimeout(scrollmsgb)

           }

         else

              {

               if(document.getElementById) // IE5 and NS6

                 {

                  eval("elmb.style."+divprop+"=posb")

                 }

               if(document.layers)  // NS4+

                 {

                  eval("objb."+divprop+"=posb")

                  objb.visibility="show"

                 }

               scrollmsgb=setTimeout("Scrollboxb(savobjb)",speed)

              }

     }

function scrollit()

   {

    i++

    if(i>=msg.length)

      {i=0}

    posa=stopposb*-1

    posb=0

    if(firsttime=="y")

      {

       firsttime= "n"

       if(document.getElementById)      // IE5 and NS6

         {

          elma=document.getElementById(divname1)

          elma.innerHTML=msg[i]

         }

      if(document.layers)   // NS4+

        {

         thediva=eval("document.main.document."+divname1)

         thediva.document.write(msg[i])

         thediva.document.close()

        }

       Scrollboxa(thediva)

      }

    else

      {

       if(whichdiv==divname1)

         {

          if(document.getElementById)  // IE5 and NS6

            {

             elmb=document.getElementById(divname1)

             elma=document.getElementById(divname2)

             elma.innerHTML=msg[i]

            }

          if(document.layers)  //  NS4+

            {

             thedivb=eval("document.main.document."+divname1)

             thediva=eval("document.main.document."+divname2)  

             thediva.document.write(msg[i])

             thediva.document.close()

            }

          Scrollboxb(thedivb)

          whichdiv=divname2

          Scrollboxa(thediva)

         }

       else

         {

          if(document.getElementById)   // IE5 and NS6

            {

             elmb=document.getElementById(divname2)

             elma=document.getElementById(divname1)

             elma.innerHTML=msg[i]

             }

          if(document.layers)  // NS4+

            {

             thedivb=eval("document.main.document."+divname2)

             thediva=eval("document.main.document."+divname1)

             thediva.document.write(msg[i])

             thediva.document.close()

             }

          Scrollboxb(thedivb)

          whichdiv=divname1

          Scrollboxa(thediva)

         }

      }

  }

window.onload= scrollit;
