function index(){
var focus_width = 973;
var focus_height = 133;
var swf_height = focus_height; // - 30;
var pics = '/images/headflash/1.jpg|/images/headflash/2.jpg|/images/headflash/4.jpg';
tempCode='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + focus_width + '" height="' + swf_height + '">';
tempCode+='<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="/images/headflash/banner_973_133_20100629.swf"><param name="quality" value="high"><param name="bgcolor" value="#ffffff">';
tempCode+='<param name="menu" value="false"><param name=wmode value="opaque">';
tempCode+='<param name="FlashVars" value="pics=' + pics + '&borderwidth=' + focus_width + '&borderheight=' + focus_height + '">';
tempCode+='<embed src="/images/headflash/banner_973_133_20100629.swf" wmode="opaque" FlashVars="pics=' + pics + '&borderwidth=' + focus_width + '&borderheight=' + focus_height + '" menu="false" bgcolor="#ffffff" quality="high" width="' + focus_width + '" height="' + focus_height + '" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
tempCode+='</object>';
document.writeln(tempCode);
}

function menu(menuID){
if(menuID==1){
tempCode='<ul>';
tempCode+='<li><a href="/news/zwdt" target=_blank>政务动态</a></li>';
tempCode+='<li><a href="/news/ldjs" target=_blank>领导介绍</a></li>';
tempCode+='<li><a href="/news/zyzn" target=_blank>主要职能</a></li>';
tempCode+='<li><a href="/news/nsjg" target=_blank>内设机构</a></li>';
tempCode+='<li><a href="/news/rsrm" target=_blank>人事任免</a></li>';
tempCode+='<li><a href="/news/gzzd" target=_blank>规章制度</a></li>';
tempCode+='</ul>';
}else if(menuID==2){
tempCode='<ul>';
tempCode+='<li><a href="/news/gkzn" target=_blank>信息公开指南</a></li>';
tempCode+='<li><a href="/news/gkml" target=_blank>信息公开目录</a></li>';
tempCode+='<li><a href="/news/tjsj" target=_blank>统计数据</a></li>';
tempCode+='<li><a href="/news/zcfg" target=_blank>政策法规</a></li>';
tempCode+='<li><a href="/news/zsxm" target=_blank>招商项目</a></li>';
tempCode+='</ul>';
}else if(menuID==3){
tempCode='<ul>';
tempCode+='<li><a href="/news/zsyz" target=_blank>招商引资</a></li>';
tempCode+='<li><a href="/news/dwmy" target=_blank>对外贸易</a></li>';
tempCode+='<li><a href="/news/gpmy" target=_blank>公平贸易</a></li>';
tempCode+='<li><a href="/news/jlhz" target=_blank>对外交流与合作</a></li>';
tempCode+='<li><a href="/news/jmhd" target=_blank>重要经贸活动</a></li>';
tempCode+='</ul>';
}else if(menuID==4){
tempCode='<ul>';
tempCode+='<li><a href="/news/ywtz" target=_blank>业务通知</a></li>';
tempCode+='<li><a href="/news/bszn" target=_blank>办事指南</a></li>';
tempCode+='<li><a href="/news/wsbl" target=_blank>网上办理</a></li>';
tempCode+='<li><a href="/wszs.html" target=_blank>网上招商</a></li>';
tempCode+='<li><a href="/down/bgxz" target=_blank>表格下载</a></li>';
tempCode+='<li><a href="/news/ContactUs.html" target=_blank>企业建言</a></li>';
tempCode+='</ul>';
}
document.writeln(tempCode);
}

function foot(){
tempCode='<a href="/" target=_blank>首页</a> <span>|</span> ';
tempCode+='<a href="/news/PagesSurvey.html" target=_blank>网页监测</a> <span>|</span> ';
tempCode+='<a href="/news/TextIndex.html" target=_blank>纯文字索引</a> <span>|</span> ';
tempCode+='<a href="/news/SiteMap.html" target=_blank>网站地图</a> <span>|</span> ';
tempCode+='<a href="/news/PrivacyProtection.html" target=_blank>隐私保护</a> <span>|</span> ';
tempCode+='<a href="/news/Disclaimer.html" target=_blank>免责声明</a> <span>|</span> ';
tempCode+='<a href="/news/ContactUs.html" target=_blank>联系我们</a> <span>|</span> ';
tempCode+='<a href="/news/AboutUs.html" target=_blank>关于我们</a>';
document.writeln(tempCode);
}

function foot_info(){
tempCode='<table style="width:100%"><tr>';
tempCode+='<td><img style="border:0;width:71px;height:94px;" src="/images/po.gif"></td>';
tempCode+='<td align=middle width=734>Copyright 2005-2010 Meizhou Foreign Trade &amp; Economic Cooperation Bureau All Rights Reserved<br />梅州市对外贸易经济合作局 版权所有 2005-2010 本站通用网址：政府机构<!--a href="/mzwjm_adn/login.asp"><img src="Images/n/后台管理.jpg"alt="" style="height: 11px; width: 13px" /></a--><br />梅州市新思维网络技术有限公司制作及维护 电子邮箱：yijian@foshan.gov.cn 粤ICP备10239998号 </td>';
tempCode+='<td><img style="border:0;width:42px;height:49px;" src="/images/wn.gif"></td>';
tempCode+='</tr></table>';
document.writeln(tempCode);
}

function list_menu(menuID){
tempCode='<ul>';
if(menuID==1){
	tempCode+='<li><a href="/news/zwdt">政务动态</a></li>';
	tempCode+='<li><a href="/news/ldjs">领导介绍</a></li>';
	tempCode+='<li><a href="/news/zyzn">主要职能</a></li>';
	tempCode+='<li><a href="/news/nsjg">内设机构</a></li>';
	tempCode+='<li><a href="/news/rsrm">人事任免</a></li>';
	tempCode+='<li><a href="/news/gzzd">规章制度</a></li>';
}else if(menuID==2){
	tempCode+='<li><a href="/news/gkzn">信息公开指南</a></li>';
	tempCode+='<li><a href="/news/gkml">信息公开目录</a></li>';
	tempCode+='<li><a href="/news/tjsj">统计数据</a></li>';
	tempCode+='<li><a href="/news/zcfg">政策法规</a></li>';
	tempCode+='<li><a href="/news/zsxm">招商项目</a></li>';
}else if(menuID==3){
	tempCode+='<li><a href="/news/zsyz">招商引资</a></li>';
	tempCode+='<li><a href="/news/dwmy">对外贸易</a></li>';
	tempCode+='<li><a href="/news/gpmy">公平贸易</a></li>';
	tempCode+='<li><a href="/news/jlhz">对外交流与合作</a></li>';
	tempCode+='<li><a href="/news/jmhd">重要经贸活动</a></li>';
}else if(menuID==4){
	tempCode+='<li><a href="/news/ywtz">业务通知</a></li>';
	tempCode+='<li><a href="/news/bszn">办事指南</a></li>';
	tempCode+='<li><a href="/news/wsbl">网上办理</a></li>';
	tempCode+='<li><a href="/wszs.html">网上招商</a></li>';
	tempCode+='<li><a href="/down/bgxz">表格下载</a></li>';
	tempCode+='<li><a href="/news/ContactUs.html">企业建言 </a></li>';
}
tempCode+='</ul>';
document.writeln(tempCode);
}

//ajax
//创建XML对象
function createXMLHttps2(){
var ret = null;
try {ret = new ActiveXObject('Msxml2.XMLHTTP')}
catch (e) {
	try {ret = new ActiveXObject('Microsoft.XMLHTTP')}
		catch (ee) {ret = null}
	}
if (!ret&&typeof XMLHttpRequest !='undefined') ret = new XMLHttpRequest();
return ret;
}

//Ajax窗口效果
var AjaxSend="";
function AjaxGet(URL,Did,AjaxType){
var xmlhttp = createXMLHttps2();
if(!xmlhttp){alert("权限不足，请不要将当前站点列入IE黑名单且并启用通过域访问数据源！");return};
if(AjaxSend!=""){var AjaxCat="POST"}else{AjaxCat="GET"}
xmlhttp.open(AjaxCat,URL,true);
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlhttp.onreadystatechange = function() {
	if(xmlhttp.readyState==4&&xmlhttp.status==404){
		alert("目标文件不存在，加载失败!");
	};
	if(xmlhttp.readyState==4&&xmlhttp.status==500){
		alert(xmlhttp.responseText);
		alert("系统运行出错!");
	}
	if(xmlhttp.readyState==4&&xmlhttp.status==200){
		var ajaxHtml=xmlhttp.responseText;
		switch (AjaxType){
			case 0:
			//提示信息
			alert(ajaxHtml);
			clear();
			break;
			
			case 1:
			//写出信息
			$(Did).innerHTML=ajaxHtml;
			break;
		}
	}
}
xmlhttp.send(AjaxSend);
}

function clear(){
}

function FS_vote(TID,MaxNum){
	var itemsID=0;
	for(i=0;i<document.getElementsByName("Items").length;i++){
		if(document.getElementsByName("Items")[i].checked==true)itemsID=document.getElementsByName("Items")[i].value;
	}
	//alert(itemsID);
	if(itemsID==0){alert('必须至少选择一项!');return false;}
	AjaxSend="TID="+TID+"&MaxNum="+MaxNum+"&Items="+itemsID+"&no-cache="+Math.random();
	//alert(AjaxSend);
	AjaxGet('/Vote/Vote_Ajax.asp','',0)
}
