//
// HitsujiLib.js 〜自作JavaScript関数〜
// ◆HTMLソース生成時に消去されてしまうので、Mac OS X上で「ロック」している◆
//

//
// 左側広告(1)
// 120x150または120x190または120x60
//
function getLeftAd1()
{
    var i;
    var n = 3;
    var f = new Array(this.getAmazonAd120x150, this.getAmazonAd120x90, this.getInfoqAd120x60);

    i = Math.floor(Math.random() * n);
    f[i]();
}

//
// 左側広告(2)
// 120x600(スカイスクレーパー）
//
function getLeftAd2()
{
    var i;
    var n = 1;
    var f = new Array(this. getCouponMailAd120x600);

    i = Math.floor(Math.random() * n);
    f[i]();
}

//
// 左側広告(3)〜Google広告の下〜
// 会員登録広告
//
function getLeftAd3()
{
    var i;
    var n = 3;
    var f = new Array(this.getNetMileAd120x60, this.getInfoQAd120x60, this.getLifeMileAd120x60);

    i = Math.floor(Math.random() * n);
    f[i]();
}

//
// 左側広告(4)
//
function getLeftAd4()
{
    var i;
    var n = 2;
    var f = new Array(this.getLinkShareAd120x240, this.getVirtualFXAd120x90);

    i = Math.floor(Math.random() * n);
    f[i]();
}

//
// 左側広告(5)
// 富士フイルム広告
//
function getLeftAd5()
{
    var i;
    var n = 1;
    var f = new Array(this.getFujicolorAd120x60);

    i = Math.floor(Math.random() * n);
    f[i]();
}

//
// 左側広告(6)
//
function getLeftAd6()
{
    var i;
    var n = 2;
    var f = new Array(this.getGasolineAd120x90, this.getCashingAd120x90);

    i = Math.floor(Math.random() * n);
    f[i]();
}

//
// 右側広告(1)
// さくらインターネット125x125
//
function getRightAd1()
{
    this.getSakuraAd125x125();
}

//
// 右側広告(2)
// Oisix125x125/PalSystem120x120
//
function getRightAd2()
{
    var i;
    var n = 2;
    var f = new Array(this.getOisixAd125x125, this.getPalSystemAd120x120);

    i = Math.floor(Math.random() * n);
    f[i]();
}

//
// 右側広告(3)
// 180x150
//
function getRightAd3()
{
    //this.getFujicolorAd180x150();
}

//
// 下側広告(1)
// 468x60
//
function getBottomAd1()
{
    var i;
    var n = 2;
    var f = new Array(this.getLaLaBitGundamAd468x60, this.getLaLaBitShockerAd468x60);

    i = Math.floor(Math.random() * n);
    f[i]();
}

/////////////////////////////////////////////////////////////////////////////////////

//
// 120x60 Ads
//
function getInfoQAd120x60()
{
    document.write('<a href="https://infoq.jp/mymonitor/mon/login_disp.do?forward.new_entry&afid=2641&preaid=n2szZcHjvNqs" target="_blank" ><IMG src="http://infoq.jp/monitor/banner/infoq_120_60.gif" alt="新規モニター登録" width="120" height="60" border="0"></a>');
}

function getNetMileAd120x60()
{
    document.write('<a href="http://px.a8.net/svt/ejp?a8mat=15VENH+6QBFZM+H5I+65ME9" target="_blank"><img border="0" width="120" height="60" alt="" src="http://www24.a8.net/svt/bgt?aid=070329581407&wid=001&eno=01&mid=s00000002223001034000&mc=1"></a><img border="0" width="1" height="1" src="http://www13.a8.net/0.gif?a8mat=15VENH+6QBFZM+H5I+65ME9" alt="">');
}

function getFujicolorAd120x60()
{
    document.write('<a href="http://click.linksynergy.com/fs-bin/click?id=V1WQoPvCuKA&offerid=51862.10000408&type=4&subid=0" target="_blank"><IMG alt="FUJICOLORプリントおとどけ便" border="0" src="http://fujicolorotodokebin.jp/linkshare/DGmono07/120_60.gif"></a><IMG border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=V1WQoPvCuKA&bids=51862.10000408&type=4&subid=0">');
}

function getLifeMileAd120x60()
{
    document.write('<a href="http://px.a8.net/svt/ejp?a8mat=1HU6ZR+FBWUK2+14LO+5YZ75" target="_blank"><img border="0" width="120" height="60" alt="" src="http://www25.a8.net/svt/bgt?aid=090428391927&wid=001&eno=01&mid=s00000005262001003000&mc=1"></a><img border="0" width="1" height="1" src="http://www13.a8.net/0.gif?a8mat=1HU6ZR+FBWUK2+14LO+5YZ75" alt="">');
}

//
// 120x90 Ads
//
function getAmazonAd120x90()
{
    document.write('<iframe src="http://rcm-jp.amazon.co.jp/e/cm?t=kozurehitsuji-22&o=9&p=20&l=ur1&category=gundam&banner=0E5FCYRFPP3QWTTJ9MR2&f=ifr" width="120" height="90" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>');
}

function getVirtualFXAd120x90()
{
    document.write('<a href="http://px.a8.net/svt/ejp?a8mat=1CAKLE+GO5PU+4XI+61Z81" target="_blank"><img border="0" width="120" height="90" alt="" src="http://www29.a8.net/svt/bgt?aid=081114818028&wid=001&eno=01&mid=s00000000639001017000&mc=1"></a><img border="0" width="1" height="1" src="http://www14.a8.net/0.gif?a8mat=1CAKLE+GO5PU+4XI+61Z81" alt="">');
}

function getGasolineAd120x90()
{
    document.write('<a href="http://px.a8.net/svt/ejp?a8mat=1HU6ZK+WQV1U+1HKW+15QP81" target="_blank"><img border="0" width="120" height="90" alt="" src="http://www28.a8.net/svt/bgt?aid=090428384055&wid=001&eno=01&mid=s00000006944007011000&mc=1"></a><img border="0" width="1" height="1" src="http://www17.a8.net/0.gif?a8mat=1HU6ZK+WQV1U+1HKW+15QP81" alt="">');
}

function getCashingAd120x90()
{
    document.write('<a href="http://px.a8.net/svt/ejp?a8mat=1HU6ZJ+FNTINM+1HKW+2BDJK1" target="_blank"><img border="0" width="120" height="90" alt="" src="http://www20.a8.net/svt/bgt?aid=090428383947&wid=001&eno=01&mid=s00000006944014004000&mc=1"></a><img border="0" width="1" height="1" src="http://www12.a8.net/0.gif?a8mat=1HU6ZJ+FNTINM+1HKW+2BDJK1" alt="">');
}

//
// 120x120 Ads
//
function getPalSystemAd120x120()
{
    document.write('<a href="http://px.a8.net/svt/ejp?a8mat=1HU6ZJ+912P2Q+HS+TZTGH" target="_blank"><img border="0" width="120" height="120" alt="" src="http://www22.a8.net/svt/bgt?aid=090428383546&wid=001&eno=01&mid=s00000000064005038000&mc=1"></a><img border="0" width="1" height="1" src="http://www19.a8.net/0.gif?a8mat=1HU6ZJ+912P2Q+HS+TZTGH" alt="">');
}

//
// 120x150 Ads
//
function getAmazonAd120x150()
{
    document.write('<iframe src="http://rcm-jp.amazon.co.jp/e/cm?t=kozurehitsuji-22&o=9&p=6&l=ez&f=ifr&f=ifr" width="120" height="150" scrolling="no" marginwidth="0" marginheight="0" border="0" frameborder="0" style="border:none;"></iframe>');
}

//
// 120x240 Ads
//
function getLinkShareAd120x240()
{
    document.write('<a href="http://click.linksynergy.com/fs-bin/click?id=V1WQoPvCuKA&offerid=78559&subid=0" target="_blank"><IMG alt="アフィリエイト リンクシェア ブログ 携帯対応 成果報酬 広告 テンプレート ブログパーツ" border="0"  width="120" height="240" src="http://ad.linksynergy.com/fs-bin/show?id=V1WQoPvCuKA&bids=78559&gridnum=8&catid=-1&subid=0"></a>');
}

//
// 120x600 Ads
//
function getCouponMailAd120x600()
{
    document.write('<a href="http://px.a8.net/svt/ejp?a8mat=1CD1J7+DQR8HO+40Q+15R4NL" target="_blank"><img border="0" width="120" height="600" alt="" src="http://www27.a8.net/svt/bgt?aid=081230083831&wid=001&eno=02&mid=s00000000521007013000&mc=1"></a><img border="0" width="1" height="1" src="http://www14.a8.net/0.gif?a8mat=1CD1J7+DQR8HO+40Q+15R4NL" alt="">');
}

//
// 125x125 Ads
//
function getSakuraAd125x125()
{
    document.write('<a href="http://px.a8.net/svt/ejp?a8mat=10FTP0+91O4OI+D8Y+62MDD" target="_blank"><img border="0" width="125" height="125" alt="" src="http://www24.a8.net/svt/bgt?aid=061204500547&wid=001&eno=01&mid=s00000001717001020000&mc=1"></a><img border="0" width="1" height="1" src="http://www13.a8.net/0.gif?a8mat=10FTP0+91O4OI+D8Y+62MDD" alt="">');
}

function getOisixAd125x125()
{
    document.write('<a href="http://click.linksynergy.com/fs-bin/click?id=V1WQoPvCuKA&offerid=113751.10000507&type=4&subid=0"><IMG alt="Ｏｉｓｉｘ（おいしっくす）/Okasix（おかしっくす）" border="0" src="http://www.oisix.com/affiliate/image/otameshi50off_125x125-2.gif"></a><IMG border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=V1WQoPvCuKA&bids=113751.10000507&type=4&subid=0">');
}

//
// 180x150 Ads
//
function getFujicolorAd180x150()
{
    document.write('<a href="http://click.linksynergy.com/fs-bin/click?id=V1WQoPvCuKA&offerid=51862.10000370&type=4&subid=0" target="_blank"><IMG alt="FUJICOLORプリントおとどけ便" border="0" src="http://fujicolorotodokebin.jp/linkshare/DG1/180_150.gif"></a><IMG border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=V1WQoPvCuKA&bids=51862.10000370&type=4&subid=0">');
}

//
// 468x60 Ads
//
function getLaLaBitGundamAd468x60()
{
    document.write('<a href="http://click.linksynergy.com/fs-bin/click?id=V1WQoPvCuKA&offerid=130316.10000196&type=4&subid=0"><IMG alt="バンダイネットワークス ララビットマーケット" border="0" src="http://lalabitmarket.channel.or.jp/img/affiliate/hy2m468x60.gif"></a><IMG border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=V1WQoPvCuKA&bids=130316.10000196&type=4&subid=0">');
}

function getLaLaBitShockerAd468x60()
{
    document.write('<a href="http://click.linksynergy.com/fs-bin/click?id=V1WQoPvCuKA&offerid=130316.10000192&type=4&subid=0"><IMG alt="バンダイネットワークス ララビットマーケット" border="0" src="http://lalabitmarket.channel.or.jp/site/affiliate/banner/shocker468x60.gif"></a><IMG border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=V1WQoPvCuKA&bids=130316.10000192&type=4&subid=0">');
}
