var ie=false;
var ns=false;
if (document.all){ ie=true;}
else { ns=true; }

function preloadimage(imgelname,offimgname,onimgname){

	eval(imgelname + "_off" + "= new Image()")
	eval(imgelname + "_off" + ".src = '" + offimgname + "'")

	eval(imgelname + "_on" + "= new Image()")
	eval(imgelname + "_on" + ".src = '" + onimgname + "'")
}

function imgOn(imgName){
	if (document.images) {
		document[imgName].src = eval(imgName + "_on.src");
	}
}

function imgOff(imgName){
	if (document.images) {
		document[imgName].src = eval(imgName + "_off.src");
	}
}

function openwin(myWidth, myHeight, winName, theURL) {
  features = 'status=no,scrollbars=no,' + 'width=' + myWidth + ',height=' + myHeight; 
  win = window.open(theURL,winName,features);
  if (parseInt(navigator.appVersion) >= 4) { win.focus(); }
}

function openwin2(myWidth, myHeight, winName, theURL) {
  features = 'status=no,scrollbars=yes,' + 'width=' + myWidth + ',height=' + myHeight; 
  win = window.open(theURL,winName,features);
  if (parseInt(navigator.appVersion) >= 4) { win.focus(); }
}

function print_bottom_co()
{
	document.writeln("<table width=\"460\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td valign=top>");
	document.writeln("<br><br><br><font class=bottom2>|&nbsp;&nbsp;&nbsp;<a href=\"index_wp.html\" target=\"_parent\">Water Products</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href=\"index_dp.html\" target=\"_parent\">Distillation Process</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href=\"index_cs.html\" target=\"_parent\">Customer Services</a>&nbsp;&nbsp;&nbsp;|</font>");
	document.writeln("</td></tr></table>");
}
function c_print_bottom_co()
{
	document.writeln("<table width=\"460\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td valign=top>");
	document.writeln("<br><br><br><font class=bottom2>|&nbsp;&nbsp;&nbsp;<a href=\"index_wp.html\" target=\"_parent\">產 品 目 錄</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href=\"index_dp.html\" target=\"_parent\">蒸 餾 水 生 產 過 程</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href=\"index_cs.html\" target=\"_parent\">客 戶 服 務</a>&nbsp;&nbsp;&nbsp;|</font>");
	document.writeln("</td></tr></table>");
}

function print_bottom_wf()
{
	document.writeln("<table width=\"460\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td valign=top>");
	document.writeln("<br><br><br><font class=bottom2>|&nbsp;&nbsp;&nbsp;<a href=\"index.html\" target=\"_parent\">Family Water Tips</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href=\"../co/index_wp2.html\" target=\"_parent\">Family Dispensers</a>&nbsp;&nbsp;&nbsp;|</font>");
	document.writeln("</td></tr></table>");
}
function c_print_bottom_wf()
{
	document.writeln("<table width=\"460\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td valign=top>");
	document.writeln("<br><br><br><font class=bottom2>|&nbsp;&nbsp;&nbsp;<a href=\"index.html\" target=\"_parent\">家 居 飲 水 心 得</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href=\"../co/index_wp2.html\" target=\"_parent\">家 居 蒸 餾 水 機</a>&nbsp;&nbsp;&nbsp;|</font>");
	document.writeln("</td></tr></table>");
}

function print_bottom_ww()
{
	document.writeln("<table width=\"460\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td valign=top>");
	document.writeln("<br><br><br><font class=bottom2>|&nbsp;&nbsp;&nbsp;<a href=\"index.html\" target=\"_parent\">Water tips at Work </a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href=\"../co/index_wp2.html\" target=\"_parent\">Office Dispensers</a>&nbsp;&nbsp;&nbsp;|</font>");
	document.writeln("</td></tr></table>");
}
function c_print_bottom_ww()
{
	document.writeln("<table width=\"460\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td valign=top>");
	document.writeln("<br><br><br><font class=bottom2>|&nbsp;&nbsp;&nbsp;<a href=\"index.html\" target=\"_parent\">忙 碌 人 士 飲 水 心 得</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href=\"../co/index_wp2.html\" target=\"_parent\">辦 公 室 蒸 餾 水 機</a>&nbsp;&nbsp;&nbsp;|</font>");
	document.writeln("</td></tr></table>");
}


function print_bottom()
{
	document.writeln("<table width=\"460\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td valign=top>");
//	document.writeln("<br><font class=bottom>auto generate by print_bottom( )<br><br><br></font>");
	document.writeln("<br><br><br></font>");
	document.writeln("</td></tr></table>");
}

function changePage(obj) {
   i = obj.art.selectedIndex;
   val = obj.art.options[i].value;
   location.href=location.href;
   if (val != "xxx")
   {
   		if (val == "order")
		{
			openwin2(740,490,'order','../order/index.html');
		}
   		if (val == "contactus")
		{
			openwin2(660,490,'contactus','../contactus/index.html');
		}
   		if (val == "whatnew")
		{
			openwin2(520,490,'whatnew','../whatnew/index.html');
		}
/*		else
		{
			parent.content.location.href = val + '.html';
		}
*/
   }
}

function changePage2(obj) {
   i = obj.art.selectedIndex;
   val = obj.art.options[i].value;
   location.href=location.href;
   if (val != "xxx")
   {
   		if (val == "order")
		{
			openwin2(740,490,'order','eng/order/index.html');
		}
   		if (val == "contactus")
		{
			openwin2(660,490,'contactus','eng/contactus/index.html');
		}
   		if (val == "whatnew")
		{
			openwin2(520,490,'whatnew','eng/whatnew/index.html');
		}
/*		else
		{
			parent.content.location.href = val + '.html';
		}
*/
   }
}

function changePage3(obj) {
   i = obj.art.selectedIndex;
   val = obj.art.options[i].value;
   location.href=location.href;
   if (val != "xxx")
   {
   		if (val == "order")
		{
			openwin2(740,490,'order','chi/order/index.html');
		}
   		if (val == "contactus")
		{
			openwin2(660,490,'contactus','chi/contactus/index.html');
		}
   		if (val == "whatnew")
		{
			openwin2(520,490,'whatnew','chi/whatnew/index.html');
		}
/*		else
		{
			parent.content.location.href = val + '.html';
		}
*/
   }
}


function ResizeWin(section){
           var thisDiff = 0

           if(section==0) {  // 220 pixel width left frame picture
                thisDiff = 0
           }
           else if(section==1) {  // 135 pixel width left frame picture
                thisDiff = 74  // thisDiff = 74
           }
           var w 
           var h 
           var VerNumber = navigator.appVersion;
           VerNumber = VerNumber.charAt(0);
           VerNumber = parseInt(VerNumber);
		   
		   

    if (navigator.appName=='Netscape') {
           w = 800;
           h = 540-thisDiff+15;
           var x=(screen.availWidth-w)/2;
           var y=(screen.availHeight-h)/2;
           window.moveTo(x,y-100);
           window.resizeTo(w,h)
    }
    else if(navigator.appName=='Microsoft Internet Explorer') {   // IE
           w = 820;
           h = 675-thisDiff;
           var x=(screen.availWidth-w)/2;
           var y=(screen.availHeight-h)/2;
           window.moveTo(x,y);
           window.resizeTo(w,h)
    }
}


function print_select_eng()
{
	document.writeln("<SELECT name=art onChange=changePage(this.form)>");
	document.writeln("<OPTION VALUE=xxx><font class=nav>Please select</font></OPTION>");
	document.writeln("<OPTION VALUE=order><font class=nav>Online Ordering</font></OPTION>");
//	document.writeln("<OPTION VALUE=xxx><font class=nav>Water Tips</font></OPTION>");
	document.writeln("<OPTION VALUE=contactus><font class=nav>Contact Us</font></OPTION>");
//	document.writeln("<OPTION VALUE=whatnew><font class=nav>What's New</font></OPTION></select>");
	document.writeln("</select>");
}
function print_select_chi()
{
	document.writeln("<SELECT name=art onChange=changePage(this.form)>");
	document.writeln("<OPTION VALUE=xxx><font class=nav>請 選 擇</font></OPTION>");
	document.writeln("<OPTION VALUE=order><font class=nav>網 上 訂 購</font></OPTION>");
//	document.writeln("<OPTION VALUE=xxx><font class=nav>飲 水 心 得</font></OPTION>");
	document.writeln("<OPTION VALUE=contactus><font class=nav>聯 絡 我 們</font></OPTION>");
//	document.writeln("<OPTION VALUE=whatnew><font class=nav>最 新 動 向</font></OPTION></select>");
	document.writeln("</select>");

}