slogans = ['Soulful','Classical','Iconic','Rococo','Quirky','Colourful','Baroque','Surreal','Contemporary','Timeless','Tactile','Beau monde','Soft Art','Couture','Opulent','Romantic'];
// colours = ['#D60093','#BC33FF','#C99616','#FDFF64','#8DD8D4','#669B0D','#00C0C0','#FF4040','#FF420F','#6970FF','#00C000','#00FFFF'];

s1x1 = 5 ;
s1x2 = 40;
s1y1 = 80 ;
s1y2 = 160 ;

s2x1 = 730 ;
s2x2 = 40;
s2y1 = 80 ;
s2y2 = 160 ;

s3x1 = 0 ;
s3x2 = 60;
s3y1 = 280 ;
s3y2 = 160 ;

s4x1 = 730 ;
s4x2 = 80;
s4y1 = 280 ;
s4y2 = 160 ;

function StartSlogan() {
  s1 = Math.floor(Math.random()*slogans.length) ;
  s = slogans.length - 1 ;
  // c1 = Math.floor(Math.random()*colours.length) ;
  // c = colours.length - 1 ;
  // setTimeout('NextSlogan1()', 3000);
  NextSlogan2();
  // setTimeout('NextSlogan3()', 4000);
  setTimeout('NextSlogan4()', 2000);
}

function NextSlogan1() {
  if (++s1 > s) { s1 = 0 ; }
  /*
  if (++c1 > c) { c1 = 0 ; }
  */
  document.getElementById('slogan1').style.left = (s1x1 + Math.floor(Math.random()*s1x2)) + 'px' ;
  document.getElementById('slogan1').style.top = (s1y1 + Math.floor(Math.random()*s1y2)) + 'px' ;
  // document.getElementById('slogan1').style.color = colours[c1] ;
  $("#slogan1").delay(1000).hide().html(slogans[s1]).fadeIn("slow").delay(7000).fadeOut("slow",NextSlogan1);
}

function NextSlogan2() {
  if (++s1 > s) { s1 = 0 ; }
  /*
  if (++c1 > c) { c1 = 0 ; }
  */
  document.getElementById('slogan2').style.left = (s2x1 + Math.floor(Math.random()*s2x2)) + 'px' ;
  document.getElementById('slogan2').style.top = (s2y1 + Math.floor(Math.random()*s2y2)) + 'px' ;
  // document.getElementById('slogan2').style.color = colours[c1] ;
  $("#slogan2").delay(1100).hide().html(slogans[s1]).fadeIn("slow").delay(8400).fadeOut("slow",NextSlogan2);
}

function NextSlogan3() {
  if (++s1 > s) { s1 = 0 ; }
  /*
  if (++c1 > c) { c1 = 0 ; }
  */
  document.getElementById('slogan3').style.left = (s3x1 + Math.floor(Math.random()*s3x2)) + 'px' ;
  document.getElementById('slogan3').style.top = (s3y1 + Math.floor(Math.random()*s3y2)) + 'px' ;
  // document.getElementById('slogan3').style.color = colours[c1] ;
  $("#slogan3").delay(1200).hide().html(slogans[s1]).fadeIn("slow").delay(7100).fadeOut("slow",NextSlogan3);
}

function NextSlogan4() {
  if (++s1 > s) { s1 = 0 ; }
  /*
  if (++c1 > c) { c1 = 0 ; }
  */
  document.getElementById('slogan4').style.left = (s4x1 + Math.floor(Math.random()*s4x2)) + 'px' ;
  document.getElementById('slogan4').style.top = (s4y1 + Math.floor(Math.random()*s4y2)) + 'px' ;
  // document.getElementById('slogan4').style.color = colours[c1] ;
  $("#slogan4").delay(1000).hide().html(slogans[s1]).fadeIn("slow").delay(9900).fadeOut("slow",NextSlogan4);
}

