//=================== CNZZ
document.writeln("<script src=\"http:\/\/s15.cnzz.com\/stat.php?id=2321536&web_id=2321536\" language=\"JavaScript\"><\/script>");
//合计
document.writeln("<script src=\"http:\/\/s19.cnzz.com\/stat.php?id=3505973&web_id=3505973\" language=\"JavaScript\"><\/script>");
//=================== 加截
window.onload=function(){
	//HideCNZZ();
	if (document.getElementById("tab_update_01")){
		changeupdate(1);
	}
	if (document.getElementById("tab_top_01")){
		changetop(1);
	}
}
//===================分享到
//document.writeln("<script type=\"text\/javascript\" charset=\"UTF-8\" src=\"\/images\/passit_float.js\"><\/script>");
//=================== youdao
var down_yd = "http://cnrdn.com/rd.htm?id=14086&r=http%3A%2F%2Fsoft.23zxrj.com%2Fdown%2Fsoft_setup.exe"
var zhuti_yd = down_yd

//===================隐藏CNZZ
function HideCNZZ(){
	var links=document.getElementsByTagName("a");
	for(var i=0;i<links.length;i++)
	{
		if(links[i].innerText=="站长统计")
		{
		links[i].style.display="none";
		break;
		}
	}
}
//===================防止网站被iframe
if (top.location != self.location){
	top.location=self.location;
}
//===================收藏本站
function addfavorite(){
window.external.AddFavorite(document.location.href,document.title)
}
function callserver(){}
//===================搜索框获得集点文字
function onfocust(text){
text.style.color="#000"
if(text.value=="请输入要搜索的内容"){
text.value="";
}
}
//===================搜索框失去集点文字
function onblurt(text){
text.style.color="#949494";	
if(text.value.length<=0||text.value==""){
text.value="请输入要搜索的内容";
}
}
//===================搜索结果
function subsearch(){
var wd = document.getElementById("keyword");
var typeid = 2;
var str = location.href
var form1 = document.getElementById('form1');

if (wd.value=="" || wd.value=="请输入要搜索的内容") {alert("请输入要搜索的内容");return false;}

if (str.indexOf("news") >1 ) { typeid = 1 }
if (str.indexOf("down") >1 ) { typeid = 2 }
if (str.indexOf("baike") >1 ) { typeid = 7 }
if (str.indexOf("huti") >1 ) { typeid = 3 }
if (str.indexOf("desktop") >1 ) { typeid = 4 }
if (str.indexOf("font") >1 ) { typeid = 5 }
if (str.indexOf("dll") >1 ) { typeid = 6 }

//alert(typeid);
//return false;
form1.method = "get"
form1.target = "_blank"
form1.action = "http://soso.jisuxz.com/"+ typeid +"-" + (wd.value) + ".html";
//alert(form1.action)
form1.submit();
//return false;
}
//===================提交评论
function subcomment(){
var username = document.getElementById("username");
var content = document.getElementById('content');
if (username.value==''){alert("昵称不能为空！");return false;}
if (content.value.length<=10){alert("评论内容不能小于10个字符");return false;}
commentform.submit();
}
//===================减小字体、增大字体
function changefontsize(tmp){
var intro = document.getElementById("intro");
if (tmp==1){intro.style.fontSize = "12px";}
if (tmp==2){intro.style.fontSize = "14px";}
if (tmp==3){intro.style.fontSize = "16px";}
}
//===================图片按比例缩放
var flag=false;
function FixedWidth(ImgD){
	var image=new Image();
	if (location.href.indexOf("desktop") >1 ){
		var iwidth = 998;
	}else{
		var iwidth = 600;
	}
		var iheight = 2000;
	image.src=ImgD.src;
	if(image.width>0 && image.height>0){
		flag=true;
		if(image.width/image.height>= iwidth/iheight){
			if(image.width>iwidth){  
			ImgD.width=iwidth;
			ImgD.height=(image.height*iwidth)/image.width;
			}else{
			ImgD.width=image.width;  
			ImgD.height=image.height;
			}
			//  ImgD.alt=image.width+"×"+image.height;
			}
			else{
			if(image.height>iheight){  
			ImgD.height=iheight;
			ImgD.width=(image.width*iheight)/image.height;  
			}else{
			ImgD.width=image.width;  
			ImgD.height=image.height;
			}
		}
	}
} 
//=================== 下载页跳转
function goto(){
	//var goto_address = down_yd ;
	var goto_address = "#download" ;
	var goto_id = location.href;
	goto_id = goto_id.replace("http://www.jisuxz.com/down/","")
	goto_id = goto_id.replace(".html","")
	//window.open( "http://xiazai.jisuxz.com/" + goto_id  ) ;
	//location.href = "http://xiazai.jisuxz.com/" + goto_id ;
	//location.href = "#Screenshots";
	location.href = goto_address ;
	//return false
}
//=================== 首页最新TAB切换
function changeupdate(n){
	var tmpi = 2 ;
	if ( document.getElementById("list_update_03") ) { tmpi = 3 } ;
	for(var i=1;i<=tmpi;i++){
		var tab = document.getElementById("tab_update_0"+i)
		var list = document.getElementById("list_update_0"+i)
		if (i==n){
			tab.style.cssText = "border:#5f7ba0 1px solid;border-bottom:0;background:#fff;"
			list.style.display = "block";
		}else{
			tab.style.cssText = "border:#5f7ba0 0 solid;border-bottom:0;background:none;"
			list.style.display = "none";
		}
	}
	
}
//=================== 首页排行TAB切换
function changetop(n){
	for(var i=1;i<=3;i++){
		var tab = document.getElementById("tab_top_0"+i)
		var list = document.getElementById("list_top_0"+i)
		if (i==n){
			tab.style.cssText = "border:#5f7ba0 1px solid;border-bottom:0;background:#fff;"
			list.style.display = "block";
		}else{
			tab.style.cssText = "border:#5f7ba0 0 solid;border-bottom:0;background:none;"
			list.style.display = "none";
		}
	}
}

//===================首页合作伙伴
function Indexpartner(n){
	var help = document.getElementById("ParSoft");
	if(n==1){
		help.style.height = "auto";
		help.style.borderColor = "#668d18";
		help.style.backgroundColor = "#f3fafc";
	}else{
		help.style.height = "410px";
		help.style.borderColor = "#c3cedd";
		help.style.backgroundColor = "#fff";
	}
}
//=================== 跟随 location.href.indexOf("-") > 0
if (location.href != "http://www.jisuxz.com/" && location.href != "http://www.jisuxz.com/news/zhuanti_index.html"){
	//if ( location.href.indexOf("/down/") < 0 && location.href.indexOf("/zhuti/") < 0 ) {
		//创速
		document.writeln("<script language=\"javascript\" src=\"http:\/\/code.37cs.com\/rich\/fl.php?uid=1089&pid=283\"><\/script>");
		//百度
		document.writeln("<script type=\"text\/javascript\">\/*极速下载_120_270*\/ var cpro_id = \'u746903\';<\/script><script src=\"http:\/\/cpro.baidu.com\/cpro\/ui\/f.js\" type=\"text\/javascript\"><\/script>");
	//}
}
