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=670'> اغاني رائعه وكلمه تسمع بحق   [ المقطع : مش بالعتمة ] </a></div>"
msg[1]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=946'> ما اروع المحافظة على الاغاني الشعبية  بنكهة عصرية  [ المقطع : طاحت الخيل ترقص ] </a></div>"
msg[2]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=245'> فعلا هاي الاغنيه من الاخير بتجنن لك يسلملي كلماتها  [ المقطع : عصفور طل من الشباك ] </a></div>"
msg[3]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=1046'> حماسي رائع  [ المقطع : يالجولان ] </a></div>"
msg[4]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=941'> مكتبة رائعة فعلان   [ المقطع : رقصة الشمس ] </a></div>"
msg[5]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=1402'> بدي اشكر القايمين على المنتدى كافة     على الجهود   [ المقطع : البطل نادوا عليه ] </a></div>"
msg[6]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=982'> اروع شعر  [ المقطع : رجال الله ] </a></div>"
msg[7]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=1037'> فكر بغيرك ... نعم فكر  أجمل ما سمعت   [ المقطع : قيثارتان ] </a></div>"
msg[8]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=982'> شاعر المقاومة عمر الفرا  [ المقطع : رجال الله ] </a></div>"
msg[9]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=364'> bravo       [ المقطع : زاحف لهب الثورة ] </a></div>"
msg[10]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=823'> الكثير فبي الوطن العربي يفضلون انهم يكونوا نواطير   [ المقطع : ثور - انتاج حصري ] </a></div>"
msg[11]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=1421'> اغنية راءعة و اصوات جيدة شكرا شكرا شكرا  [ المقطع : هبت النار ] </a></div>"
msg[12]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=946'> من اجمل اغاني التراث الفلسطيني  [ المقطع : طاحت الخيل ترقص ] </a></div>"
msg[13]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=297'> راءعين  [ المقطع : اشهد يا عالم ] </a></div>"
msg[14]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=1427'> شكرا لكم لقد امتعتمونا   [ المقطع : يمشي على الجمر ] </a></div>"
msg[15]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=92'> تنادي مين يا أخينا و الكل نيام و يحلم باتفاقية ساي  [ المقطع : اناديكم ] </a></div>"
msg[16]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=326'> وين العرب حتى يحرروا فلسطين من الغاصب المحتل , أكي  [ المقطع : من سجن عكا ] </a></div>"
msg[17]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=982'> بالنسبة لأغنية ( يا حامي الحمى ) فهي ليست لجوليا ب  [ المقطع : رجال الله ] </a></div>"
msg[18]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=982'> السلام عليكم يا رجال الله  صدقوني اروع ما سمعت وقر  [ المقطع : رجال الله ] </a></div>"
msg[19]="<div class='comments' align='right'><img src='style_images/sounds/users.gif'><a href='index.php?act=playmaq&id=996'> يعطيكم العافية ياشباب المقطع  عناق    [ المقطع : عتاق ] </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=""      // 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;
