function real_down(softurl)
{
var ns = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )));
var ie = (((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )));

if (ns) {
	document.anchors['qqdown'].href = softurl;
}else if(ie){
	document.all.qqdown.href = softurl;
}else{
	document.anchors['qqdown'].href = softurl;
}
}

function rand_down(softname)
{
	if( softname == '2005-2718-4a96-9E08-EC930E9AA86B/QQ2005.exe' )
	{
		var xx = Math.random() ;

        if (xx<=0.17)
        	real_down("http://218.17.209.31/qqfile/" + softname);
        else if (xx>0.17 && xx<=0.33)
        	real_down("http://61.152.88.249/qqfile/" + softname);
        else if (xx>0.33 && xx<=0.5)
        	real_down("http://218.17.209.34/qqfile/" + softname);
        else if (xx>0.5 && xx<=0.67)
        	real_down("http://61.152.235.19/qqfile/" + softname);
        else if (xx>0.67 && xx<=0.83)
        	real_down("http://61.152.235.20/qqfile/" + softname);
        else
        	real_down("http://61.152.235.21/qqfile/" + softname);			
	}	
	else real_down("http://dl_dir.qq.com/qqfile/" + softname);		
}

