﻿function four_part()//受重用户四个圈的flash 
{
		document.write('<div id="Layerfour" style="position:absolute; width:130px; height:115px; z-index:100">');
        document.write('  <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="130" height="208">');
        document.write('    <param name="movie" value="/publicfiles///model/htmltemplate///cndg/images/newtitle.swf">');
        document.write('    <param name="quality" value="high">');
        document.write('    <param name="wmode" value="transparent">');
        document.write('    <embed src="/publicfiles///model/htmltemplate///cndg/images/newtitle.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="130" height="208" wmode="transparent"></embed>');
        document.write('  </object>');
        document.write('</div>');
}

function citizen()//受重用户中市民的链接路径
{
	window.location="/publicfiles/business/htmlfiles/cndg/s538/index.htm";
	//window.location="/sofpro//cms/publishjspfile/cndg/cms_0000000000000000215_tpl.jsp?requestCode=538";
}

function enterprise()//受重用户中企业的链接路径
{
	window.location="/publicfiles/business/htmlfiles/cndg/s740/index.htm";
	//window.location="/sofpro//cms/publishjspfile/cndg/cms_0000000000000000218_tpl.jsp?requestCode=740";
}


function invest()//受重用户中投资的链接路径
{
	window.location="/publicfiles/business/htmlfiles/investdggbk/index.htm";
}

function tour()//受重用户中旅游的链接路径
{
	window.location="http://www.dongguan.travel/";
	//window.location="/sofpro//cms/publishjspfile/cndg/cms_0000000000000000224_tpl.jsp?requestCode=803";
}

function toindex()//受重用户点击logo图标跳转到index页面
{
	document.write('<a href="/publicfiles/business/htmlfiles/cndg/index.htm"><img alt="返回首页" src="/publicfiles///model/htmltemplate///cndg/images/citizenindex_08.jpg" width="148" height="54" border="0"></a>');
}

function fastchannel()
{
document.write('<select name="select" onChange="location.href=this.value">');
document.write("<option selected>快速通道</option>");
document.write("<option value='/publicfiles/business/htmlfiles/cndg/s628/index.htm'>认识东莞</option>");
document.write("<option value='/publicfiles/business/htmlfiles/cndg/s331/index.htm'>政务公开</option>");
document.write("<option value='/publicfiles/business/htmlfiles/cndg/s657/index.htm'>城市特色</option>");
document.write("<option value='/publicfiles/business/htmlfiles/cndg/s712/index.htm'>政府服务</option>");
document.write("<option value='/publicfiles/business/htmlfiles/cndg/s720/index.htm'>行政监督</option>");
document.write("<option value='/publicfiles/business/htmlfiles/cndg/s727/index.htm'>参政议政</option>");
document.write("<option value='/publicfiles/business/htmlfiles/cndg/s538/index.htm'>市民</option>");
document.write("<option value='/publicfiles/business/htmlfiles/cndg/s740/index.htm'>企业</option>");
document.write("<option value='/publicfiles/business/htmlfiles/cndg/s774/index.htm'>投资</option>");
document.write("<option value='/publicfiles/business/htmlfiles/cndg/s803/index.htm'>旅游</option>");
document.write("</select>");
 
}

//首页搜索
function search_index_inc()
{
document.write("<form method=\"post\" name=\"search_form\" action=\"/sofpro/otherproject/titlesearch/allsearch.jsp\" target=\"search_window\">");
document.write("<table width=\"330\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"/publicfiles///model/htmltemplate///cndg/images/index_search_02.gif\">");
document.write("<tr>");
document.write("<td width=\"17\"><img src=\"/publicfiles///model/htmltemplate///cndg/images/index_search_01.gif\" width=\"17\" height=\"29\" alt=\"\"></td>");
document.write("<td width=\"105\"><input style=\"width:90px; height:18px; \" type=\"text\" name=\"p\"></td>");
document.write("<td width=\"92\"><select name=\"website\" style=\"width:80px; \">");
document.write("<option value='dg'> 网站群</option><option value='cndg'> 中国东莞</option>");
document.write("<option value='govinfo'> 政务信息</option><option value='dginfo'> 东莞动态</option>");
document.write("</select></td>");
document.write("<td width=\"106\"><table width=\"106\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.write("<tr>");
document.write("<td width=\"14\"><img src=\"/publicfiles///model/htmltemplate///cndg/images/index_search_06.gif\" width=\"14\" height=\"18\" alt=\"\"></td>");
document.write("<td width=\"28\" background=\"/publicfiles///model/htmltemplate///cndg/images/index_search_07.gif\"><a class=\"a\" href=\"#\" onclick=\"search_form.submit()\">搜&nbsp;索</a></td>");
document.write("<td width=\"10\"><img src=\"/publicfiles///model/htmltemplate///cndg/images/index_search_08.gif\" width=\"25\" height=\"18\" alt=\"\"></td>");
document.write("<td background=\"/publicfiles///model/htmltemplate///cndg/images/index_search_09.gif\"><a href=\"/publicfiles/business/htmlfiles/cndg/s1086/index.htm\" target=\"advanced_windows\">高&nbsp;级</a></td>");
document.write("<td><img src=\"/publicfiles///model/htmltemplate///cndg/images/index_search_10.gif\" width=\"5\" height=\"18\" alt=\"\"></td>");
document.write("</tr>");
document.write("</table></td>");
document.write("<td width=\"10\"><img src=\"/publicfiles///model/htmltemplate///cndg/images/index_search_04.gif\" width=\"10\" height=\"29\" alt=\"\"></td>");
document.write("</tr>");
document.write("</table>");
document.write("</form>");

}
//市民搜索
function search_index_inc_sm()
{
document.write("<form method=\"post\" name=\"search_form\" action=\"/sofpro/otherproject/titlesearch/allsearch.jsp\" target=\"search_window\">");
document.write("<table width=\"330\" height=\"20\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"/publicfiles///model/htmltemplate///cndg/images/index_search_02.gif\">");
document.write("<tr>");
document.write("<td width=\"17\"><img src=\"/publicfiles///model/htmltemplate///cndg/images/index_search_01.gif\" width=\"17\" height=\"29\" alt=\"\"></td>");
document.write("<td width=\"105\"><input style=\"width:90px; height:18px; \" type=\"text\" name=\"p\"></td>");
document.write("<td width=\"92\"><select name=\"website\" style=\"width:80px; \">");
document.write("<option value='dg'> 网站群</option><option value='cndg' selected> 中国东莞</option>");
document.write("<option value='govinfo'> 政务信息</option><option value='dginfo'> 东莞动态</option>");
document.write("</select></td>");
document.write("<td width=\"106\"><table width=\"106\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.write("<tr>");
document.write("<td width=\"14\"><img src=\"/publicfiles///model/htmltemplate///cndg/images/index_search_06.gif\" width=\"14\" height=\"18\" alt=\"\"></td>");
document.write("<td width=\"28\" background=\"/publicfiles///model/htmltemplate///cndg/images/index_search_07.gif\"><a class=\"a\" href=\"#\" onclick=\"search_form.submit()\">搜&nbsp;索</a></td>");
document.write("<td width=\"10\"><img src=\"/publicfiles///model/htmltemplate///cndg/images/index_search_08.gif\" width=\"25\" height=\"18\" alt=\"\"></td>");
document.write("<td background=\"/publicfiles///model/htmltemplate///cndg/images/index_search_09.gif\"><a href=\"/publicfiles/business/htmlfiles/cndg/s1086/index.htm\" target=\"advanced_windows\">高&nbsp;级</a></td>");
document.write("<td><img src=\"/publicfiles///model/htmltemplate///cndg/images/index_search_10.gif\" width=\"5\" height=\"18\" alt=\"\"></td>");
document.write("</tr>");
document.write("</table></td>");
document.write("<td width=\"10\"><img src=\"/publicfiles///model/htmltemplate///cndg/images/index_search_04.gif\" width=\"10\" height=\"29\" alt=\"\"></td>");
document.write("</tr>");
document.write("</table>");
document.write("</form>");

}
//其它页面的搜索
function search_other_inc()
{
document.write("				<form method=\"post\" name=\"search_form\" action=\"/sofpro/otherproject/titlesearch/allsearch.jsp\" target=\"search_window\">");
document.write("                  <table width=\"220\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.write("                    <tr>");
document.write("                      <td width=\"23\"><img src=\"/publicfiles///model/htmltemplate///cndg/images/DG2005_search_01.gif\" width=\"21\" height=\"27\" alt=\"\"></td>");
document.write("                      <td width=\"90\" align=\"center\"><input name=\"p\" type=\"text\" style=\"width:75px; height:22px; \" value=\"关键字\" onfocus=\"if (this.value ==this.value){this.value =''}\" onblur=\"if (this.value ==''){this.value='关键字'}\"></td>");
document.write("                      <td width=\"76\"><select name=\"website\">");
document.write("						  <option value='dg'> 网站群</option>");
document.write("						  <option value='cndg'> 中国东莞</option>");
document.write("<option value='govinfo'> 政务信息</option><option value='dginfo'> 东莞动态</option>");
document.write("						  </select></td>");
document.write("                      <td width=\"31\" align=\"center\"><input name=\"image\" type=\"image\" src=\"/publicfiles///model/htmltemplate///cndg/images/DG2005_search_03.gif\" alt=\"\" width=\"30\" height=\"27\"></td>");
document.write("                    </tr>");
document.write("                  </table>");
document.write("				</form>");
}

//受重用户的搜索
function search_other2_inc()
{
document.write("				<form method=\"get\" name=\"search_form\" action=\"/sofpro/gecs/searchagent/search_agent.jsp\" target=\"search_window\">");
document.write("						<table width=\"170\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.write("                            <tr>");
document.write("                              <td width=\"119\" align=\"center\"><input type=\"text\" name=\"p\" style=\"width:100px; height:20px; \"></td>");
document.write("                              <td width=\"61\" align=\"center\"><input name=\"image\" type=\"image\" src=\"/publicfiles///model/htmltemplate///cndg/images/citizenindex_23.gif\" width=\"47\" height=\"21\"></td>");
document.write("                            </tr>");
document.write("                        </table><input type=hidden name='s' value='dg_all'>");
document.write("				</form>");
}

function toindex2()//其它页面点击logo图标跳转到index页面
{
		window.location="cndg_index.htm";
}


function correctPNG() 
   {
   for(var i=0; i<document.images.length; i++)
      {
	  var img = document.images[i]
	  var imgName = img.src.toUpperCase()
	  if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
	     {
		 var imgID = (img.id) ? "id='" + img.id + "' " : ""
		 var imgClass = (img.className) ? "class='" + img.className + "' " : ""
		 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
		 var imgStyle = "display:inline-block;" + img.style.cssText 
		 if (img.align == "left") imgStyle = "float:left;" + imgStyle
		 if (img.align == "right") imgStyle = "float:right;" + imgStyle
		 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle		
		 var strNewHTML = "<span " + imgID + imgClass + imgTitle
		 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
	     + "LINE-HEIGHT: 17px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
		 + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
		 img.outerHTML = strNewHTML
		 i = i-1
	     }
      }
   }
//window.attachEvent("onload", correctPNG);
