var arrLabel=new Array()
arrLabel[0]=new SetProperty("首页","/index.htm","/index.htm")
arrLabel[1]=new SetProperty("会展信息化","/Solution/eim.asp","/Solution/")
//arrLabel[2]=new SetProperty("企业信息化","/office/home.asp","/office/")
//arrLabel[2]=new SetProperty("软件产品","/soft/","/soft/")
//arrLabel[3]=new SetProperty("专业服务","/service","/service/")
arrLabel[2]=new SetProperty("关于优品","/about/aboutus.asp","/about/")

var arrSubInfo=new Array()
arrSubInfo[0]=new Array()
arrSubInfo[1]=new Array()
arrSubInfo[2]=new Array()
arrSubInfo[3]=new Array()
//arrSubInfo[4]=new Array()
arrSubInfo[0][0]=new SetSubInfo("会展软件解决方案首页","/Solution/eim.asp")
arrSubInfo[0][1]=new SetSubInfo("★展览管理软件解决方案","/Solution/eim-event.asp")
arrSubInfo[0][2]=new SetSubInfo("★商务会议管理软件解决方案","/Solution/eim-meeting.asp")
arrSubInfo[0][3]=new SetSubInfo("★会展中心管理软件解决方案","/Solution/eim-center.asp")
arrSubInfo[0][4]=new SetSubInfo("★会展教学模拟软件解决方案","/Solution/eim-education.asp")
arrSubInfo[0][5]=new SetSubInfo("会展登记管理软件解决方案","/Solution/eim-register.asp")
arrSubInfo[0][6]=new SetSubInfo("会展现场制卡门禁解决方案","/Solution/eim-access.asp")
arrSubInfo[0][7]=new SetSubInfo("会展在线站点管理解决方案","/Solution/eim-onsite.asp")
arrSubInfo[0][8]=new SetSubInfo("买家数据管理解决方案","/Solution/eim-data.asp")
arrSubInfo[0][9]=new SetSubInfo("会展供求配对软件解决方案","/Solution/eim-match.asp")
arrSubInfo[1][0]=new SetSubInfo("企业信息化概述","/office/home.asp")
arrSubInfo[1][1]=new SetSubInfo("企业信息化ABC","/office/abc.asp")
arrSubInfo[1][2]=new SetSubInfo("IT 基础架构解决方案","/office/it.asp")
arrSubInfo[1][3]=new SetSubInfo("配套软件解决方案与实施","/office/soft.asp")
arrSubInfo[1][4]=new SetSubInfo("软件产品","/soft/")
arrSubInfo[1][5]=new SetSubInfo("专业服务","/service/")
//arrSubInfo[2][0]=new SetSubInfo("★会展企业信息化管理解决方案","/Solution/eim.asp")
//arrSubInfo[2][1]=new SetSubInfo("物业管理解决方案","/soft/ipm.asp")
//arrSubInfo[2][2]=new SetSubInfo("房产经纪/中介管理解决方案","/soft/ham.asp")
//arrSubInfo[2][3]=new SetSubInfo("优品收银管理解决方案","/soft/ups.asp")
//arrSubInfo[3][0]=new SetSubInfo("软件开发及整体布署","/service/soft.asp")
//arrSubInfo[3][1]=new SetSubInfo("软件包装与流程优化","/service/casing.asp")
//arrSubInfo[3][2]=new SetSubInfo("商务网站与数码媒体设计","/multimedia/index.asp")
//arrSubInfo[3][3]=new SetSubInfo("其他专业服务","/service/other.asp")
arrSubInfo[2][0]=new SetSubInfo("优品科技简介","/about/aboutus.asp")
//arrSubInfo[2][1]=new SetSubInfo("典型客户","/case/")
arrSubInfo[2][1]=new SetSubInfo("联系我们","/contact/contactus.asp")
arrSubInfo[2][2]=new SetSubInfo("网站地图","/navigator.htm")

/////输出导航条
function OutputTop(){
var Output

Output ='<table width="990" bgcolor="#ffffff">'
Output+='          <tr> '
Output+='  <td colspan="2" class="topstyle">'
//Output+='	<dl><dt><a href="/office/home.asp"><img src="/image/mosslogo.gif" alt="企业协作门户解决方案"></a></dt><dd>基于微软MOSS平台部署企业协作门户</dd></dl>'
Output+='	<dl><dt><a href="/Solution/eim.asp"><img src="/image/eop.gif" alt="会展项目门户解决方案"></a></dt><dd>会展全时服务门户解决方案</dd></dl>'
Output+='	<dl><dt><a href="/Solution/eim.asp"><img src="/image/eimlogo.gif" alt="展览会议管理软件解决方案"></a></dt><dd>会展行业管理软件集成解决方案实施</dd></dl>'
Output+='	<dl style="border:0;margin-top:15px;float:left;"><img src="/image/slogen.gif"></dl>'
Output+='			 </td>'
Output+='          </tr>'
Output+='          <tr bgcolor="#003399"> '
Output+='            <td colspan="2" height="8" background="/Image/minibg.gif"></td>'
Output+='          </tr>'
Output+='          <tr class="UPeanBlueBg"> '
Output+='            <td width="778" style="text-align:left;padding-left:77px;border-bottom:16px #fff solid;vertical-align:bottom;">'
Output+=                  ShowLabel()
Output+='            </td>'
Output+='            <td style="padding:4px;border-bottom:16px #fff solid;text-align:right;">'+ ShowDate() +'</td>'
Output+='          </tr>'
Output+='          <tr> '
Output+='  <td colspan="2" style="border-bottom:0px #000 solid;">'
Output+='          </tr> '
Output+='        </table>'
Output+='<div id="Triangle" style="position:absolute; visibility:hidden"><img src="/Image/triangle.gif"></div>'


document.write (Output)
CreateSub()
}


////输出广告条
function OutputChannelAd(){
var Output
var ImageFile
var ImageUrl
var aAd=new Array(new Array("/Image/ChannelAd/pic0.gif","/solution/eim.asp"),new Array("/Image/ChannelAd/pic0.gif","/solution/eim.asp"),new Array("/Image/ChannelAd/pic1.gif","/solution/eim.asp"),new Array("/Image/ChannelAd/pic2.gif","/solution/eim.asp"),new Array("/Image/ChannelAd/pic3.gif","/solution/eim.asp"))


//====================================================
//产生随机图片名
//====================================================
num=Math.floor(Math.random()*(aAd.length+1))
if (num==0) num=1
ImageFile=aAd[num-1][0]
ImageUrl=aAd[num-1][1]
//====================================================

Output ='<table width="990">'
Output+='          <tr> '
Output+='            <td bgcolor="#ffffff"><a href="'+ImageUrl+'"><img border="0" src="'+ImageFile+'"></a></td>'
Output+='            <td bgcolor="#ffffff"><a href="/contact/contactus.asp"><img border="0" src="/Image/contact.gif"></a></td>'
//Output+='            <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="211" height="106">'
//Output+='    <param name="movie" value="/Image/ruty.swf">'
//Output+='    <param name="quality" value="high">'
//Output+='    <embed src="/Image/ruty.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="211" height="106"></embed></object></td>'
Output+='          </tr>'
Output+='          <tr> '
Output+='            <td colspan="2" bgcolor="#ffffff" align="right" style="padding:6 10 6 0;border-bottom:1px #666666 solid;"><a href="mailto:upean@vip.sina.com"><img src="/image/mail.gif" border="0" alt="现在email优品"></a>&nbsp;&nbsp;<img src="/image/tel.gif" alt="联系优品"></td>'
Output+='          </tr>'
Output+='        </table>'
document.write (Output)
}

/////输出页脚
function OutputFoot(){

var Output
var d = new Date()

Output ='<table width="990">'
Output+='          <tr> '
Output+='            <td bgcolor="#666666" height="1"></td>'
Output+='          </tr>'
Output+='          <tr> '
Output+='            <td align="center" height="25"> | '
Output+='              <a href="/about/aboutus.asp">关于优品</a> | '
Output+='              <a href="/contact/contactUs.asp">联系我们</a> | '
Output+='              <a href="/linkages.htm">友情链接</a> | '
Output+='              <a href="/navigator.htm">网站地图</a> | '
Output+='            </td>'
Output+='          </tr>'
Output+='          <tr> '
Output+='            <td bgcolor="#666666" height="1"></td>'
Output+='          </tr>'
Output+='          <tr> '
Output+='            <td align="center" bgcolor="#DFDFDF" style="padding:6 0 6 0;"><a href=http://www.miibeian.gov.cn target=_blank>沪ICP备05028124号</a> <font size="-6" face="Arial, Helvetica, sans-serif">&copy;   2002-'
Output+=d.getYear()
Output+=',UPean Solutions Ltd. All rights reserved <br>电话: 021- 52393698 ,传真: 021-52393654,节假日请联系值班电话：189-6409-6917</font></td>'
Output+='          </tr>'
Output+='        </table>'
document.write (Output)
}


function RightList(){

var Output
Output ='<table width="100%" bgcolor="#ffffff">'
Output+='                <tr> '
Output+='                  <td>'
Output+='<a href="/Solution/eim.asp" target="_blank"><img src="/Image/eimhome.jpg" alt="会展、会议、节庆组办者发展的强大引擎--EIM会展信息管理软件..." width="211" height="170" border="0" style="border-bottom:3 #ffffff solid;"></a><br>'
Output+='<a href="/office/home.asp" target="_blank"><img src="/Image/moss.gif" alt="企业信息化基础平台--企业协作平台--基于MS MOSS2007构建..." width="211" border="0"></a> '
Output+=' </td>'
Output+='                </tr>'
Output+='              </table>'
Output+='<table width="100%">'
Output+='                  <tr> '
Output+='                    <td colspan="2" bgcolor="#A0A0A0"><img src="none.htm" width="1" height="1"></td>'
Output+='                  </tr>'
Output+='                  <tr> '
Output+='                    <td colspan="2"><img src="none.htm" width="1" height="2"></td>'
Output+='                  </tr>'
Output+='                <tr> '
Output+='                  <td width="15" height="25" bgcolor="#bbbbbb">&nbsp;</td>'
Output+='                  <td bgcolor="#bbbbbb"><B>方案与产品</B></td>'
Output+='                </tr>'
Output+='                <tr> '
Output+='                  <td>&nbsp;</td>'
Output+='                  <td valign="top"><img src="/Image/triangle1.gif" width="12" height="8"></td>'
Output+='                </tr>'
Output+='              </table>'
Output+='<center>'
Output+='                <table width="90%">'
Output+='                  <tr> '
Output+='                          <td><img src="/Image/hot.gif">&nbsp;<b>会展管理软件解决方案</b><br>'
Output+='                            优品EIM会展信息管理专家<br><a href="/solution/eim.asp"><img src="/Image/more_4.gif" width="39" height="13" border="0"></a> '
Output+='                          </td>'
Output+='                  </tr>'
Output+='                  <tr> '
Output+='                    <td height="8" ></td>'
Output+='                  </tr>'
Output+='                  <tr> '
Output+='                    <td height="1" background="/Image/Dot_3.gif"><img src="none.htm" width="1" height="1"></td>'
Output+='                  </tr>'
Output+='                  <tr> '
Output+='                    <td height="8" ></td>'
Output+='                  </tr>'
Output+='                  <tr> '
Output+='                          <td><b>物业管理综合信息管理解决方案</b><br>'
Output+='                            优品IPM物业智能管理专家<br><a href="/solution/ipm.asp"><img src="/Image/more_4.gif" width="39" height="13" border="0"></a><img src="none.htm" width="40" height="1"> '
Output+='                          </td>'
Output+='                  </tr>'
Output+='                  <tr> '
Output+='                    <td height="8" ></td>'
Output+='                  </tr>'
Output+='                  <tr> '
Output+='                    <td height="1" background="/Image/Dot_3.gif"><img src="none.htm" width="1" height="1"></td>'
Output+='                  </tr>'
Output+='                  <tr> '
Output+='                    <td height="8" ></td>'
Output+='                  </tr>'
Output+='                  <tr> '
Output+='                          <td><b>优品房产中介/经纪管理解决方案</b><br>'
Output+='                            优品房产中介/经纪管理软件系统<a href="/solution/ham.asp"><img src="/Image/more_4.gif" width="39" height="13" border="0"></a> '
Output+='                          </td>'
Output+='                  </tr>'
Output+='                  <tr> '
Output+='                    <td height="8" ></td>'
Output+='                  </tr>'
Output+='                  <tr> '
Output+='                    <td height="1" background="/Image/Dot_3.gif"><img src="none.htm" width="1" height="1"></td>'
Output+='                  </tr>'
Output+='                  <tr> '
Output+='                    <td height="8" ></td>'
Output+='                  </tr>'
Output+='                  <tr> '
Output+='                          <td><b>Upean前台收银解决方案</b><br>'
Output+='                            优品UPS前台收银系统<br><a href="/solution/ups.asp"><img src="/Image/more_4.gif" width="39" height="13" border="0"></a> '
Output+='                          </td>'
Output+='                  </tr>'
Output+='                  <tr> '
Output+='                    <td height="8" ></td>'
Output+='                  </tr>'
Output+='                </table>'				
Output+='	</center>'
Output+='<table width="100%">'
Output+='                  <tr> '
Output+='                    <td colspan="2" bgcolor="#A0A0A0"><img src="none.htm" width="1" height="1"></td>'
Output+='                  </tr>'
Output+='                  <tr> '
Output+='                    <td colspan="2"><img src="none.htm" width="1" height="2"></td>'
Output+='                  </tr>'
Output+='                  <tr> '
Output+='                  <td width="15" height="25" bgcolor="#bbbbbb">&nbsp;</td>'
Output+='                  <td bgcolor="#bbbbbb"><B>专业服务</B></td>'
Output+='                  </tr>'
Output+='                  <tr> '
Output+='                    <td>&nbsp;</td>'
Output+='                    <td valign="top"><img src="/Image/triangle1.gif" width="12" height="8"></td>'
Output+='                  </tr>'
Output+='                </table>'
Output+='                          <table width="100%">'
Output+='                      <tr> '
Output+='                        <td width="18"></td>'
Output+='                        <td><a href="/service/soft.asp">-&nbsp;软件开发及整体布署</a></td>'
Output+='                      </tr>'
Output+='                      <tr> '
Output+='                        <td></td>'
Output+='                        <td><a href="/service/design.asp">-&nbsp;网站建设与多媒体</a></td>'
Output+='                      </tr>'
Output+='                      <tr> '
Output+='                        <td></td>'
Output+='                        <td><a href="/service/casing.asp">-&nbsp;软件包装与流程优化</a></td>'
Output+='                      </tr>'
Output+='                      <tr> '
Output+='                        <td></td>'
Output+='                        <td><a href="/service/other.asp">-&nbsp;其他专业服务</a></td>'
Output+='                      </tr>'
Output+='                    </table><br>'

Output+='<table width="100%">'
Output+='                  <tr> '
Output+='                    <td colspan="2" bgcolor="#A0A0A0"><img src="none.htm" width="1" height="1"></td>'
Output+='                  </tr>'
Output+='                  <tr> '
Output+='                    <td colspan="2"><img src="none.htm" width="1" height="2"></td>'
Output+='                  </tr>'
Output+='                  <tr> '
Output+='                  <td width="15" height="25" bgcolor="#bbbbbb">&nbsp;</td>'
Output+='                  <td bgcolor="#bbbbbb"><B>客户服务</B></td>'
Output+='                  </tr>'
Output+='                  <tr> '
Output+='                    <td>&nbsp;</td>'
Output+='                    <td valign="top"><img src="/Image/triangle1.gif" width="12" height="8"></td>'
Output+='                  </tr>'
Output+='                </table>'

Output+=' <table width="100%" border="0" cellspacing="0" cellpadding="2">'
Output+='                       <tr> '
Output+='                         <td width="10">&nbsp;</td>'
Output+='                         <td valign="top">优品提供全方位的客户咨询与技术服务，有任何需求请致电：<strong><font color="#333399" face="Arial, Helvetica, sans-serif">8621-5239&nbsp;3698</font></strong>，节假日请联系值班电话：139 163 84772周先生，或发送电子邮件至：<a href="mailto:upean@vip.sina.com "><font color="#333399" face="Arial, Helvetica, sans-serif">upean@vip.sina.com</font> '
Output+='                           </a></td>'
Output+='                         <td width="10">&nbsp;</td>'
Output+='                      </tr>'
Output+='                      <tr>'
Output+='                       <td rowspan="2">&nbsp;</td>'
Output+='                       <td align="right"><a href="../contact/contactUs.asp"><img src="/Image/more_4.gif" width="39" height="12" border="0"></a></td>'
Output+='                        <td rowspan="2">&nbsp;</td>'
Output+='                      </tr>'
Output+='                      <tr>'
Output+='                       <td height="8" align="right">'
Output+=' 						</td>'
Output+='                      </tr>'
Output+='                     </table>'

document.write (Output)	
}
////////////////////////////////////////////////////////////////////

function ShowLabel(){

	var temp
	temp ='<table border=0 cellpadding=0 cellspacing=0 height="18" id="TBLabel">'
	temp+='  <tr>'
/////////导航栏的样式在此处修改////////////
	for (i=0;i<arrLabel.length;i++){
		temp+='<td style="padding:3px 20px 3px 20px;font-weight:bold;" onmouseover="OverLabel(this)" onmouseout="ResetBg(this)">'
		temp+='  <a class="UPeanYellowLink" href="'+ arrLabel[i].Link +'">'		
		temp+=      arrLabel[i].Content
		temp+='  </a>'
		temp+='</td>'
	}
	
	temp+='  </tr>'
	temp+='</table>'
		
	return temp
}
function SetProperty(Content,Link,Key){
	this.Content=Content
	this.Link=Link
	this.Key=Key
}

function SetSubInfo(Content,Link){
	this.Content=Content
	this.Link=Link
}
function CreateSub(){
	var Output
	for (var i=0; i<arrSubInfo.length; i++){
		Output='<table cellpadding="0" cellspacing="0" border="0" style="visibility:hidden;position:absolute;border-bottom:4px #ffff00 solid;" id="sub'+i+'" onmouseout="SubOut(this)">'
		for (var j=0; j<arrSubInfo[i].length; j++){
			Output+='<tr>'
			Output+='  <td style="background:#000055;">'
			//此处定义导航下拉菜单的样式//
			Output+='    <span class="2ndmenu"><a href="'+arrSubInfo[i][j].Link+'">'+arrSubInfo[i][j].Content+'</a></span>'
			Output+='  </td>'
			Output+='</tr>'
		}
		Output+='</table>'		
		document.write (Output)
	}	
}
function ShowDate(){
	//arrWeek=new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat")
	arrWeek=new Array("日","一","二","三","四","五","六")
	ToDay=new Date()
	temp ='<font color="#99ccff">'
	temp+=ToDay.getYear() +"-"
	temp+=(ToDay.getMonth()+1) +"-"
	temp+=ToDay.getDate()+" "
	temp+="星期"+arrWeek[ToDay.getDay()]
	temp+='</font>'
	
	return temp
}
function SubOut(el){
	if (!el.contains(event.toElement)){
		el.style.visibility="hidden";	
		for (var i=0; i<TBLabel.rows[0].cells.length; i++){
			TDel=TBLabel.rows[0].cells[i]
			if (TDel.style.background == "#3344ff") TDel.style.background = ""
		}
	}
}
function OverLabel(el){	
 	for(var i=0; i<arrSubInfo.length; i++){
		subEl=eval("sub"+i)	
		if (subEl.style.visibility=="visible"){		
			subEl.style.visibility="hidden"	
		}
	}
	
	for (var i=0; i<TBLabel.rows[0].cells.length; i++){
		TDel=TBLabel.rows[0].cells[i]
		if (TDel.style.background == "#3344ff") TDel.style.background = ""
	}
	
	for (var i=0; i<TBLabel.rows[0].cells.length; i++){
		if (el==TBLabel.rows[0].cells[i]) {break;}
	}
	var SubName=null	
	switch(i){
		case 1:	
			SubName=sub0;break;
		case 2:	
			SubName=sub1;break;
		case 3:	
			SubName=sub2;break;
		case 4:	
			SubName=sub3;break;
		default:
			SubName=null
	}
	if (SubName != null){
		if (SubName.style.visibility == "hidden") {			
			TDTop =GetPosition(el,"Top")+0
			TDLeft=GetPosition(el,"Left")
			SubName.style.top =TDTop+el.offsetHeight
			SubName.style.left=TDLeft
			SubName.style.visibility = "visible"
		}		
	}
	if (el.style.background=="white") return
	el.style.background="#000055"
	//此处为导航栏的一级菜单鼠标放上去的背景//
}
function SetCurrLabel(el){
	for (i=0 ;i<arrLabel.length;i++){		
		ResetBg(TBLabel.rows[0].cells[i])
	}
	
	TDTop =GetPosition(el,"Top")
	TDLeft=GetPosition(el,"Left")
		
	Triangle.style.top =TDTop-Triangle.offsetHeight-1
	Triangle.style.left=TDLeft+el.offsetWidth/2-14
	
	el.style.background="white"
	el.childNodes(0).className=""
}
function GetPosition(referenceEl,direction){
	pos=0
	tmpEl=referenceEl
	while(tmpEl != null){
	    pos+=tmpEl["offset"+direction]
	    tmpEl=tmpEl.offsetParent
	}	
	return pos
}
function ResetBg(el){
	
	//if (el.style.background=="white") return
	
	for (var i=0; i<TBLabel.rows[0].cells.length; i++){
		if (el==TBLabel.rows[0].cells[i]) {break;}
	}
	var SubName=null	
	switch(i){
		case 1:	
			SubName=sub0;break;
		case 2:	
			SubName=sub1;break;
		case 3:	
			SubName=sub2;break;
		case 4:	
			SubName=sub3;break;
		case 5:	
			SubName=sub3;break;
		default:
			SubName=null
	}
	if (SubName==null) return
	toEl=event.toElement
	if (!SubName.contains(toEl)){
		SubName.style.visibility="hidden"
		if (el.style.background=="white") return
		el.style.background=""
		el.childNodes(0).className="UPeanYellowLink"
	}
}

function InitializeTriangle(){
	url=location.href	
	flag=false
	for (i=0 ;i<arrLabel.length;i++){
		if (url.indexOf(arrLabel[i].Key) != -1){
			SetCurrLabel(TBLabel.rows[0].cells[i])
			flag=true
		}
	}
	
	if (!flag) {
		SetCurrLabel(TBLabel.rows[0].cells[0])	
	}
	Triangle.style.visibility="visible"
}
