function GoWin(sUrl,sName,sWidth,sHeight){
	var sUrl,sName,sWidth,sHeight;
	window.open(sUrl,sName,'width=' + sWidth + ',height=' + sHeight + ',top=0,left=0,scrollbars=no,resizable=no,menubar=no');
}
function openFullWin_cn(){
window.open("http://www.touranchina.com/experience_cn/main.html","","fullscreen=yes,resizable=0,scroll=no")
}
function openFullWin(sUrl){
window.open(sUrl,"","fullscreen=yes,resizable=0,scroll=no")
}

function mainWind(picID,picSrc,windSrc,sAction){
	if(picID == "menu_tool00"){
		document.menu_tool00.src="images/btn_menu00.gif";
		document.menu_tool01.src="images/btn_menu01s.gif";
		document.menu_tool02.src="images/btn_menu02s.gif";
		//document.moreImg.src="images/more0.gif";
		$('content').style.backgroundImage="url(images/content_bg0.gif)";
		content1.style.display="none";
		content2.style.display="none";
	}else if(picID == "menu_tool01"){
		document.menu_tool00.src="images/btn_menu00s.gif";
		document.menu_tool01.src="images/btn_menu01.gif";
		document.menu_tool02.src="images/btn_menu02s.gif";
		//document.moreImg.src="images/more1.gif";
		$('content').style.backgroundImage="url(images/content_bg.gif)";	
		content0.style.display="none";
		content2.style.display="none";
	}else
	{
		document.menu_tool00.src="images/btn_menu00s.gif";
		document.menu_tool01.src="images/btn_menu01s.gif";
		document.menu_tool02.src="images/btn_menu02.gif";
		//document.moreImg.src="images/more2.gif";
		$('content').style.backgroundImage="url(images/content_bg2.gif)";
		content0.style.display="none";
		content1.style.display="none";
	}

	eval(windSrc + ".style.display='" + sAction + "'");	
}

function setDiv(picID,picSrc,divID,sAction){
	eval(picID + ".src='" + picSrc +"'");
	eval(divID + ".style.display='" + sAction + "'");
}

function setMenuBtn(Bid,sSrc){
	var Bid,sSrc;
		eval(Bid + ".src='" + sSrc +"'");
}

function setDiv2(ID,divName,n,hrefName,newClass){
	for(i=1;i<=n;i++){
		eval(divName + i + ".style.display='none'");
		eval(hrefName + i + ".className='white_link';");
	}
	eval(divName + ID + ".style.display='block'");
	eval(hrefName + ID + ".className='"+newClass+"';");
}
var imgObj; 
function checkImg(theURL,winName){ 
  // 对象是否已创建 
  if (typeof(imgObj) == "object"){ 
    // 是否已取得了图像的高度和宽度 
    if ((imgObj.width != 0) && (imgObj.height != 0)) 
      // 根据取得的图像高度和宽度设置弹出窗口的高度与宽度，并打开该窗口 
      // 其中的增量 20 和 30 是设置的窗口边框与图片间的间隔量 
      OpenFullSizeWindow(theURL,winName, ",width=" + (imgObj.width+20) + ",height=" + (imgObj.height+30)); 
    else 
      // 因为通过 Image 对象动态装载图片，不可能立即得到图片的宽度和高度，所以每隔100毫秒重复调用检查 
      setTimeout("checkImg(’" + theURL + "’,’" + winName + "’)", 100) 
  } 
} 
function OpenFullSizeWindow(theURL,winName,features) { 
  var aNewWin, sBaseCmd; 
  // 弹出窗口外观参数 
  sBaseCmd = "toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,"; 
  // 调用是否来自 checkImg  
  if (features == null || features == ""){ 
    // 创建图像对象 
    imgObj = new Image(); 
    // 设置图像源 
    imgObj.src = theURL; 
    // 开始获取图像大小 
    checkImg(theURL, winName) 
  } 
  else{ 
    // 打开窗口 
    aNewWin = window.open(theURL,winName, sBaseCmd + features); 
    // 聚焦窗口 
    aNewWin.focus(); 
  } 
} 
