﻿<!--
//Copyright(C) 2000-2003 TAKEUCHI-Veludo Co.,Ltd. All Rights Reserved.

msg="　　　【 株式会社 竹内ビロード工業 】 は、あなたと ベルベット との ” 素 敵 な 出 会 い ” を サポート いたします　♪　　　　　";
a=0;
var times=getCookie("times");
if(times ==""){
 times=0;
}
var sptms=getCookie("sptms");
if(sptms =="")  sptms=0;
count=0;
start_x3=600;
last_x3=-400;
step3=5;
posi_x3=start_x3;
timerID2=setTimeout("statmsg()",120);
timerID=setTimeout("Scroll()",3000);
ogwelimg=new Image();
ogwelimg.src="welcome02.jpg";
ogordimg=new Image();
ogordimg.src="order07.jpg";
welimg=new Image();
welimg.src="welcome03.jpg";
ordimg=new Image();
ordimg.src="order05.jpg";
function jumpPage101(){
  if(navigator.appName.charAt(0) == "M"){
   if(navigator.appVersion.charAt(0) > 3){
    document.welbt.src=welimg.src;
   }
  }
  else{
    document.welbt.src=welimg.src;
  }
}
function jumpPage202(){
  if(navigator.appName.charAt(0) == "M"){
   if(navigator.appVersion.charAt(0) > 3){
    document.ordbt.src=ordimg.src;
   }
  }
  else{
    document.ordbt.src=ordimg.src;
  }
}
function jumpPage111(){
  if(navigator.appName.charAt(0) == "M"){
   if(navigator.appVersion.charAt(0) > 3){
    document.welbt.src=ogwelimg.src;
   }
  }
  else{
    document.welbt.src=ogwelimg.src;
   
  }
}
function jumpPage222(){
  if(navigator.appName.charAt(0) == "M"){
   if(navigator.appVersion.charAt(0) > 3){
    document.ordbt.src=ogordimg.src;
   }
  }
  else{
    document.ordbt.src=ogordimg.src;
  }
}
function changeFc1(){
   textfc1="#ff0000";
   if(document.all){
     document.all("text123").style.color=textfc1;
   }
   else if(document.getElementById){        //Moz,NN6用
     document.getElementById("text123").style.color=textfc1;
   }
   else if(document.layers){
     document.layers["text123"].fgColor=textfc1;
   }
}
function changeFc2(){
   textfc2="#0000cc";
   if(document.all){
     document.all("text123").style.color=textfc2;
   }
   else if(document.getElementById){        //Moz,NN6用
     document.getElementById("text123").style.color=textfc2;
   }
   else if(document.layers){
     document.layers["text123"].fgColor=textfc2;
   }
}
function changeFc11(){
   textfc1="#ff0000";
   if(document.all){
     document.all("text124").style.color=textfc1;
   }
   else if(document.getElementById){        //Moz,NN6用
     document.getElementById("text124").style.color=textfc1;
   }
   else if(document.layers){
     document.layers["text124"].fgColor=textfc1;
   }
}
function changeFc22(){
   textfc2="#0000cc";
   if(document.all){
     document.all("text124").style.color=textfc2;
   }
   else if(document.getElementById){        //Moz,NN6用
     document.getElementById("text124").style.color=textfc2;
   }
   else if(document.layers){
     document.layers["text124"].fgColor=textfc2;
   }
}
function changeFc111(){
   textfc1="#ff0000";
   if(document.all){
     document.all("text125").style.color=textfc1;
   }
   else if(document.getElementById){        //Moz,NN6用
     document.getElementById("text125").style.color=textfc1;
   }
   else if(document.layers){
     document.layers["text125"].fgColor=textfc1;
   }
}
function changeFc222(){
   textfc2="#0000cc";
   if(document.all){
     document.all("text125").style.color=textfc2;
   }
   else if(document.getElementById){        //Moz,NN6用
     document.getElementById("text125").style.color=textfc2;
   }
   else if(document.layers){
     document.layers["text125"].fgColor=textfc2;
   }
}
function changeFc10(){
   textfc1="#ff0000";
   if(document.all){
     document.all("text126").style.color=textfc1;
   }
   else if(document.getElementById){        //Moz,NN6用
     document.getElementById("text126").style.color=textfc1;
   }
   else if(document.layers){
     document.layers["text126"].fgColor=textfc1;
   }
}
function changeFc20(){
   textfc2="#0000cc";
   if(document.all){
     document.all("text126").style.color=textfc2;
   }
   else if(document.getElementById){        //Moz,NN6用
     document.getElementById("text126").style.color=textfc2;
   }
   else if(document.layers){
     document.layers["text126"].fgColor=textfc2;
   }
}
function statmsg(){
  window.status=msg;
}
function getCookie(key){
   tmp=document.cookie+";";
   tmp1=tmp.indexOf(key,0);
   if(tmp1 != -1){
     tmp=tmp.substring(tmp1,tmp.length);
     start=tmp.indexOf("=",0) + 1;
     end=tmp.indexOf(";",start);
     return(unescape(tmp.substring(start,end)));
   }
   return("");
}
function setCookie(key,val){
   var expiresDate = new Date();
   expiresDate.setTime(expiresDate.getTime() + 60*60*24*365*1000);
   tmp = key + "=" + escape(val) + ";";
   tmp += "expires=";
   tmp += expiresDate.toGMTString();
   document.cookie=tmp;
}
function widCh(){
a=1;
if(times ==0){
 if(navigator.appVersion.charAt(0)<4){
    alert("※ 画面の領域を １０２４×７６８ ピクセルに 設定して、\n\n　　ページを ご覧になることを　お勧め いたします。\n\n　　（コントロールパネル中の画面を Ｗクリックして設定）");
    statmsg();
 }
 else{
  if(navigator.appName.charAt(0)=="N"){
     if(screen.colorDepth==18 || screen.colorDepth<16){
       alert("※ 現在の画面設定では、画像が 最適に表示されません。\n\n　　　１６ビット（６５５３６色）以上で、ご覧ください。");
     }
  }
  if(navigator.appName.charAt(0)=="M"){
     if(screen.colorDepth<16){
       alert("※ 現在の画面設定では、画像が 最適に表示されません。\n\n　　　１６ビット（６５５３６色）以上で、ご覧ください。");
     }
  }
  if(screen.availWidth < 1000){
    alert("※ 画面の領域を １０２４×７６８ ピクセルに 設定して、\n\n　　ページを ご覧になることを  お勧め いたします。\n\n　　（コントロールパネル中の画面を Ｗクリックして設定）");
    adv="このままの設定ですと、画面が大き過ぎて見にくく感じてしまいます。";
    adsWin=window.open("","newWin","width=530,height=380");
    adsWin.document.open();
    adsWin.document.write("<b>【画面の設定方法について】</b><br>");
    adsWin.document.write("<br><b>１．スタートメニューの設定からか、またはマイコンピュータアイコンを</b><br>");
    adsWin.document.write("<b>　　Ｗクリックする。</b><br>"); 
    adsWin.document.write("<br><b>２．コントロールパネルをＷクリックして、その中の画面アイコンを</b><br>");
    adsWin.document.write("<b>　　Ｗクリックする。</b><br>");
    adsWin.document.write("<br><b>３．画面のプロパティーの設定をクリックして、画面の領域を</b>");
    adsWin.document.write("<br><b>　　１０２４ｘ７６８ピクセルにセットし、[ＯＫ]をクリックして完了。</b><br>");
    adsWin.document.write("<br><b>　・色の設定については、HightColor(16ビット)以上を推奨いたします。</b><br>");
    adsWin.document.write("<br><br><b>　※ 画像・画面をきれいに見るためのアドバイスでした。</b>　　<input type='button' value=' 閉じる ' onClick='parent.window.close();'><br><br>");
    adsWin.document.write(adv.fontcolor("#ff4500"));
    adsWin.document.bgColor="#aaffaa";
    adsWin.document.close();
    adsWin.focus();
    
  }

 }
}  times++;setCookie("times",times);
}
function Scroll(){
  clearTimeout(timerID);
  if( navigator.appName.charAt(0)=="M" ){
    if(document.all["Sheet1"].all["Sheet2"].style.pixelLeft > -600){
    document.all["Sheet1"].all["Sheet2"].style.pixelLeft -= 2;
    timerID=setTimeout("Scroll()",30);
    statmsg();
    }
    if(document.all["Sheet1"].all["Sheet2"].style.pixelLeft == -600) {
    document.all["Sheet1"].all["Sheet2"].style.pixelLeft = 600;
    } 
  }
  else if(document.getElementById){        //Moz,NN6用
    if(posi_x3 > last_x3){
      posi_x3 -= step3;
      document.getElementById("Sheet2").style.left=posi_x3;
      timerID=setTimeout("Scroll()",30);
      statmsg();
    }
    else{
      posi_x3=start_x3;
      document.getElementById("Sheet2").style.left=posi_x3;
      timerID=setTimeout("Scroll()",30);
    }
  } 
  else if( navigator.appName.charAt(0)=="N" ){
    if(document.layers["Sheet1"].layers["Sheet2"].left > -600){
    document.layers["Sheet1"].layers["Sheet2"].left -= 2;
    timerID=setTimeout("Scroll()",30);
    statmsg();
    }
    if(document.layers["Sheet1"].layers["Sheet2"].left == -600) {
    document.layers["Sheet1"].layers["Sheet2"].left = 700;
    }  
  }  
}
function changeBc(targetID,textbc){
   if(document.all){
     document.all(targetID).style.backgroundColor=textbc;
   }
   else if(document.getElementById){        //Moz,NN6用
     document.getElementById(targetID).style.backgroundColor=textbc;
   }
   else if(document.layers){
     document.layers[targetID].bgColor=textbc;
   }
}
function changeFc(targetID,textfc){
   if(document.all){
     document.all(targetID).style.color=textfc;
   }
   else if(document.getElementById){        //Moz,NN6用
     document.getElementById(targetID).style.color=textfc;
   }
   else if(document.layers){
     document.layers[targetID].fgColor=textfc;
   }
}
function scllPg(){
 clearTimeout(timerPG);
 if(navigator.appVersion.charAt(0) > 3){
  if(count<800){
     window.scrollBy(0,2);
     count++;
     timerPG=setTimeout("scllPg()",30);
  }
  else  count=0;
 }
}
function subPg1(){
  timerSUP1=setTimeout("sub1Pg()",2000);
}
function sub1Pg(){
  clearTimeout(timerSUP1);
  sub1=window.open("subpage1.htm","sub1","width=380,height=310");
  sub1.focus();
}
function subPg2(){
  timerSUP2=setTimeout("sub2Pg()",2000);
}
function sub2Pg(){
  clearTimeout(timerSUP2);
  sub2=window.open("subpage2.htm","sub2","width=380,height=310");
  sub2.focus();
}

function passCheck(){
  if(navigator.javaEnabled() == false){
    alert("Ｊａｖａが使用不可になっていますので、ご利用できません。\n\nＪａｖａ使用の設定をしてから、ご利用ください。");
    return false;
  }
  mesg=confirm("パスワードを取得されていますか？");
  if(mesg == true){
    
    var pass=prompt("パスワードをご入力ください。","");
      if(pass == ""){
        alert("パスワードが入力されていません。");
        return false;
      }
      if(pass == null)
        return false;
      else if(pass.indexOf("-",0)<0){
        alert("パスワードを正確に入力してください。");
        return false;
      }
      else if(pass.indexOf(".",0)<0){
        alert("パスワードを正確に入力してください。");
        return false;
      }
      else if(pass.indexOf("@",0)>=0)
        location.href="error404.htm";
      else if(pass.indexOf("0",0)<0)
        location.href="http://www.takeuchi-vd.co.jp/+pass+.html";      
      else{
        passpage=window.open("http://www.takeuchi-veludo.com/"+pass+".htm","passpage","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=850,height=580");
      }
  }
  else{
    alert("次のページから ” メンバー登録 ”を お願 いいたします。\n\nご登録後、パスワードを メール送信 いたします。");
    location.href="cutsell2sp.html";
  }
}
function opening(){
 if(document.referrer!="http://www3.ocn.ne.jp/~velvet.t/tet-od.html" ||  document.referrer!="http://www3.ocn.ne.jp/~velvet.t/shopinfo2.html"){
   mespage=window.open("salepg.htm","mespage","scrollbars=yes,width=400,height=550");
   mespage.focus();
   timerREP=setTimeout("reloPg()",50);
 }
}
function reloPg(){
   clearTimeout(timerREP);
   if(mespage.closed == true){
     location.href="http://www.velvet-goods.com/textile/sp_order.html";
   }
   else  timerREP=setTimeout("reloPg()",50);
}
function reloPg2(){
   clearTimeout(timerREP2);
   if(tvs84.closed == true){
     location.href="http://www.velvet-goods.com/textile/sp_order.html";
   }
   else  timerREP2=setTimeout("reloPg2()",50);
}
function okaidoku(){
   mespage=window.open("salepg.htm","mespage","scrollbars=yes,width=400,height=430");
   timerOK=setTimeout("okaidoku5()",300);
}
function okaidoku5(){
 clearTimeout(timerOK);
 if(document.all){
  if(navigator.appVersion.charAt(0)>3){
   if(mespage.closed == true){
     tvs84=window.open("tvs-84.htm","tvs84","scrollbars=yes,width=750,height=510");
     timerREP2=setTimeout("reloPg2()",300);
   }
   else  timerOK=setTimeout("okaidoku5()",100);
  }
 }
 else{
   if(mespage.closed == true){
     tvs84=window.open("tvs-84.htm","tvs84","scrollbars=yes,width=750,height=510");
     timerREP2=setTimeout("reloPg2()",300);
   }
   else  timerOK=setTimeout("okaidoku5()",100);
 }
}
function spset(){
  sptms++;setCookie("sptms",sptms);
}

function okaidoku2(){
   tvs85=window.open("tvs-85.htm","tvs85","scrollbars=yes,width=750,height=510");
}
function okaidoku3(){
   tvs86=window.open("tvs-86.htm","tvs86","scrollbars=yes,width=750,height=510");
}
function soudanBt(){
  location.href="mailto:velvet@takeuchi-veludo.com ?subject=★ベルベット★ * お客様相談室 *";
}
function msgFt(s){
  if(document.getElementById)
     document.getElementById("message").innerHTML=s;
  else if(document.all)
     document.all("message").innerHTML=s;
}
//-->
<!--ＩＭＧボタンで、rankWinをブルア//-->