<!--
if (screen.width == 800 )
   {
     var showtableleft=true
   }
if (screen.width != 800 )
   {
     var showtableright=true
   }
function overred(myColor)
{
myColor.color="#ff0000";
}
function outblue(myColor)
{
myColor.color="#333333";
}
function overgreen(myColor,divblock1,divblock2,divblock3,divblock4,divblock5,divblock6,divblock7,divblock8)
{
   myColor.color="#00ffff";
    if (divblock1.style.display=='none')
   {  
      divblock1.style.display='block' ;
   }
       if (divblock2.style.display=='block')
   {  
      divblock2.style.display='none' ;
   }
       if (divblock3.style.display=='block')
   {  
      divblock3.style.display='none' ;
   }
    if (divblock4.style.display=='block')
   {  
      divblock4.style.display='none' ;
   }
       if (divblock5.style.display=='block')
   {  
      divblock5.style.display='none' ;
   }
       if (divblock6.style.display=='block')
   {  
      divblock6.style.display='none' ;
   }
  if (divblock7.style.display=='block')
   {  
      divblock7.style.display='none' ;
   }
   if (divblock8.style.display=='block')
   {  
      divblock8.style.display='none' ;
   }
}
function outall(divblock1,divblock2,divblock3,divblock4,divblock5,divblock6,divblock7,divblock8)
{

      divblock1.style.display='none' ;
   
      divblock2.style.display='none' ;

      divblock3.style.display='none' ;
 
      divblock4.style.display='none' ;
  
      divblock5.style.display='none' ;
  
      divblock6.style.display='none' ;
 
      divblock7.style.display='none' ;
	  
	  divblock8.style.display='block' ;
 
}
function outwhite(myColor)
{
myColor.color="#ffffff";
}
var timerID = null
var timerRunning = false
var charNo = 0
var charMax = 0
var lineNo = 0
var lineMax = 3
var lineArr = new Array(lineMax)
var urlArr = new Array(lineMax)
lineArr[1] = "本店更多資訊"
urlArr[1] = "index.asp?module=intro"
lineArr[2] = "本店更多資訊"
urlArr[2] = "index.asp?module=intro"
lineArr[3] = "本店更多資訊"
urlArr[3] = "index.asp?module=intro"
lineArr[4] = "本店更多資訊"
urlArr[4] = "index.asp?module=intro"

var lineText = lineArr[1]

function StartShow() {
	StopShow()
	ShowLine()
	timerRunning = true
}

function FillSpaces() {
	for (var i = 1; i <= lineWidth; i++) {
		spaces += " "
	}
}

function StopShow() {
	if (timerRunning) {
		clearTimeout(timerID)
		timerRunning = false
	}
}

function ShowLine() {
	if (charNo == 0) { // Next line
		if (lineNo < lineMax) 	{
			lineNo++
		}
		else {
			lineNo = 1
		}
		lineText = lineArr[lineNo]
		charMax = lineText.length
	}
	if (charNo <= charMax) { // Next char
		document.formDisplay.buttonFace.value = lineText.substring(0, charNo)
		charNo++
		timerID = setTimeout("ShowLine()", 100)
	}
	else {
		charNo = 0
		timerID = setTimeout("ShowLine()", 3000)
	}
}

function GotoUrl(url)
{
	location.href = url
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
function closeleft(tableid)
{
   if (tableid.style.display=='block')
   {
      tableid.style.display='none' ;
   } 
}
function closeright(tableid)
{
   if (tableid.style.display=='block')
   {
      tableid.style.display='none' ;
   } 
}
var nowNode;
function loadXMLDoc(node,url)
{
// code for Mozilla, etc.
  nowNode = node;
  if (window.XMLHttpRequest)
  {
  xmlhttp=new XMLHttpRequest()
  xmlhttp.onreadystatechange=xmlhttpChange()
  xmlhttp.open("GET",url,true)
  xmlhttp.overrideMimeType('text/xml');
  xmlhttp.send(null)
  }
// code for IE
  else if (window.ActiveXObject)
  {
  //xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
		try{
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		}catch(e){
			try{
				xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			}catch(e){}
		}
    if (xmlhttp)
    {
    xmlhttp.onreadystatechange=xmlhttpChange
    xmlhttp.open("GET",url,true)
	//xmlhttp.setRequestHeader("Content-Type", "text/xml");
    xmlhttp.send(null)
    }
  }
}
function xmlhttpChange()
{
// if xmlhttp shows "loaded"
  if (xmlhttp.readyState==4)
  {
  // if "OK"
    if (xmlhttp.status==200)
    {
		nowNode.innerHTML = xmlhttp.responseText
    }
    else
    {
    //alert("Problem retrieving XML data")
    }
  }
}
//-->