
  // script adapted from www.overture.com site
  // for multiple listings for 
  // www.classicaldancealliance.org

News=[
  {text: "NASD Requests Comments on Accreditation Standards",
    url:   "./News/index.html#NASD_RFC_0708"}, 
  {text: "CDA Covers IBC VIII in Jackson, Mississippi", 
    url:   "./Features/index.html#ibc_jackson_0606"},
  {text: "",
    url:   ""}, 
  {text: "",
    url:   ""},
  {text: "",
    url:   ""}, 
  {text: "", 
    url:   ""}
];

var nNews = 2;
var iNews = 1;

Features=[
  {text: "CDA Interviews Southwest Classical Dance Institute<br/>directors Joshua and Natasha Brooksher",
    url:   "./Features/interview/brooksher/index.html"},
  {text: "CDA Interviews Ilona Copen about the<br/>New York International Ballet Competition<br>Coming again in 2007",
    url:   "./Features/event/nyibc2005/index.html"},
  {text: "CDA Interviews Three Rising Male Stars<br/>at the VIII IBC in Jackson, MS", 
    url:   "./Features/interview/RisingMaleStars/index.html"},
  {text: "Getting Inside The Dancer<br/>Insights of Master Teacher Modris Cers",
    url:   "./Features/profile/modris_cers/index.html"},
  {text: "CDA profiles Anchorage, Alaska teacher<br/>Michelangelo Canale",
    url:   "./Features/profile/canale/index.html"},
  {text: "CDA turns a pedagogical spotlight on<br/>the five positions Sur le Cou&#45;de&#45;Pied",
    url:   "./Features/pedagogy/surlecoudepied/index.html"},
  {text: "CDA profiles Wisconsin Rapids, Wisconson teacher<br/>Marlene Turbin Weldon",
    url:   "./Features/profile/weldon/index.html"},
  {text: "",
    url:   ""},
  {text: "CDA profiles Anchorage, Alaska teacher<br/>Michelangelo Canale",
    url:   "./Features/profile/canale/index.html"},
  {text: "CDA profiles Lisbon, Portugal teacher<br/>Ana Rodrigues K&#246;hler",
    url:   "./Features/profile/kohler/index.html"},
  {text: "CDA profiles Wisconsin Rapids, Wisconson teacher<br/>Marlene Turbin Weldon",
    url:   "./Features/profile/weldon/index.html"},


];
var nFeatures = 7;
var iFeatures = 1;

var newsTimer = '';
var featuresTimer = '';

function start()
{
  newsTimer     = setInterval("doUpdateNews();" ,    1000*(3.5) ); // 3 sec
  featuresTimer = setInterval("doUpdateFeatures();", 1000*(3) ); // 3 sec
}

function doUpdateNews()
{
  document.getElementById("NewsItem").innerHTML = '<a href\="." class\="CDALink" class\="text"></a>';
  setTimeout('doRotateNews();',250); // pause for 1/4 second
}

function doRotateNews()
{
  document.getElementById("NewsItem").innerHTML = '<a href\="'+News[iNews].url+'" class\="CDALink" class\="text">'+News[iNews].text+'</a>';
  iNews++;
  if( iNews>(nNews-1) ) iNews = 0;
}

function doUpdateFeatures()
{
  document.getElementById("FeaturesItem").innerHTML = '<a href\="." class\="CDALink" class\="text"> </a>';
  setTimeout('doRotateFeatures();',250); // pause for 1/4 second
}

function doRotateFeatures()
{
  document.getElementById("FeaturesItem").innerHTML = '<a href\="'+Features[iFeatures].url+'" class\="CDALink" class\="text">'+Features[iFeatures].text+'</a>';
  iFeatures++;
  if( iFeatures>(nFeatures-1) ) iFeatures = 0;
}

