
function fdd(dd)
{
	
    window.open('http://www.lvvuu.com/bbs/index1.aspx?name='+dd,'_blank');
}


var Userlist;
if (window.XMLHttpRequest)
 { 
    oBao = new XMLHttpRequest();
}
 else if
  (window.ActiveXObject) 
  { 
    oBao = new ActiveXObject("Microsoft.XMLHTTP");
}
    oBao.open("POST","Show.asp",false);
    oBao.send(null);
    var strResult = unescape(oBao.responseText);
    var arrResult = strResult.split("###");
   // RemoveRow(); 
	var Userlen=arrResult.length;
	 var yy='',uu='',name1='';
    for(var i1=0;i1<Userlen;i1++)
    {
        arrTmp = arrResult[i1].split(",");
        num1 = arrTmp[0]; //字段userid的值 如果需要添加字段则从这里设置数据的值
        num2 = arrTmp[1]; 
		 num3 = arrTmp[2]; //字段username的值
   uu=uu+","+num1;
	yy=yy+","+num2;
	name1=name1+","+num3;
		}
		var  imgLink= yy.split(","); 
		var  imgUrl= uu.split(",");
		var  name2=name1.split(",");
	
var picNum=0;




function NextPic()
{
    if(picNum<4 &  picNum>0 ) 
	picNum++;  
    else picNum=1;
    if (document.all){

        document.imgInit.filters.revealTrans.Transition=Math.floor(Math.random()*23);
        document.imgInit.filters.revealTrans.apply();
        document.imgInit.filters.revealTrans.play();
	
		if (picNum==Layer1.innerHTML)
		{
		Layer1.style.backgroundColor='#0049a5';
		Layer2.style.backgroundColor='#9ec9ec';
		Layer3.style.backgroundColor='#9ec9ec';
		Layer4.style.backgroundColor='#9ec9ec';
		}
		else if (picNum==Layer2.innerHTML)
		{
		Layer1.style.backgroundColor='#9ec9ec';
		Layer2.style.backgroundColor='#0049a5';
		Layer3.style.backgroundColor='#9ec9ec';
		Layer4.style.backgroundColor='#9ec9ec';
		}
		else if (picNum==Layer3.innerHTML)
		{
		Layer1.style.backgroundColor='#9ec9ec';
		Layer2.style.backgroundColor='#9ec9ec';
		Layer3.style.backgroundColor='#0049a5';
		Layer4.style.backgroundColor='#9ec9ec';
		}
		else 
		{
		Layer1.style.backgroundColor='#9ec9ec';
		Layer2.style.backgroundColor='#9ec9ec';
		Layer3.style.backgroundColor='#9ec9ec';
		Layer4.style.backgroundColor='#0049a5';
		}
    }

    document.images.imgInit.src="admin_xl/"+imgUrl[picNum];
	objnum=eval("picnum");
	objnum.innerText=name2[picNum];
    theTimer=setTimeout('NextPic()', 4000);
}
function dj(dd)
{
    document.images.imgInit.src="admin_xl/"+imgUrl[dd];
	picNum=dd;
}

function gg(dd)
{
		if (dd==1)
		{
		Layer1.style.backgroundColor='#0049a5';
		Layer2.style.backgroundColor='#9ec9ec';
		Layer3.style.backgroundColor='#9ec9ec';
		Layer4.style.backgroundColor='#9ec9ec';
		}
		else if (dd==2)
		{
		Layer1.style.backgroundColor='#9ec9ec';
		Layer2.style.backgroundColor='#0049a5';
		Layer3.style.backgroundColor='#9ec9ec';
		Layer4.style.backgroundColor='#9ec9ec';
		}
		else if (dd==3)
		{
		Layer1.style.backgroundColor='#9ec9ec';
		Layer2.style.backgroundColor='#9ec9ec';
		Layer3.style.backgroundColor='#0049a5';
		Layer4.style.backgroundColor='#9ec9ec';
		}
		else 
		{
		Layer1.style.backgroundColor='#9ec9ec';
		Layer2.style.backgroundColor='#9ec9ec';
		Layer3.style.backgroundColor='#9ec9ec';
		Layer4.style.backgroundColor='#0049a5';
		}
}

function goUrl()
{
 if (imgLink[picNum]=="")
  window.open('http://www.lvvuu.com/bbs/index.aspx','_blank');
  else
    window.open(imgLink[picNum],'_blank');
}


