var a=1;
//改变图片大小
function resizepic(thispic)
{
if(thispic.width>700)
	thispic.width=700;
}
//改变图片大小
function imgresize(thispic)
{
if(thispic.width>360)
	thispic.width=360;
}
//无级缩放图片大小
function bbimg(o)
{
  var zoom=parseInt(o.style.zoom, 10)||100;
  zoom+=event.wheelDelta/12;
  if (zoom>0) o.style.zoom=zoom+'%';
  return false;
}
//双击鼠标滚动屏幕的代码
var currentpos,timer;
function initialize()
{
timer=setInterval ("scrollwindow ()",30);
}
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

//更改字体大小
var status0='';
var curfontsize=10;
var curlineheight=18;
function fontZoomA(){
  if(curfontsize>8){
    document.getElementById('fontzoom').style.fontSize=(--curfontsize)+'pt';
	document.getElementById('fontzoom').style.lineHeight=(--curlineheight)+'pt';
  }
}
function fontZoomB(){
  if(curfontsize<64){
    document.getElementById('fontzoom').style.fontSize=(++curfontsize)+'pt';
	document.getElementById('fontzoom').style.lineHeight=(++curlineheight)+'pt';
  }
}
function Ashowtop()
{
	var toshow="<a href=\"javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=2008&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();\" title=\"收藏的网页将被永久地保存到新浪ViVi收藏夹http://vivi.sina.com.cn\">vivi</a> 【字体：<a href=\"javascript:fontZoomA();\" class=\"top_UserLogin\">小</a> <a href=\"javascript:fontZoomB();\" class=\"top_UserLogin\">大</a>】";
	document.write(toshow);
}

function showbbsindex()
{
	var toshow="<a href='http://www.chinacamera.net/index.php' target='_blank'><font color=\"#000000\"><b>◆发表评论◆</b></font></a>";
	document.write(toshow);
}

var bbsurl="http://www.chinacamera.net/index.php";
var test1=document.location.href;
var GchannelLink=new Array();
var GchannelTitle=new Array();
var GchannelCount=0;

var zuoxiaad="";
var zuopiaoad="";

document.write("<script language=\"JavaScript\" type=\"text/JavaScript\" src=\"/ads/pd.js\"></script>")

function showchannelcol()
{
	document.write("<div align=center>");
	var i=1;
	for(i=1;i<=GchannelCount;i++)
	{
		document.write("<A href=\""+ GchannelLink[i] +"\">"+ GchannelTitle[i] +"</A> ");
		if(i%2==0)
			document.write("<br>");
		else
			document.write("&nbsp;");
	}
	document.write("</div>");
}

function showchannelrow()
{
	var i=1;
	for(i=1;i<=GchannelCount;i++)
	{
		document.write(" | <A href=\""+ GchannelLink[i] +"\">"+ GchannelTitle[i] +"</A> | ");
	}
}
function showinbbs()
{
	var toshow="<a href=\""+ bbsurl +"\"><font color=\"#000000\"><b>◆发表评论◆</b></font></a>";
	document.write(toshow);
}
function showbbstop()
{
	var toshow="<a href=\""+ bbsurl +"\"><font color=\"#000000\"><b>进入社区论坛</b></font></a>";
	document.write(toshow);

}
function showdefaulttop()
{
	var toshow="<IFRAME name=adtui align=center marginHeight=0 src=\"http://www.chinacamera.net/ads/Banner468.html\" frameBorder=0 width=469 scrolling=no height=61></IFRAME>";
	return toshow;
}

function showggsearch(closb)
{
	var toshow="<tr><td Class=\"main_shadow\"></td></tr><tr><td Class=\"main_tdbg_575\">"+showggsearchz()+"</td></tr><tr><td Class=\"main_shadow\"></td></tr>";
	document.write(toshow);
}
function showggsearchz()
{
	//var toshow="<table border=0><tr><td>搜索本站文章请点击：<b>站内</b>，搜索整个互联网请点击：<b>网页</b></td><td><iframe border=\"0\" vspace=\"0\" hspace=\"0\" marginwidth=\"0\" marginheight=\"0\" framespacing=\"0\" frameborder=\"0\" scrolling=\"no\" width=\"535\" height=\"90\" src=\"/ads/bdsearch.asp\"></iframe></td></tr></table>";
	var toshow="<table border=0><tr><td><iframe border=\"0\" vspace=\"0\" hspace=\"0\" marginwidth=\"0\" marginheight=\"0\" framespacing=\"0\" frameborder=\"0\" scrolling=\"no\" width=\"640\" height=\"82\" src=\"http://www.chinacamera.net/ads/ali68060.html\"></iframe></td></tr></table>";
	return toshow;
}

function $() 
{ 
  var elements = new Array(); 
  for (var i = 0; i < arguments.length; i++) 
  { 
    var element = arguments[i]; 
    if (typeof element == 'string') 
      element = document.getElementById(element); 
    if (arguments.length == 1) 
      return element; 
    elements.push(element); 
  } 
  return elements; 
}
function showschar()
{
	if($("c_zzs"))
		$("c_zzs").innerHTML="赞助商链接";//1
	if($("c_pddh"))
		$("c_pddh").innerHTML="频 道 导 航";//1
	if($("c_pdlmdh"))
		$("c_pdlmdh").innerHTML="频道栏目导航";//1
	if($("c_pdzxtj"))
		$("c_pdzxtj").innerHTML="频道最新推荐";//1
	if($("c_2pdlmdh"))
		$("c_2pdlmdh").innerHTML="频道栏目导航";//1
	if($("c_wzpddh"))
		$("c_wzpddh").innerHTML="网站频道导航：";//1
	if($("c_ggyjc"))
		$("c_ggyjc").innerHTML="广告也精彩";//1
	if($("c_zlmdh"))
		$("c_zlmdh").innerHTML="子栏目导航";//2
	if($("c_xgwz"))
		$("c_xgwz").innerHTML="相 关 文 章";//4
	if($("c_zz"))
		$("c_zz").innerHTML="作者：";//4
	if($("c_ly"))
		$("c_ly").innerHTML="文章来源：";//4
	if($("c_sj"))
		$("c_sj").innerHTML="更新时间：";//4
	  
	 
	 
	 
}

function showggadhui72890()
{
var toshow="<script type=\"text/javascript\"><!--\n";
toshow=toshow + "google_ad_client = \"pub-9374929707404318\";\n";
toshow=toshow + "google_ad_width = 728;\n";
toshow=toshow + "google_ad_height = 90;\n";
toshow=toshow + "google_ad_format = \"728x90_as\";\n";
toshow=toshow + "google_ad_type = \"text_image\";\n";
toshow=toshow + "google_ad_channel =\"\";\n";
toshow=toshow + "google_color_border = \"CCCCCC\";\n";
toshow=toshow + "google_color_bg = \"FFFFFF\";\n";
toshow=toshow + "google_color_link = \"191919\";\n";
toshow=toshow + "google_color_text = \"000000\";\n";
toshow=toshow + "google_color_url = \"6131BD\";\n";
toshow=toshow + "//--></script>\n";
toshow=toshow + "<script type=\"text/javascript\"\n";
toshow=toshow + "  src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\n";
toshow=toshow + "</script>";
document.write(toshow);
}

function showggadhong180150()
{
var toshow="<script type=\"text/javascript\"><!--\n";
toshow=toshow + "google_ad_client = \"pub-9374929707404318\";\n";
toshow=toshow + "google_alternate_ad_url = \"http://www.livnic.com/ads/180150.htm\";\n";
toshow=toshow + "google_ad_width = 180;\n";
toshow=toshow + "google_ad_height = 150;\n";
toshow=toshow + "google_ad_format = \"180x150_as\";\n";
toshow=toshow + "google_ad_type = \"text_image\";\n";
toshow=toshow + "google_ad_channel =\"\";\n";
toshow=toshow + "google_color_border = \"DD0000\";\n";
toshow=toshow + "google_color_link = \"0000FF\";\n";
toshow=toshow + "google_color_bg = \"FFFFFF\";\n";
toshow=toshow + "google_color_text = \"000000\";\n";
toshow=toshow + "google_color_url = \"008000\";\n";
toshow=toshow + "//--></script>\n";
toshow=toshow + "<script type=\"text/javascript\"\n";
toshow=toshow + "  src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\n";
toshow=toshow + "</script>\n";
document.write(toshow);
}
function showggad200200()
{
var toshow="<script type=\"text/javascript\"><!--\n";
toshow=toshow + "google_ad_client = \"pub-9374929707404318\";\n";
toshow=toshow + "google_alternate_ad_url = \"http://www.livnic.com/ads/180150.htm\";\n";
toshow=toshow + "google_ad_width = 200;\n";
toshow=toshow + "google_ad_height = 200;\n";
toshow=toshow + "google_ad_format = \"200x200_as\";\n";
toshow=toshow + "google_ad_type = \"text_image\";\n";
toshow=toshow + "google_ad_channel =\"\";\n";
toshow=toshow + "google_color_border = \"DD0000\";\n";
toshow=toshow + "google_color_link = \"0000FF\";\n";
toshow=toshow + "google_color_bg = \"FFFFFF\";\n";
toshow=toshow + "google_color_text = \"000000\";\n";
toshow=toshow + "google_color_url = \"008000\";\n";
toshow=toshow + "//--></script>\n";
toshow=toshow + "<script type=\"text/javascript\"\n";
toshow=toshow + "  src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\n";
toshow=toshow + "</script>\n";
document.write(toshow);
}
function showggadlan125125()
{
var toshow="<script type=\"text/javascript\"><!--\n";
toshow=toshow + "google_ad_client = \"pub-9374929707404318\";\n";
toshow=toshow + "google_ad_width = 125;\n";
toshow=toshow + "google_ad_height = 125;\n";
toshow=toshow + "google_ad_format = \"125x125_as\";\n";
toshow=toshow + "google_ad_type = \"text_image\";\n";
toshow=toshow + "google_ad_channel =\"\";\n";
toshow=toshow + "google_color_border = \"C3D9FF\";\n";
toshow=toshow + "google_color_bg = \"FFFFFF\";\n";
toshow=toshow + "google_color_link = \"0000FF\";\n";
toshow=toshow + "google_color_text = \"000000\";\n";
toshow=toshow + "google_color_url = \"008000\";\n";
toshow=toshow + "//--></script>\n";
toshow=toshow + "<script type=\"text/javascript\"\n";
toshow=toshow + "  src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\n";
toshow=toshow + "</script>\n";
document.write(toshow);
}

function showggadlian46815()
{
var toshow="<script type=\"text/javascript\"><!--\n";
toshow=toshow + "google_ad_client = \"pub-9374929707404318\";\n";
toshow=toshow + "google_ad_width = 468;\n";
toshow=toshow + "google_ad_height = 15;\n";
toshow=toshow + "google_ad_format = \"468x15_0ads_al_s\";\n";
toshow=toshow + "google_ad_channel =\"\";\n";
toshow=toshow + "google_color_border = \"FFFFFF\";\n";
toshow=toshow + "google_color_bg = \"FFFFFF\";\n";
toshow=toshow + "google_color_link = \"0000FF\";\n";
toshow=toshow + "google_color_text = \"000000\";\n";
toshow=toshow + "google_color_url = \"008000\";\n";
toshow=toshow + "//--></script>\n";
toshow=toshow + "<script type=\"text/javascript\"\n";
toshow=toshow + "  src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\n";
toshow=toshow + "</script>\n";
document.write(toshow);
}

function showggadbai250250()
{

var toshow="<script type=\"text/javascript\"><!--\n";
toshow=toshow + "google_ad_client = \"pub-9374929707404318\";\n";
toshow=toshow + "google_alternate_ad_url = \"http://www.livnic.com/ads/250250bai1.html\";\n";
toshow=toshow + "google_ad_width = 250;\n";
toshow=toshow + "google_ad_height = 250;\n";
toshow=toshow + "google_ad_format = \"250x250_as\";\n";
toshow=toshow + "google_ad_type = \"text_image\";\n";
toshow=toshow + "google_ad_channel =\"\";\n";
toshow=toshow + "google_color_border = \"FFFFFF\";\n";
toshow=toshow + "google_color_bg = \"FFFFFF\";\n";
toshow=toshow + "google_color_link = \"0000FF\";\n";
toshow=toshow + "google_color_text = \"000000\";\n";
toshow=toshow + "google_color_url = \"008000\";\n";
toshow=toshow + "//--></script>\n";
toshow=toshow + "<script type=\"text/javascript\"\n";
toshow=toshow + "  src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\n";
toshow=toshow + "</script>\n";
document.write(toshow);
}

function LunPic_fun(iwidth,iheight)
{
var n=20-1;
var lun_su=Math.floor(Math.random() * (n + 1));
lun_su=lun_su*100;
//alert(lun_su);
document.write("<iframe name=\"I2\" src=\"http://www.chinacamera.net/club/pic.php?startid="+lun_su+"&width="+eval(iwidth-10)+"&height="+eval(iheight-20)+"\" width=\""+iwidth+"\" height=\""+iheight+"\" frameborder=0 scrolling=no marginwidth=\"0\" marginheight=\"0\" align=\"right\"></iframe>");
}

function showggadlan160600()
{
var toshow="<script type=\"text/javascript\"><!--\n";
toshow=toshow + "google_ad_client = \"pub-9374929707404318\";\n";
toshow=toshow + "google_ad_width = 160;\n";
toshow=toshow + "google_ad_height = 600;\n";
toshow=toshow + "google_ad_format = \"160x600_as\";\n";
toshow=toshow + "google_ad_type = \"text_image\";\n";
toshow=toshow + "google_ad_channel =\"\";\n";
toshow=toshow + "google_color_border = \"C3D9FF\";\n";
toshow=toshow + "google_color_bg = \"FFFFFF\";\n";
toshow=toshow + "google_color_link = \"F6871E\";\n";
toshow=toshow + "google_color_text = \"000000\";\n";
toshow=toshow + "google_color_url = \"008000\";\n";
toshow=toshow + "//--></script>\n";
toshow=toshow + "<script type=\"text/javascript\"\n";
toshow=toshow + "  src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\n";
toshow=toshow + "</script>\n";
document.write(toshow);
}