//-------------------------------------------------------------------------
// Vertical Scrolling News Ticker
// XHTML Compat
// Version 2.0
// Copyright 2006 DevDude.com
//-------------------------------------------------------------------------


var swidth=250;
var sheight=230;
var sbcolor="#FFFFFF";
var sspeed=2;

var msg='';

msg=	'<div id="textBlock">'+
'<div class="imageBlock_noWrap" style="margin-left: 5px;">'+
'<table cellpadding="0" cellspacing="0">'+
'<tr><td class="pad" colspan="2"><b><a href="/cn/products/industrial/electrical_distribution/56.htm">MM300 电动机保护系统</a></b></td></tr>'+
'<tr><td class="pad" colspan="2">&nbsp;</td></tr>'+
'<tr>'+
'<td class="image"><img src="/cn/products/industrial/electrical_distribution/imgs/index/mm300_feature.jpg" width="60" height="60" alt="MM300 电动机保护系统" /></td>'+
'<td valign="top">MM300 可提供保护、自动控制、计量、通信和高级诊断功能，其设计坚固而简洁.</td>'+
'</tr>'+
'</table>'+
'</div>'+
'</div>'+
	
'<div id="textBlock">'+
'<div class="imageBlock_noWrap" style="margin-left: 5px;">'+
'<table cellpadding="0" cellspacing="0">'+
'<tr><td class="pad" colspan="2"><b><a href="/cn/products/industrial/electrical_distribution/01.htm">EPM 5500P</a></b></td></tr>'+
'<tr><td class="pad" colspan="2">&nbsp;</td></tr>'+
'<tr>'+
'<td class="image"><img src="/cn/products/industrial/electrical_distribution/imgs/index/EPM_5500P.jpg" width="60" height="60" alt="EPM 5500P" /></td>'+
'<td valign="top">EPM 5500P 多功能电源仪表系统可以通过简单的使用界面完整访问电子能量、功率、需求以及电压、电流 和其他参数.</td>'+
'</tr>'+
'</table>'+
'</div>'+
'</div>'+			

'<div id="textBlock">'+
'<div class="imageBlock_noWrap" style="margin-left: 5px;">'+
'<table cellpadding="0" cellspacing="0">'+
'<tr><td class="pad" colspan="2"><b><a href="/cn/products/industrial/med_volt_equipment/12.htm">VB2 50KA VCB</a></b></td></tr>'+
'<tr><td class="pad" colspan="2">&nbsp;</td></tr>'+
'<tr>'+
'<td class="image"><img src="/cn/products/industrial/equipment/imgs/index/VB2_50KA_VCB.jpg" width="60" height="60" alt="VB2 50KA VCB" /></td>'+
'<td valign="top">VB2 真空断路器使用密封的真空电源断流器建立并中断初级电路.</td>'+
'</tr>'+
'</table>'+
'</div>'+
'</div>'+			
	
'<div id="textBlock">'+
'<div class="imageBlock_noWrap" style="margin-left: 5px;">'+
'<table cellpadding="0" cellspacing="0">'+
'<tr><td class="pad" colspan="2"><b><a href="/cn/products/industrial/component/42.htm">DMS-line</a></b></td></tr>'+
'<tr><td class="pad" colspan="2">&nbsp;</td></tr>'+
'<tr>'+
'<td class="image"><img src="/cn/products/industrial/component/imgs/index/dms_line_feature.jpg" width="60" height="60" alt="DMS-line" /></td>'+
'<td valign="top">微型断路器能够阻断安装位置处的任何过载电流，包括预期的短路电流.</td>'+
'</tr>'+
'</table>'+
'</div>'+
'</div>';

var resumesspeed=sspeed
function start() {
if (document.all) iemarquee(ticker);
else if (document.getElementById)
ns6marquee(document.getElementById('ticker'));
}

function iemarquee(whichdiv){
iediv=eval(whichdiv)
sheight += 50;
iediv.style.pixelTop=50
iediv.innerHTML=msg 
sizeup=iediv.offsetHeight
ieslide()
}

function ieslide(){
if (iediv.style.pixelTop>=sizeup*(-1)){
iediv.style.pixelTop-=sspeed
setTimeout("ieslide()",100)
}
else{
iediv.style.pixelTop=sheight
ieslide()
}
}

function ns6marquee(whichdiv){
ns6div=eval(whichdiv)
sheight += 50;
ns6div.style.top=sheight + "px";
ns6div.innerHTML=msg
sizeup=ns6div.offsetHeight
ns6slide()
}
function ns6slide(){
if (parseInt(ns6div.style.top)>=sizeup*(-1)){
theTop = parseInt(ns6div.style.top)-sspeed
ns6div.style.top = theTop + "px";
setTimeout("ns6slide()",100)
}
else {
ns6div.style.top = sheight + "px";
ns6slide()
}
}