<!--
websitePath = '../../NEWMJCPAGE/';

var message= new Array(
"<IMG SRC='"+websitePath+"IMG/BANNER/note01e.gif' BORDER=0 ALT='note' ALIGN='center'>||",
"<IMG SRC='"+websitePath+"IMG/BANNER/timesgroup.jpg' BORDER=0 ALT='Times Group' ALIGN='center'>||http://www.timesgroup.cn/",
"<IMG SRC='"+websitePath+"IMG/BANNER/saic_en.gif' BORDER=0 ALT='SAIC' ALIGN='center'>|| http://www.saic2010.com/",
"<IMG SRC='"+websitePath+"IMG/BANNER/Remier_Jetfoil.jpg' BORDER=0 ALT='ROMIER JETFOIL' ALIGN='center'>||http://www.turbojet.com.hk/",
"<IMG SRC='"+websitePath+"IMG/BANNER/intfed.gif' BORDER=0 ALT='Horseracing Authorities' ALIGN='center'>||http://www.horseracingintfed.com",
"<IMG SRC='"+websitePath+"IMG/BANNER/mslot.jpg' BORDER=0 ALT='澳 門 彩 票 有 限 公 司' ALIGN='center'>||http://www.macau-slot.com",
"<IMG SRC='"+websitePath+"IMG/BANNER/MacauDog.jpg' BORDER=0 ALT='澳 門 逸 園 賽 狗 會' ALIGN='center'>||http://www.macaudog.com",
"<IMG SRC='"+websitePath+"IMG/BANNER/3T.jpg' BORDER=0 ALT='3T' ALIGN='center'>||"+websitePath+"IMG/BANNER/3TExp.html",
"<IMG SRC='"+websitePath+"IMG/BANNER/bar2.gif' BORDER=0 ALT='打 電 話 聽 跑 馬' ALIGN='center'>||"+websitePath+"IMG/BANNER/PictureExp.html"
)

//"<IMG SRC='"+websitePath+"IMG/BANNER/ab_en.jpg' BORDER=0 ALT='note' ALIGN='center'>||",
//"<IMG SRC='"+websitePath+"IMG/BANNER/equivision.jpg' BORDER=0 ALT='www.equivision.com' ALIGN='center'>||http://www.equivision.co.nz/",
//"<IMG SRC='"+websitePath+"IMG/BANNER/ad.jpg' BORDER=0 ALT='廣 告' ALIGN='center'>||"+websitePath+"MJCPAGE/MARKETING/Market_Adv.html"
//"<IMG SRC='"+websitePath+"IMG/BANNER/cvgz_e.jpg' BORDER=0 ALT='Children Video Game Zone' ALIGN='center'>||",
//"<IMG SRC='"+websitePath+"IMG/BANNER/PriceBloodstock.gif' BORDER=0 ALT='note' ALIGN='center'>||http://www.pricebloodstock.com",
//"<IMG SRC='"+websitePath+"IMG/BANNER/HorseRun.gif' BORDER=0 ALT='澳 門 馬 照 跑' ALIGN='center'>||"+websitePath+"IMG/BANNER/HorseRun.html",
//"<IMG SRC='"+websitePath+"IMG/BANNER/macaubanner-1s.jpg' BORDER=0 ALT='賽馬鍊金術' ALIGN='center'>||http://www.midasnet.com.hk",
//"<IMG SRC='"+websitePath+"IMG/BANNER/fixtures.jpg' BORDER=0 ALT='racing season to start' ALIGN='center'>||/NEWMJCPAGE/ANN/fixtures.html?#en",
//"<IMG SRC='"+websitePath+"IMG/BANNER/7_8_446.jpg' BORDER=0 ALT='Race Times in Summer' ALIGN='center'>||/mjc_en/racing/index.php?newsid=735",
//"<IMG SRC='"+websitePath+"IMG/BANNER/AsianRacingFederation.jpg' BORDER=0 ALT='31st Asian Racing Conference' ALIGN='center'>||http://www.arcdubai2007.com/dubai.html",
// message[0]="<IMG SRC='IMG/BANNER/MHC.gif' BORDER=0 ALT='澳 港 盃' ALIGN='center'>||IMG/BANNER/MHC.html"
// message[0]="<IMG SRC='IMG/BANNER/Vflash.jpg' BORDER=0 ALT='Download V-Flash' ALIGN='center'>||http://www.vflash.net/vfMacau/Client/Download1.asp"
// message[6]="<IMG SRC='IMG/BANNER/ARIMACAU.gif' BORDER=0 ALT='澳 洲 賽 馬 學 院' ALIGN='center'>||http://www.arimacau.com"
//message[0]="<IMG SRC='IMG/BANNER/Frd2.jpg' BORDER=0 ALT='濠駿之友' ALIGN='center'>||IMG/BANNER/FRD2A.html"
//message[1]="<IMG SRC='IMG/BANNER/Month.jpg' BORDER=0 ALT='入 場 有 著 數' ALIGN='center'>||IMG/BANNER/MonthExp.html"
//message[0]="<IMG SRC='IMG/BANNER/ctm.jpg' BORDER=0 ALT='澳 門 電 訊' ALIGN='center'>||http://www.ctm.net/cgi-bin/ctm/jsp/cn/NHS/personal/promotion/promotion_ex.jsp?oid=36041"
//websitePath = '../../NEWMJCPAGE/';
//message[0]="<IMG SRC='"+websitePath+"IMG/BANNER/diamondbanner.jpg' BORDER=0 ALT='假日鑽石挑戰盃' ALIGN='center'>||"+websitePath+"IMG/BANNER/diamond.php"
//message[0]="<IMG SRC='"+websitePath+"IMG/BANNER/HighFlyer.gif' BORDER=0 ALT='澳 門 賽 馬 會 榮 獲 傑 出 企 業 公 司' ALIGN='center'>||"+websitePath+"IMG/BANNER/HighFlyer1.html"

//message[0]="<IMG SRC='"+websitePath+"IMG/BANNER/Frd2.jpg' BORDER=0 ALT='濠 駿 之 友 會 訊' ALIGN='center'>||"+websitePath+"IMG/BANNER/FRD2.html"
/*
message[0]="<IMG SRC='"+websitePath+"IMG/BANNER/AsianRacingFederation.jpg' BORDER=0 ALT='31st Asian Racing Conference' ALIGN='center'>||http://www.arcdubai2007.com/dubai.html"

message[1]="<IMG SRC='"+websitePath+"IMG/BANNER/intfed.gif' BORDER=0 ALT='Horseracing Authorities' ALIGN='center'>||http://www.horseracingintfed.com"

message[2]="<IMG SRC='"+websitePath+"IMG/BANNER/Frd.jpg' BORDER=0 ALT='濠 駿 之 友' ALIGN='center'>||"+websitePath+"IMG/BANNER/FRDA.html"

message[3]="<IMG SRC='"+websitePath+"IMG/BANNER/Frd2.jpg' BORDER=0 ALT='濠 駿 之 友 會 訊' ALIGN='center'>||"+websitePath+"IMG/BANNER/Director_cup.html"

message[4]="<IMG SRC='"+websitePath+"IMG/BANNER/mslot.jpg' BORDER=0 ALT='澳 門 彩 票 有 限 公 司' ALIGN='center'>||http://www.macau-slot.com"

message[5]="<IMG SRC='"+websitePath+"IMG/BANNER/MacauDog.jpg' BORDER=0 ALT='澳 門 逸 園 賽 狗 會' ALIGN='center'>||http://www.macaudog.com"

message[6]="<IMG SRC='"+websitePath+"IMG/BANNER/3T.gif' BORDER=0 ALT='3T' ALIGN='center'>||"+websitePath+"IMG/BANNER/3TExp.html"

message[7]="<IMG SRC='"+websitePath+"IMG/BANNER/HorseRun.gif' BORDER=0 ALT='澳 門 馬 照 跑' ALIGN='center'>||"+websitePath+"IMG/BANNER/HorseRun.html"

message[8]="<IMG SRC='"+websitePath+"IMG/BANNER/100.jpg' BORDER=0 ALT='賽 馬 壹 天 遊' ALIGN='center'>||"+websitePath+"IMG/BANNER/100Exp.html"

message[9]="<IMG SRC='"+websitePath+"IMG/BANNER/bar2.gif' BORDER=0 ALT='打 電 話 聽 跑 馬' ALIGN='center'>||"+websitePath+"IMG/BANNER/PictureExp.html"

message[10]="<IMG SRC='"+websitePath+"IMG/BANNER/ad.jpg' BORDER=0 ALT='廣 告' ALIGN='center'>||"+websitePath+"MJCPAGE/MARKETING/Market_Adv.html"
*/
// 告 示 板 之 高 度 (pixels)
var scrollerheight=60

// 告 示 板 之 闊 度 (pixels)
var scrollerwidth=446

// 告 示 板 上 邊 邊 界 距 離   (pixels)
var scrollertop=15

// 告 示 板 左 邊 邊 界 距 離  (pixels)
var scrollerleft=543

// 告 示 板 與 文 字 距 離 (pixels)
var scrollerpadding= 0

// 告 示 板 框 邊 度 (pixels)
var backgroundborder=0

// 告 示 板 底 色
var scrollerbgcolor="#FFFFFF"

// 告 示 板 標 題 字 形 、 大 小 及 顏 色
var font_titleface="Verdana"
var font_titlecolor="FF0000"
var font_titlesize=2

// 告 示 板 內 文 字 字 形 、 大 小 及 顏 色
var font_copyface="Verdana"
var font_copycolor="660000"
var font_copysize=1

// 每 個 告 示 之 間 所 隔 時 間 ( 微 秒 )
var standstillfix=6000


// 請 不 要 更 改 以 下 任 何 內 容
//var dContainer = document.getElementById('Banner');
contenttext = '<div id=link_logo style="position:absolute;top:'+scrollertop+'px;left:'+scrollerleft+'px;WIDTH: '+scrollerwidth+'px; HEIGHT: '+scrollerheight+'px;OVERFLOW: hidden; ">';
contenttext += '<div id=link_logo1 style="OVERFLOW: hidden">';
contenttext += '  <table cellspacing=0 cellpadding=0 border=0>';
contenttext += '    <tbody>';
for (i=0;i<=message.length-1;i++) {
	mes_joined=message[i]
	mes_split=mes_joined.split("|")
  contenttext += '      <tr>';
  contenttext += '        <td>';
	if (mes_split[2] == "")
    contenttext += mes_split[0];
	else {
    contenttext += '          <a href="'+mes_split[2]+'" target=_blank>';
    contenttext += mes_split[0];
    contenttext += '          </a> ';
  }
  contenttext += '        </td>';
  contenttext += '      </tr>';
}
contenttext += '    </tbody>';
contenttext += '  </table>';
contenttext += '</div>';
contenttext += '<div id=link_logo2></div>';
contenttext += '</div><div id="Delay"></div>';
document.write(contenttext);
//dContainer.innerHTML = contenttext;
var speed=10;
var delay=0;
var link_logo = document.getElementById('link_logo');
var link_logo1 = document.getElementById('link_logo1');
var link_logo2 = document.getElementById('link_logo2');
link_logo2.innerHTML=link_logo1.innerHTML;
function Marquee2(){
  if (delay <= 0) {
    if(link_logo2.offsetTop-link_logo.scrollTop<=0)
      link_logo.scrollTop-=link_logo1.offsetHeight;
    else{
      link_logo.scrollTop++;
    }
    i = link_logo.scrollTop % scrollerheight;
    if (i == 0) delay = Math.floor(standstillfix / speed);
  } else {
    delay--;
    //var dContainer = document.getElementById('Delay');
    //dContainer.innerHTML = delay;
  }
}
var MyMar2;
function initiate() {
  delay = Math.floor(standstillfix / speed);
  MyMar2=setInterval(Marquee2,speed);
}
link_logo.onmouseover=function() {
  clearInterval(MyMar2);
}
link_logo.onmouseout=function() {
  MyMar2=setInterval(Marquee2,speed);
}

//-->

/*Redirect hostname "www.macauhorse.com" to
"www.mjc.mo"
*/

	function redirectMJC(){
  
    //if(location.hostname != "www.mjc.mo" && location.hostname != "localhost"){
    //  location.href="http://www.mjc.mo/mjc_en/index.htm";
    //}
}

/*
External Data Source Marquee Script (Updated 99/11/02)- 
c Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of Use, visit dynamicdrive.com
*/
function downloaddata(){
marqueedata.startDownload(externalmarquee.src,displaydata)
}

function displaydata(data){
externalmarquee.innerHTML=data
}
//-->
