﻿var interval = 10; // delay between rotating images (in seconds)
var random_display = 0; // 0 = no, 1 = yes
interval *= 1000;

var image_index = 0;
var item = new Array();

item[0]="<table width='480' align='center' Style='MARGIN-LEFT:5px'>";
item[0]+="<tr><td width='160'><a href='http://www.matrikonopc.com/drivers/universal-connectivity-server/plc-plug-ins.aspx'><img src='images/main/icons/mopc_modbus.gif' Alt='MatrikonOPC PLC通用服务器' border='0' /></a></td>";
item[0]+="<td width='320'><a class='h2_no_underline' href='http://www.matrikonopc.com/drivers/universal-connectivity-server/plc-plug-ins.aspx'>MatrikonOPC PLC 通用服务器</a>";													
item[0]+="<p><b>新一代PLC通用型OPC服务器，支持最新OPC UA规范</b><br>MatrikonOPC PLC 通用服务器是针对所有PLC 开发的一个通用型OPC服务器， 支持OPC UA和传统OPC （含DA、HDA及A&E）。它先进的基本架构默认支持了OPC冗余性、OPC安全性及高级计算功能。</p>";												
item[0]+="<div align='left' style='VERTICAL-ALIGN:bottom'><a class='orange_TextUnderlineLink' href='http://www.matrikonopc.com/drivers/universal-connectivity-server/plc-plug-ins.aspx'>";
item[0]+="<img src='images/main/icons/download.jpg' Alt='MatrikonOPC PLC通用服务器' border='0' /></a></div></td></tr>";
item[0]+="<tr><td colspan='2'><hr></td></tr></table>";

item[1]="<table width='480' align='center' Style='MARGIN-LEFT:5px'>";
item[1]+="<tr><td width='160'><a href='http://www.matrikonopc.cn/opc-server/opc-siemens-s7.aspx'><img src='images/main/icons/mopc_siemens.gif' Alt='西门子 S7 PLC OPC服务器' border='0' /></a></td>";
item[1]+="<td width='320'><a class='h2_no_underline' href='http://www.matrikonopc.cn/opc-server/opc-siemens-s7.aspx'>西门子 S7 PLC OPC 服务器</a>";													
item[1]+="<p><b>轻松访问西门子S7 家族PLC</b><br>利用开放式的工业通信标准OPC轻松访问Siemens S7家族PLC，获取您需要的过程数据。对于需要将S7 PLC与HMI、实时数据库或其它应用连接的用户来说，该西门子S7 PLC OPC服务器是您正确的选择。</p>";												
item[1]+="<div align='left' style='VERTICAL-ALIGN:bottom'><a class='orange_TextUnderlineLink' href='http://www.matrikonopc.cn/opc-server/opc-siemens-s7.aspx'>";
item[1]+="<img src='images/main/icons/download.jpg' Alt='西门子 S7 PLC OPC服务器' border='0' /></a></div></td></tr>";
item[1]+="<tr><td colspan='2'><hr></td></tr></table>";

item[2]="<table width='480' align='center' Style='MARGIN-LEFT:5px'>";
item[2]+="<tr><td width='160'><a href='http://www.matrikonopc.cn/opc-server/opc-mitsubishi-plc.aspx'><img src='images/main/icons/mopc_modbus.gif' Alt='三菱PLC OPC服务器' border='0' /></a></td>";
item[2]+="<td width='320'><a class='h2_no_underline' href='http://www.matrikonopc.cn/opc-server/opc-mitsubishi-plc.aspx'>三菱PLC OPC 服务器</a>";													
item[2]+="<p><b>获取多种三菱系列PLC的过程数据</b><br>MatrikonOPC三菱PLC服务器为多种系列（例如Q系列、A系列和FX系列）的Mitsubishi PLC 提供实时数据的访问权限，自动检测在线设备和建立通信，为用户提供最大的操作便利。</p>";												
item[2]+="<div align='left' style='VERTICAL-ALIGN:bottom'><a class='orange_TextUnderlineLink' href='http://www.matrikonopc.cn/opc-server/opc-mitsubishi-plc.aspx'>";
item[2]+="<img src='images/main/icons/download.jpg' Alt='三菱PLC OPC服务器' border='0' /></a></div></td></tr>";
item[2]+="<tr><td colspan='2'><hr></td></tr></table>";

item[3]="<table width='480' align='center' Style='MARGIN-LEFT:5px'>";
item[3]+="<tr><td width='160'><a href='http://www.matrikonopc.cn/products/opc-data-management/opc-tunneller.aspx'><img src='images/main/icons/mopc_tunneller.gif' Alt='OPC Tunneller' border='0' /></a></td>";
item[3]+="<td width='320'><a class='h2_no_underline' href='http://www.matrikonopc.cn/products/opc-data-management/opc-tunneller.aspx'>OPC Tunneller</a>";													
item[3]+="<p><b>完全解决围绕DCOM的种种难题</b><br>MatrikonOPC Tunneller使得不同网络之间的PC机可以进行轻松且安全稳定的数据通信。它完全解决DCOM设置所带来的头痛问题，不同的通信协议、不同的安全设置、不同的地理位置等因素都不会再成为您在多PC之间达成数据共享的障碍。</p>";
item[3]+="<div align='left' style='VERTICAL-ALIGN:bottom'><a class='orange_TextUnderlineLink' href='http://www.matrikonopc.cn/products/opc-data-management/opc-tunneller.aspx'>";
item[3]+="<img src='images/main/icons/download.jpg' Alt='OPC Tunneller' border='0' /></a></div></td></tr>";
item[3]+="<tr><td colspan='2'><hr></td></tr></table>";

item[4]="<table width='480' align='center' Style='MARGIN-LEFT:5px'>";
item[4]+="<tr><td width='160'><a href='http://www.matrikonopc.cn/products/opc-archiving/opc-desktop-historian.aspx'><img src='images/main/icons/mopc_historian.gif' Alt='OPC Desktop Historian (ODH)' border='0' /></a></td>";
item[4]+="<td width='320'><a class='h2_no_underline' href='http://www.matrikonopc.cn/products/opc-archiving/opc-desktop-historian.aspx'>OPC Desktop Historian (ODH)</a>";													
item[4]+="<p><b>基于不断地数据分析和报告，优化生产</b><br>如果缺乏足够的时间、资源和资金来安装和实施大型的企业级实时数据库， OPC Desktop Historian （ODH） 可以帮助您实现存储、分析过程数据的目的，却保持快速简单的安装及设置。</p>";												
item[4]+="<div align='left' style='VERTICAL-ALIGN:bottom'><a class='orange_TextUnderlineLink' href='http://www.matrikonopc.cn/products/opc-archiving/opc-desktop-historian.aspx'>";
item[4]+="<img src='images/main/icons/download.jpg' Alt='OPC Desktop Historian (ODH)' border='0' /></a></div></td></tr>";
item[4]+="<tr><td colspan='2'><hr></td></tr></table>";

var current = 0;
var theTime;
var nextCount = 0;
var prevCount = 0;
var dID = document.getElementById && !document.all;

var element;

function changeItem()
{
	if(document.layers){
		alert('layers');
		document.layer1.document.write(item[current]);
		document.layer1.document.close();
	}
	
	element = document.getElementById('rotator');
	element.innerHTML = item[current];

	if (current==4) 
	{
		current=0;
	}
	else
	{
		current++;
	}
	theTime = setTimeout("changeItem()",interval);
}

function goPrev()
{	
	clearTimeout(theTime);
		
	if (current == 0)
	{
		current = 3;
	}
	else if (current == 1)
	{
		current = 4;
	}	
	else
	{
		current = current - 2;
	}

	changeItem();	
}

function goNext()
{
	clearTimeout(theTime);
	changeItem();
}



