<!--  //  有料領域でSTREAM利用Script
//  STREAM 飛び先
//  ドメイン・パス取得
path = location.pathname;
host = document.domain;
//  パス分解
conv = path.split("/");
//  リクエストCGIへのURL作成
name = "wpb-net";
free = "http://www.bitway.ne.jp";
down = "http://shared-dl.primestage.net/bitway/doc/";
paid = "http://"+host+"/bitway/"+conv[2]+"/"+conv[3];
surl = "/cgi-bin/"+name+"/request.cgi?url=";
purl = "/cgi-bin/"+name+"/request-s.cgi?url=";
//  リンク

function st(url){
if (host == "fe.bitway.ne.jp"){
location.href = paid+purl+url;
} else {
if (host == "testfe.bitway.ne.jp"){
location.href = paid+purl+url;
} else {
location.href = free+surl+url;
}
}
}

function stf(url){
if (host == "fe.bitway.ne.jp"){
location.href = paid+purl+url;
} else {
if (host == "testfe.bitway.ne.jp"){
location.href = paid+purl+url;
} else {
location.href = free+surl+url;
}
}
}

function stp(url){
if (host == "fe.bitway.ne.jp"){
location.href = paid+purl+url;
} else {
if (host == "testfe.bitway.ne.jp"){
location.href = paid+purl+url;
} else {
location.href = free+surl+url;
}
}
}

function std(url){ location.href = down+url; }
// -->
