function doZoom(size)
{
	document.getElementById('zoom').style.fontSize=size+'px'

	}

var currentpos,timer;

function initialize()
{
timer=setInterval("scrollwindow()",50);
}
function sc(){
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos != document.body.scrollTop)
sc();
}
document.onmousedown=sc
document.ondblclick=initialize
////////////////////////////////////	以下是广告位
		
function left_ad1()//左边上
{
document.write("<a href='127.0.0.1' target=_blank><img src='/files/ad/aigo.gif' border='0' alt='爱国者存贮'></a>");
}

function left_ad2()//左边中推荐新闻和新闻回顾之间
{

}

function left_ad3() //左边下
{
document.write("<a href='127.0.0.1' target=_blank><img src='/files/ad/aigo.gif' border='0' alt='爱国者存贮'></a>");
}

function left_ad4()//左边,本类新闻和本篇题图之间
{	
   document.write("<script language=javascript src='/ads/1.js'></script>");
}

function top_ad1() //页面最顶上,通栏,也可以放多个
{

}

function top_ad2() //栏目栏下的位置 通栏
{
   document.write("<table align=center border=0 cellpadding=0 cellspacing=0><tr><td height=5 bgcolor='#ffffff'></td></tr><tr><td width='776' height='3' bgcolor='ffffff' align='center'><a href='http://www.magchina.com:8081/minisites/b71.htm' target='_blank'><img src='/files/ad/mg.gif' border='0' alt='美格'></a></td></tr><tr><td height='5' bgcolor='#ffffff'></td></tr></table>");
  
  document.write("<table align=center border=0 cellpadding=0 cellspacing=0  bgcolor='#ffffff'><tr><td width='776' height='70' align='center'><a href='http://www.samsung.com.cn/' target=_blank><img src='/files/ad/js770.gif' border='0' alt='三星笔记本'></a></td></tr><tr><td height='5'></td></tr></table>");
}

function right_ad1() //文章标题下的位置,可放多个
{

 document.write("<table align=center border=0 cellpadding=0 cellspacing=0><tr><td width='350' height='80' align='center'><embed src='/files/ad/newmanmp350080_1113.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='350' height='80'></embed></td></tr></table>");
}

function right_ad2() //文章内容结束的位置20069/20069747703_0.html

{
 
}

function right_ad3() //留言和相关新闻之间
{

   //var ss_str="<script language=javascript src='/news/news_ly_if.asp?id=" +this_id+"'></script>";  
   
   var ss_str="如果您刚发的贴子没有显示，<a href='javascript:location.reload()' target='_self'>请点此刷新本页</a><br><script language=javascript src='/news/news_ly_html/" + parseInt(parseInt(this_id) / 2000) + "/" + this_id + ".js'></script>"; 
   document.write(ss_str);

}

function right_ad5() //标题
{
   document.write("<script language=javascript src='../../master/page/2005122510464768908.js'></script>");
}

function right_ad4() //标题
{

    document.write("<table align=center border=0 cellpadding=0 cellspacing=0><tr><td width='500' height='60' align='center'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='468' height='60'><param name='movie' value='/files/ad/View5084.swf' /><param name='quality' value='high' /><embed src='/files/ad/View5084.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='500' height='60'></embed></object></td></tr></table>");

}


function bottom_ad() //底部广告位 可以放多个
{  
  document.write("<script language=javascript src='/files/ad/dl_flash.js'></script>");
}



/////////////////////////////////
	


//////////////////////////
		
function ningxiait_top() //网站顶部
{

document.write("<TABLE cellSpacing=0 cellPadding=0 width=776 bgColor=#ffffff border=0><TR><TD width=180 align=center valign='bottom'>");
document.write("<table width='100%' height='62'  border='0' cellpadding='0' cellspacing='0'><tr><td align='center' valign='bottom'><img src='Templets/images/hard/logo10.gif' width='165' height='62'></td></tr></table>");
document.write("</TD><TD vAlign=bottom align=left>");
document.write("<TABLE cellSpacing=0 cellPadding=0 width=600 align=center border=0><TR><TD width=7 height=58><img src='Templets/images/hard/imqq4_top02_041.gif' width='7' height='58'></TD>");
document.write("<TD align='center' background='Templets/images/hard/imqq4_top02_02.gif'><table width='100%'  border='0' cellpadding='0' cellspacing='0'><tr><td height='5'></td></tr></table>");
document.write("<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center border=0><TR><TD><TABLE cellSpacing=0 cellPadding=0 width='100%' border=0><TR align=middle>");
document.write("<TD width='5' height=18><BR></TD><TD width='35'><a href='127.0.0.1'><font color='#FFFFFF'>首页</font></a></TD>");
document.write("<TD width='10'><font color='#FFFFFF'>|</font></TD><TD width='35'><a href='/hard/' target='_blank'><font color='#FFFFFF'>硬件</font></a></TD>");
document.write("<TD width='10'><font color='#FFFFFF'>|</font></TD><TD width='55'><a href='http:///www.ningxiait.com/news/'><font color='#FFFFFF'>新闻</font></a></TD>");
document.write("<TD width='10'><font color='#FFFFFF'>|</font></TD><TD width='36'><a href='http://price.ningxiait.com/'><font color='#FFff00'>报价</font></a></TD>");
document.write("<TD width='10'><font color='#FFFFFF'>|</font></TD><TD width='36'><a href='/job'><font color='#FFFFFF'>招聘</font></a></TD>");
document.write("<TD width='10'><font color='#FFFFFF'>|</font></TD><TD width='36'><a href='/2s/'><font color='#FFFFFF'>二手</font></a></TD>");
document.write("<TD width='10'><font color='#FFFFFF'>|</font></TD><TD width='36'><a href='http://price.ningxiait.com'><font color='#FFFF00'>商家</font></a></TD>");
document.write("<TD width='10'><font color='#FFFFFF'>|</font></TD><TD width='55'><a href='/map/'><font color='#FFFFFF'>电脑城</font></a></TD>");
document.write("<TD width='10'><font color='#FFFFFF'>|</font></TD><TD width='36'><a href='http://blog.ningxiait.com/' target='_blank'><font color='#FFFFFF'>博客</font></a></TD>");
document.write("<TD width='10'><font color='#FFFFFF'>|</font></TD><TD width='55'><a href='http://bbs.ningxiait.com' target='_blank'><font color='#FFFFFF'>论坛</font></a></TD>");
document.write("<TD width='20' colspan='2'></TD></TR></TABLE></TD></TR><TR><TD height=1></TD></TR>");
document.write("<TR><TD><TABLE cellSpacing=0 cellPadding=0 width='100%' border=0><TR align=middle><TD width='5' height=18><BR></TD>");
document.write("<TD width='35'><a href='/game/'><font color='#FFFFFF'>游戏</font></a></TD>");
document.write("<TD width='10'><font color='#FFFFFF'>|</font></TD><TD width='35'><a href='/digi/'><font color='#FFFFFF'>数码</font></a></TD>");
document.write("<TD width='10'><font color='#FFFFFF'>|</font></TD><TD width='55'><a href='/pc/'><font color='#FFFFFF'>整机</font></a></TD>");
document.write("<TD width='10'><font color='#FFFFFF'>|</font></TD><TD width='36'><a href='/mp3/'><font color='#FFFFFF'>MP3</font></a></TD>");
document.write("<TD width='10'><font color='#FFFFFF'>|</font></TD><TD width='36'><a href='/mobile/'><font color='#FFFFFF'>手机</font></a></TD>");
document.write("<TD width='10'><font color='#FFFFFF'>|</font></TD><TD width='36'><a href='/Mp4/'><font color='#FFFFFF'>MP4</font></a></TD>");
document.write("<TD width='10'><font color='#FFFFFF'>|</font></TD><TD width='36'><a href='/oa/'><font color='#FFFFFF'>办公</font></a></TD>");
document.write("<TD width='10'><font color='#FFFFFF'>|</font></TD><TD width='36'><a href='/nb/'><font color='#FFFFFF'>笔记本</font></a></TD>");
document.write("<TD width='10'><font color='#FFFFFF'>|</font></TD><TD width='36'><a href='/net/'><font color='#FFFFFF'>网络</font></a></TD>");
document.write("<TD width='10'><font color='#FFFFFF'>|</font></TD><TD width='55'><a href='/edu/'><font color='#FFFFFF'>学院</font></a></TD>");
document.write("<TD width='20' colspan='2'></TD></TR> </TABLE></TD>");
document.write("</TR></TABLE></TD><TD width='7'><IMG height=58 src='Templets/images/hard/imqq4_top02_04.gif' width=7></TD> </TR></TABLE>");

document.write("<table width='100%'  border='0' cellpadding='0' cellspacing='0'><tr><td height='5'></td></tr></table></TD> </TR></TABLE>");


}

function ningxiait_bottom() //网站底部
{
document.write("<table width='776' border='0' align='center' cellpadding='0' cellspacing='2' bgcolor='#FFFFFF'><tr> <td valign='top' bgcolor='#3366CC' height='15' width='110'> <div align='center'><font color='#FFFFFF'>【合作伙伴】</font></div></td><td valign='top' height='15' width='124'><div align='center'></div></td><td valign='top' height='15' width='125'> <div align='center'></div></td><td valign='top' height='15' width='129'><div align='center'></div></td><td valign='top' height='15' width='153'> <div align='center'></div></td><td valign='top' height='15' width='121'> ");
document.write("<div align='center'></div></td></tr> <tr VALIGN='MIDDLE'> <td width='110' height='20' bgcolor='#E3EEE6'><div align='center'><A HREF='http://www.zol.com.cn/' TARGET='_blank'>中关村在线</A></div></td><td width='124' height='20' bgcolor='#E3EEE6'><div align='center'><A HREF='http://www.pconline.com.cn' TARGET='_blank'>太平洋电脑网</A></div></td><td width='125' height='20' bgcolor='#E3EEE6'><div align='center'><A HREF='http://www.beareyes.com.cn/' TARGET='_blank'>小熊在线</A></div></td><td width='129' height='20' bgcolor='#E3EEE6' ALIGN='CENTER'><A HREF='http://www.it168.com/' TARGET='_blank'>IT168</A></td><td width='153' height='20' bgcolor='#E3EEE6' ALIGN='CENTER'><A HREF='http://hardware.enet.com.cn/' TARGET='_blank'>eNet硬件资讯</A></td><td width='121' height='20' bgcolor='#E3EEE6' ALIGN='CENTER'><a href='http://www.pcpop.com/' TARGET='_blank'>泡泡PCPOP.COM</a></td></tr>"); 
document.write("<tr VALIGN='MIDDLE'> <td width='110' bgcolor='#E3EEE6' HEIGHT='20'> <div align='center'><a href='http://www.nx.cninfo.net/' target='_blank'>宁夏信息港</a></div></td><td width='124' bgcolor='#E3EEE6' HEIGHT='20'><div align='center'><A HREF='http://www.nxnews.net/' TARGET='_blank'>宁夏新闻网</A></div></td><td width='125' bgcolor='#E3EEE6' HEIGHT='20'><div align='center'><A HREF='http://www.nxnet.net/' TARGET='_blank'>宁夏日报</A></div></td><td width='129' bgcolor='#E3EEE6' HEIGHT='20'><div align='center'><A HREF='http://www.nx.xinhuanet.com/' TARGET='_blank'>新华网宁夏频道</A></div></td><td width='153' bgcolor='#E3EEE6' HEIGHT='20'> ");
document.write("<div align='center'></div></td><td width='121' bgcolor='#E3EEE6' HEIGHT='20'><div align='center'> </div></td></tr> </table><table cellspacing=0 cellpadding=0 width=776 align=center bgcolor=#086dcf border=0><tr> <td align=middle> <table cellspacing=0 cellpadding=5 align=center border=0 width='80%'><tr> <td style='FONT-SIZE: 9pt; COLOR: #ffffff; LINE-HEIGHT: 150%' align=middle width='92%'> <div align='center'><a href='/aboutus/' target='_blank'><font color=#ffffff>网站介绍</font></a>| <a href='/aboutus/#2' target='_blank'><font color=#ffffff>服务内容</font></a>"); 
document.write("| <a href='/adfuwu/' target='_blank'><font  color=#ffffff>广告服务</font></a>| <a href='mailto:ningxiait@163.com'><font color=#ffffff>联系我们</font></a> <a href='aboutus' target='_blank'></a>| <a href='/aboutus/' target='_blank'><font color=#ffffff>关于我们</font></a><br>联系：<a href='mailto:ningxiait@163.com'><font color=#ffffff>ningxiait@163.com</font></a>&nbsp;&nbsp;QQ：729063613<br> Copyright&copy;2006 宁夏电脑网 版权所有<br>");
document.write(" <font color='#FF0000'></font></div></td><td style='FONT-SIZE: 9pt; COLOR: #ffffff; LINE-HEIGHT: 150%'  align=middle width='8%'><a href='http://www.hd315.gov.cn/beian/view.asp?bianhao=0102000102400012' target='_blank'><img src='Templets/images/hard/biaoshi.gif' width='40' height='48' border='0'></a></td></tr></table></td></tr> </table>");

}

//////////////////////////////

	function send_mail_hy() //推荐给好友
	{
	   document.location.href="Mailto: ";
		}
	function send_tougao()//投稿给我们
	{
		alert("谢谢您给我们投稿！ \n请把您的文章发送到邮箱：ningxiait@163.com， \n并请一定注明您的姓名和联系方式。");
	    document.location.href="Mailto:ningxiait@163.com";
	}
	function send_baoshuo()//我要报错
	{
	   document.location.href="Mailto:ningxiait@163.com";
	}
	function seng_shouchangjia()//加入收藏
	{
    	window.external.addFavorite(this.location.href,this_title);
	}
	
	function doPrint(){
	var str="<html>";
	var article;
	var css;
	var strAdBegin="<!--NEWSZW_HZH_BEGIN-->";
	var strAdEnd="<!--NEWSZW_HZH_END-->";
	var strFontSize='【<A href="javascript:doZoom(16)">大</A> <A href="javascript:doZoom(14)">中</A> <A href="javascript:doZoom(12)">小</A>】'
	var strdoPrint="doPrint()";
	var strTmp;
	
		css="<style>"
		+"body{font-family:宋体}"
		+"td,.f12{font-size:12px}"
		+".f24 {font-size:24px;}"
		+".f14 {font-size:14px;}"
		+".title14 {font-size:14px;line-height:130%}"
		+".l17 {line-height:170%;}"
		+"</style>";
	
		str +=	css;
		str +=	'<meta http-equiv="content-type" content="text/html; charset=gb2312">';
		str +=	'<title>'+document.title+'</title><script>function right_ad1(){}</script>';
		str +=	"<body bgcolor=#ffffff topmargin=5 leftmargin=5 marginheight=5 marginwidth=5 onLoad='window.print()'>";
		str +=	"<center><table width=600 border=0 cellspacing=0 cellpadding=0><tr><td height=34 width=150><a href=127.0.0.1><img src=Templets/images/hard/logo10.gif  border=0></a></td><td valign=bottom><font color=#0000ff><a href=127.0.0.1 >甘肃浙江企业联合会</a> &gt; &nbsp;正文</font></td><td align=right valign=bottom><a href='javascript:history.back()'>返回</a>　<a href='javascript:window.print()'>打印</a></td></tr></table>";
		str +=	"<table width=600 border=0 cellpadding=0 cellspacing=20 bgcolor=#EDF0F5><tr><td>";
		
		article=document.getElementById('article').innerHTML;
		if(article.indexOf(strAdBegin)!=-1){
			str +=article.substr(0,article.indexOf(strAdBegin));
			strTmp=article.substr(article.indexOf(strAdEnd)+strAdEnd.length, article.length);
		}else{
			strTmp=article
		}
		str +=strTmp
		str += window.location.href
		str +=	"</td></tr></table></center>";
		str +=	"</body></html>";
		document.write(str);
		document.close();

	}
