/***************************************************
Zeai交友系统 版本3.0 www.zeai.cn
作者: 郭余林　QQ:797311 (supdes)
***************************************************/
document.write('<script src="/js/www_zeai_cn.js"><\/script>');
document.write('<script src="/js/top.js"><\/script>');
/*index_loop*/
var isIE = navigator.appVersion.indexOf("MSIE") != -1 ? true:false;
var TimeOut=3000;
var StartType="onmouseover";
var playState = "play";
var imgUrl=new Array();
var imgLink=new Array();
var imgAlt=new Array();
var adNum=0;
var theTimer;
var addiv = '';
function $ZeaiAD(o){	if(typeof(o) == "string")return document.getElementById(o);return o;}
/*index_loop end*/
function createXML(){ 
if(window.XMLHttpRequest) {
xmlHttp = new XMLHttpRequest();
} else if(window.ActiveXObject) { 
try{xmlHttp = new ActiveX0bject("Msxml2.XMLHTTP");}
catch(e) {} 
try {xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");}
catch(e) {} 
if(!xmlHttp){ 
window.alert("No Create XML"); 
return false; 
}}
} 
function createXML2(){ 
if(window.XMLHttpRequest) {
xmlHttp2 = new XMLHttpRequest();
} else if(window.ActiveXObject) { 
try{xmlHttp2 = new ActiveX0bject("Msxml2.XMLHTTP");}
catch(e) {} 
try {xmlHttp2 = new ActiveXObject("Microsoft.XMLHTTP");}
catch(e) {} 
if(!xmlHttp2){ 
window.alert("No Create XML"); 
return false; 
}}
}
function createXML3(){ 
if(window.XMLHttpRequest) {
xmlHttp3 = new XMLHttpRequest();
} else if(window.ActiveXObject) { 
try{xmlHttp3 = new ActiveX0bject("Msxml2.XMLHTTP");}
catch(e) {} 
try {xmlHttp3 = new ActiveXObject("Microsoft.XMLHTTP");}
catch(e) {} 
if(!xmlHttp3){ 
window.alert("No Create XML"); 
return false; 
}}
} 
function uA(n) {
var obj_id,obj_t,obj_c;
for(var i=1; i<=5; i++){
id="u"+i;
obj_id = $(id);
obj_t  = $(id+'t');
obj_c  = $(id+'c');
if (id==n.id){
createXML();
xmlHttp.open("POST",ajxpath+'u'+ajxext+'i='+i,true); 
xmlHttp.onreadystatechange = uDateFeedA; 
xmlHttp.send(null); 
obj_id.className="ed";
obj_t.style.display = obj_c.style.display = "block";
	$('sex12').className="showsex12";
	$('sex11').className="showsex12";

}else{
obj_id.className="";
obj_t.style.display = obj_c.style.display = "none";
}
}
}
function uB(i,sex) {
createXML();
xmlHttp.open("POST",ajxpath+'u'+ajxext+'i='+i+'&sex='+sex,true); 
xmlHttp.onreadystatechange = uDateFeedA; 
xmlHttp.send(null); 
if (sex==1){
$('sex'+i+'1').className="showsex12ed";
$('sex'+i+'2').className="showsex12";
}else if(sex==2){
$('sex'+i+'2').className="showsex12ed";
$('sex'+i+'1').className="showsex12";
}
}
function uDateFeedA(){ 
if (xmlHttp.readyState == 4 && xmlHttp.status == 200){
var returndate;
returndate = xmlHttp.responseText;
s = returndate.split("|ZEAI|"); 
c = s[0];
i = s[1];
var obj_c  = $("u"+i+'c');
obj_c.innerHTML = c;
} 
}
function g(n) {
var obj_id,obj_c;
for(var i=1; i<=5; i++){
id="g"+i;
obj_id = $(id);
obj_c  = $(id+'c');
if (id==n.id){
createXML2();
xmlHttp2.open("POST",ajxpath+'g'+ajxext+'i='+i,true); 
xmlHttp2.onreadystatechange = gDateFeed; 
xmlHttp2.send(null); 
obj_id.className="ed";
obj_c.style.display = "block";
}else{
obj_id.className="";
obj_c.style.display = "none";
}
}
}
function gDateFeed(){ 
if (xmlHttp2.readyState == 4 && xmlHttp2.status == 200){
var returndate;
returndate = xmlHttp2.responseText;
s = returndate.split("|ZEAI|"); 
c = s[0];
i = s[1];
var obj_c  = $("g"+i+'c');
obj_c.innerHTML = c;
} 
}
function p(n) {
var obj_id,obj_c;
for(var i=1; i<=4; i++){
id="p"+i;
obj_id = $(id);
obj_c  = $(id+'c');
if (id==n.id){
createXML3();
xmlHttp3.open("POST",ajxpath+'p'+ajxext+'i='+i,true); 
xmlHttp3.onreadystatechange = pDateFeed; 
xmlHttp3.send(null); 
if (i==4){
obj_id.className="mRtA mRtAed mgnR0";
}else{
obj_id.className="mRtA mRtAed";
}
obj_c.style.display = "block";
}else{
if (i==4){
obj_id.className="mRtA mgnR0";
}else{
obj_id.className="mRtA";
}
obj_c.style.display = "none";
}
}
}
function pDateFeed(){ 
if (xmlHttp3.readyState == 4 && xmlHttp3.status == 200){
var returndate;
returndate = xmlHttp3.responseText;
s = returndate.split("|ZEAI|"); 
c = s[0];
i = s[1];
var obj_c = $("p"+i+'c');
obj_c.innerHTML = c;
} 
}
