document.writeln("<script type=\"text\/javascript\">");
document.writeln("			var isIE = navigator.appVersion.indexOf(\"MSIE\") != -1 ? true:false;");
document.writeln("			var TimeOut=5000;              \/\/每张图切换时间 (单位毫秒);");
document.writeln("			var playButtonPic = \"\/images/3.jpg\";");
document.writeln("			var stopButtonPic = \"\/images/4.jpg\";");
document.writeln("			var playState = \"play\";");
document.writeln("			var imgUrl=new Array();");
document.writeln("			var imgLink=new Array();");
document.writeln("			var imgtext=new Array();");
document.writeln("			var imgAlt=new Array();");
document.writeln("			var imgIntro=new Array();");
document.writeln("			var adNum=0;");
document.writeln("			var theTimer;");
document.writeln("");
document.writeln("			\/\/===");
document.writeln("			imgUrl[1]=\'\/images/3.jpg\';");
document.writeln("			imgIntro[1]=\'<div align=\"left\"><a href=\"\/resort/Mangrove_Tree_Resort.htm\" target=\"_blank\">The wind from the ocean may please your heart when you are lying on anywhere of the hotel<\/a><\/div>\';");
document.writeln("");
document.writeln("			imgUrl[2]=\'\/images/4.jpg\';");
document.writeln("			imgIntro[2]=\'<div align=\"left\"><a href=\"\/resort/Marriot_Resort.htm\" target=\"_blank\">Sanya Marriott Resort & Spa is a memorable place for a family vacation or romantic getaway<\/a><\/div>\';");
document.writeln("");
document.writeln("			\/\/===");
document.writeln("");
document.writeln("			function changeimg(n){");
document.writeln("									adNum=n;");
document.writeln("									window.clearInterval(theTimer);");
document.writeln("									adNum=adNum-1;");
document.writeln("									nextAd();");
document.writeln("								}");
document.writeln("");
document.writeln("								function goUrl(){");
document.writeln("								}");
document.writeln("");
document.writeln("								var count=0;");
document.writeln("								for (i=1;i<imgUrl.length;i++) {");
document.writeln("									if( (imgUrl[i]!=\"\") && (imgLink[i]!=\"\") ) {");
document.writeln("										count++;");
document.writeln("									} else {");
document.writeln("										break;");
document.writeln("									}");
document.writeln("								}");
document.writeln("");
document.writeln("								function playTran(){");
document.writeln("									if (isIE){");
document.writeln("										imgInit.filters.revealTrans.play();");
document.writeln("									}");
document.writeln("								}");
document.writeln("");
document.writeln("								var key=0;");
document.writeln("");
document.writeln("								function nextAd(){");
document.writeln("									if(adNum<(imgUrl.length-1)){");
document.writeln("										adNum++;");
document.writeln("									}else{");
document.writeln("										adNum=1;");
document.writeln("									}");
document.writeln("									if( key==0 ){");
document.writeln("										key=1;");
document.writeln("									} else if (isIE){");
document.writeln("										imgInit.filters.revealTrans.Transition=23;");
document.writeln("										imgInit.filters.revealTrans.apply();");
document.writeln("										playTran();");
document.writeln("									}");
document.writeln("");
document.writeln("									document.images.imgInit.src=imgUrl[adNum];");
document.writeln("");
document.writeln("									for (var i=1;i<=count;i++){");
document.writeln("										if (i!=adNum){");
document.writeln("										}");
document.writeln("									}");
document.writeln("									document.getElementById(\'focusintro\').innerHTML=imgIntro[adNum];");
document.writeln("									theTimer=setTimeout(\"nextAd()\", TimeOut);");
document.writeln("								}");
document.writeln("								function playControl(){");
document.writeln("									if(playState == \"play\"){ \/\/停止");
document.writeln("										document.getElementById(\"playButton\").src = stopButtonPic;");
document.writeln("										clearTimeout(theTimer);");
document.writeln("										playState = \"stop\";");
document.writeln("									}else{ \/\/播放");
document.writeln("										document.getElementById(\"playButton\").src = playButtonPic;");
document.writeln("										theTimer=setTimeout(\"nextAd()\", TimeOut);");
document.writeln("										playState = \"play\";");
document.writeln("									}");
document.writeln("								}");
document.writeln("								document.write(\'<div id=\"FocusImg_JS\">\');");
document.writeln("								document.write(\'		<img style=\"FILTER: revealTrans(duration=1,transition=5);\" src=\"\" name=\"imgInit\" width=\"131\" height=\"102\"\/>\');");
document.writeln("");
document.writeln("								for(var i=1;i<imgUrl.length;i++){");
document.writeln("								}");
document.writeln("");
document.writeln("								document.write(\'<div id=\"focusintro\">\'+imgIntro[1]+\'<\/div>\');			");
document.writeln("								document.write(\'<\/div>\');");
document.writeln("								nextAd();");
document.writeln("								<\/script>");