/*
xbMarquee-test.js

This script performs the setup for a number of 
demonstration tests of the xbMarquee object.

*/

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 = 00;
    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  = 925;
    break;
  }

  var html = 
  '<' + elm + ' class="marquee">Freelance Web Designer India, Freelance Web Designer Mumbai, Website Designing Company India, Website Designing Company Mumbai, Web Designer India, Web Designer Mumbai, Web Developers Mumbai, Web Developers India, Flash Websites, Flash Website Designing India, Graphic Designer, Graphic Designers India, Outsource Web Design India, India Web Developer, Website Designer India, Internet Business, E-commerce and Development Tools, Web Portal Designing &amp; Web Development Company India, Flash Site Developers, Search Engine Promotion, Search Engine Ranking, Website Design India, Brand Endorsement, Corporate Identity, Multimedia Presentation, E-commerce Applications, Freelance Web Development, Website Redesign, Website Maintenance, ASP, SQL, PHP, .NET Programming, Portal Developers, Dynamic Web Design, E-commerce Web Design, Domain Registration, Shopping Carts, Web Hosting Mumbai, Specialise in Jewellery Websites, Online Diamond Inventory Websites, E-newsletters, Calligraphy, Computer Training, hetalarts@yahoo.com, hetalvakil@gmail.com, Hetal Vakil, www.hetalarts.com<\/' + elm + '>' +
   ''
  ;

  var marquee = new xbMarquee(id, height, width, 6, 85, dir, behav, html);

  // 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();};
}
