
/*
========================================
 V-NewsTicker v2.2
 License : Freeware (Enjoy it!)
 (c)2003 VASIL DINKOV- PLOVDIV, BULGARIA
========================================
 For IE4+, NS4+, Opera5+, Konqueror3.1+
========================================
 Get the NewsTicker script at:
 http://www.smartmenus.org/other.php
 and don't wait to get the Great SmartMenus script at:
 http://www.smartmenus.org*/

// === 1 === FONT, COLORS, EXTRAS...
i_font='"Trebuchet MS", Arial, "Helvetica Neue", Helvetica, sans-serif';
i_fontSize='13px';
i_fontSizeNS4='13px';
i_fontWeight='normal';
i_fontColor='#475475';
i_textDecoration='none';
i_fontColorHover='#2E71DE';//		| won't work
i_textDecorationHover='none';//	| in Netscape4
i_bgColor='transparent';
// set [='transparent'] for transparent
// set [='url(image_source)'] for image
i_top=0;//	|
i_left=0;//	| defining
i_width=165;//	| the box
i_height=140;//	|
i_paddingTop=10;
i_paddingLeft=10;
i_position='relative';// absolute/relative
i_timeout=3500;//1000 = 1 second
i_slideSpeed=40;
i_slideDirection=0;//0=down-up;1=up-down
i_pauseOnMouseOver=true;
// v2.2+ new below
i_slideStep=10;//pixels
i_textAlign='left';// left/center/right
i_textVAlign='top';// top/middle/bottom - won't work in Netscape4

i_addBRtagAfterEachHeadline=true;

// === 2 === THE CONTENT - ['href','text','target']
// Use '' for href to have no link item
i_content=[['../mediaroom/index.php?date=2011-12&id=117', '29 Dec 11: Media Release: The Executive Centre expands its online presence in Hong Kong.', '_parent'], ['../mediaroom/index.php?date=2011-12&id=115', '5 Dec 11: Media Release: Channel NewsAsia, Analysis on the Hong Kong regional retail property sector with Paul Salnikow, CEO of The Executive Centre', '_parent'], ['../mediaroom/index.php?date=2011-12&id=116', '4 Dec 11: Media Release: Media Release: Channel NewsAsia, Money Mind Programme with Paul Salnikow, CEO of The Executive Centre', '_parent'], ['../mediaroom/index.php?date=2011-11&id=114', '28 Nov 11: Media Release: 938Live Money Wise, Premium Serviced offices increasingly attractive to mainstream corporations', '_parent'], ['../mediaroom/index.php?date=2011-09&id=113', '26 Sep 11: Press Release: South China Morning Post, Demand rises for facilities', '_parent'], ['../mediaroom/index.php?date=2010-09&id=112', '6 Sep 10: Landmark ECFA increases demand for flexible office solutions in Taipei', '_parent'], ['../mediaroom/index.php?date=2010-08&id=111', '2 Aug 10: The Executive Centre Launches New Business Lounges and the Ultimate Virtual Office (UVO)', '_parent'], ['../mediaroom/index.php?date=2010-07&id=110', '8 Jul 10: The Executive Centre Opens Conference Centre in Two Exchange Square, Central, Hong Kong', '_parent'], ['../mediaroom/index.php?date=2010-06&id=109', '17 Jun 10: The Executive Centre Opens Third Serviced Office Centre in Sydney', '_parent'], ['../mediaroom/index.php?date=2010-04&id=108', '26 Apr 10: The Executive Centre Invests $30 Million in Asia-Pacific Expansion of Serviced Office Network', '_parent'], ['../mediaroom/index.php?date=2010-03&id=107', '28 Mar 10: The Executive Centre Opens New Serviced Office Centre in Tokyo', '_parent'], ['../mediaroom/index.php?date=2009-09&id=106', '29 Sep 09: The Executive Centre joins as a Pavilion Partner of the USA National Pavilion at the 2010 Shanghai World Expo', '_parent'], ['../mediaroom/index.php?date=2009-07&id=105', '8 Jul 09: The Executive Centre Opens New Serviced Office Centre in Hong Kong Exchange Square Two', '_parent'], ['../mediaroom/index.php?date=2009-06&id=104', '8 Jun 09: Virtual meetings - save more and stay productive', '_parent'], ['../mediaroom/index.php?date=2009-05&id=103', '28 May 09: What is a Virtual Office - Entrepreneurs\' Digest', '_parent'], ['../mediaroom/index.php?date=2009-04&id=102', '23 Apr 09: The Executive Centre Offers Innovative Office Solutions', '_parent'], ['../mediaroom/index.php?date=2009-03&id=101', '24 Mar 09: Virtual Office Expansion', '_parent'], ['../mediaroom/index.php?date=2009-02&id=100', '25 Feb 09: &#21830;&#21209;&#20013;&#24515;&#25215;&#31199;&#20132;&#26131;&#24291;&#22580;3&#23652;<br />\
Business centre signs lease at Exchange Square', '_parent'], ['../mediaroom/index.php?date=2009-01&id=98', '8 Jan 09: The Executive Centre Launches 10 Serviced Office Centres in Asia', '_parent'], ['../mediaroom/index.php?date=2008-12&id=97', '8 Dec 08: The Executive Centre Launches 7th Serviced Office Centre in Central Hong Kong', '_parent'], ['../mediaroom/index.php?date=2008-12&id=99', '5 Dec 08: The Executive Centre in Mumbai Integrates Security Network into Serviced Office Centre', '_parent'], ['../mediaroom/index.php?date=2008-11&id=96', '30 Nov 08: Make The Best Executive Decisions at The Executive Centre', '_parent'], ['../mediaroom/index.php?date=2008-10&id=95', '31 Oct 08: SALTO Systems provides security<br />\
for prestige office group across Asia', '_parent'], ['../mediaroom/index.php?date=2008-10&id=94', '10 Oct 08: The Executive Centre Expands Network of Serviced Offices in Hong Kong', '_parent'], ['../mediaroom/index.php?date=2008-09&id=92', '16 Sep 08: The Executive Centre Opens Their First Serviced Office Centre in India', '_parent'], ['../mediaroom/index.php?date=2008-09&id=93', '8 Sep 08: The Executive Centre Expands Their Serviced Office Network in Sydney, Australia', '_parent'], ['../mediaroom/index.php?date=2008-08&id=91', '1 Aug 08: Your Haas Network - Alan Seigrist, MBA 96', '_parent'], ['../mediaroom/index.php?date=2008-07&id=88', '22 Jul 08: Feature Story Part I', '_parent'], ['../mediaroom/index.php?date=2008-07&id=89', '22 Jul 08: Feature Story Part II', '_parent'], ['../mediaroom/index.php?date=2008-07&id=90', '22 Jul 08: Feature Story Part III', '_parent'], ['../mediaroom/index.php?date=2008-07&id=85', '4 Jul 08: Strong Business Growth in China Drives Executive Centre’s Expansion', '_parent'], ['../mediaroom/index.php?date=2008-07&id=86', '4 Jul 08: The Executive Centre Launches New Facility in Heart of Macau', '_parent'], ['../mediaroom/index.php?date=2008-07&id=87', '4 Jul 08: The Executive Centre Opens First Center in Shenzhen', '_parent'], ['../mediaroom/index.php?date=2008-06&id=84', '4 Jun 08: The Executive Centre Opens its First Serviced Office in Tianjin', '_parent'], ['../mediaroom/index.php?date=2008-05&id=82', '26 May 08: Ready to Occupy Serviced Offices in Macau', '_parent'], ['../mediaroom/index.php?date=2008-05&id=83', '26 May 08: Ready-to-use office space', '_parent'], ['../mediaroom/index.php?date=2008-05&id=81', '6 May 08: Keep The Image, Lose The Office!', '_parent'], ['../mediaroom/index.php?date=2008-05&id=80', '5 May 08: &#20122;&#27954;&#22320;&#20135;', '_parent'], ['../mediaroom/index.php?date=2008-05&id=79', '1 May 08: Guangzhou market', '_parent'], ['../mediaroom/index.php?date=2008-04&id=78', '9 Apr 08: Office Space: Expansion Name of The Game', '_parent'], ['../mediaroom/index.php?date=2008-03&id=75', '18 Mar 08: Ready to Occupy Office Spaces at The Executive Centre - Just Bring Your Briefcase!', '_parent'], ['../mediaroom/index.php?date=2008-03&id=77', '17 Mar 08: CBN Weekly March 2008', '_parent'], ['../mediaroom/index.php?date=2008-01&id=76', '8 Jan 08: Grow Virtually with The Executive Centre', '_parent'], ['../mediaroom/index.php?date=2007-11&id=74', '13 Nov 07: The Executive Centre Opens Newest Center at Chong Hing Finance Center in Shanghai', '_parent'], ['../mediaroom/index.php?date=2007-10&id=73', '29 Oct 07: The Executive Centre is a member of the Alliance Business Networks Centers', '_parent'], ['../mediaroom/index.php?date=2007-08&id=71', '1 Aug 07: The Executive Centre Steps Up CSR Initiatives', '_parent'], ['../mediaroom/index.php?date=2007-07&id=70', '1 Jul 07: The Serviced Solution<br />\
Serviced offices in China can provide flexibility and functionality at the right price.', '_parent']]

// ===
i_ua=navigator.userAgent;
i_nS4=document.layers?1:0;
i_iE=document.all&&!window.innerWidth&&i_ua.indexOf("MSIE")!=-1?1:0;
i_oP=i_ua.indexOf("Opera")!=-1&&document.clear?1:0;
i_oP7=i_oP&&document.appendChild?1:0;
i_oP4=i_ua.indexOf("Opera")!=-1&&!document.clear;
i_kN=i_ua.indexOf("Konqueror")!=-1&&parseFloat(i_ua.substring(i_ua.indexOf("Konqueror/")+10))<3.1?1:0;
i_count=i_content.length;
i_cur=1;
i_cl=0;
i_d=i_slideDirection?-1:1;
i_TIM=0;
i_fontSize2=i_nS4&&navigator.platform.toLowerCase().indexOf("win")!=-1?i_fontSizeNS4:i_fontSize;
i_canPause=1;
function i_getOS(a)
{
	return i_iE?document.all[a].style:i_nS4?document.layers["i_container"].document.layers[a]:document.getElementById(a).style
};
function i_start()
{
	var o,px;o=i_getOS("i_1");
	px=i_oP&&!i_oP7||i_nS4?0:"px";
	if(parseInt(o.top)==i_paddingTop)
	{
		i_canPause=0;
		if(i_count>1)
			i_TIM=setTimeout("i_canPause=0;i_slide()",i_timeout);
		return
	}
	o.top=(parseInt(o.top)-i_slideStep*i_d)*i_d>i_paddingTop*i_d?parseInt(o.top)-i_slideStep*i_d+px:i_paddingTop+px;
	if(i_oP&&o.visibility.toLowerCase()!="visible")
		o.visibility="visible";
	setTimeout("i_start()",i_slideSpeed)
};
function i_slide()
{
	var o,o2,px;
	o=i_getOS("i_"+i_cur);
	o2=i_getOS("i_"+(i_cur<i_count?i_cur+1:1));
	px=i_oP&&!i_oP7||i_nS4?0:"px";
	if(parseInt(o2.top)==i_paddingTop)
	{
		if(i_oP)
			o.visibility="hidden";
		o.top=i_height*i_d+px;
		i_cur=i_cur<i_count?i_cur+1:1;
		i_canPause=1;
		i_TIM=setTimeout("i_canPause=0;i_slide()",i_timeout);
		return
	}
	if(i_oP&&o2.visibility.toLowerCase()!="visible")
		o2.visibility="visible";
	if((parseInt(o2.top)-i_slideStep*i_d)*i_d>i_paddingTop*i_d)
	{
		o.top=parseInt(o.top)-i_slideStep*i_d+px;
		o2.top=parseInt(o2.top)-i_slideStep*i_d+px
	}
	else
	{
		o.top=-i_height*i_d+px;
		o2.top=i_paddingTop+px
	}
	setTimeout("i_slide()",i_slideSpeed)};
	if(i_nS4||i_iE||i_oP||document.getElementById&&!i_kN&&!i_oP4)
	{
		document.write("<style>.inewsticker,a.inewsticker{font-family:"+i_font+";font-size:"+i_fontSize2+";color:"+i_fontColor+";text-decoration:"+i_textDecoration+";font-weight:"+i_fontWeight+"}a.inewsticker:hover{font-family:"+i_font+";font-size:"+i_fontSize2+";color:"+i_fontColorHover+";text-decoration:"+i_textDecorationHover+"}</style>");
		i_temp="<div "+(i_nS4?"name":"id")+"=i_container style='position:"+i_position+";top:"+i_top+"px;left:"+i_left+"px;width:"+i_width+"px;height:"+i_height+"px;background:"+i_bgColor+";layer-background"+(i_bgColor.indexOf("url(")==0?"-image":"-color")+":"+i_bgColor+";clip:rect(0,"+i_width+","+i_height+",0);overflow:hidden'>"+(i_iE?"<div style='position:absolute;top:0px;left:0px;width:100%;height:100%;clip:rect(0,"+i_width+","+i_height+",0)'>":"");
		for(i_i=0;i_i<i_count;i_i++)
			i_temp+="<div "+(i_nS4?"name":"id")+"=i_"+(i_i+1)+" style='position:absolute;top:"+(i_height*i_d)+"px;left:"+i_paddingLeft+"px;width:"+(i_width-i_paddingLeft*2)+"px;height:"+(i_height-i_paddingTop*2)+"px;clip:rect(0,"+(i_width-i_paddingLeft*2)+","+(i_height-i_paddingTop*2)+",0);overflow:hidden"+(i_oP?";visibility:hidden":"")+";text-align:"+i_textAlign+"' class=inewsticker>"+(!i_nS4?"<table width="+(i_width-i_paddingLeft*2)+" height="+(i_height-i_paddingTop*2)+" cellpadding=0 cellspacing=0 border=0><tr><td width="+(i_width-i_paddingLeft*2)+" height="+(i_height-i_paddingTop*2)+" align="+i_textAlign+" valign="+i_textVAlign+" class=inewsticker>":"")+(i_content[i_i][0]!=""?"<a href='"+i_content[i_i][0]+"' target='"+i_content[i_i][2]+"' class=inewsticker"+(i_pauseOnMouseOver?" onmouseover='if(i_canPause&&i_count>1){clearTimeout(i_TIM);i_cl=1}' onmouseout='if(i_canPause&&i_count>1&&i_cl)i_TIM=setTimeout(\"i_canPause=0;i_slide();i_cl=0\","+i_timeout+")'":"")+">":"<span"+(i_pauseOnMouseOver?" onmouseover='if(i_canPause&&i_count>1){clearTimeout(i_TIM);i_cl=1}' onmouseout='if(i_canPause&&i_count>1&&i_cl)i_TIM=setTimeout(\"i_canPause=0;i_slide();i_cl=0\","+i_timeout+")'":"")+">")+i_content[i_i][1]+(i_content[i_i][0]!=""?"</a>":"</span>")+(!i_nS4?"</td></tr></table>":"")+"</div>";i_temp+=(i_iE?"</div>":"")+"</div>";
	document.write(i_temp);
	setTimeout("i_start()",500);
	if(i_nS4)onresize=function()
	{
		location.reload()
	}
}
