//Slide-in scoller- © Dynamic Drive (www.dynamicdrive.com)

var current_entry_wmp;
var count = 100;  //dummy

function display_currententry()
{
var pl = document.Player_1.currentPlaylist;
for (var i = 0; i < pl.count; i++)
   {
   if (document.Player_1.currentmedia.isIdentical(pl.item(i))) current_entry_wmp = i;
   }
}


var delay=2000
var scrollwidth="490px"
var scrollheight="55px"

mess_pos_begin="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nb : ";
mess_pos_end="/" + document.Player_1.currentPlaylist.count;


if(lang=="uk") mess_first="<i><font face=times new roman size=3 color=#A52A2A>Hello !   <br> <font color=blue><b>To listen to, select a title in the column          &nbsp;</font></b></i><img src='files_gif/button_select.gif' align='top'>";
if(lang=="fr") mess_first="<i><font face=times new roman size=3 color=#A52A2A>Bonjour ! <br> <font color=blue><b>Pour écouter, sélectionner un titre dans la colonne &nbsp;</font></b></i><img src='files_gif/button_select.gif' align='top'>";
if(lang=="sp") mess_first="<i><font face=times new roman size=3 color=#A52A2A>Hola !    <br> <font color=blue><b>Para escuchar, seleccionar un título en la columna  &nbsp;</font></b></i><img src='files_gif/button_select.gif' align='top'>";

var message=new Array()
var openingtag='<table bgcolor="#FFEFD5" width="40%" border="3" cellpadding="0" cellspacing="0" id="display"><tr><td height="90"><font face="times new roman" size="3" color="black">'

message[0]= "<i><font face=times new roman size=3 color=#A52A2A> &nbsp;title : <font color=blue><b>série B             </b>( french reggae )<b> -  <font color=#A52A2A></b>album: <font color=blue><b>AUX CONFINS <br> <font color=#A52A2A></b>&nbsp;artist : <font color=blue><b>Gringo Nuevo - <font color=#A52A2A></b>author : <font color=blue><b>Gringo Nuevo </b>and<b> Oly Wealman <br> <font color=#A52A2A></b>&nbsp;copyright : <font color=blue><b>ryp & co   (C) 2005 - <font color=#A52A2A></b>label : <font color=blue><b>NEPTUNE records</font></i></b>";
message[1]= "<i><font face=times new roman size=3 color=#A52A2A> &nbsp;title : <font color=blue><b>où te caches tu ?   </b>( french reggae )<b> -  <font color=#A52A2A></b>album: <font color=blue><b>AUX CONFINS <br> <font color=#A52A2A></b>&nbsp;artist : <font color=blue><b>Gringo Nuevo - <font color=#A52A2A></b>author : <font color=blue><b>Gringo Nuevo </b>and<b> Oly Wealman <br> <font color=#A52A2A></b>&nbsp;copyright : <font color=blue><b>ryp & co   (C) 2005 - <font color=#A52A2A></b>label : <font color=blue><b>NEPTUNE records</font></i></b>";
message[2]= "<i><font face=times new roman size=3 color=#A52A2A> &nbsp;title : <font color=blue><b>fainéant            </b>( french reggae )<b> -  <font color=#A52A2A></b>album: <font color=blue><b>AUX CONFINS <br> <font color=#A52A2A></b>&nbsp;artist : <font color=blue><b>Gringo Nuevo - <font color=#A52A2A></b>author : <font color=blue><b>Gringo Nuevo </b>and<b> Oly Wealman <br> <font color=#A52A2A></b>&nbsp;copyright : <font color=blue><b>ryp & co   (C) 2005 - <font color=#A52A2A></b>label : <font color=blue><b>NEPTUNE records</font></i></b>";
message[3]= "<i><font face=times new roman size=3 color=#A52A2A> &nbsp;title : <font color=blue><b>laisse toi aller    </b>( french reggae )<b> -  <font color=#A52A2A></b>album: <font color=blue><b>AUX CONFINS <br> <font color=#A52A2A></b>&nbsp;artist : <font color=blue><b>Gringo Nuevo - <font color=#A52A2A></b>author : <font color=blue><b>Gringo Nuevo </b>and<b> Oly Wealman <br> <font color=#A52A2A></b>&nbsp;copyright : <font color=blue><b>ryp & co   (C) 2005 - <font color=#A52A2A></b>label : <font color=blue><b>NEPTUNE records</font></i></b>";
message[4]= "<i><font face=times new roman size=3 color=#A52A2A> &nbsp;title : <font color=blue><b>qui sait !          </b>( maya bingui )  <b> -  <font color=#A52A2A></b>album: <font color=blue><b>AUX CONFINS <br> <font color=#A52A2A></b>&nbsp;artist : <font color=blue><b>Gringo Nuevo - <font color=#A52A2A></b>author : <font color=blue><b>Gringo Nuevo </b>and<b> Oly Wealman <br> <font color=#A52A2A></b>&nbsp;copyright : <font color=blue><b>ryp & co   (C) 2005 - <font color=#A52A2A></b>label : <font color=blue><b>NEPTUNE records</font></i></b>";
message[5]= "<i><font face=times new roman size=3 color=#A52A2A> &nbsp;title : <font color=blue><b>avec toi            </b>( french reggae )<b> -  <font color=#A52A2A></b>album: <font color=blue><b>AUX CONFINS <br> <font color=#A52A2A></b>&nbsp;artist : <font color=blue><b>Gringo Nuevo - <font color=#A52A2A></b>author : <font color=blue><b>Gringo Nuevo </b>and<b> Oly Wealman <br> <font color=#A52A2A></b>&nbsp;copyright : <font color=blue><b>ryp & co   (C) 2005 - <font color=#A52A2A></b>label : <font color=blue><b>NEPTUNE records</font></i></b>";
message[6]= "<i><font face=times new roman size=3 color=#A52A2A> &nbsp;title : <font color=blue><b>fugitif             </b>( french reggae )<b> -  <font color=#A52A2A></b>album: <font color=blue><b>AUX CONFINS <br> <font color=#A52A2A></b>&nbsp;artist : <font color=blue><b>Gringo Nuevo - <font color=#A52A2A></b>author : <font color=blue><b>Gringo Nuevo </b>and<b> Oly Wealman <br> <font color=#A52A2A></b>&nbsp;copyright : <font color=blue><b>ryp & co   (C) 2005 - <font color=#A52A2A></b>label : <font color=blue><b>NEPTUNE records</font></i></b>";
message[7]= "<i><font face=times new roman size=3 color=#A52A2A> &nbsp;title : <font color=blue><b>lady strange        </b>( french reggae )<b> -  <font color=#A52A2A></b>album: <font color=blue><b>AUX CONFINS <br> <font color=#A52A2A></b>&nbsp;artist : <font color=blue><b>Gringo Nuevo - <font color=#A52A2A></b>author : <font color=blue><b>Gringo Nuevo </b>and<b> Oly Wealman <br> <font color=#A52A2A></b>&nbsp;copyright : <font color=blue><b>ryp & co   (C) 2005 - <font color=#A52A2A></b>label : <font color=blue><b>NEPTUNE records</font></i></b>";
message[8]= "<i><font face=times new roman size=3 color=#A52A2A> &nbsp;title : <font color=blue><b>sweety              </b>( french reggae) <b> -  <font color=#A52A2A></b>album: <font color=blue><b>AUX CONFINS <br> <font color=#A52A2A></b>&nbsp;artist : <font color=blue><b>Gringo Nuevo - <font color=#A52A2A></b>author : <font color=blue><b>Gringo Nuevo </b>and<b> Oly Wealman <br> <font color=#A52A2A></b>&nbsp;copyright : <font color=blue><b>ryp & co   (C) 2005 - <font color=#A52A2A></b>label : <font color=blue><b>NEPTUNE records</font></i></b>";
message[9]= "<i><font face=times new roman size=3 color=#A52A2A> &nbsp;title : <font color=blue><b>passe nous d'la funk</b>( funk )         <b> -  <font color=#A52A2A></b>album: <font color=blue><b>AUX CONFINS <br> <font color=#A52A2A></b>&nbsp;artist : <font color=blue><b>Gringo Nuevo - <font color=#A52A2A></b>author : <font color=blue><b>Gringo Nuevo </b>and<b> Oly Wealman <br> <font color=#A52A2A></b>&nbsp;copyright : <font color=blue><b>ryp & co   (C) 2005 - <font color=#A52A2A></b>label : <font color=blue><b>NEPTUNE records</font></i></b>";
message[10]="<i><font face=times new roman size=3 color=#A52A2A> &nbsp;title : <font color=blue><b>fais la plus cool   </b>( french reggae )<b> -  <font color=#A52A2A></b>album: <font color=blue><b>AUX CONFINS <br> <font color=#A52A2A></b>&nbsp;artist : <font color=blue><b>Gringo Nuevo - <font color=#A52A2A></b>author : <font color=blue><b>Gringo Nuevo </b>and<b> Oly Wealman <br> <font color=#A52A2A></b>&nbsp;copyright : <font color=blue><b>ryp & co   (C) 2005 - <font color=#A52A2A></b>label : <font color=blue><b>NEPTUNE records</font></i></b>";
message[11]="<i><font face=times new roman size=3 color=#A52A2A> &nbsp;title : <font color=blue><b>ailleurs            </b>( reggae dub )   <b> -  <font color=#A52A2A></b>album: <font color=blue><b>AUX CONFINS <br> <font color=#A52A2A></b>&nbsp;artist : <font color=blue><b>Gringo Nuevo - <font color=#A52A2A></b>author : <font color=blue><b>Gringo Nuevo </b>and<b> Oly Wealman <br> <font color=#A52A2A></b>&nbsp;copyright : <font color=blue><b>ryp & co   (C) 2005 - <font color=#A52A2A></b>label : <font color=blue><b>NEPTUNE records</font></i></b>";
message[12]="<i><font face=times new roman size=3 color=#A52A2A> &nbsp;title : <font color=blue><b>reggae music        </b>( french reggae )<b> -  <font color=#A52A2A></b>album: <font color=blue><b>REGGAE MUSIC<br> <font color=#A52A2A></b>&nbsp;artist : <font color=blue><b>Gringo Nuevo - <font color=#A52A2A></b>author : <font color=blue><b>Gringo Nuevo </b>and<b> Oly Wealman <br> <font color=#A52A2A></b>&nbsp;copyright : <font color=blue><b>ryp & co   (C) 2005 - <font color=#A52A2A></b>label : <font color=blue><b>NEPTUNE records</font></i></b>";
message[13]="<i><font face=times new roman size=3 color=#A52A2A> &nbsp;title : <font color=blue><b>fou de vous         </b>( french reggae )<b> -  <font color=#A52A2A></b>album: <font color=blue><b>REGGAE MUSIC<br> <font color=#A52A2A></b>&nbsp;artist : <font color=blue><b>Gringo Nuevo - <font color=#A52A2A></b>author : <font color=blue><b>Gringo Nuevo </b>and<b> Oly Wealman <br> <font color=#A52A2A></b>&nbsp;copyright : <font color=blue><b>ryp & co   (C) 2005 - <font color=#A52A2A></b>label : <font color=blue><b>NEPTUNE records</font></i></b>";
message[14]="<i><font face=times new roman size=3 color=#A52A2A> &nbsp;title : <font color=blue><b>positive mind       </b>( french reggae )<b> -  <font color=#A52A2A></b>album: <font color=blue><b>REGGAE MUSIC<br> <font color=#A52A2A></b>&nbsp;artist : <font color=blue><b>Gringo Nuevo - <font color=#A52A2A></b>author : <font color=blue><b>Gringo Nuevo </b>and<b> Oly Wealman <br> <font color=#A52A2A></b>&nbsp;copyright : <font color=blue><b>ryp & co   (C) 2005 - <font color=#A52A2A></b>label : <font color=blue><b>NEPTUNE records</font></i></b>";
message[15]="<i><font face=times new roman size=3 color=#A52A2A> &nbsp;title : <font color=blue><b>les profanes        </b>( french reggae )<b> -  <font color=#A52A2A></b>album: <font color=blue><b>REGGAE MUSIC<br> <font color=#A52A2A></b>&nbsp;artist : <font color=blue><b>Gringo Nuevo - <font color=#A52A2A></b>author : <font color=blue><b>Gringo Nuevo </b>and<b> Oly Wealman <br> <font color=#A52A2A></b>&nbsp;copyright : <font color=blue><b>ryp & co   (C) 2005 - <font color=#A52A2A></b>label : <font color=blue><b>NEPTUNE records</font></i></b>";
message[16]="<i><font face=times new roman size=3 color=#A52A2A> &nbsp;title : <font color=blue><b>sweet lovin         </b>( french reggae )<b> -  <font color=#A52A2A></b>album: <font color=blue><b>REGGAE MUSIC<br> <font color=#A52A2A></b>&nbsp;artist : <font color=blue><b>Gringo Nuevo - <font color=#A52A2A></b>author : <font color=blue><b>Gringo Nuevo </b>and<b> Oly Wealman <br> <font color=#A52A2A></b>&nbsp;copyright : <font color=blue><b>ryp & co   (C) 2005 - <font color=#A52A2A></b>label : <font color=blue><b>NEPTUNE records</font></i></b>";
message[17]="<i><font face=times new roman size=3 color=#A52A2A> &nbsp;title : <font color=blue><b>baby ne pleure pas  </b>( french reggae )<b> -  <font color=#A52A2A></b>album: <font color=blue><b>REGGAE MUSIC<br> <font color=#A52A2A></b>&nbsp;artist : <font color=blue><b>Gringo Nuevo - <font color=#A52A2A></b>author : <font color=blue><b>Gringo Nuevo </b>and<b> Oly Wealman <br> <font color=#A52A2A></b>&nbsp;copyright : <font color=blue><b>ryp & co   (C) 2005 - <font color=#A52A2A></b>label : <font color=blue><b>NEPTUNE records</font></i></b>";    
message[18]="<i><font face=times new roman size=3 color=#A52A2A> &nbsp;title : <font color=blue><b>ma princesse        </b>( french reggae )<b> -  <font color=#A52A2A></b>album: <font color=blue><b>REGGAE MUSIC<br> <font color=#A52A2A></b>&nbsp;artist : <font color=blue><b>Gringo Nuevo - <font color=#A52A2A></b>author : <font color=blue><b>Gringo Nuevo </b>and<b> Oly Wealman <br> <font color=#A52A2A></b>&nbsp;copyright : <font color=blue><b>ryp & co   (C) 2005 - <font color=#A52A2A></b>label : <font color=blue><b>NEPTUNE records</font></i></b>";

message[19]=mess_first;        // nb titles+1
var closingtag='</font></td></tr></table>'


var hoffset=500

document.write('<ilayer width=&{scrollwidth}; height=&{scrollheight}; name="sslide">');
document.write('<layer name="sslide2" width=&{scrollwidth}; height=&{scrollheight};></layer>');
document.write('</ilayer>');

var inc;
var ns4=document.layers
var ie5ns6=document.getElementById||document.all

if (ie5ns6) document.write(openingtag+'<div id="flyin" style="position:relative; width:'+scrollwidth+';height:'+scrollheight+';">'+mess_first+'</div>'+closingtag)

function updatemsg()
{
mess_position="";
crossobj.style.left="-2000px"
crossobj.style.fontStyle="italic"
crossobj.innerHTML=message[inc] + mess_position;

crossobj.style.left=crossobj.offsetWidth*(-1)+hoffset+"px"
start=setInterval("animatein()",50)
inc=(inc<message.length-1)? inc+1 : 0
}

function animatein()
{
if (parseInt(crossobj.style.left)<0) crossobj.style.left=parseInt(crossobj.style.left)+20+"px"
else
  {
  crossobj.style.left=0+"px"
  crossobj.style.fontStyle="normal"
  }
}

function updatemsgns4()
{
document.sslide.document.sslide2.document.write(openingtag+message[inc]+closingtag)
document.sslide.document.sslide2.document.close()
inc=(inc<message.length-1)? inc+1 : 0
}

function initialize()
{
if (ie5ns6)
  {
  crossobj=document.getElementById? document.getElementById("flyin") : document.all.flyin
  updatemsg();
  }
else if (ns4)
  {
  document.sslide.document.sslide2.document.write(openingtag+message[inc]+closingtag)
  document.sslide.document.sslide2.document.close()
  updatemsgns4();
  }
}

zaza = 100000;   // dummy at cold start old getentry

//scrolling_titles_alb();         // pour les albums test current entry wmp9 evry 2s 
                                        
function scrolling_titles_alb()
{

  if(flag_select != "repeat") 
    {
    display_currententry(); 
    zozo = current_entry_wmp;
    if(zaza != zozo) {scroll_titles_alb();booklet_change();}  
    }

jumpy = window.setTimeout('scrolling_titles_alb();', 3000);

}


function scroll_titles_alb()
{
display_currententry(); 

switch(current_entry_wmp)    // first=0
          {
          case 0 :   //  1 serie b
          case 1 :   //  2 ou te caches tu
          case 2 :   //  3 faineant
          case 3 :   //  4 laisse toi aller
          case 4 :   //  5 qui sait
          case 5 :   //  6 avec toi
          case 6 :   //  7 fugitif
          case 7 :   //  8 lady strange
          case 8 :   //  9 sweety
          case 9 :   // 10 passe nous d'la funk
          case 10 :  // 11 fais la plus cool
          case 11 :  // 12 ailleurs
          case 12 :  // 13 reggae music
          case 13 :  // 14 fou de vous
          case 14 :  // 15 positive mind
          case 15 :  // 16 les profanes
          case 16 :  // 17 sweet lovin
          case 17 :  // 18 baby ne pleure pas
          case 18 : inc=current_entry_wmp; mess_pos_end="/" + document.Player_1.currentPlaylist.count; mess_position= mess_pos_begin + (current_entry_wmp+1) + mess_pos_end;break; // 19 ma princesse

          default: inc=19;  // mess first nodisplay
          }
initialize();
zaza = zozo;
}



function booklet_change()
{
 
switch(current_entry_wmp)    // first=0
          {
          case 0 :   change_booklet(1); visible_mark00(); break; //  1 serie b
          case 1 :   change_booklet(1); visible_mark01(); break; //  2 ou te caches tu
          case 2 :   change_booklet(1); visible_mark02(); break; //  3 faineant
          case 3 :   change_booklet(1); visible_mark03(); break; //  4 laisse toi aller
          case 4 :   change_booklet(1); visible_mark04(); break; //  5 qui sait
          case 5 :   change_booklet(1); visible_mark05(); break; //  6 avec toi
          case 6 :   change_booklet(1); visible_mark06(); break; //  7 figitif
          case 7 :   change_booklet(1); visible_mark07(); break; //  8 lady strange
          case 8 :   change_booklet(1); visible_mark08(); break; //  9 sweety
          case 9 :   change_booklet(1); visible_mark09(); break; // 10 passe nous d'la funk
          case 10 :  change_booklet(1); visible_mark10(); break; // 11 fais la plus cool
          case 11 :  change_booklet(1); visible_mark11(); break; // 12 ailleurs
          case 12 :  change_booklet(2); visible_mark12(); break; // 13 reggae music
          case 13 :  change_booklet(2); visible_mark13(); break; // 14 fou de vous
          case 14 :  change_booklet(2); visible_mark14(); break; // 15 positive mind
          case 15 :  change_booklet(2); visible_mark15(); break; // 16 les profanes
          case 16 :  change_booklet(2); visible_mark16(); break; // 17 sweet lovin
          case 17 :  change_booklet(2); visible_mark17(); break; // 18 baby ne pleure pas
          case 18 :  change_booklet(2); visible_mark18(); break; // 19 ma princesse

          default: change_booklet(0);
          }
}

flag_select="no";  // flag pour repeat title
change_booklet(0);

// video
function PlayVideo()  {document.Player_1.controls.stop(); document.MediaPlayer1.controls.play();change_booklet(0);window.clearTimeout(jumpy);flag_select="no";invisible_all_marks();}
function StopVideo()  {document.MediaPlayer1.controls.stop();}
function PauseVideo() {document.MediaPlayer1.controls.pause();}
function MuteVideo()  {document.MediaPlayer1.controls.mute();}
function StartVideo() {document.MediaPlayer1.controls.play();}

//audio
function StartMeUp_1 ()  {document.MediaPlayer1.controls.stop(); document.Player_1.controls.play();}
function ShutMeDown_1 () {document.Player_1.controls.stop();document.Player_2.controls.stop(); setTimeout('document.Player_1.controls.stop()',2000);change_booklet(0);inc=19;initialize();flag_select="repeat";invisible_all_marks();}  // stop sound, booklet av0, display initial, no repeat mode

// function Precedent_1(){document.Player_1.controls.previous(); display_currententry();booklet_change();}
// function Suivant_1(){document.Player_1.controls.next();display_currententry();booklet_change();}

//document.Player_1.URL = "streamings/asx_gn/gn_all.asx";
ShutMeDown_1 ();


