/* Script moving object */




function menuOver(that) {
	that.oldClassName = that.className;
	that.className += 'over';
	self.status = that.firstChild.href;
}
function menuOut(that) {
	if(that.oldClassName) that.className = that.oldClassName;
	else that.className = 'menucontent1';
	self.status = '';
}
function menuClick(that) {
	document.location = get_href(that);
	return true;
}
function get_href(node)
{
	if (typeof node.href != 'undefined')
		get_href.href = node.href;
	if (node.childNodes != null)
		for (var i = 0; i < node.childNodes.length; ++i)
			get_href(node.childNodes.item(i));
	return (typeof get_href.href != 'undefined') ? get_href.href : '#';
}



function showmenu(elmnt)
{
var x=document.getElementById(elmnt)
x.style.visibility="visible"
}
function hidemenu(elmnt)
{
var y=document.getElementById(elmnt)
y.style.visibility="hidden"
}


  var x = 0
  var y = 0
  var z = 140
  var delay = 70
  var text = "DUDUR Beauty Megastore - your source of innovative skincare products from all over the world"
  var text1 = "DUDUR innovative formula of natural marine body care from France"

  while (y ++ < z) {
  text = " " + text;
  }

  function scroller() {
  window.status = text.substring(x++, text.length);
  if (x == text.length)  {
  x = 0;
  }
  setTimeout("scroller()", delay);
  }

  scroller();




 movmsg2_message = new Array;
 movmsg2_message[0] = 'Bienvenue sur Dudur Beauté Megastore !';
movmsg2_message[1] = 'Welcome to Dudur Beauty Megastore !';
movmsg2_message[2] = 'The source of innovative beauty products and brands !';
movmsg2_message[3] = 'We wish you a pleasant shopping experience at Dudur !';
movmsg2_message[4] = 'Nous vous souhaitons une bonne visite !';  
movmsg2_message[5] = '';
movmsg2_message[6] = '';
movmsg2_message[7] = '';
movmsg2_message[8] = '';

 movmsg2_actual = 0;
 movmsg2_html_flag = 0;
 check_flag = 0;
 
 function movmsg2_go()
     {
      if ( check_flag != 1) {
          checkCookie();
          check_flag = 1;
        }
     if(document.getElementById)
         {
         movmsg2_char = 1;
         movmsg2_affich(movmsg2_actual)
         movmsg2_actual++;
         if(movmsg2_actual >= movmsg2_message.length)
             movmsg2_actual = 0;
         }        
     }
 
 function movmsg2_affich(lactual)
     {
     var pix = movmsg2_message[lactual].charAt(movmsg2_char);
     if(pix == "<")
         movmsg2_html_flag = 1;
     if(pix == ">")
         movmsg2_html_flag = 0;
     var texte = movmsg2_message[lactual].substring(0,movmsg2_char);
     document.getElementById("movmsg2_box").innerHTML = texte;
     if(movmsg2_char < movmsg2_message[lactual].length)
         {
         movmsg2_char++;
         if(movmsg2_html_flag == 1)    
             movmsg2_affich(lactual);
         else
             setTimeout("movmsg2_affich("+lactual+")",30)
         }
     else
         setTimeout("movmsg2_go()",2000)
     }
 
 window.onload = movmsg2_go;



