// MY BEST LIFE（ブランディングパック）にいる時に表示するレクタングル（本番サイトとテストサイト）

if (
	document.URL.indexOf("case.dreamgate.gr.jp/mbl", 0) != -1
	||
	document.URL.indexOf("interview.d2.r-cms.jp/mbl", 0) != -1 
	||
	document.URL.indexOf("feature/inteview", 0) != -1
	||
	document.URL.indexOf("case.dreamgate.gr.jp/smart-business", 0) != -1
){

	document.write("<div align='center' style='margin-bottom: 10px;'>");
	document.write("<a href='http://www.dreamgate.gr.jp/sp/spirits2012/tokyo/' ");
	document.write(" onClick=\"var s=s_gi('dmgtdreamgategrjp'); ");
	document.write("s.linkTrackVars='eVar15,products,events'; ");
	document.write("s.linkTrackEvents='event4'; ");
	document.write("s.events='event4'; ");
	document.write("s.eVar15='branding_upleft_spirits2012'; ");
	document.write("s.products='branding_upleft_spirits2012'; ");
	document.write("s.tl(this,'o','広告クリック');\"> ");
	document.write("<img src='//www.dreamgate.gr.jp/image/banners/bnr_spirits2012_200_100.jpg'");
	document.write("alt='【無料イベント】フレッシュネス栗原社長、エステー鈴木社長講演他'>");
	document.write("</a>");
	document.write("</div>");

//document.write("<div align='center' style='margin-bottom: 1px;'>");
//document.write("<a href='http://www.dreamgate.gr.jp/sp/spirits/' ");
//document.write(" onClick=\"var s=s_gi('dmgtdreamgategrjp'); ");
//document.write("s.linkTrackVars='eVar15,products,events'; ");
//document.write("s.linkTrackEvents='event4'; ");
//document.write("s.events='event4'; ");
//document.write("s.eVar15='branding_rec_spirits'; ");
//document.write("s.products='branding_rec_spirits'; ");
//document.write("s.tl(this,'o','広告クリック');\"> ");
//document.write("<img src='//www.dreamgate.gr.jp/image/banners/bnr_spirits_200_100.jpg' ");
//document.write("alt='【無料】「ベンチャー SPIRITS 2011 in 東京」ぐるなび滝氏講演他' ");
//document.write("style='margin-left: 1px; padding-bottom: 5px;' ");
//document.write(">");
//document.write("</a>");
//document.write("</div>");



//document.write("<div align='center' style='margin-bottom: 1px;'>");
//document.write("<a href='http://www.dreamgate.gr.jp/sp/spirits2011/osaka/' ");
//document.write(" onClick=\"var s=s_gi('dmgtdreamgategrjp'); ");
//document.write("s.linkTrackVars='eVar15,products,events'; ");
//document.write("s.linkTrackEvents='event4'; ");
//document.write("s.events='event4'; ");
//document.write("s.eVar15='SBP_rec_spirits2011'; ");
//document.write("s.products='SBP_rec_spirits2011'; ");
//document.write("s.tl(this,'o','広告クリック');\"> ");
//document.write("<img src='//www.dreamgate.gr.jp/image/banners/bnr_spirits2011_200_100.jpg' ");
//document.write("alt='【無料イベントin大阪】ベンチャースピリッツ2011'>");
//document.write("</a>");
//document.write("</div>");



}


// fastnavi/CSP（キャリアスキルパック）にいる時に表示するバナー
else if (
	document.URL.indexOf("knowhow.dreamgate.gr.jp/affiliate", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/agri-biz", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/agriculture", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/akiba", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/america", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/bizEnglish", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/businessidea", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/businessplan", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/chinatrade", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/contents", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/dankai", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/financing", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/foodbiz", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/freemagazine", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/fundRaising", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/idea", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/inChina", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/kaigo", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/kokoroe", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/koreanbuying", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/license", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/management", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/manners", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/media", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/mobile", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/money", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/netbusiness", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/netshop", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/presentation", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/product", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/prosperous", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/restaurant", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/restaurantDesign", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/retail", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/sitema", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/spirit", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/student", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/woman", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/yokohama", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/taste", 0) != -1 
	 ){

//document.write("<div align='center' style='margin-bottom: 10px;'>");
//document.write("<a href='http://home.mcafee.com/root/campaign.aspx?cid=88674' target='_blank' ");
//document.write(" onClick=\"var s=s_gi('dmgtdreamgategrjp'); ");
//document.write("s.linkTrackVars='eVar15,products,events'; ");
//document.write("s.linkTrackEvents='event4'; ");
//document.write("s.events='event4'; ");
//document.write("s.eVar15='csp_upleft_mcafee'; ");
//document.write("s.products='csp_upleft_mcafee'; ");
//document.write("s.tl(this,'o','広告クリック');\"> ");
//document.write("<img src='//www.dreamgate.gr.jp/image/banners/bnr_mcafee_200_200.jpg'");
//document.write("alt='自分はウイルスにかからないと思ってる？'>");
//document.write("</a>");
//document.write("</div>");

document.write("<div align='center' style='margin-bottom: 1px;'>");
document.write("<a href='http://www.dreamgate.gr.jp/sp/kokukin/request/' ");
document.write(" onClick=\"var s=s_gi('dmgtdreamgategrjp'); ");
document.write("s.linkTrackVars='eVar15,products,events'; ");
document.write("s.linkTrackEvents='event4'; ");
document.write("s.events='event4'; ");
document.write("s.eVar15='CSP_rec_financing'; ");
document.write("s.products='CSP_rec_financing'; ");
document.write("s.tl(this,'o','広告クリック');\"> ");
document.write("<img src='//www.dreamgate.gr.jp/image/banners/bnr_kokukin_200_100.jpg'");
document.write("alt='融資のご相談なら日本政策金融公庫 国民生活事業'>");
document.write("</a>");
document.write("</div>");

}


// fastnavi/SBP（スモールビジネスパック）にいる時に表示するバナー
else if (
	document.URL.indexOf("knowhow.dreamgate.gr.jp/accounting", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/aid", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/capital", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/chizai", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/equipmentinvestment", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/finance-strategy", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/gopublic", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/hansoku", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/humanResource", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/ipo", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/it", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/knowhow", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/knowledge", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/legal", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/localbrand", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/mindmark", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/mobilebiz", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/monozukuri", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/obligation", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/operatingFunds", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/pcselect", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/promotion", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/publicity", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/sales", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/strategy", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/subsidy", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/systemintroduction", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/tax", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/techmark", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/topsales", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/trouble", 0) != -1
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/repeat", 0) != -1 
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/voice", 0) != -1 
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/seo", 0) != -1 
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/gogaku", 0) != -1 
	||
	document.URL.indexOf("knowhow.dreamgate.gr.jp/onsen", 0) != -1 
	 ){
document.write("<div align='center' style='margin-bottom: 1px;'>");
document.write("<a href='http://www.dreamgate.gr.jp/sp/hasegawa/' ");
document.write(" onClick=\"var s=s_gi('dmgtdreamgategrjp'); ");
document.write("s.linkTrackVars='eVar15,products,events'; ");
document.write("s.linkTrackEvents='event4'; ");
document.write("s.events='event4'; ");
document.write("s.eVar15='SBP_rec_hasegawa'; ");
document.write("s.products='SBP_rec_hasegawa'; ");
document.write("s.tl(this,'o','広告クリック');\"> ");
document.write("<img src='//www.dreamgate.gr.jp/image/banners/bnr_hasegawa_200_100.jpg' ");
document.write("alt='未経験ではじめられる粗利益率95%のビジネスとは？'>");
document.write("</a>");
document.write("</div>");



//document.write("<div align='center' style='margin-bottom: 10px;'>");
//document.write("<a href='http://home.mcafee.com/root/campaign.aspx?cid=88675' target='_blank' ");
//document.write(" onClick=\"var s=s_gi('dmgtdreamgategrjp'); ");
//document.write("s.linkTrackVars='eVar15,products,events'; ");
//document.write("s.linkTrackEvents='event4'; ");
//document.write("s.events='event4'; ");
//document.write("s.eVar15='sbp_upleft_mcafee'; ");
//document.write("s.products='sbp_upleft_mcafee'; ");
//document.write("s.tl(this,'o','広告クリック');\"> ");
//document.write("<img src='//www.dreamgate.gr.jp/image/banners/bnr_mcafee_200_200.jpg'");
//document.write("alt='自分はウイルスにかからないと思ってる？'>");
//document.write("</a>");
//document.write("</div>");

}


// knowhow/sougyoujukuにいる時に表示するバナー
else if (
	document.URL.indexOf("knowhow.dreamgate.gr.jp/sougyoujuku", 0) != -1
	 ){

// ランダム表示用
// 配列をリセット
prm = new Array();
lnk = new Array();
img = new Array();
alt = new Array();

// サブドメイン名を取得
subdomain = document.domain.split(".");

// カテゴリー名を取得
fn_category = "sougyoujuku" ;

// catalystのパラメータ
prm[0] = "sougyoujuku";
prm[1] = "sougyoujuku";

// リンク先
lnk[0] = "http://seminar.dreamgate.gr.jp/calendar_list/seminar_category_id=13";
lnk[1] = "http://seminar.dreamgate.gr.jp/calendar_list/seminar_category_id=13";

// 画像
img[0] = "http://www.dreamgate.gr.jp/image/banners/bnr_sougyoujuku_200_200.jpg";
img[1] = "http://www.dreamgate.gr.jp/image/banners/bnr_sougyoujuku_200_200.jpg";

// alt
alt[0] = "独立・開業を目指す方「創業塾」ここで検索";
alt[1] = "独立・開業を目指す方「創業塾」ここで検索";

// ランダムシャッフル
for(i=0; i<prm.length; i++){
var tmpA, tmpB, tmpC, tmpD, tmpE, tmpF, tmpG, tmpH, rnd;
rnd=Math.floor(Math.random() * prm.length);

tmpA=prm[i];
tmpB=prm[rnd];
tmpC=lnk[i];
tmpD=lnk[rnd];
tmpE=img[i];
tmpF=img[rnd];
tmpG=alt[i];
tmpH=alt[rnd];

prm[i]=tmpB;
prm[rnd]=tmpA;
lnk[i]=tmpD;
lnk[rnd]=tmpC;
img[i]=tmpF;
img[rnd]=tmpE;
alt[i]=tmpH;
alt[rnd]=tmpG;
}
document.write("<div align='center' style='margin-bottom: 1px;'>");
document.write("<A href='");
document.write(lnk[i-1]);
document.write("' ");
document.write(" onClick=\"var s=s_gi('dmgtdreamgategrjp'); ");
document.write("s.linkTrackVars='eVar15,products,events'; ");
document.write("s.linkTrackEvents='event4'; ");
document.write("s.events='event4'; ");
document.write("s.eVar15='" +subdomain[0] + "_" +fn_category  + "_rec_" +prm[i-1]+ "'; ");
document.write("s.products='" +subdomain[0] + "_" +fn_category  + "_rec_" +prm[i-1]+ "'; ");
document.write("s.tl(this,'o','広告クリック');\"> ");
document.write("<img src='");
document.write(img[i-1]);
document.write("' alt='");
document.write(alt[i-1]);
document.write("'>");
document.write("</A>");
document.write("</div>");
}



// fastnavi/bestuseNetにいる時に表示するバナー
else if (
	document.URL.indexOf("knowhow.dreamgate.gr.jp/bestuseNet", 0) != -1
	||
	document.URL.indexOf("fastnavi/bestuseNet", 0) != -1
	 ){

// ランダム表示用
// 配列をリセット
prm = new Array();
lnk = new Array();
img = new Array();
alt = new Array();

// サブドメイン名を取得
subdomain = document.domain.split(".");

// カテゴリー名を取得
fn_category = "bestuseNet" ;

// catalystのパラメータ
prm[0] = "isle";
prm[1] = "rapidsite";

// リンク先
lnk[0] = "http://knowhow.dreamgate.gr.jp/bestuseNet/id=1437";
lnk[1] = "http://knowhow.dreamgate.gr.jp/bestuseNet/id=1438";

// 画像
img[0] = "http://www.dreamgate.gr.jp/image/banners/bnr_isle_200_200.gif";
img[1] = "http://www.dreamgate.gr.jp/image/banners/bnr_rapidsite_200_200.gif";

// alt
alt[0] = "Web2.0時代のインターネットビジネスを支えるiSLE";
alt[1] = "Web2.0時代のインターネットビジネスを支えるRapidSite";

// ランダムシャッフル
for(i=0; i<prm.length; i++){
var tmpA, tmpB, tmpC, tmpD, tmpE, tmpF, tmpG, tmpH, rnd;
rnd=Math.floor(Math.random() * prm.length);

tmpA=prm[i];
tmpB=prm[rnd];
tmpC=lnk[i];
tmpD=lnk[rnd];
tmpE=img[i];
tmpF=img[rnd];
tmpG=alt[i];
tmpH=alt[rnd];

prm[i]=tmpB;
prm[rnd]=tmpA;
lnk[i]=tmpD;
lnk[rnd]=tmpC;
img[i]=tmpF;
img[rnd]=tmpE;
alt[i]=tmpH;
alt[rnd]=tmpG;
}
document.write("<div align='center' style='margin-bottom: 1px;'>");
document.write("<A href='");
document.write(lnk[i-1]);
document.write("' ");
document.write(" onClick=\"var s=s_gi('dmgtdreamgategrjp'); ");
document.write("s.linkTrackVars='eVar15,products,events'; ");
document.write("s.linkTrackEvents='event4'; ");
document.write("s.events='event4'; ");
document.write("s.eVar15='" +subdomain[0] + "_" +fn_category  + "_rec_" +prm[i-1]+ "'; ");
document.write("s.products='" +subdomain[0] + "_" +fn_category  + "_rec_" +prm[i-1]+ "'; ");
document.write("s.tl(this,'o','広告クリック');\"> ");
document.write("<img src='");
document.write(img[i-1]);
document.write("' alt='");
document.write(alt[i-1]);
document.write("' style='margin-left: 4px; padding-bottom: 5px;'>");
document.write("</A>");
document.write("</div>");
}


// knowhow/mbaにいる時に表示するバナー
else if (
	document.URL.indexOf("knowhow.dreamgate.gr.jp/mba", 0) != -1
	||
	document.URL.indexOf("fastnavi/mba", 0) != -1

	 ){

document.write("<div align='center' style='margin-bottom: 1px;'>");
document.write("<a href='http://www.bbt757.com/bond/seminar/index1.htm?r' ");
document.write(" target=\"_blank\" ");
document.write(" onClick=\"var s=s_gi('dmgtdreamgategrjp'); ");
document.write("s.linkTrackVars='eVar15,products,events'; ");
document.write("s.linkTrackEvents='event4'; ");
document.write("s.events='event4'; ");
document.write("s.eVar15='knowhow_mba_rec_bond'; ");
document.write("s.products='knowhow_mba_rec_bond'; ");
document.write("s.tl(this,'o','広告クリック');\"> ");
document.write("<img src='//www.dreamgate.gr.jp/image/banners/bnr_bond_200_200.gif' ");
document.write("alt='国際標準のスキルを身につけ、世界で勝負せよ'>");
document.write("</a>");
document.write("</div>");

}


else{
}

