try {
	document.execCommand("BackgroundImageCache", false, true);
}
catch(e) {}
function addFavorite(url,name){	
	if (window.sidebar)
	{
		window.sidebar.addPanel(name, url, "");
	}
	else if( window.opera && window.print )
	{
		var mbm = document.createElement('a');
		mbm.setAttribute('rel','sidebar');
		mbm.setAttribute('href',url);
		mbm.setAttribute('title',name);
		mbm.click();
	}
	else if (document.all)
	{
		window.external.addFavorite(url,name);
	}
} 
var Swf;
function Swf(vars,swf,w,h,bg,v) {
    this._vars = vars;
    this._swf = swf;
    this._w = w;
    this._h = h;
    this._bg = bg;
    this._v = v;
}
Swf.prototype.write = function() {
    var out = "";
    if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) {
        out += '<embed flashvars="'+this._vars+'" src="'+this._swf+'" width="'+this._w+'" height="'+this._h+'" bgcolor="'+this._bg+'"';
        out += ' quality="high" menu="false" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"';
        out += ' />'
    } else {
        out += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"';
        out += ' codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+this._v+'"';
        out += ' width="'+this._w+'" height="'+this._h+'">';
        out += ' <param name="movie" value="'+this._swf+'" />';
        out += ' <param name="bgcolor" value="'+this._bg+'" />';
        out += ' <param name="flashvars" value="'+this._vars+'" />';
        out += ' <param name="allowScriptAccess" value="sameDomain" />';
		out += ' <param name="wmode" value="transparent" />';
        out += ' <param name="quality" value="high" />';
        out += ' <param name="menu" value="false" />';
        out += '</object>';
    }
    document.write(out);
}
function copyToClipBoard(c){
	var title = document.title;
	var url = location.href;
	var clipBoardContent = '';
	if (!c) {
		clipBoardContent = title + "\r\n" + url;
	}
	else{
		clipBoardContent = c;
	}
	
	if (window.clipboardData){
		window.clipboardData.setData("Text",clipBoardContent);
	}
	else if (window.netscape){
		netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
		var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);
		if (!clip) return;
		var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);
		if (!trans) return;
		trans.addDataFlavor('text/unicode');
		var str = new Object();
		var len = new Object();
		var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);
		var copytext=clipBoardContent;
		str.data=copytext;
		trans.setTransferData("text/unicode",str,copytext.length*2);
		var clipid=Components.interfaces.nsIClipboard;
		if (!clip) return false;
		clip.setData(trans,null,clipid.kGlobalClipboard);
	}
	return false;
}
function Rmb2Dollar() {
	var d=document,$='getElementById',goldPrice=d[$]("goldPrice").value,rate=d[$]("rate").value,resultPrice=goldPrice * 31.1034768 / rate;
	d[$]("result").innerHTML = "<span class='cc00'>"+ goldPrice +"</span>元/克 约为 <span class='cc00'>"+ resultPrice.toFixed(2) +"</span>美元/盎司";
}
function Dollar2Rmb() {
	var d=document,$='getElementById',goldPrice=d[$]("goldPrice").value,rate=d[$]("rate").value,resultPrice= goldPrice * rate / 31.1034768;
	d[$]("result").innerHTML = "<span class='cc00'>"+ goldPrice +"</span>美元/盎司 约为 <span class='cc00'>"+ resultPrice.toFixed(2) +"</span>元/克";
}
function chart(id) {
	var c=document.getElementById("chartImg");
	for (var x=0;x<4;x++){
		document.getElementById("chartItem").getElementsByTagName("li")[x].className='';
	}
	document.getElementById("chartItem").getElementsByTagName("li")[id].className='s';
	switch (id){
		case 0:
			c.src="http://www.kitco.cn/cn/live_charts/t24_au_ch_usoz.gif";
			//c.src="http://goldprice.org/NewCharts/gold/images/gold_1d_o_USD.png";
			c.alt="黄金价格走势图";
			break;
		case 1:
			c.src="http://www.kitco.cn/cn/live_charts/t24_ag_ch_usoz.gif";
			c.alt="白银价格走势图";
			break;
		case 2:
			c.src="http://www.kitco.cn/cn/live_charts/t24_crude_182x116.gif";
			c.alt="原油价格走势图";
			break;
		case 3:
			c.src="http://www.kitco.cn/cn/live_charts/t24_usd_182x116.gif";
			c.alt="外汇价格走势图";
	}
}
function hotList(id){
	var d=document,$="getElementById";
	var objul = d[$]("hotList").getElementsByTagName("ul");
	var obja = d[$]("hotList").getElementsByTagName("a");
	for (var i=0;i<3;i++){
		objul[i].className='a';
		obja[i].className='';
	}
	objul[id].className='';
	obja[id].className='b';
}
function  bookmark(type){
	var obj=document.getElementById("bookmark");
	if  (type=="show")
	{
		obj.style.display="";
	}
	else if  (type=="hidden")
	{
		obj.style.display="none";
	}
}
function zoom(type) {
	var d=document,$="getElementById";
	var s=d[$]("content").style.fontSize;
	if (!s) s='14';
	if (type=='in') {		
		try{
			var size=parseInt(s)+2;
			d[$]("content").style.fontSize=size+"px";
		}
		catch(e){}
	}
	else if (type=='out') {		
		try{
			var size=parseInt(s)-2;
			d[$]("content").style.fontSize=size+"px";
		}
		catch(e){}
	}
}
function shares() {
	document.writeln("<div id=\"sTip\"></div><a href=\"javascript:void((function(s,d,e){try{}catch(e){}var f=\'http://v.t.sina.com.cn/share/share.php?\',u=d.location.href,p=[\'url=\',e(u),\'&title=\',e(d.title),\'&appkey=2924220432\'].join(\'\');function a(){if(!window.open([f,p].join(\'\'),\'mb\',[\'toolbar=0,status=0,resizable=1,width=620,height=450,left=\',(s.width-620)/2,\',top=\',(s.height-450)/2].join(\'\')))u.href=[f,p].join(\'\');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));\" title=\"分享到新浪微博\" class=\"xl\" onmouseover=\"ss('分享到新浪微博');\" onmouseout=\"hs();\">分享到新浪微博</a><a href=\"javascript:window.open(\'http://v.t.qq.com/share/share.php?title=\'+encodeURI(document.title)+\'&url=\'+encodeURIComponent(document.location)+\'&appkey=\'+encodeURI(\'168344dbae884741a39602db44e6c57e\')+\'&site=http://www.hjplw.com&pic=\',\'转播到腾讯微博\', \'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no\');void(0)\" class=\"qq\" onmouseover=\"ss('转播到腾讯微博');\" onmouseout=\"hs();\">转播到腾讯微博</a><a href=\"javascript:(function(){window.open(\'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=\'+ encodeURIComponent(location.href)+ \'&title=\'+encodeURIComponent(document.title),\'_blank\');})()\" title=\"分享到QQ空间\" class=\"qk\" onmouseover=\"ss('分享到QQ空间');\" onmouseout=\"hs();\">分享到QQ空间</a><a href=\"javascript:void((function(s,d,e,r,l,p){try{}catch(e){}var f=\'http://t.sohu.com/third/post.jsp?\',u=d.location,p=[\'&url=\',e(u),\'&title=\',e(d.title),\'&content=\',\'utf-8\',\'&pic=\',e(p||\'\')].join(\'\');function a(){if(!window.open([f,p].join(\'\'),\'mb\',[\'toolbar=0,status=0,resizable=1,width=660,height=470,left=\',(s.width-660)/2,\',top=\',(s.height-470)/2].join(\'\')))u.href=[f,p].join(\'\');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else a();})(screen,document,encodeURIComponent,\'\',\'\'));\" title=\"分享到搜狐微博\" class=\"sh\" onmouseover=\"ss('分享到搜狐微博');\" onmouseout=\"hs();\">分享到搜狐微博</a><a href=\"javascript:(function(){window.open(\'http://t.163.com/article/user/checkLogin.do?link=http://news.163.com/&source=\'+\'黄金评论网\'+ \'&info=\'+encodeURIComponent(document.title)+\' \'+encodeURIComponent(location.href),\'_blank\',\'width=660,height=450\');})()\" title=\"分享到网易微博\" class=\"wy\" onmouseover=\"ss('分享到网易微博');\" onmouseout=\"hs();\">分享到网易微博</a><a href=\"javascript:(function(){window.open(\'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=\'+ encodeURIComponent(location.href)+ \'&title=\'+encodeURIComponent(document.title),\'_blank\');})()\" title=\"分享到QQ空间\" class=\"qk\" onmouseover=\"ss('分享到QQ空间');\" onmouseout=\"hs();\">分享到QQ空间</a><a class=\"rr\" title=\"分享到人人网\" href=\"javascript:window.open(\'http://share.xiaonei.com/share/buttonshare.do?link=\'+encodeURIComponent(location.href)+\'&amp;title=\'+encodeURIComponent(document.title));void(0)\" onmouseover=\"ss('分享到人人网');\" onmouseout=\"hs();\">分享到人人网</a><a class=\"kx\" title=\"分享到开心网\" href=\"javascript:window.open(\'http://www.kaixin001.com/repaste/share.php?rurl=\'+encodeURIComponent(location.href)+\'&amp;rtitle=\'+encodeURIComponent(document.title));void(0)\" onmouseover=\"ss('分享到开心网');\" onmouseout=\"hs();\">分享到开心网</a><a href=\"javascript:window.open(\'http://bai.sohu.com/share/blank/addbutton.do?from=techweb&amp;link=\'+encodeURIComponent(document.location.href));void(0)\" title=\"分享到搜狐白社会\" class=\"bsh\" onmouseover=\"ss('分享到搜狐白社会');\" onmouseout=\"hs();\">分享到搜狐白社会</a><a href=\"javascript:window.open(\'http://share.jianghu.taobao.com/share/addShare.htm?title=\'+encodeURIComponent(document.title.substring(0,76))+\'&url=\'+encodeURIComponent(location.href)+\'&content=\',\'_blank\',\'scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes\');void 0\" title=\"分享到淘江湖\" class=\"tjh\" onmouseover=\"ss('分享到淘江湖');\" onmouseout=\"hs();\">分享到淘江湖</a><a href=\"javascript:void(function(){var d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:\'\',r=\'http://www.douban.com/recommend/?url=\'+e(d.location.href)+\'&title=\'+e(d.title)+\'&sel=\'+e(s)+\'&v=1\',x=function(){if(!window.open(r,\'douban\',\'toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330\'))location.href=r+\'&r=1\'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()\" class=\"db\" onmouseover=\"ss('分享到豆瓣');\" onmouseout=\"hs();\">分享到豆瓣</a><a href=\"javascript:void((function(s,d,e){try{}catch(e){}var f=\'http://t.cnfol.com/share.php?\',u=d.location.href,p=[\'url=\',e(u),\'&amp;title=\',e(d.title),\'&amp;appkey=2924220432\'].join(\'\');function a(){if(!window.open([f,p].join(\'\'),\'mb\',[\'toolbar=0,status=0,resizable=1,width=620,height=450,left=\',(s.width-620)/2,\',top=\',(s.height-450)/2].join(\'\')))u.href=[f,p].join(\'\');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));\" class=\"zj\" onmouseover=\"ss('分享到中金微博');\" onmouseout=\"hs();\">分享到中金微博</a>");
}
function ss(txt)
{
    var sTip = document.getElementById("sTip");
	sTip.style.left = ((event.clientX) + 'px');
    sTip.style.visibility = 'visible';
    sTip.innerHTML = txt;
}
function hs(){document.getElementById("sTip").style.visibility = 'hidden';}
function bookmarks(){document.writeln("<ul id=\"bookmark\" style=\"display: none\" onmouseover=\"bookmark(\'show\');\" onmouseout=\"bookmark(\'hidden\');\"><li><a href=\"#\" title=\"添加到收藏夹，便于下次访问\" onClick=\"addFavorite(document.location.href,document.title)\" class=\"scj\">加入<strong>收藏夹</strong></a></li><li><a href=\"javascript:window.open(\'http://shuqian.qq.com/post?from=3&title=\'+encodeURIComponent(document.title)+\'&uri=\'+encodeURIComponent(document.location.href)+\'&jumpback=2&noui=1\',\'favit\',\'width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes\');void(0)\" title=\"收藏到QQ书签\" class=\"qq\">收藏到<strong>QQ</strong>书签</a></li><li><a href=\"javascript:window.open(\'http://cang.baidu.com/do/add?it=\'+encodeURIComponent(document.title.substring(0,76))+\'&iu=\'+encodeURIComponent(location.href)+\'&fr=ien#nw=1\',\'_blank\',\'scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes\'); void 0\" title=\"添加到百度搜藏\" class=\"bd\">添加到<strong>百度</strong>搜藏</a></li><li><a href=\"javascript:window.open(\'http://www.google.com/bookmarks/mark?op=add&amp;bkmk=\'+encodeURIComponent(document.location.href)+\'&title=\'+encodeURIComponent(document.title), \'google\',\'scrollbars=yes,width=780,height=550,left=80,top=80,status=yes,resizable=yes\');void(0)\" title=\"收藏到谷歌书签\" class=\"gg\">收藏到<strong>谷歌</strong>书签</a></li><li><a href=\"#\" onclick=\"window.open(\'http://myweb.cn.yahoo.com/popadd.html?url=\'+encodeURIComponent(document.location.href)+\'&title=\'+encodeURIComponent(document.title), \'Yahoo\',\'scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes\');\" title=\"添加到雅虎收藏\" class=\"yh\">添加到<strong>雅虎</strong>收藏</a></li><li><a href=\"javascript:window.open(\'http://shuqian.youdao.com/manage?a=popwindow&title=\'+ encodeURI(document.title)+\'&url=\'+encodeURI(document.location),\'youdao\',\'height=200,width=590,top=100,left=100,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no\');void(0)\" title=\"收藏到有道书签\" class=\"yd\">收藏到<strong>有道</strong>书签</a></li><li><a href=\"javascript:window.open(\'http://del.icio.us/post?&amp;url=\'+encodeURIComponent(location.href)+\'&amp;title=\'+encodeURIComponent(document.title), \'Delicious\',\'scrollbars=yes,width=780,height=550,left=80,top=80,status=yes,resizable=yes\');void(0)\" title=\"收藏Del.icio.us\" class=\"mw\">收藏到<strong>美味</strong>书签</a></li></ul>");}
function dateselect() {
	var d=document,$='getElementById';
	var str;
	var date = new Date();
    	var day = date.getDate();
   	var month = date.getMonth() + 1;
	var objm=d[$]('m');
	for (var i = 1; i < 13; i++) {
		i2 = ((i < 10) ? "0" : "") + i;
        	objm.options.add(new Option(i2,i));
	}
	objm.options[month-1].selected='selected';
	var objd=d[$]('d');
	for (var i = 1; i < 32; i++) {
		i2 = ((i < 10) ? "0" : "") + i;
        	objd.options.add(new Option(i2,i));
	}
	objd.options[day-2].selected='selected';
}
function ReImgSize(){
	var g=document.getElementById("content").getElementsByTagName("img")
	for (i=0;i<g.length;i++){
			if (g[i].width>645){
			var widtho=g[i].width;
			g[i].width="645"
			g[i].height=g[i].height*645/widtho;
			   try{
				   g[i].outerHTML='<a href="'+g[i].src+'" target="_blank" title="在新窗口打开图片">'+g[i].outerHTML+'</a>'
				}catch(e){}
			}
	}
}
function  chartMenuShow(id){document.getElementById(id).style.display="block";}
var d=document,$='getElementById',timeS = 50,w = 0;
function move(x) {d[$]('floatService').style.left = x+"px";};
//function moveleft(){if(timeS>0){timeS--;w = w-5;}if(w<-180){return;}d[$]('floatService').style.left = w+"px";setTimeout("moveleft()",10);}
var online= new Array();
_dwrite("<script src='http://webpresence.qq.com/getonline?Type=1&214785642:1776652245:1097139524:1372154723:362469459:279071701:939891591:910199382:'><\/script>");
function _dwrite(string) {document.write(string);}
function qq(){if(online[0]==0){d[$]('qq1').className='q10';}else{d[$]('qq1').className='q11';}if(online[1]==0){d[$]('qq2').className='q20';}else{d[$]('qq2').className='q21';}if(online[2]==0){d[$]('qq3').className='q30';}else{d[$]('qq3').className='q31';}if(online[3]==0){d[$]('qq4').className='q40';}else{d[$]('qq4').className='q41';}if(online[4]==0){d[$]('qq5').className='q50';}else{d[$]('qq5').className='q51';}if(online[5]==0){d[$]('qq6').className='q00';}else{d[$]('qq6').className='';}if(online[6]==0){d[$]('qq8').className='q00';}else{d[$]('qq8').className='';}if(online[7]==0){d[$]('qq9').className='q00';}else{d[$]('qq9').className='';}}
document.write("<div id=\"floatService\" onmouseout=\"move(-180)\" onmouseover=\"move(2)\"><div class=\"fsr\"></div><div class=\"fsl\"><div class=\"q1\"><a id=\"qq1\" href=\"http://wpa.qq.com/msgrd?v=3&amp;uin=214785642&amp;site=hjplw.com&menu=yes\" target=\"_blank\"></a><a id=\"qq2\" href=\"http://wpa.qq.com/msgrd?v=3&amp;uin=1776652245&amp;site=hjplw.com&menu=yes\" target=\"_blank\"></a></div><div class=\"q1\"><a id=\"qq3\" href=\"http://wpa.qq.com/msgrd?v=3&amp;uin=1097139524&amp;site=hjplw&menu=yes\" target=\"_blank\"></a><a id=\"qq4\" href=\"http://wpa.qq.com/msgrd?v=3&amp;uin=1372154723&amp;site=hjplw.com&menu=yes\" target=\"_blank\"></a></div><div class=\"q2\"><a id=\"qq5\" href=\"http://wpa.qq.com/msgrd?v=3&amp;uin=362469459&amp;site=hjplw&menu=yes\" target=\"_blank\"></a><a id=\"qq6\" href=\"http://wpa.qq.com/msgrd?v=3&amp;uin=279071701&amp;site=hjplw&menu=yes\" target=\"_blank\"></a></div><div class=\"q3\"><a id=\"qq8\" href=\"http://wpa.qq.com/msgrd?v=3&amp;uin=939891591&amp;site=hjplw.com&menu=yes\" target=\"_blank\"></a><a id=\"qq9\" href=\"http://wpa.qq.com/msgrd?v=3&amp;uin=910199382&amp;site=hjplw.com&menu=yes\" target=\"_blank\"></a></div></div></div>");
