	
var imgUrl=new Array();
var imgLink=new Array();

var picNum=0;
var y="2";


	function uio()
	{ 
	 imgUrl[1]="../fuye/gg_xl_xl/"+document.all.Text1.value;
imgLink[1]=document.all.Text8.value;

imgUrl[2]="../fuye/gg_xl_xl/"+document.all.Text2.value;
imgLink[2]=document.all.Text7.value;

imgUrl[3]="../fuye/gg_xl_xl/"+document.all.Text3.value;
imgLink[3]=document.all.Text6.value;

imgUrl[4]="../fuye/gg_xl_xl/"+document.all.Text4.value;
imgLink[4]=document.all.Text5.value;
y="7";
NextPic()

	}

function NextPic(){

if(y=="7")
{
    if(picNum<4) picNum++ ;//显示4个图片
    else picNum=1;
    if (document.all){
        //下面注意，如果存在于FORM表单中，需要使用下面的方法，否则可直接使用name。
        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=imgUrl[picNum];
    theTimer=setTimeout('NextPic()', 3000);
    }
    else
    { 
    if (document.all){
        //下面注意，如果存在于FORM表单中，需要使用下面的方法，否则可直接使用name。
        document.imgInit.filters.revealTrans.Transition=Math.floor(Math.random()*23);
        document.imgInit.filters.revealTrans.apply();
        document.imgInit.filters.revealTrans.play();
    }
    document.images.imgInit.src=imgUrl[1];

    }
}

function goUrl(){

    window.open(imgLink[picNum],'right');
}
	
	
	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 dj(dd)
{
    document.images.imgInit.src=imgUrl[dd];
	picNum=dd;
}



