package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import java.util.*;
import java.sql.*;
import org.apache.log4j.Category;
import jp.co.sint.database.*;
import jp.co.sint.basic.*;
import jp.co.sint.tools.*;
import jp.co.sint.config.*;
import jp.co.sint.beans.front.*;

public class tmout_jsp extends HttpJspBase {


  private static java.util.Vector _jspx_includes;

  static {
    _jspx_includes = new java.util.Vector(1);
    _jspx_includes.add("/util/../include/header_inc.jsp");
  }

  public java.util.List getIncludes() {
    return _jspx_includes;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    javax.servlet.jsp.PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html;charset=MS932");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			"../util/error.jsp", true, 8192, true);
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

//7.2.0 ST0325 追加
//7.4.0 ST2060 修正
      out.write("\r\n");

/**
 * Copyright (c) 2003-2004 System Integrator Corporation.
 *                 All Rights Reserved.
 * @version $Id : tmout.jsp,v 1.0 2004/02/25 Exp $
 * @author      : Jinwang Chen
 * @Description : フロントのタイムアウト画面
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * Jinwang Chen   2004/02/25  Original
 */

      out.write("\r\n");
//@ page contentType="text/html;charset=Shift_JIS" 
//7.2.0 ST0325 削除
      out.write("\r\n");
/**タグのセクション*/
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
/**エラー遷移先の定義のセクション*/
      out.write("\r\n");
      out.write("\r\n");
/**クラスのインポートのセクション*/
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

String webshopSite=SIHTMLUtil.getRootPath(request);
String currCtgryCode=SIConfig.SICATEGORY_ROOT_CODE;
String mainSrvSite=SIURLMap.getUrl(request,"webshop.servlet.front.main");
String shopSrvSite=SIURLMap.getUrl(request,"webshop.servlet.front.shop.info")+"?ctc="+SIHTMLUtil.URLEncode(currCtgryCode);

      out.write("\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
      out.write("<html LANG=\"ja-JP\">\r\n");
      out.write("<head>\r\n  ");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=Shift_JIS\">\r\n  ");
      out.write("<title>タイムアウト");
      out.write("</title>\r\n");
      out.write("<link href=\"");
      out.print(webshopSite);
      out.write("/style/front.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
      out.write("<script language=\"javascript1.2\" type=\"text/javascript\" SRC=\"");
      out.print(webshopSite);
      out.write("/script/SIAppCommon.js\">");
      out.write("</script>\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
// メニューヘッダ 
      out.write("\r\n");
      out.write("<table width=\"1000\" cellpadding=\"0\" cellspacing=\"0\" summary=\"LayoutTable\">\r\n  ");
      out.write("<tr>\r\n    ");
      out.write("<td>\r\n      ");
// トップメニューstart 
      out.write("\r\n      ");

/**
 * Copyright (c) 2003-2009 System Integrator Corporation. & Beautygarage Inc.
 *                 All Rights Reserved.
 * @version $Id : include/header_inc.jsp,v 2.0 2009/04/03 Naotaka Ohsugi Exp $
 * @author      : Naotaka Ohsugi
 * @Description : 共通ヘッダー
 * @History
 * Author         Date        Reason
 * ============   ==========  ===========================
 * Naotaka        2009/04/03  Original
 */

      out.write("\r\n");
      out.write("<script type=\"text/javascript\">\r\n\r\n  var _gaq = _gaq || [];\r\n  var pluginUrl = \r\n  '//www.google-analytics.com/plugins/ga/inpage_linkid.js';\r\n  _gaq.push(['_require', 'inpage_linkid', pluginUrl]);\r\n  _gaq.push(['_setAccount', 'UA-1040584-1']);\r\n  ");
 if(SIHTMLUtil.getUserInfo(request).isLogin(request)){
      out.write("\r\n  _gaq.push(['_setCustomVar', 1, 'registered', 'true', 1]);\r\n  _gaq.push(['_setCustomVar', 2, 'sessionlogin', 'true', 2]);\r\n  _gaq.push(['_setCustomVar', 3, 'islogin', 'true', 3]);\r\n  ");
} else {
      out.write("\r\n  _gaq.push(['_setCustomVar', 3, 'islogin', 'false', 3]);\r\n  ");
}
      out.write("\r\n  _gaq.push(['_setCustomVar', 4, 'viewmode', 'PC', 3]);\r\n  _gaq.push(['_setVar',navigator.userAgent]);\r\n  _gaq.push(['_trackPageview']);\r\n  (function() {\r\n    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;\r\n    //ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\r\n\tga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';\r\n    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);\r\n  })();\r\n  \r\n\t//for Google Tag Manager\r\n\tdataLayer= [{\r\n\t\t'site_type':'d',\r\n\t\t//'customer_id':'【顧客コード】'\r\n\t}];\r\n");
      out.write("</script>\r\n");
      out.write("<!-- Google Tag Manager -->\r\n");
      out.write("<noscript>");
      out.write("<iframe src=\"//www.googletagmanager.com/ns.html?id=GTM-K5Q24Q\"\r\nheight=\"0\" width=\"0\" style=\"display:none;visibility:hidden\">");
      out.write("</iframe>");
      out.write("</noscript>\r\n");
      out.write("<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\r\nnew Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\r\nj=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\r\n'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\r\n})(window,document,'script','dataLayer','GTM-K5Q24Q');");
      out.write("</script>\r\n");
      out.write("<!-- End Google Tag Manager -->\r\n");
 
//▼アプリでは非表示：ここから▼
 if (request.getHeader("user-agent").indexOf("bg-webview-")==-1) { 
      out.write("\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.print(webshopSite);
      out.write("/script/switch.js\">");
      out.write("</script>\r\n");
      out.write("\r\n");
if(SIURLMap.isSmartPhone(request)){
      out.write("\r\n");
      out.write("<style type=\"text/css\"> \r\n");
      out.write("<!--\r\n#headerSearch {top:278px;} /*186pxにプラス*/\r\n#header_spbnr {display:block; width:950px; height:120px; margin:5px auto 0;}\r\n-->\r\n");
      out.write("</style>\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.print(webshopSite);
      out.write("/script/jquery.spChanger.js\">");
      out.write("</script>\r\n");
      out.write("<a href=\"javascript:void(0);\" onClick=\"switchSP();\" id=\"header_spbnr\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/img/banner/banner_spsite.jpg\" alt=\"スマートフォン専用サイトはこちら\" width=\"950\" height=\"120\">");
      out.write("</a>\r\n");
}
      out.write("\r\n");
      out.write("\r\n");
      out.write("<!--[if lt IE 7]>  ");
      out.write("<div style='border: 1px solid #F7941D; background: #FEEFDA; text-align: center; clear: both; height: 75px; position: relative;'>    ");
      out.write("<div style='width: 850px; margin: 0 auto; text-align: left; padding: 0; overflow: hidden; color: black;'>      ");
      out.write("<div style='width: 75px; float: left;'>");
      out.write("<img src='http://www.ie6nomore.com/files/theme/ie6nomore-warning.jpg' alt='Warning!'/>");
      out.write("</div>      ");
      out.write("<div style='width: 485px; float: left; font-family: Arial, sans-serif;'>        ");
      out.write("<div style='font-size: 14px; font-weight: bold; margin-top: 12px;'>【お客様へ重要なお知らせ】セキュリティ強化のため、お客様が今お使いの古いWebブラウザ（IE6など）ではログインができなくなりました。");
      out.write("</div> ");
      out.write("<div style='font-size: 12px; margin-top: 6px; line-height: 12px;'>ログインするには、こちらから新しいWebブラウザを入手・ご使用ください→");
      out.write("</div> ");
      out.write("</div>\r\n");
      out.write("<div style='width: 75px; float: left;'>");
      out.write("<a href='http://www.google.com/chrome?hl=ja' target='_blank'>");
      out.write("<img src='http://www.ie6nomore.com/files/theme/ie6nomore-chrome.jpg' style='border: none;' alt='Get Google Chrome'/>");
      out.write("</a>");
      out.write("</div>\r\n");
      out.write("<div style='width: 75px; float: left;'>");
      out.write("<a href='http://www.mozilla.jp' target='_blank'>");
      out.write("<img src='http://www.ie6nomore.com/files/theme/ie6nomore-firefox.jpg' style='border: none;' alt='Get Firefox 3.5'/>");
      out.write("</a>");
      out.write("</div>      \r\n");
      out.write("<div style='width: 75px; float: left;'>");
      out.write("<a href='http://www.microsoft.com/ja-jp/windows/products/winfamily/ie/function/default.aspx' target='_blank'>");
      out.write("<img src='http://www.ie6nomore.com/files/theme/ie6nomore-ie8.jpg' style='border: none;' alt='Get Internet Explorer'/>");
      out.write("</a>");
      out.write("</div>\r\n");
      out.write("<div style='float: left;'>");
      out.write("<a href='http://www.apple.com/jp/safari/download/' target='_blank'>");
      out.write("<img src='http://www.ie6nomore.com/files/theme/ie6nomore-safari.jpg' style='border: none;' alt='Get Safari 4'/>");
      out.write("</a>");
      out.write("</div>      \r\n");
      out.write("</div>  ");
      out.write("</div>");
      out.write("<style type='text/css'>#headerSearch {top:225px;} /*186pxにプラス*/");
      out.write("</style>  ");
      out.write("<![endif]-->\r\n\r\n");
      out.write("\r\n");

String xForwardedFor = ((HttpServletRequest) request).getHeader("X-Forwarded-For");
if (xForwardedFor!=null && xForwardedFor.length()>=13) xForwardedFor = xForwardedFor.substring(0,13);
else xForwardedFor = "";
//xForwardedForが社内IPに一致しない場合のみ、Optimizelyのタグを配信
if ( ("219.120.56.98".equals(xForwardedFor)) || ("153.142.2.209".equals(xForwardedFor)) ) {} else { 
      out.write("\r\n");
      out.write("<script src=\"//cdn.optimizely.com/js/2916990817.js\">");
      out.write("</script>\r\n");
 } 
      out.write("\r\n");
      out.write("\r\n\r\n");
      out.write("<div id=\"headerArea\">\r\n");
      JspRuntimeLibrary.include(request, response, "/include/header_navigation_inc.jsp", out, true);
      out.write("\r\n");
      out.write("</div>\r\n");
} //▲アプリでは非表示：ここまで▲ 
      out.write("\r\n");
      out.write("\r\n      ");
// トップメニューend  
      out.write("\r\n    ");
      out.write("</td>\r\n  ");
      out.write("</tr>\r\n  ");
      out.write("<tr>\r\n    ");
      out.write("<td width=\"100%\" valign=\"top\" class=\"Content_ScreenBG\">\r\n      ");
      out.write("<br>\r\n      ");
      out.write("<span class=\"Text_ErrorMessage\">\r\n      ");
      out.write("<ul>タイムアウトしました。");
      out.write("</ul>\r\n      ");
      out.write("</span>\r\n    ");
      out.write("</td>\r\n  ");
      out.write("</tr>\r\n  ");
      out.write("<tr>\r\n    ");
      out.write("<td colspan=\"2\">&nbsp;&nbsp;");
      out.write("<a href=\"");
      out.print(mainSrvSite);
      out.write("\">");
      out.write("<img src=\"");
      out.print(webshopSite);
      out.write("/image/btn_M_BackToMain.gif\" alt=\"お買物に戻る\" width=\"80\" height=\"20\" class=\"imgBtn\">");
      out.write("</a>\r\n    ");
      out.write("</td>\r\n  ");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
session.invalidate();
      out.write("\r\n");
    } catch (Throwable t) {
      out = _jspx_out;
      if (out != null && out.getBufferSize() != 0)
        out.clearBuffer();
      if (pageContext != null) pageContext.handlePageException(t);
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
    }
  }
}
