 <!--

var tags_before_clock = "<font style='font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 10px;font-weight: normal;color: #444444;line-height: 14px;' >";
var tags_after_clock  = "</font>";
var speed = 50;
var speed2 = 4000;

function initArray() {

this.length = initArray.arguments.length;
  for (var i = 0; i < this.length; i++) {
  this[i] = initArray.arguments[i];
  }
}
/******************** Here is all the messages******************************************/
var mymessage = new initArray(
"Rebel Creek is the perfect choice for your special event. Contact our Special Events Coordinator to book now.",
"Rebel Creek gift and game cards make the perfect gift for every golfer.",
"Reserve your summer golf event now."
//"Come out to Rebel Creek Wednesday June 17th for a night of fun and games with the Coors Light Maxim Caddy Girls.",
//"Book your company Christmas Party or Luncheon today!"
//"We are now taking reservations for Thanksgiving Brunch. Call now to make your reservation.",
//"Join us for live entertainment on Friday nights starting June 1st.",
//"Golf tournament dates still available for the 2007 season!  Contact our Special Events Coordinator to book now!",
//"Now taking reservations for Father’s Day Brunch, Sunday June 17th",
//"Now taking reservations for Easter and Mother’s Day brunch.  Seatings are available at 10:30am and 1:00pm.",
/*"See Rebel Creek’s Pro Shop for some great stocking stuffer ideas as well as a PRO SHOP BLOW OUT SALE!",*/
/*"Rebel Creek Golf Club is offering 3 perfect gift ideas for the Christmas Season.",
"Rebel Creek introduces 5 new Membership Programs for the 2007 season!!",
"Sunday Brunch Club: A unique way to enjoy Sunday Brunch! See our promotions page for details.",
"Check out our banquet facilities for your next function. It's never too early to book your Christmas party.",
"Buffet Dinner with live entertainment Starting October 13th.",
*///"New Corporate Package!!!  Purchase a 10 Game Multi Pack before June 16th for $720.00 plus tax, a savings of $20 per round!!!",
//"Glove Swap! Bring in any old glove to Rebel Creek's Pro Shop and receive $3 off your purchase of any new Wilson glove.",
//"See our New Junior Mentoring Program on the Golf Academy Page.",
//"Stay Tuned for our New Corporate Game Package as well as our Junior Package!",
//"All vouchers expiring at the end of the 2005 season will be accepted only until May 19th, 2006.",
//"Rebel Creek now offers a Christmas Party Package Monday through Thursdays.<br> Call 519-634-8666 ext.205 for details",
//"Rebel Creek's Fabulous Sunday Brunch is BACK!!!! Call for details and a reservation! (519)634-8666 or 1-888-591-6053",
//"Come on out and play after after October 11th 2005 for $60 which includes lunch!",
//"Save $50 on our All Inclusive Golf package. A $140 value now only $90.",
//"Rebel Creek gift and game cards make the perfect gift for every golfer."
);
/******************** End of all the messages******************************************/

/******************** Here is all the messages links **********************************/
var mylinks = new initArray(
"http://www.rebelcreek.ca",
"http://www.rebelcreek.ca",
"http://www.rebelcreek.ca",
"http://www.rebelcreek.ca"
);
/******************** End of all the messages links **********************************/


var mymessage2 = mymessage;
var x = 0;
var y = 0;

if(navigator.appName == "Netscape") {
document.write('<div id="ticker" class="tickertape"></div><br>');
}

if (navigator.appVersion.indexOf("MSIE") != -1){
document.write('<span id="ticker" class="tickertape"></span><br>');
}

function upticker(){ 

if (y > mymessage2.length - 1) {
  y = 0;
  setTimeout("upticker()",speed);
}

else{

  if (x > mymessage2[y].length) {
    mymessage = mymessage2[y];
    x = 0; y++;
    setTimeout("upticker()",speed2);
  }

  else {
    mymessage = mymessage2[y].substring(0,x++);
    setTimeout("upticker()",speed);
  }

  if(navigator.appName == "Netscape") {
    //document.ticker.document.write(tags_before_clock+mymessage+tags_after_clock);
    //document.ticker.document.close();
	 //linkText = tags_before_clock + "<a class='tickertape' href = '" + mylinks[y] + "'><br>" + mymessage + "</a>" + tags_after_clock;
	 linkText = tags_before_clock +  mymessage +  tags_after_clock;
	//linkText = linkText + "<a href = '" + mylinks[y] + "'> GO</a>";
	document.getElementById("ticker").innerHTML = linkText;
  }

  if (navigator.appVersion.indexOf("MSIE") != -1){
    //linkText = tags_before_clock + "<a class='tickertape' href = '" + mylinks[y] + "'>" + mymessage + "</a>" + tags_after_clock;
	linkText = tags_before_clock + mymessage + tags_after_clock;
	//linkText = linkText + "<a href = '" + mylinks[y] + "'> GO</a>";
	ticker.innerHTML = linkText;
  }
}
} 


function startNewsTicker(){
	setTimeout("upticker()",speed);
}

//for changin content in iFrame on the index page
function changeiFrame(txtPath){
	frames['iframeContent'].location.href = txtPath;
}



//-->
