document.writeln("<div id=\"GSearchcode\"><span id=\"Z_Searchcode\">");
document.writeln("<a href=\"javascript:void(0)\" onclick=\"document.getElementById(\'googleSearchUnitIframe\').style.display=\'none\';document.getElementById(\'zblog_search\').style.display=\'\';\">[Zblog]<\/a>");
document.writeln("<a href=\"javascript:void(0)\" onclick=\"document.getElementById(\'googleSearchUnitIframe\').style.display=\'\';document.getElementById(\'zblog_search\').style.display=\'none\';\">[Google]<\/a><\/span>");
if (Blog_Search_Mycode!=0){
document.writeln("<a href=\"javascript:void(0)\" onclick=\"document.getElementById(\'GGSearch\').style.display=\'block\';return false;\">[查看搜索代码]<\/a>");}
if (Blog_Search_Addsearch!=0&&(Browsername!="IE"||parseFloat(Browsertype)>6.0)){
document.writeln("<a href=\"javascript:void(0)\" onclick=\"document.getElementById(\'AddSearch\').style.display=\'block\';return false;\">[添加到浏览器]<\/a>");}
document.writeln("<\/div><br><span style=\"color:#ffffff\">.<\/span><br>");
document.writeln("<div style=\"width:600px;display:none;\" id=\"GGSearch\">");
document.writeln("<script language=\"javascript\"> ");
document.writeln("function oCopy(obj){ ");
document.writeln("obj.select(); ");
document.writeln("js=obj.createTextRange(); ");
document.writeln("js.execCommand(\"Copy\")");
document.writeln("alert(\"复制成功,请粘贴到想要显示搜索的网页!\"); ");
document.writeln("} ");
document.writeln("<\/script>  <table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">");
document.writeln("     <tr>");
document.writeln("       <th colspan=\"2\"  align=\"center\" scope=\"col\">");
document.writeln("		<span style=\"font-size: 14px; font-weight: 400\">复制搜索代码<\/span><\/th>");
document.writeln("       <\/tr>");
document.writeln("     <tr>");
document.writeln("       <th scope=\"row\" align=\"center\" height=\"100\" nowrap>");
document.writeln("		<span style=\"font-weight: 400; font-size: 14px\">搜索代码:<\/span><\/th>");
document.writeln("       <td height=\"100\"><span style=\"font-size: 14px\">");
document.writeln("		<textarea name=\"web_intro\" id=\"web_intro\" cols=\"61\" rows=\"8\" onclick=\"oCopy(this)\" style=\"font-size: 12px;width:100%\">");
document.writeln("<script language=javascript>");
document.writeln("var BLOG_HOST=\""+BLOG_HOST+"\"  \/\/你的博客地址,带“http:\/\/”和最后的“\/”,不可修改!");
document.writeln("var BLOG_HOST_SEARCH=\""+BLOG_HOST_SEARCH+"\";  \/\/你要搜索的地址,不带“http:\/\/”和最后的“\/”,可以修改为想要搜索的网址");
document.writeln("var BLOG_SEARCH_NAME=\"本站\";       \/\/站内搜索要显示的名称,可以修改");
document.writeln("<\/script>");
document.writeln("<script language=\"JavaScript\" src=\""+BLOG_HOST+"themes\/sunnymoor\/script\/searchcode0.js\"  type=\"text\/javascript\"><\/script><\/textarea><\/span><\/td>");
document.writeln("     <\/tr>");
document.writeln("     <tr>");
document.writeln("       <th scope=\"row\" align=\"center\" nowrap>");
document.writeln("		<span style=\"font-weight: 400; font-size: 14px\">简要说明:<\/span><\/th>");
document.writeln("       <td>可以修改BLOG_HOST_SEARCH的值(你要搜索的网站地址)，放入任何网页中，请不要修改BLOG_HOST的值,否则将不在你的博客上显示搜索结果!若要隐藏该代码在此处的显示，请在主题SCRIPT目录下condig.js文件中查看相关说明!<\/td>");
document.writeln("     <\/tr>");
document.writeln(" 	<tr>");
document.writeln("       <th colspan=\"2\" align=\"center\" scope=\"row\"><span style=\"font-size: 14px\">");
document.writeln("         <input name=\"fuzhi\" class=\"button\" type=\"button\" value=\"复制代码\" onclick=\"oCopy(document.getElementById(\'web_intro\'));\" \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
document.writeln("         <input name=\"guanbi\" class=\"button\" type=\"button\" value=\"关闭\" onclick=\"document.getElementById(\'GGSearch\').style.display=\'none\';\" \/><\/span><\/th><\/tr>");
document.writeln("   <\/table>");
document.writeln(" <\/div>");



function CheckRadio(theRadio){
    var theRadioLen = theRadio.length;
    var theRadioValue = false;
    if (theRadioLen == undefined){
        if (theRadio.checked){
            theRadioValue = theRadio.value;
        }
    }else{
        for (theRadioI=0;theRadioI<theRadioLen;theRadioI++){
            if (theRadio[theRadioI].checked){
                theRadioValue = theRadio[theRadioI].value;
                break;
            }
        }
    }
    return theRadioValue;
}

document.writeln("<div style=\"width:600px;display:none;\" id=\"AddSearch\">");
document.writeln("<form><table cellSpacing=\"0\" cellPadding=\"0\" width=\"100%\" align=\"center\" border=\"1\">");
document.writeln("	<tr><th scope=\"col\" align=\"center\" colSpan=\"2\"><span style=\"font-size: 14px; font-weight: 400\">添加到浏览器搜索<\/span><\/th>");
document.writeln("	<\/tr><tr><th scope=\"row\" noWrap align=\"middle\"><span style=\"font-size: 14px; font-weight: 400\">相关设置:<\/span><\/th>");
document.writeln("		<td>搜索名称：<input id=\"searchname\" value=\""+ZC_BLOG_NAME+"\" name=\"searchname\" \/>");
document.writeln("		<br \/>搜索地址：<input id=\"web\" type=\"radio\" CHECKED=\"checked\" value=\"\" name=\"sitesearch\" \/><label for=\"web\">互联网<\/label>");
document.writeln("		<input id=\"blog\" type=\"radio\" value=\""+BLOG_HOST_SEARCH+"\" name=\"sitesearch\" \/><label for=\"blog\">本博客<\/label>");
document.writeln("		<input id=\"other\" type=\"radio\" name=\"sitesearch\" \/><input onblur=\"document.getElementById(\'other\').value=this.value\" onfocus=\"document.getElementById(\'other\').checked=\'true\'\" name=\"othersite\" value=\""+BLOG_HOST_SEARCH+"\" \/><\/td>");
document.writeln("	<\/tr><tr><th scope=\"row\" noWrap align=\"middle\"><span style=\"font-size: 14px; font-weight: 400\">简要说明:<\/span><\/th>");
document.writeln("		<td>请在“搜索名称”输入浏览器上要显示的名称，在“搜索地址”选择或输入要搜索的域名（不含“http:\/\/”和最后的“\/”），然后点击“添加搜索”，即可加入到浏览器的搜索框中，当在浏览器用此引擎搜索时，将在本页上打开搜索结果!若要隐藏该代码在此处的显示，请在主题SCRIPT目录下condig.js文件中查看相关说明!<\/td>");
document.writeln("	<\/tr><tr><th scope=\"row\" align=\"center\" colSpan=\"2\"><span style=\"font-size: 14px\">");
document.writeln("		<input class=\"button\" onclick=\"window.external.AddSearchProvider(\'"+BLOG_HOST+"themes\/sunnymoor\/include\/addsearch.asp?searchname=\'+escape(document.getElementById(\'searchname\').value)+\'&sitesearch=\'+CheckRadio(this.form.sitesearch)+\'&domains="+BLOG_HOST+"')\" type=\"button\" value=\"添加搜索\" name=\"addsea\" \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
document.writeln("		<input class=\"button\" onclick=\"document.getElementById(\'AddSearch\').style.display=\'none\';\" type=\"button\" value=\"关闭\" name=\"guanbi\" \/><\/span><\/th>");
document.writeln("	<\/tr><\/table><\/form>");
document.writeln(" <\/div>");
