var startTime,endTime;

var d=new Date();

startTime=d.getTime();



function JugeComment(myform)

{

	if (document.myform.UserName.value==""){

		alert ("not name!");

		document.myform.UserName.focus();

		return(false);

	}

	if (document.myform.content.value == "")

	{

		alert("not comment!");

		document.myform.content.focus();

                return (false);

	}

}

function CheckAll(form) {  

	for (var i=0;i<form.elements.length;i++)  

	{  

		var e = form.elements[i];  

		if (e.name != 'chkall')  

		e.checked = true // form.chkall.checked;  

	}  

} 

 

function ContraSel(form) {

	for (var i=0;i<form.elements.length;i++)

	{

		var e = form.elements[i];

		if (e.name != 'chkall')

		e.checked=!e.checked;

	}

}

function bbimg(o){

	var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%';

	return false;

}

function imgzoom(img,maxsize){

	var a=new Image();

	a.src=img.src

	if(a.width > maxsize * 4)

	{

		img.style.width=maxsize;

	}

	else if(a.width >= maxsize)

	{

		img.style.width=Math.round(a.width * Math.floor(4 * maxsize / a.width) / 4);

	}

	return false;

}

//////

var resizemode=1

function imgresize(o){

	 if (resizemode==2 || o.onmousewheel){

	 	if(o.width > 500 ){

				o.style.width='500px';

			}

			if(o.height > 800){

				o.style.height='800px';

			}

		}else{

		var parentNode=o.parentNode.parentNode

		if (parentNode){

		if (o.offsetWidth>=parentNode.offsetWidth) o.style.width='98%';

		}else{

		var parentNode=o.parentNode

		if (parentNode){

			if (o.offsetWidth>=parentNode.offsetWidth) o.style.width='98%';

			}

		}

	}

}

//

function runEx(cod1)  {

	 cod=document.getElementById(cod1)

	  var code=cod.value;

	  if (code!=""){

		  var newwin=window.open('','','');  

		  newwin.opener = null 

		  newwin.document.write(code);  

		  newwin.document.close();

	}

}

//

function doCopy(ID) { 

	if (document.all){

		 textRange = document.getElementById(ID).createTextRange(); 

		 textRange.execCommand("Copy"); 

	}

	else{

		 alert("ie")

	}

}



var MediaTemp=new Array()

function MediaShow(strType,strID,strURL,intWidth,intHeight,strPath)

{

	var tmpstr

	if (MediaTemp[strID]==undefined) MediaTemp[strID]=false; else MediaTemp[strID]=!MediaTemp[strID];

	if(MediaTemp[strID]){

			if ( document.all )	{

	         	document.getElementById(strID).outerHTML = '<div id="'+strID+'"></div>'

			}

			else

			{

	         	document.getElementById(strID).innerHTML = ''

			}



		document.images[strID+"_img"].src=strPath+"mm_snd.gif" 		

		document.getElementById(strID+"_text").innerHTML="open online"	

	}else{

		document.images[strID+"_img"].src=strPath+"mm_snd_stop.gif" 		

		document.getElementById(strID+"_text").innerHTML="close online"

		switch(strType){

			case "flash":

				tmpstr='<div style="height:6px;overflow:hidden"></div><object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+intWidth+'" height="'+intHeight+'"><param name="movie" value="'+strURL+'" /><param name="quality" value="high" /><param name="AllowScriptAccess" value="never" /><embed src="'+strURL+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+intWidth+'" height="'+intHeight+'" /></object>';

				break;

			case "wma":

				tmpstr='<div style="height:6px;overflow:hidden"></div><object classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"  id="MediaPlayer" width="450" height="70"><param name=""howStatusBar" value="-1"><param name="AutoStart" value="True"><param name="Filename" value="'+strURL+'"></object>';

				break;

			case "wmv":

				tmpstr='<div style="height:6px;overflow:hidden"></div><object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902" type="application/x-oleobject" standby="Loading..." width="'+intWidth+'" height="'+intHeight+'"><param name="FileName" VALUE="'+strURL+'" /><param name="ShowStatusBar" value="-1" /><param name="AutoStart" value="true" /><embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="'+strURL+'" autostart="true" width="'+intWidth+'" height="'+intHeight+'" /></object>';

				break;

			case "rm":

				tmpstr='<div style="height:6px;overflow:hidden"></div><object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="'+intWidth+'" height="'+intHeight+'"><param name="SRC" value="'+strURL+'" /><param name="CONTROLS" VALUE="ImageWindow" /><param name="CONSOLE" value="one" /><param name="AUTOSTART" value="true" /><embed src="'+strURL+'" nojava="true" controls="ImageWindow" console="one" width="'+intWidth+'" height="'+intHeight+'"></object>'+

                '<br/><object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="'+intWidth+'" height="32" /><param name="CONTROLS" value="StatusBar" /><param name="AUTOSTART" value="true" /><param name="CONSOLE" value="one" /><embed src="'+strURL+'" nojava="true" controls="StatusBar" console="one" width="'+intWidth+'" height="24" /></object>'+'<br /><object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="'+intWidth+'" height="32" /><param name="CONTROLS" value="ControlPanel" /><param name="AUTOSTART" value="true" /><param name="CONSOLE" value="one" /><embed src="'+strURL+'" nojava="true" controls="ControlPanel" console="one" width="'+intWidth+'" height="24" autostart="true" loop="false" /></object>';

				break;

			case "ra":

				tmpstr='<div style="height:6px;overflow:hidden"></div><object classid="clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" id="RAOCX" width="450" height="60"><param name="_ExtentX" value="6694"><param name="_ExtentY" value="1588"><param name="AUTOSTART" value="true"><param name="SHUFFLE" value="0"><param name="PREFETCH" value="0"><param name="NOLABELS" value="0"><param name="SRC" value="'+strURL+'"><param name="CONTROLS" value="StatusBar,ControlPanel"><param name="LOOP" value="0"><param name="NUMLOOP" value="0"><param name="CENTER" value="0"><param name="MAINTAINASPECT" value="0"><param name="BACKGROUNDCOLOR" value="#000000"><embed src="'+strURL+'" width="450" autostart="true" height="60"></embed></object>';

				break;

			case "qt":

				tmpstr='<div style="height:6px;overflow:hidden"></div><embed src="'+strURL+'" autoplay="true" loop="false" controller="true" playeveryframe="false" cache="false" scale="TOFIT" bgcolor="#000000" kioskmode="false" targetcache="false" pluginspage="http://www.apple.com/quicktime/" />';

		}

		document.getElementById(strID).innerHTML = tmpstr;

	}

		document.getElementById(strID+"_href").blur()

}



function getObject(objectId) {

if(document.getElementById && document.getElementById(objectId)) {

return document.getElementById(objectId);

} else if (document.all && document.all(objectId)) {

return document.all(objectId);

} else if (document.layers && document.layers[objectId]) {

return document.layers[objectId];

} else {

return false;

}

}

function s_Tab(n){

//var bg1="url(images/hs007.gif)"; 

//var bg2="url(images/hs008.gif)"; 

for(var i=1;i<=4;i++){

if (i==n){

//getObject('stab'+i).style.backcolor='#000333';

getObject('stab'+i).style.color='#FEF600';

getObject('s_tab'+i).style.display='';

}

else {

//getObject('stab'+i).style.background=bg2;

getObject('s_tab'+i).style.display='none';

getObject('stab'+i).style.color='#FFFFFF';

}

}

}



function s_s_Tab(n){

//var bg1="url(images/hs007.gif)"; 

//var bg2="url(images/hs008.gif)"; 

for(var i=1;i<=4;i++){

if (i==n){

//getObject('stab'+i).style.backcolor='#000333';

getObject('stab'+i).style.color='#FF0000';

getObject('s_tab'+i).style.display='';

}

else {

//getObject('stab'+i).style.background=bg2;

getObject('s_tab'+i).style.display='none';

getObject('stab'+i).style.color='#000000';

}

}

}

function HT_Tab(n){

var bg1="url(images/y_anniu1.gif)"; 

var bg2="url(images/y_anniu2.gif)"; 

for(var i=1;i<=3;i++){

if (i==n){

getObject('HTtab'+i).className='hot_li1';

//getObject('HTtab'+i).style.color='#FEF600';

getObject('HT_tab'+i).style.display='';

}

else {

getObject('HTtab'+i).className='hot_li2';

getObject('HT_tab'+i).style.display='none';

//getObject('HTtab'+i).style.color='#FFFFFF';

}

}

}



function HT_Tab2(n){

var bg1="url(images/y_anniu1.gif)"; 

var bg2="url(images/y_anniu2.gif)"; 

for(var i=1;i<=3;i++){

if (i==n){

getObject('HTtab2'+i).className='hot_li1';

//getObject('HTtab'+i).style.color='#FEF600';

getObject('HT_tab2'+i).style.display='';

}

else {

getObject('HTtab2'+i).className='hot_li2';

getObject('HT_tab2'+i).style.display='none';

//getObject('HTtab'+i).style.color='#FFFFFF';

}

}

}



function Sight_Tab(n){ 

for(var i=1;i<=3;i++){

if (i==n){

getObject('sighttab'+i).className='sight_top_li1';

getObject('sight_list'+i).className='sight_list';

}

else {

getObject('sighttab'+i).className='sight_top_li2';

getObject('sight_list'+i).className='notbox';

}

}

}

function Act_Tab(n){ 

for(var i=1;i<=3;i++){

if (i==n){

getObject('acttab'+i).className='act_top_li1';

getObject('act_list'+i).className='act_list';

}

else {

getObject('acttab'+i).className='act_top_li2';

getObject('act_list'+i).className='notbox';

}

}

}

function Mov_Tab(n){ 

for(var i=1;i<=3;i++){

if (i==n){

getObject('mtab'+i).className='mtab_bar_li1';

getObject('mtab_main'+i).className='mtab_main1';

}

else {

getObject('mtab'+i).className='mtab_bar_li2';

getObject('mtab_main'+i).className='mtab_main2';

}

}

}





function Pic_Tab(n){ 

for(var i=1;i<=3;i++){

if (i==n){

getObject('pictab'+i).className='pic_li1';

getObject('pic_main'+i).className='pic_main';

}

else {

getObject('pictab'+i).className='pic_li2';

getObject('pic_main'+i).className='notbox';

}

}

}



function Photo_Show(n){ 

for(var i=1;i<=5;i++){

if (i==n){

getObject('photobut'+i).className='photobut1';

getObject('photo'+i).className='show_photo1';

}

else {

getObject('photobut'+i).className='photobut2';

getObject('photo'+i).className='show_photo2';



}

}

}



function showcity(n){ 

for(var i=1;i<=34;i++){

if (i==n){

var x=window.event.x;

var y=window.event.y;

getObject('load').style.position='absolute';

/*var z=getObject('map'+i).coords;

var ff;

ff=z.split(',');*/



getObject('load').style.left=x-22;

getObject('load').style.top=y-23;



getObject('citys'+i).className='C2_citys_main1';

}

else {

getObject('citys'+i).className='C2_citys2';

}

}

}



function showcitytype(n){ 

for(var i=1;i<=7;i++){

if (i==n){
getObject('leftmain'+i).className='C3_right_leftmain1';
getObject('cas'+i).className='C3_table1';

}

else {
getObject('leftmain'+i).className='C3_right_leftmain2';
getObject('cas'+i).className='C3_table2';
}

}

}







function Tes_Tab(n){ 

for(var i=1;i<=2;i++){

if (i==n){

getObject('tes'+i).className='tes_li1';

getObject('tesmain'+i).className='act_list';

}

else {

getObject('tes'+i).className='tes_li2';

getObject('tesmain'+i).className='notbox';

}

}

}

function Res_Tab(n){ 

for(var i=1;i<=3;i++){

if (i==n){

getObject('res'+i).className='res_hotel_li1';

getObject('resmain'+i).className='sight_list';

}

else {

getObject('res'+i).className='res_hotel_li2';

getObject('resmain'+i).className='notbox';

}

}

}



function explorels(n){ 

for(var i=1;i<=2;i++){

if (i==n){

getObject('explorelsbar'+i).className='Explorebar1';

getObject('explorels'+i).className='h2_YS_main';

}

else {

	getObject('explorelsbar'+i).className='Explorebar2';

getObject('explorels'+i).className='notbox';

}

}

}



function explorete(n){ 

for(var i=1;i<=2;i++){

if (i==n){

	getObject('explorebarR'+i).className='ExplorebarR1';

getObject('explorete'+i).className='h2_GL_main';

}

else {

	getObject('explorebarR'+i).className='ExplorebarR2';

getObject('explorete'+i).className='notbox';

}

}

}



function explorest(n){ 

for(var i=1;i<=2;i++){

if (i==n){

getObject('explorest'+i).className='h2_GLS_main';

}

else {

getObject('explorest'+i).className='notbox';

}

}

}





function guilinhotel(n){ 

for(var i=1;i<=5;i++){

if (i==n){

getObject('guilinhotel'+i).className='h2_GL_main';

}

else {

getObject('guilinhotel'+i).className='notbox';

}

}

}





function GuilinSur(n){ 

for(var i=1;i<=5;i++){

if (i==n){

getObject('GuilinSur'+i).className='h2_GLS_main';

}

else {

getObject('GuilinSur'+i).className='notbox';

}

}

}



function csbar1(n){ 

for(var i=1;i<=4;i++){

if (i==n){

getObject('csbar1'+i).className='S2_bartool1';

getObject('csmain1'+i).className='S2_contentmain';

}

else {

getObject('csbar1'+i).className='S2_bartool2';

getObject('csmain1'+i).className='notbox';

}

}

}

function csbar2(n){ 

for(var i=1;i<=4;i++){

if (i==n){

getObject('csbar2'+i).className='S2_bartool1';

getObject('csmain2'+i).className='S2_contentmain';

}

else {

getObject('csbar2'+i).className='S2_bartool2';

getObject('csmain2'+i).className='notbox';

}

}

}

function csbar3(n){ 

for(var i=1;i<=4;i++){

if (i==n){

getObject('csbar3'+i).className='S2_bartool1';

getObject('csmain3'+i).className='S2_contentmain';

}

else {

getObject('csbar3'+i).className='S2_bartool2';

getObject('csmain3'+i).className='notbox';

}

}

}

function csbar4(n){ 

for(var i=1;i<=4;i++){

if (i==n){

getObject('csbar4'+i).className='S2_bartool1';

getObject('csmain4'+i).className='S2_contentmain';

}

else {

getObject('csbar4'+i).className='S2_bartool2';

getObject('csmain4'+i).className='notbox';

}

}

}





function chbar1(n){ 

for(var i=1;i<=4;i++){

if (i==n){

getObject('chbar1'+i).className='CH_hbar1';

getObject('chmain1'+i).className='h2_YS_main';

}

else {

getObject('chbar1'+i).className='CH_hbar2';

getObject('chmain1'+i).className='notbox';

}

}

}

function chbar2(n){ 

for(var i=1;i<=4;i++){

if (i==n){

getObject('chbar2'+i).className='CH_rbar1';

getObject('chmain2'+i).className='h2_GL_main';

}

else {

getObject('chbar2'+i).className='CH_rbar2';

getObject('chmain2'+i).className='notbox';

}

}

}

function chbar3(n){ 

for(var i=1;i<=4;i++){

if (i==n){

getObject('chbar3'+i).className='CH_bbar1';

getObject('chmain3'+i).className='h2_GLS_main';

}

else {

getObject('chbar3'+i).className='CH_bbar2';

getObject('chmain3'+i).className='notbox';

}

}

}

function chbar4(n){ 

for(var i=1;i<=4;i++){

if (i==n){

getObject('chbar4'+i).className='CH_bbar1';

getObject('chmain4'+i).className='h2_GLS_main';

}

else {

getObject('chbar4'+i).className='CH_bbar2';

getObject('chmain4'+i).className='notbox';

}

}

}







function ctbar1(n){ 

for(var i=1;i<=4;i++){

if (i==n){

getObject('ctbar1'+i).className='T2_bartool1';

getObject('ctmain1'+i).className='S2_contentmain';

}

else {

getObject('ctbar1'+i).className='T2_bartool2';

getObject('ctmain1'+i).className='notbox';

}

}

}

function ctbar2(n){ 

for(var i=1;i<=4;i++){

if (i==n){

getObject('ctbar2'+i).className='T2_bartool1';

getObject('ctmain2'+i).className='S2_contentmain';

}

else {

getObject('ctbar2'+i).className='T2_bartool2';

getObject('ctmain2'+i).className='notbox';

}

}

}

function ctbar3(n){ 

for(var i=1;i<=4;i++){

if (i==n){

getObject('ctbar3'+i).className='T2_bartool1';

getObject('ctmain3'+i).className='S2_contentmain';

}

else {

getObject('ctbar3'+i).className='T2_bartool2';

getObject('ctmain3'+i).className='notbox';

}

}

}

function ctbar4(n){ 

for(var i=1;i<=4;i++){

if (i==n){

getObject('ctbar4'+i).className='T2_bartool1';

getObject('ctmain4'+i).className='S2_contentmain';

}

else {

getObject('ctbar4'+i).className='T2_bartool2';

getObject('ctmain4'+i).className='notbox';

}

}

}



function glbar(n){ 

for(var i=1;i<=5;i++){

if (i==n){

getObject('glbar'+i).className='S2_bartool1';

getObject('glmain'+i).className='S2_contentmain';

}

else {

getObject('glbar'+i).className='S2_bartool2';

getObject('glmain'+i).className='notbox';

}

}

}



function hotelbar(n){ 

for(var i=1;i<=5;i++){

if (i==n){

getObject('hotelbar'+i).className='S2_bartool1';

getObject('hotelmain'+i).className='S2_contentmain';

}

else {

getObject('hotelbar'+i).className='S2_bartool2';

getObject('hotelmain'+i).className='notbox';

}

}

}



function tourbar(n){ 

for(var i=1;i<=5;i++){

if (i==n){

getObject('tourbar'+i).className='S2_bartool1';

getObject('tourmain'+i).className='S2_contentmain';

}

else {

getObject('tourbar'+i).className='S2_bartool2';

getObject('tourmain'+i).className='notbox';

}

}

}



function artbar(n){ 

for(var i=1;i<=3;i++){

if (i==n){

getObject('artbar'+i).className='Explorebar1';

getObject('artmain'+i).className='h2_YS_main';

}

else {

getObject('artbar'+i).className='Explorebar2';

getObject('artmain'+i).className='notbox';

}

}

}



function linkbar(n){ 

for(var i=1;i<=2;i++){

if (i==n){

getObject('linkbar'+i).className='ExplorebarR1';

getObject('linkmain'+i).className='h2_GL_main';

}

else {

getObject('linkbar'+i).className='ExplorebarR2';

getObject('linkmain'+i).className='notbox';

}

}

}







function K(n){

for(var i=1;i<=3;i++){

if (i==n){



getObject('z'+i).className='botys2';

getObject('za'+i).className='ys3';

getObject('zs'+i).className='ys4';

getObject('zd'+i).className='ys5';

}

else {



getObject('z'+i).className='botys';

getObject('za'+i).className='ys1';

getObject('zs'+i).className='ys1bg';

getObject('zd'+i).className='ys2';

}

}

}



function L(n){

for(var i=1;i<=3;i++){

if (i==n){



getObject('zq'+i).className='ys11';

getObject('zv'+i).className='yoi';

}

else {

getObject('zq'+i).className='ys12';

getObject('zv'+i).className='noi';

}

}

}



var i=1

var j=1



function startplay()

{ 

window.setTimeout('cueNext('+i+')',1000);

}

function cueNext(n)

{

	for(j=1;j<6;j++)

	{

if(j==n){

getObject('photobut'+j).className='photobut1';

getObject('photo'+j).className='show_photo1';

}

else

{

getObject('photobut'+j).className='photobut2';

getObject('photo'+j).className='show_photo2';

}

	}

i++;

if(i==6)i=1;

window.setTimeout('cueNext('+i+')',5000);

};

