﻿function startMarquee(id, dir, behav)

{
  var elm;
  var height;
  
var width;

  
switch (dir)
  
{
  case 'up':
  case 'down':
    
// use divs to contain each item in the marquee to force
    
// each item to begin on different lines
    
elm = 'div';
    
height = 65;
    
width  = 200;
    
break;

  
case 'left':
  case 'right':
  default:
    
// use spans to contain each item in the marquee to force
    
// each item to begin on the same line
    
elm = 'span';
    
height = 20;
    
width  = 160;
    
break;
  }

  
var html = 



  '<' + elm + '>&nbsp;&nbsp; רוצה להפוך תמונה לרקע? עמוד עם '
  +'&nbsp;&nbsp;&nbsp;'
  +'העכבר וקבע עם קליק ימני תמונה לרקע.<\/' + elm + '><br />'

+'<' + elm + '>&nbsp;&nbsp; ביצעת הזמנה של אלבום? תוך 7 עסקים &nbsp;&nbsp; אלבום התמונות ישלח אליך. <\/' 
+ elm + '><br />' +
  '<' + elm + '>&nbsp;&nbsp; אין לך זמן וחשק לעצב?  <a href="design.aspx"  rel="nofollow">שירות המעצבת</a>&nbsp;&nbsp; של ebook יעשה בשבילך את העבודה...<\/' + elm + '>'
+ '';
  
var marquee = new xbMarquee(id, height, width, 1, 85, dir, behav, html);
marquee.onmouseover = function () { this.stop(); };
marquee.onmouseout  = function () { this.start(); };
  
// due to limitations in Internet Explorer's initialization of
  
// element heights and widths, execute the marquee start method
  
// in the page's load event handler.
  
window.onload = function () {marquee.start();};
}
