<!--
var SCHOOL_ID = 1;
var SHIP_CST = 525;

//=========================================================
// Product Info Class
//=========================================================
function show_school(){
   alert(SCHOOL_ID);
}

function GetProductInfo(sSty){
  aVal = new Array("","0","0","");  //Product Name, Price, Hemming Flag, Image name
//====================================================================================
// Boys
//====================================================================================
  if((sSty == "090368") || (sSty == "090369")){
    aVal[0] = "Boys' Hopsack Blazer";
    aVal[1] = 11800;
	aVal[3] = "bst090368";}
  else if((sSty == "188726") || (sSty == "188727")){
    aVal[0] = "Kids' Fleece Jacket";
    aVal[1] = 4900;
	aVal[3] = "bst188726";}
  else if((sSty == "219302") || (sSty == "219304")){
    aVal[0] = "Boys' Short Sleeve Oxford Shirt";
    aVal[1] = 2400;
	aVal[3] = "bst219032";}
  else if((sSty == "219308") || (sSty == "219315")){
    aVal[0] = "Boys' Long Sleeve Oxford Shirt";
    aVal[1] = 2600;
	aVal[3] = "bst219308";}
  else if((sSty == "051467") || (sSty == "051469")){
    aVal[0] = "Kids' Short Sleeve Solid Mesh Polo Shirt (For Nursery and Reception Years only)";
    aVal[1] = 2000;
	aVal[3] = "bst051467";}
  else if(sSty == "051437"){
    aVal[0] = "Kids' Long Sleeve Solid Mesh Polo Shirt (For Nursery and Reception Years only)";
    aVal[1] = 2200;
	aVal[3] = "bst051437";}
  else if((sSty == "223008") || (sSty == "223010")){
    aVal[0] = "Kids' Drifter V-neck Sweater";
    aVal[1] = 4900;
	aVal[3] = "bst223008";}
  else if((sSty == "223014") || (sSty == "223015")){
    aVal[0] = "Kids' Drifter V-neck Sleeveless Sweater";
    aVal[1] = 4100;
	aVal[3] = "bst223014";}
  else if((sSty == "306542") || (sSty == "306544")){
    aVal[0] = "Kids' Fleece Crew Sweatshirt";
    aVal[1] = 2800;
	aVal[3] = "bst306542";}
  else if((sSty == "191125") || (sSty == "191126") || (sSty == "191127") || (sSty == "191128") || (sSty == "191129")){
    aVal[0] = "Boys' Plain Front Blended Chino Trousers";
    aVal[1] = 3300;
	aVal[3] = "bst231116"
	if((sSty == "191127") || (sSty == "191128") || (sSty == "191129")){aVal[2] = 1;}}
   else if((sSty == "184383") || (sSty == "231174") || (sSty == "184384") || (sSty == "231175") || (sSty == "231176")){
    aVal[0] = "Boys' Plain Front Blend Chino Shorts";
    aVal[1] = 3000;
	aVal[3] = "bst184383";}
  else if((sSty == "078506") || (sSty == "078507")){
    aVal[0] = "Kids' Twill Shorts";
    aVal[1] = 2100;
	aVal[3] = "bst078506";}
  else if((sSty == "316246") || (sSty == "316247")){
    aVal[0] = "Kids' Sweat Pants";
    aVal[1] = 2100;
	aVal[3] = "bst316246";}
  else if((sSty == "306542") || (sSty == "306544")){
    aVal[0] = "Kids' Fleece Crew Sweatshirt (Y4-Y6)";
    aVal[1] = 2800;
	aVal[3] = "bst306542";}
  else if((sSty == "316246") || (sSty == "316247")){
    aVal[0] = "Kids' Sweat Pants (Y4-Y6)";
    aVal[1] = 2100;
	aVal[3] = "bst316246";}
  else if(sSty == "315433"){
    aVal[0] = "Boys' Athletic Jacket (Y4-Y6 only)";
    aVal[1] = 4500;
	aVal[3] = "bst315433";}
  else if(sSty == "322919"){
    aVal[0] = "Boys' Athletic Pants (Y4-Y6 only)";
    aVal[1] = 3000;
	aVal[3] = "bst322919";}
  else if(sSty == "315439"){
    aVal[0] = "Boys' Athletic Shorts (Y4-Y6 only)";
    aVal[1] = 2100;
	aVal[3] = "bst315439";}
  else if((sSty == "W51467") || (sSty == "W51469")){
    aVal[0] = "Kids' Short Sleeve Solid Mesh Polo Shirt (Y1-Y6)";
    aVal[1] = 2800;
	aVal[3] = "bst051469";}
  else if((sSty == "306542") || (sSty == "306544")){
    aVal[0] = "Kids' Fleece Crew Sweatshirt (Y1-Y3 only)";
    aVal[1] = 2800;
	aVal[3] = "bst306542";}
  else if((sSty == "316246") || (sSty == "316247")){
    aVal[0] = "Kids' Sweat Pants (Y1-Y3 only)";
    aVal[1] = 2100;
	aVal[3] = "bst316246";}
  else if((sSty == "078506") || (sSty == "078507")){
    aVal[0] = "Kids' Twill Shorts (Y1-Y6 only)";
    aVal[1] = 2100;
	aVal[3] = "bst078506";}
  else if(sSty == "082219"){
    aVal[0] = "Kids' Striped To-be-tied Necktie";
    aVal[1] = 2100;
	aVal[3] = "bst082219";}
  else if(sSty == "078514"){
    aVal[0] = "Kids' Basic Rib Crew Socks / 3-pack";
    aVal[1] = 1000;
	aVal[3] = "bst078514";}
  else if(sSty == "179500"){
    aVal[0] = "Solid ClassMate&#8482; Junior Backpack";
    aVal[1] = 4400;
	aVal[3] = "bst179500";}
  else if(sSty == "179501"){
    aVal[0] = "Solid ClassMate&#8482; Backpack";
    aVal[1] = 5100;
	aVal[3] = "bst179501";}
//====================================================================================
// Girls
//====================================================================================
  else if((sSty == "219457") || (sSty == "219458")){
    aVal[0] = "Girls' Blazer";
    aVal[1] = 11800;
	aVal[3] = "bst219457";}
  else if((sSty == "188726") || (sSty == "188727")){
    aVal[0] = "Kids' Fleece Jacket";
    aVal[1] = 4900;
	aVal[3] = "bst188726";}
  else if((sSty == "315313") || (sSty == "315315")){
    aVal[0] = "Girls' Short Sleeve Peter Pan Blouse";
    aVal[1] = 2700;
	aVal[3] = "bst315313";}
  else if((sSty == "306147") || (sSty == "306148") || (sSty == "306150")){
    aVal[0] = "Girls' Long Sleeve Peter Pan Woven Blouse";
    aVal[1] = 2700;
	aVal[3] = "bst306147";}
  else if(sSty == "219324"){
    aVal[0] = "Girls' Long Sleeve Oxford Shirt";
    aVal[1] = 2600;
	aVal[3] = "bst219324";}
  else if(sSty == "230948"){
    aVal[0] = "Girls' Short Sleeve Feminine Fit Mesh Polo Shirt (For Nursery and Reception Years only)";
    aVal[1] = 2000;
	aVal[3] = "bst230948";}
  else if(sSty == "230951"){
    aVal[0] = "Girls Long Sleeve Feminine Fit Mesh Polo Shirt (For Nursery and Reception Years only)";
    aVal[1] = 2200;
	aVal[3] = "bst230951";}
  else if((sSty == "092806") || (sSty == "092807")){
    aVal[0] = "Girls' Fine Gauge Cotton Cardigan Sweater";
    aVal[1] = 4400;
	aVal[3] = "bst092806";}
  else if((sSty == "223008") || (sSty == "223010")){
    aVal[0] = "Kids' Drifter V-neck Sweater";
    aVal[1] = 4900;
	aVal[3] = "bst223008";}
  else if((sSty == "306542") || (sSty == "306544")){
    aVal[0] = "Kids' Fleece Crew Sweatshirt";
    aVal[1] = 2800;
	aVal[3] = "bst306542";}
  else if((sSty == "320086") || (sSty == "320084") || (sSty == "320088")){
    aVal[0] = "Girls' Long Chino Skort (Y7-11 only)";
    aVal[1] = 3100;
	aVal[3] = "bst320086";}
  else if((sSty == "320192") || (sSty == "320079") || (sSty == "320134") || (sSty == "320083") || (sSty == "320085")){
    aVal[0] = "Girls' Short Chino Skort (For Nursery and Reception Years, Y1-Y6 only)";
    aVal[1] = 2600;
	aVal[3] = "bst320192";}
  else if((sSty == "231588") || (sSty == "231589") || (sSty == "231590")){
    aVal[0] = "Girls' Tartan Plaid Skort (Y4-Y11 only)";
    aVal[1] = 5000;
	aVal[3] = "bst231588";}
  else if((sSty == "065009") || (sSty == "065010") || (sSty == "065011")){
    aVal[0] = "Girls' Pinafores (Y1-Y3 only)";
    aVal[1] = 5000;
	aVal[3] = "bst065009";}
  else if((sSty == "231116") || (sSty == "231117") || (sSty == "231118") || (sSty == "231119") || (sSty == "231120")){
    aVal[0] = "Girls' Plain Front Blended Chino Trousers";
    aVal[1] = 3300;
	aVal[3] = "bst231116";
	if((sSty == "231118") || (sSty == "231119") || (sSty == "231120")){aVal[2] = 1;}}
  else if((sSty == "316246") || (sSty == "316247")){
    aVal[0] = "Kids' Sweat Pants";
    aVal[1] = 2100;
	aVal[3] = "bst316246";}
  else if((sSty == "306542") || (sSty == "306544")){
    aVal[0] = "Kids' Fleece Crew Sweatshirt (Y4-Y6)";
    aVal[1] = 2800;
	aVal[3] = "bst306542";}
  else if((sSty == "316246") || (sSty == "316247")){
    aVal[0] = "Kids' Sweat Pants (Y4-Y6)";
    aVal[1] = 2100;
	aVal[3] = "bst316246";}
  else if(sSty == "315421"){
    aVal[0] = "Girls' Athletic Jacket (Y4-Y6 only)";
    aVal[1] = 4500;
	aVal[3] = "bst315421";}
  else if(sSty == "322916"){
    aVal[0] = "Girls' Athletic Pants (Y4-Y6 only)";
    aVal[1] = 3000;
	aVal[3] = "bst322916";}
  else if(sSty == "315427"){
    aVal[0] = "Girls' Athletic Shorts (Y4-Y6 only)";
    aVal[1] = 2100;
	aVal[3] = "bst315427";}
  /*else if((sSty == "W51467") || (sSty == "W51469")){
    aVal[0] = "Kids' Short Sleeve Solid Mesh Polo Shirt (Y1-Y6)";
    aVal[1] = 2800;
    aVal[3] = "bst051469";} */
  else if((sSty == "306542") || (sSty == "306542")){
    aVal[0] = "Kids' Fleece Crew Sweatshirt (Y1-Y3 only)";
    aVal[1] = 2800;
	aVal[3] = "bst306542";}
  else if((sSty == "316246") || (sSty == "316247")){
    aVal[0] = "Kids' Sweat Pants (Y1-Y3 only)";
    aVal[1] = 2100;
	aVal[3] = "bst316246";}
  else if((sSty == "078506") || (sSty == "078507")){
    aVal[0] = "Kids' Twill Shorts (Y1-Y6 only)";
    aVal[1] = 2100;
	aVal[3] = "bst078506";}
  else if(sSty == "093594"){
    aVal[0] = "Girls' Solid Cable Knee Socks / 3-pack";
    aVal[1] = 1400;
	aVal[3] = "bst093594";}
  else if(sSty == "090559"){
    aVal[0] = "Girls' Microfiber Tights";
    aVal[1] = 1300;
	aVal[3] = "bst090559";}
  else{
    aVal[0] = "";
    aVal[1] = 0;
	aVal[3] = "";}
return aVal;
}

function GetColorName(sClr){
  var sVal = "";
  switch(sClr){
  case "CLN":
    sVal = "Classic Navy";
	break;
  case "CYC":
    sVal = "Classic Navy";
	break;
  case "DNA":
    sVal = "Dark Navy";
	break;
  case "DNV":
    sVal = "Deep Navy";
	break;
  case "TVY":
    sVal = "True Navy";
	break;
  case "WHI":
    sVal = "White";
	break;
  case "YPS":
    sVal = "Classic Navy / Red Tartan";
	break;
  default:
    sVal = "";
	break;}
  return sVal;
}

//=========================================================
// Hemming Info Class
//=========================================================
function hempar(){
  this.nMin=0;
  this.nMax=0;
  this.nTotMin=56;
  this.nTotMax=83;
  this.gethempar = gethempar;
}
function gethempar(sSty,sSiz){
  if((sSty == "191127") || (sSty == "191128") || (sSty == "191129")){
    switch(sSiz){
    case "8":
      this.nMin=56;
      this.nMax=60;
	  break;
    case "10":
      this.nMin=56;
      this.nMax=66;
	  break;
    case "12":
      this.nMin=64;
      this.nMax=73;
	  break;
    case "14":
      this.nMin=67;
      this.nMax=76;
	  break;
    case "16":
      this.nMin=69;
      this.nMax=78;
	  break;
    case "18":
      this.nMin=72;
      this.nMax=81;
	  break;
    case "20":
      this.nMin=74;
      this.nMax=83;
	  break;
    default:
      this.nMin=0;
      this.nMax=0;
	  break;}}
  else if((sSty == "231118") || (sSty == "231119") || (sSty == "231120")){
    switch(sSiz){
    case "7":
      this.nMin=56;
      this.nMax=63;
	  break;
    case "8":
      this.nMin=56;
      this.nMax=66;
	  break;
    case "10":
      this.nMin=59;
      this.nMax=68;
	  break;
    case "12":
      this.nMin=61;
      this.nMax=71;
	  break;
    case "14":
      this.nMin=64;
      this.nMax=73;
	  break;
    case "16":
      this.nMin=69;
      this.nMax=78;
	  break;
    default:
      this.nMin=0;
      this.nMax=0;
	  break;}}
}

 
//=======================================================================
// PAGE HEADER
//=======================================================================
function WritePageHead(){
  document.write("<div id='fullPage' class='fullPage'>");
  document.write("<div id='globalNavigation' class='globalNavigation'>");
  document.write("<div id='bannerNavigation' class='bannerNavigation'>");
  document.write("<div id='homeHit' class='homeHit'>");
  document.write("<a href='http://www.landsend.co.jp/' alt='Landsend.co.jp' title='Landsend.co.jp'><img src='/LandsEndJapan/common/icons/clear.gif' border='0' height='63' width='230'></a>");
  document.write("</div>");
  document.write("<div id='highLevelNavigation' class='highLevelNavigation'>");
  document.write("<div id='shopBagLbl' class='highLevelRow'><a href = './bst_shopbag.html' class='highLevelLink'><img src='/LandsEndJapan/common/icons/shoppingBag_black.jpg' alt='Shopping Cart' border='0'>&nbsp;Shopping Bag</a>&nbsp;&nbsp;&nbsp;");
  document.write("</div></div></div></div>");
  document.write("<div class='pageContent'>");
}

//=======================================================================
// LEFT MENU
//=======================================================================
function WriteLeftMenu(nSel){
  document.write("<div class='leftMenuBox' style='margin: 0 0 10px 0;'>");
  document.write("<div class='cgy_titleBoy'>boys</div>");
  if(nSel!=1){
    document.write("<span class='cgy_menu'><a href='/LandsEndJapan/common/html/bst_boy_outer.html'>Outerwear</a></span>");}
  else{
    document.write("<span class='cgy_menu_green'>Outerwear</span>");}
  if(nSel!=2){
    document.write("<span class='cgy_menu'><a href='/LandsEndJapan/common/html/bst_boy_tops.html'>Tops, Shirts &#38; Sweaters</a></span>");}
  else{
    document.write("<span class='cgy_menu_green'>Tops, Shirts &#38; Sweaters</span>");}
  if(nSel!=3){
    document.write("<span class='cgy_menu'><a href='/LandsEndJapan/common/html/bst_boy_trousers.html'>Trousers &#38; Shorts</a></span>");}
  else{
    document.write("<span class='cgy_menu_green'>Trousers &#38; Shorts</span>");}
  if(nSel!=4){
    document.write("<span class='cgy_menu'><a href='/LandsEndJapan/common/html/bst_boy_pe.html'>PE Kit</a></span>");}
  else{
    document.write("<span class='cgy_menu_green'>PE Kit</span>");}
  if(nSel!=5){
    document.write("<span class='cgy_menu'><a href='/LandsEndJapan/common/html/bst_boy_accessories.html'>Accessories</a></span>");}
  else{
    document.write("<span class='cgy_menu_green'>Accessories</span>");}
  document.write("</div>");
  document.write("<div class='leftMenuBox' style='margin: 0 0 10px 0;'>");
  document.write("<div class='cgy_titleGirl'>girls</div>");
  if(nSel!=11){
    document.write("<span class='cgy_menu'><a href='/LandsEndJapan/common/html/bst_grl_outer.html'>Outerwear</a></span>");}
  else{
    document.write("<span class='cgy_menu_green'>Outerwear</span>");}
  if(nSel!=12){
    document.write("<span class='cgy_menu'><a href='/LandsEndJapan/common/html/bst_grl_tops.html'>Tops, Blouses &#38; Sweaters</a></span>");}
  else{
    document.write("<span class='cgy_menu_green'>Tops, Blouses &#38; Sweaters</span>");}
  if(nSel!=13){
    document.write("<span class='cgy_menu'><a href='/LandsEndJapan/common/html/bst_grl_skirts.html'>Skorts, Pinafores &#38; Trousers</a></span>");}
  else{
    document.write("<span class='cgy_menu_green'>Skorts, Pinafores &#38; Trousers</span>");}
  if(nSel!=14){
    document.write("<span class='cgy_menu'><a href='/LandsEndJapan/common/html/bst_grl_pe.html'>PE Kit</a></span>");}
  else{
    document.write("<span class='cgy_menu_green'>PE Kit</span>");}
  if(nSel!=15){
    document.write("<span class='cgy_menu'><a href='/LandsEndJapan/common/html/bst_grl_accessories.html'>Accessories</a></span>");}
  else{
    document.write("<span class='cgy_menu_green'>Accessories</span>");}
  document.write("</div>");
  document.write("<div id='uniformHint'>");
  document.write("<div id='info'>");
  document.write("<span class='greenHead'>helpful hints</span><br>");
  document.write("<span class='blueHead'>for parents</span><br>");
  document.write("<img src='/LandsEndJapan/common/icons/clear.gif' height='5' width='1'><br>");
  document.write("<span class='goldHead'>Shopping Information</span>");
  document.write("<ul class='ulStyle'>");
  if(nSel!=21){
    document.write("<li class='liStyle'><a href='/LandsEndJapan/common/html/bst_how2.html' class='uniform'>How to order</a></li>");}
  else{
    document.write("<li class='liStyle_selected'>How to order</li>");}
  if(nSel!=22){
    document.write("<li class='liStyle'><a href='/LandsEndJapan/common/html/bst_guarantee.html' class='uniform'>About Lands' End</a></li>");}
  else{
    document.write("<li class='liStyle_selected'>About Lands' End</li>");}
  if(nSel!=23){
    document.write("<li class='liStyle'><a href='/LandsEndJapan/common/html/bst_faq.html' class='uniform'>FAQ</a></li></ul>");}
  else{
    document.write("<li class='liStyle_selected'>FAQ</li></ul>");}
  document.write("<span class='goldHead'>Size Chart</span>");
  document.write("<ul class='ulStyle'>");
  if(nSel!=31){
    document.write("<li class='liStyle'><a href='/LandsEndJapan/common/html/bst_size_lboy.html' class='uniform'>Little Boys</a></li>");}
  else{
    document.write("<li class='liStyle_selected'>Little Boys</li>");}
  if(nSel!=32){
    document.write("<li class='liStyle'><a href='/LandsEndJapan/common/html/bst_size_boy.html' class='uniform'>Boys</a></li>");}
  else{
    document.write("<li class='liStyle_selected'>Boys</li>");}
  if(nSel!=33){
    document.write("<li class='liStyle'><a href='/LandsEndJapan/common/html/bst_size_lgrl.html' class='uniform'>Little Girls</a></li>");}
  else{
    document.write("<li class='liStyle_selected'>Little Girls</li>");}
  if(nSel!=34){
    document.write("<li class='liStyle'><a href='/LandsEndJapan/common/html/bst_size_grl.html' class='uniform'>Girls</a></li></ul>");}
  else{
    document.write("<li class='liStyle_selected'>Girls</li></ul>");}
  document.write("</div></div>");
}

//-->