if (typeof(menuPosition)=="undefined") menuPosition = "";
function showHead()
{
	document.write("   <table width=\"760\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"> ");
	document.write("     <tr>  ");
	document.write("       <td width=\"422\" rowspan=\"2\"><img src=\"image/PageHead01.gif\" width=\"422\" height=\"162\" border=\"0\" usemap=\"#mMenu01\" style=\"cursor:hand\"></td>");
	document.write("       <td width=\"229\" valign=\"top\"><img src=\"image/PageHead02.gif\" width=\"227\" height=\"134\" border=\"0\" usemap=\"#mMenu02\" style=\"cursor:hand\"></td> ");
	document.write("       <td width=\"109\" rowspan=\"2\"><img src=\"image/PageHead03.gif\" width=\"111\" height=\"162\" border=\"0\" usemap=\"#mMenu03\" style=\"cursor:hand\"></td> ");
	document.write("     </tr> ");
	document.write("     <tr>  ");
	document.write("       <td align=\"right\"><a href=\"Page.aspx?page=home\" class=\"PathInfo\">首頁</a>");
	document.write(menuPosition + "</td>");
	document.write("     </tr> ");
	document.write("   </table> ");
	document.write("   <map name=\"mMenu01\"> ");
	document.write("     <area shape=\"poly\" coords=\"177,136,246,132,245,148,184,152\" onClick=\"showPage('introduction')\" alt=\"公司簡介\"> ");
	document.write("     <area shape=\"poly\" coords=\"263,130,321,119,320,135,271,145\" onClick=\"showPage('agreement')\" alt=\"加入會員\"> ");
	document.write("     <area shape=\"poly\" coords=\"342,113,345,132,418,111,416,97\" onClick=\"showPage('description')\" alt=\"購物說明\"> ");
	document.write("     </map> ");
	document.write("   <map name=\"mMenu02\"> ");
	document.write("     <area shape=\"poly\" coords=\"15,91,22,106,68,94,68,78\" onClick=\"showPage('cart')\" alt=\"購物車\"> ");
	document.write("     <area shape=\"poly\" coords=\"85,78,90,96,150,86,150,69\" onClick=\"showPage('qa')\" alt=\"常見問題\"> ");
	document.write("     <area shape=\"poly\" coords=\"173,69,175,88,228,85,227,69\" onClick=\"showPage('contact')\" alt=\"聯絡我們\"> ");
	document.write("   </map> ");
	document.write("   <map name=\"mMenu03\"> ");
	document.write("     <area shape=\"poly\" coords=\"28,77,30,95,104,102,104,89\" onClick=\"showPage('home')\" alt=\"回首頁\"> ");
	document.write("     <area shape=\"rect\" coords=\"1,70,24,85\" onClick=\"showPage('contact')\" alt=\"聯絡我們\"> ");
	document.write("   </map> ");
}
function showMenu(type,name,img)
{
	document.write("<table width=\"152\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">");
	for (var i=0;i<type.length;i++)
	{
		document.write("<tr>");
		document.write("<td>");
		document.write("<img src=\"" + img[i] + "\" border=\"0\" style=\"cursor:hand\" onClick=\"showProduct('" + type[i] + "','" + name[i] + "')\">");
		document.write("</td>");
		document.write("</tr>");
	}
	document.write("</table>");
	document.write("<div align=\"center\">");
}
function showLogin()
{
	document.write("        <table width=\"156\" height=\"100\" border=\"0\" align=\"center\">");
	document.write("          <tr> ");
	document.write("            <td align=\"center\" background=\"image/logoBG.gif\"> <table width=\"98%\" border=\"0\" cellspacing=\"0\">");
	document.write("                <tr> ");
	document.write("                  <td width=\"80\"><div align=\"right\"><font color=\"#CC0066\" size=\"2\">E-mail：</font> ");
	document.write("                    </div></td>");
	document.write("                  <td width=\"106\"><input name=\"account\" type=\"text\" size=\"10\" class=\"Text\"></td>");
	document.write("                </tr>");
	document.write("                <tr> ");
	document.write("                  <td><div align=\"right\"><font color=\"#CC0066\" size=\"2\">密 碼：</font></div></td>");
	document.write("                  <td><input name=\"Password\" type=\"password\" size=\"10\" class=\"Text\"> </td>");
	document.write("                </tr>");
	document.write("                <tr> ");
	document.write("                  <td colspan=\"2\" align=\"center\"><font size=\"2\">");
	document.write("                  <img src=\"image/ico_forgetPWD.gif\" border=\"0\" align=\"absmiddle\" style=\"cursor:hand\" onClick=\"showPage('forget')\">");
	document.write("                  <img src=\"image/ico_login.gif\" border=\"0\" align=\"absmiddle\" style=\"cursor:hand\" onClick=\"showPage('login')\"></div></td>");
	document.write("                </tr>");
	document.write("              </table></td>");
	document.write("          </tr>");
	document.write("        </table> ");
}
function showLogout(name)
{
	document.write("   <table width=\"156\" height=\"100\" border=\"0\" align=\"center\"> ");
	document.write("       <tr>  ");
	document.write("          <td align=\"center\" background=\"image/logoBG.gif\"><font color=\"#3366CC\" size=\"2\">" + name + "您好，<br> ");
	document.write("             歡迎光臨!!</font><br><img src=\"image/ico_updatePWD.gif\" style=\"cursor:hand\" onClick=\"showPage('ChangePassword')\"><img src=\"image/ico_logOut.gif\" style=\"cursor:hand\" onClick=\"showPage('logout')\">  ");
	document.write("          </td> ");
	document.write("       </tr> ");
	document.write("   </table> ");
}
function showSearch(href)
{
	document.write("<table width=\"153\" height=\"73\" border=\"0\" align=\"center\">");
    	document.write("<tr>");
	document.write("<td align=\"center\" background=\"image/SearchBG.gif\">");
	document.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
	document.write("<tr>");
	document.write("<td colspan=\"2\"><select name=\"selectPrice\">");
	document.write("<option selected>請選擇價格範圍</option>");
	document.write("<option value=\"1000\">1,000元以下</option>");
	document.write("<option value=\"3000\">1,001∼3,000元</option>");
	document.write("<option value=\"5000\">3,001∼5,000元</option>");
	document.write("<option value=\"8000\">5,001∼8,000元</option>");
	document.write("<option value=\"10000\">8,001∼10,000元</option>");
	document.write("<option value=\"15000\">10,001∼15,000元</option>");
	document.write("<option value=\"20000\">15,001∼20,000元</option>");
	document.write("<option value=\"999999\">20,001元以上</option>");
	document.write("</select></td>");
	document.write("</tr>");
	document.write("<tr>");
	document.write("<td><img src=\"image/btn_go.gif\" border=\"0\" align=\"absmiddle\" alt=\"查詢\" style=\"cursor:hand\" onClick=\"showPage('" + href + "')\"></td>");
	document.write("</tr>");
	document.write("</table>");              
	document.write("</td>");
	document.write("</tr>");
	document.write("</table>");
}
function showBanner(href, img)
{
	document.write("<table width=\"155\" align=\"center\" border=\"0\">");
	for (var i=0;i<href.length;i++)
	{
		document.write("<tr>");
		document.write("<td align=\"center\">");
		document.write("<img src=\"" + img[i] + "\" border=\"0\" style=\"cursor:hand\" onClick=\"openBanner('" + href[i] + "')\">");
		document.write("</td>");
		document.write("</tr>");
	}
	document.write("<tr>");
	document.write("<td align=\"center\">");
	document.write("<SCRIPT LANGUAGE=\"JavaScript\" TYPE=\"text/javascript\" SRC=\"//smarticon.geotrust.com/si.js\"></SCRIPT>");
	document.write("</td>");
	document.write("</tr>");
	document.write("</table> ");
}
function showBottom(msg)
{
	document.write("    <table width=\"760\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"> ");
	document.write("       <tr> ");
	document.write("         <td><img src=\"image/PageBottom.gif\" width=\"761\" height=\"126\"></td> ");
	document.write("       </tr> ");
	document.write("       <tr> ");
	document.write("         <td class=\"CopyRight\" align=\"center\">寰宇家庭股份有限公司 版權所有　免付費購物諮詢專線：0809-080-908 傳真：02-7707-1368<br> ");
	document.write("           E-mail: <a href=\"mailto:service.wfshopping@ltl.com.tw\" class=\"copyright\">service.wfshopping@ltl.com.tw</a> 地址：台北市松山區八德路三段30號8樓 </td> ");
	document.write("       </tr> ");
	document.write("     </table> ");
	if (msg != "")
	{
		alert(msg);
	}
}
