
var homeads = "<iframe width=900 height=127 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no src=\"../AdsFile/Ad_LOGO.htm\"></iframe>";
document.getElementById('Ad_Logo').innerHTML = homeads;
homeads = "<iframe width=215 height=61 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no src='../AdsFile/Ad68.htm'></iframe>";
document.getElementById('Ad68').innerHTML = homeads;
homeads = "<iframe width=900 height=120 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no src=\"../AdsFile/Ad79.htm\"></iframe>";
document.getElementById('Ad79').innerHTML = homeads;
homeads = "<iframe width=900 height=100 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no src=\"../AdsFile/Ad80.htm\"></iframe>";
document.getElementById('Ad80').innerHTML = homeads;
 

var nheight=0;
var b=0;

function setpara(o)
{
	b=o;
}

function setinfo()
{
if(Jd_Hit.scrollHeight-Jd_Hit.scrollTop>nheight)
{
if(b==0) Jd_Hit.scrollTop+=5;
}
setTimeout("setinfo();",10);
}
function setval()
{	
	if(b==0) nheight-=400;
	if(nheight<=0)
	{
		nheight=Jd_Hit.scrollHeight;
		Jd_Hit.scrollTop=0;
	}
	setTimeout("setval();",8000);
}
function begin()
{
nheight=Jd_Hit.scrollHeight+400;
setinfo();
setval();
}
window.onload=begin

function tab_gj(obj)
{
	if(obj.id=="tab_lygj_1")
	{
	tab_lygj.className="right_top_bg_1";
	document.getElementById("lygj").innerHTML=tools.innerHTML;
	}
	else
	{
	tab_lygj.className="right_top_bg_1_1";
	document.getElementById("lygj").innerHTML=asked.innerHTML;
	}
	tab_lygj_1.className="right_top_2";
	tab_lygj_2.className="right_top_2";
	obj.className="right_top_1";
}
function tab_jdjp(obj)
{
	if(obj.id=="tab_jd_1")
	{
	tab_jd.className="right_top_bg_1";
	document.getElementById("jdjp").innerHTML=hotel.innerHTML;
	}
	else
	{
	tab_jd.className="right_top_bg_1_1";
	document.getElementById("jdjp").innerHTML=plane.innerHTML;
	}
	tab_jd_1.className="right_top_2";
	tab_jd_2.className="right_top_2";
	obj.className="right_top_1";
}
function tab_job_1(obj)
{
	if(obj.id=="tab_job_1")
	{
	tab_job.className="right_top_bg_1";
	document.getElementById("job").innerHTML=zp.innerHTML;
	}
	else
	{
	tab_job.className="right_top_bg_1_1";
	document.getElementById("job").innerHTML=qz.innerHTML;
	}
	tab_job_1.className="right_top_2";
	tab_job_2.className="right_top_2";
	obj.className="right_top_1";
}
function change(obj)
{
	twy.className="xl_bg_1";
	tgq.className="xl_bg_1";
	tyd.className="xl_bg_1";
	tcj.className="xl_bg_1";
	document.getElementById("t"+obj.id).className="xl_bg_2";
	document.getElementById("jjy").innerHTML=obj.innerHTML;
}
function changexx(obj)
{
	tgsy.className="xl_bg_1";
	txzy.className="xl_bg_1";
	tqhy.className="xl_bg_1";
	ttxy.className="xl_bg_1";
	document.getElementById("t"+obj.id).className="xl_bg_2";
	document.getElementById("xxy").innerHTML=obj.innerHTML;
}
function changebar()
{

}

function TurnPic_hotel(key)
{
	var PicArray = document.getElementById("PicShow_hotel").innerHTML.split("$");
	var NewKey = 0;
	NewKey = document.getElementById("Pic_Count_hotel").value;
	if(key=='0')
	{
	if(NewKey>0)
	{
		NewKey--;
		document.all.Pic_Show_hotel.filters.revealTrans.Transition=6;
		document.all.Pic_Show_hotel.filters.revealTrans.apply();
		document.all.Pic_Show_hotel.filters.revealTrans.play();
		document.getElementById("Pic_Show_hotel").innerHTML=PicArray[NewKey];
		document.getElementById("Pic_Count_hotel").value=NewKey;
		}
	}
	else
	{
	if(NewKey<PicArray.length-1)
	{
		NewKey++;
		document.all.Pic_Show_hotel.filters.revealTrans.Transition=7;
		document.all.Pic_Show_hotel.filters.revealTrans.apply();
		document.all.Pic_Show_hotel.filters.revealTrans.play();
		document.getElementById("Pic_Show_hotel").innerHTML=PicArray[NewKey];
		document.getElementById("Pic_Count_hotel").value=NewKey;
		}
	}
}

function TurnPic(key)
{
	var PicArray = document.getElementById("PicShow").innerHTML.split("$");
	var NewKey = 0;
	NewKey = document.getElementById("Pic_Count").value;
	if(key=='0')
	{
	if(NewKey>0)
	{
		NewKey--;
		document.all.Pic_Show.filters.revealTrans.Transition=6;
		document.all.Pic_Show.filters.revealTrans.apply();
		document.all.Pic_Show.filters.revealTrans.play();
		document.getElementById("Pic_Show").innerHTML=PicArray[NewKey];
		document.getElementById("Pic_Count").value=NewKey;
		}
	}
	else
	{
	if(NewKey<PicArray.length-1)
	{
		NewKey++;
		document.all.Pic_Show.filters.revealTrans.Transition=7;
		document.all.Pic_Show.filters.revealTrans.apply();
		document.all.Pic_Show.filters.revealTrans.play();
		document.getElementById("Pic_Show").innerHTML=PicArray[NewKey];
		document.getElementById("Pic_Count").value=NewKey;
		}
	}
}

function tab_tjunits(obj,tobj)
{
	for(var j=1;j<10;j++)
	{
		document.getElementById(tobj+j).className="Tj_Units_bg_2";
	}
	document.getElementById(tobj+obj).className="Tj_Units_bg_1";
	document.getElementById("TjUnits").innerHTML=document.getElementById("TjUnits_"+obj).innerHTML	
}
