﻿/*
Tabs Menu (mouseover)- By Dynamic Drive
For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
This credit MUST stay intact for use
*/

var submenu=new Array();

//Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.
//20080505删除 关于LOUD 
//    | <a href="Template_list.aspx?System_ID=2&SymID=6">关于LOUD</a>
submenu[0]='<a href="Template_list.aspx?System_ID=2&SymID=3">企业简介</a> | <a href="Template_list.aspx?System_ID=2&SymID=4">企业文化</a> | <a href="Template_list.aspx?System_ID=2&SymID=5">公司架构</a> ';
submenu[1]='<a href="News_list.aspx?System_ID=7&SymID=8">产品新闻</a> | <a href="News_list.aspx?System_ID=7&SymID=9">最新案例</a> | <a href="News_list.aspx?System_ID=7&SymID=10">公司活动</a> | <a href="News_list.aspx?System_ID=7&SymID=11">企业公告</a>';
submenu[2]='<a href="product_list.aspx?pid=1">MACKIE</a> | <a href="product_list.aspx?pid=2">EAW</a> | <a href="product_list.aspx?pid=3">EAWC</a> | <a href="product_list.aspx?pid=4">ALVAREZ</a> | <a href="product_list.aspx?pid=5">TAPCO</a> | <a href="product_list.aspx?pid=6">CRATE</a> | <a href="product_list.aspx?pid=7">AMPEG</a> | <a href="product_list.aspx?pid=8">SIA</a>';
submenu[3]='<a href="project_list.aspx?System_ID=12&SymID=13">国外案例</a> | <a href="project_list.aspx?System_ID=12&SymID=14">国内案例</a> | <a href="project_list.aspx?System_ID=12&SymID=15">应用分类</a>';
submenu[4]='<a href="jishu.aspx?pid=1">分类下载</a>';
submenu[5]='<a href="IsValid.aspx?pid=1">产品验证</a>';
submenu[6]='<a href="submit_Order.aspx?pid=1">网上订单</a> | <a href="connect_us.aspx?pid=1">联系我们</a>';

//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=200000;

/////No need to edit beyond here

//var menuobj=document.getElementById("menulayer");

function showit(which){
clear_delayhide();
//var objmenu=document.getElementById("menulayer");
if(which == -1)
{
	firstobj.style.background = "url(Images/pic_company2.gif)";	
}
if(which == 0)
{
	secondobj.style.background = "url(Images/pic_company2.gif)";
}
if(which == 1)
{
	thirdobj.style.background = "url(Images/pic_company2.gif)";
}
if(which == 2)
{
	forthobj.style.background = "url(Images/pic_company2.gif)";
}
if(which == 3)
{
	fiveobj.style.background = "url(Images/pic_company2.gif)";
}
if(which == 4)
{
	sixobj.style.background = "url(Images/pic_company2.gif)";
}
if(which == 5)
{
	senvenobj.style.background = "url(Images/pic_company2.gif)";
}
if(which == 6)
{
	eightobj.style.background = "url(Images/pic_company2.gif)";
}
var thecontent=(which==-1)? "" : submenu[which];
if (document.getElementById||document.all)
{
	menuobj.innerHTML=thecontent;
}
else if (document.layers){
	menuobj.document.write(thecontent);
	menuobj.document.close();
}
}

function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
{
	delayhide=setTimeout("showit(-1)",delay_hide);
}
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
{
	delayhide=setTimeout("showit(-1)",delay_hide);
}
}

function clear_delayhide(){
firstobj.style.background="url(Images/pic_company1.gif)";
secondobj.style.background="url(Images/pic_company1.gif)";
thirdobj.style.background="url(Images/pic_company1.gif)";
forthobj.style.background="url(Images/pic_company1.gif)";
fiveobj.style.background="url(Images/pic_company1.gif)";
sixobj.style.background="url(Images/pic_company1.gif)";
senvenobj.style.background="url(Images/pic_company1.gif)";
eightobj.style.background="url(Images/pic_company1.gif)";
if (window.delayhide)
clearTimeout(delayhide);
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
{
	return true;
}
else
{
	return false;
}
}
