
//=================== CNZZ
document.writeln("<script src=\"http:\/\/s20.cnzz.com\/stat.php?id=3560417&web_id=3560417\" language=\"JavaScript\"><\/script>");
document.writeln("<script src=\"http:\/\/s19.cnzz.com\/stat.php?id=3505973&web_id=3505973\" language=\"JavaScript\"><\/script>");
//=================== 加截
window.onload = function() {
	//document.getElementById("hzyad_950").innerHTML = "<iframe marginwidth=\"0\" marginheight=\"0\"  frameborder=\"0\" scrolling=\"no\" src=\"\/hzy\/hzyad_950.html\" width=\"950\" height=\"90\"><\/iframe>";
	
	if (document.getElementById("flash")){
		document.getElementById("flash").innerHTML = "<iframe marginwidth=\"0\" marginheight=\"0\"  frameborder=\"0\" scrolling=\"no\" src=\"\/images\/index_flash\/index.htm\" width=\"300\" height=\"250\"><\/iframe>";
	}
	
	if (document.getElementById("hzyad_300_250")){
		//document.getElementById("hzyad_300_250").innerHTML = "<iframe marginwidth=\"0\" marginheight=\"0\"  frameborder=\"0\" scrolling=\"no\" src=\"\/hzy\/hzyad_300_250.html\" width=\"310\" height=\"250\"><\/iframe>";
	}
	
	if (document.getElementById("code_downloads")){
		var softid = location.href;
		softid = softid.replace("http://www.myapks.com/detail-android-","")
		
		//softid = softid.replace("http://localhost/detail-android-","")
		softid = softid.replace(".html","")
		document.getElementById("code_downloads").innerHTML = "<iframe marginwidth=\"0\" marginheight=\"0\"  frameborder=\"0\" scrolling=\"no\" src=\"\/images\/code_downloads.asp?softid="+ softid +"&size=132\" width=\"134\" height=\"134\"><\/iframe>";
	}
}
//===================分享到
//document.writeln("<script type=\"text\/javascript\" charset=\"UTF-8\" src=\"\/images\/passit_float.js\"><\/script>");
//===================防止网站被iframe
if (top.location != self.location) {
    //top.location = self.location;
}
//===================收藏本站
function addfavorite() {
    window.external.AddFavorite(document.location.href, document.title)
}
function callserver() {}
//===================相关层切换
function ChangeRel(n) {
    for (var i = 1; i <= 2; i++) {
        var rt = document.getElementById("related_tab_0" + i);
        var rl = document.getElementById("related_list_0" + i);
        if (n == i) {
            rl.style.display = "block";
			rt.style.color = "#668d18" ;
			rt.style.backgroundColor = "#fff"
			rt.style.fontWeight = "600"
        } else {
            rl.style.display = "none";
			rt.style.color = "#333" ;
			rt.style.backgroundColor = "#fff"
			rt.style.fontWeight = "normal"
        }
    }
}
//===================搜索框获得集点文字
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 = 6;
    var str = location.href
    var form1 = document.getElementById('form1');

    if (wd.value == "" || wd.value == "请输入要搜索的内容") {
        alert("请输入要搜索的内容");
        return false;
    }
    form1.method = "get";form1.target = "_blank";form1.action = "http://soso.jisuxz.com/" + typeid + "-" + (wd.value) + ".html";
    form1.submit();
}
//===================首页帮助
function IndexHelp(n){
	var help = document.getElementById("help");
	if(n==1){
		help.style.height = "auto";
		help.style.borderColor = "#668d18";
		help.style.backgroundColor = "#f3fafc";
	}else{
		help.style.height = "250px";
		help.style.borderColor = "#d3d3d3";
		help.style.backgroundColor = "#fff";
	}
}
//===================提交评论
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();
	var iwidth = 190;
	var iheight = 250;
	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;
			}
			}
			else{
			if(image.height>iheight){  
			ImgD.height=iheight;
			ImgD.width=(image.width*iheight)/image.height;  
			}else{
			ImgD.width=image.width;  
			ImgD.height=image.height;
			}
		}
	}
} 
//===================跟随
document.writeln("<script type=\"text\/javascript\">\/*安卓天空_120_270*\/ var cpro_id = \'u746900\';<\/script><script src=\"http:\/\/cpro.baidu.com\/cpro\/ui\/f.js\" type=\"text\/javascript\"><\/script>");
