//COPYRIGHT By BennyTse 2002

var movx, movy, scrollstep=2, speed=20, direct;
var frame_width=0, title_count=0, loop_time, view_width;

var title=new Array();
title[0]="广州日报";
title[1]="信息时报";
title[2]="足球报";
title[3]="赢周刊";
title[4]="英文早报";
title[5]="舞台与银幕";
title[6]="南风窗";
title[7]="新现代画报";
title[8]="现代育儿报";
title[9]="看世界";
title[10]="广州文摘报";
title[11]="美食导报";
title[12]="商旅导报";
title[13]="老人报"

var url=new Array();
url[0]="http://gzdaily.dayoo.com/";
url[1]="http://informationtimes.dayoo.com/";
url[2]="http://gzsoccer.dayoo.com/";
url[3]="http://www.ceoun.com/";
url[4]="http://gzmp.dayoo.com/";
url[5]="http://wtyym.dayoo.com/";
url[6]="http://www.nfcmag.com";
url[7]="http://modern.dayoo.com/";
url[8]="http://xdyeb.dayoo.com/";
url[9]="http://worldview.dayoo.com/";
url[10]="http://wzb.dayoo.com/";
url[11]="http://msdb.dayoo.com/";
url[12]="http://sldb.dayoo.com/";
url[13]="http://lrb.dayoo.com/";

a_l=url.length;

function mov(a){ 
scrollx=menubar.document.body.scrollLeft ;
scrollx=scrollx+a ;
menubar.window.scroll(scrollx,0);
}
function movstar(a,time){ 
if (a>0){direct=1;}
if (a<0){direct=0;}
clearInterval(movx);
clearInterval(movy);
movx=setInterval("mov("+a+")",time);
}
function movover(){ 
clearInterval(movx);
if (frame_width>view_width){movy=setInterval("movauto()",loop_time);}
}

function movauto(){
direct=direct+1;
if (direct%2 == 1){x=3; clearInterval(movx); movx=setInterval("mov("+x+")",100);}
if (direct%2 == 0){x=-3; clearInterval(movx); movx=setInterval("mov("+x+")",100);}
}

menu_tmp="<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"right\" height=\"8\"><tr><td class=\"p9_d\" nowrap>";
for (i=0;i<a_l;i++)
{title_count=title_count+title[i].length; menu_tmp=menu_tmp + "<img src=\"http://www.dayoo.com/images/j.gif\" width=\"8\" height=\"8\" align=\"absmiddle\"><a href=\""+url[i]+"\" class=\"tool\" target=\"_blank\">"+title[i]+"</a> ";}
menu_tmp=menu_tmp + "</td></tr></table>";

frame_width=frame_width+15*(a_l)+title_count*12;

var css1 = ("<html><head><style type=\"text/css\"><!--.p9_d {COLOR: #000000; FONT-FAMILY: \"宋体\"; FONT-SIZE: 9pt; LINE-HEIGHT: 2em};a.tool:link {color:#ffffff; text-decoration:none};a.tool:active {color:#ffffff; text-decoration:none};a.tool:visited {color:#ffffff; text-decoration:none};a.tool:hover {color:#CCCCCC; text-decoration: none};--></style></head>");
var css2 = ("<body leftmargin=\"0\" topmargin=\"3\" marginwidth=\"0\" marginheight=\"0\" bgcolor=\"#180452\" onSelectStart=\"return false\">");
var css3 = ("</body></html>");


function int(){
clearInterval(movy);
iframe_w=document.body.clientWidth;
view_width=iframe_w=iframe_w-220;
loop_time=30*(frame_width-view_width)+2500;
iframe_h=14;
direct=1;

Wait4Iframe.innerHTML="<iframe name=\"menubar\" border=\"0\" frameborder=\"0\" framespacing=\"0\" marginheight=\"0\" marginwidth=\"0\" noResize scrolling=\"no\" width=\""+iframe_w+"\" height=\""+iframe_h+"\"></iframe>";

menubar.document.open();
menubar.document.write(css1);
menubar.document.write(css2);
menubar.document.write(css3);
menubar.document.close();
menubar.document.body.innerHTML=menu_tmp;
if (frame_width>view_width){movy=setInterval("movauto()",loop_time);}
}

