// Mouse-Over
$(function(over){
    $(".over").mouseover(function(){
        $(this).attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_over$2"))
    }).mouseout(function(){
        $(this).attr("src",$(this).attr("src").replace(/^(.+)_over(\.[a-z]+)$/, "$1$2"));
    }).each(function(){
        $("<img>").attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_over$2"))
    })
});

//popup
function popup_size(file){
window.open("/"+file,"subwindow","width=480,height=550,location=no,resizable=no,scrollbars=yes,toolbar=no,directories=no,menubar=no,status=no,titlebar=yes");
}

$(document).ready(function(){
    var bodyid = document.body.id;

    if (!(bodyid == ('index'))){

    var url = document.URL.split('/');
        $('ul#globalNavi li a').each(function(){
            var gnavi_href = $(this).attr('href').split('/');
            if ($(this).parent().hasClass(url[3])) {
                var img = $(this).children('img').eq(0);
                img.attr ('src', img.attr('src').replace(/^(.+)(\.[a-z]+)$/, "$1_over$2"));
                img.unbind('mouseover');
                img.unbind('mouseout');
            }
        });
    }
});


$(function(){
    var handler = $('ul#tab li a');
    // ウィンドウを開いた時のタブの位置
    var url = document.URL;
    var urlId = url.substr(url.lastIndexOf('#'));
    var urlIdJudgment = urlId.lastIndexOf('#');
    $('ul#tab').each(function(){
        // #がある場合
        if(urlIdJudgment == 0) {
            handler.each(function(){
                if($(this).attr('href') == urlId) {
                    $(urlId).show();
                    var aimPosition = $('#rankingTabs').offset();
                    $('html,body').animate({scrollTop:aimPosition.top - 10}, 500); 
                    var imgSrc = $(this).children('img').attr('src');
                    var imgDot = imgSrc.lastIndexOf('.');
                    var onSrc = imgSrc.substr(0, imgDot) + '_over' + imgSrc.substr(imgDot, 4);
                    $(this).children('img').attr('src',onSrc).addClass('onTab');
                }
            });
        }
        // #がない場合は最初のタブを開く
        else {
            $('#rankingTabs > div:first').show();
            var imgSrc = $('ul#tab li:first img').attr('src');
            var imgDot = imgSrc.lastIndexOf('.');
            var onSrc = imgSrc.substr(0, imgDot) + '_over' + imgSrc.substr(imgDot, 4);
            $('ul#tab li:first img').attr('src',onSrc).addClass('onTab');
        }
    });
    // クリック時の動作
    handler.click(function() {
        // クリックしたタブ画像をオンの状態に
        var imgSrc = $(this).children('img').attr('src').replace(/_over/g, "");
        var imgDot = imgSrc.lastIndexOf('.');
        var onSrc = imgSrc.substr(0, imgDot) + '_over' + imgSrc.substr(imgDot, 4);
        $(this).children('img').attr('src',onSrc);
        // タブ画像の切り替え
        var imgOff = $('ul#tab li img.onTab').attr('src').replace(/_over/g, "");
        $('ul#tab li img.onTab').attr('src',imgOff);
        $('ul#tab li img').removeClass('onTab');
        $(this).children('img').addClass('onTab');
        // コンテンツの切り替え
        var clickAttr = $(this).attr('href');
        var showAttr = '#' + $('#rankingTabs > div:visible').attr('id');
        if(clickAttr !== showAttr) {
            $('#rankingTabs > div:visible').hide();
            var showDiv = '#rankingTabs div' + clickAttr;
            $(showDiv).show();
            return false;
        }
        else {
            // 何度もクリックした場合もタブ画像をオンの状態に
            var imgSrc = $(this).children('img').attr('src').replace(/_over/g, "");
            var imgDot = imgSrc.lastIndexOf('.');
            var onSrc = imgSrc.substr(0, imgDot) + '_over' + imgSrc.substr(imgDot, 4);
            $(this).children('img').attr('src',onSrc);
            return false;
        }
    })
    // ロールオーバー
    handler.hover(function() {
        var classJudgment = $(this).children('img').attr('class');
        if(classJudgment != 'onTab') {
            var imgSrc = $(this).children('img').attr('src');
            var imgDot = imgSrc.lastIndexOf('.');
            var onSrc = imgSrc.substr(0, imgDot) + '_over' + imgSrc.substr(imgDot, 4);
            $(this).children('img').attr('src',onSrc);
        }
    }, function() {
        var classJudgment = $(this).children('img').attr('class');
        if(classJudgment != 'onTab') {
            var imgOff = $(this).children('img').attr('src').replace(/_over/g, "");
            $(this).children('img').attr('src',imgOff);
        }
    });
});
// ]]>


//xmas banner
//function js_include(_path){
//    _path = _path.toString();
//    var _elm = document.createElement('script');
//    _elm.type = 'text/javascript';
//    _elm.charset = 'utf-8';
//    _elm.src = _path;
//    var _head = document.getElementsByTagName('head')[0];
//    _head.appendChild(_elm);
//}
//js_include("http://blog.hitachi-system.co.jp/swfbanner.js");


//表示するアイコン画像
recent_news = '<img alt="ニュース" src="/common/images/icon_news_new.gif" width="59" height="59" />';
default_news = '<img alt="ニュース" src="/common/images/icon_news.gif" width="59" height="59" />';

recent_words = '<img alt="セキュリティ用語解説" src="/common/images/icon_word_new.gif" width="59" height="59" />';
default_words = '<img alt="セキュリティ用語解説" src="/common/images/icon_word.gif" width="59" height="59" />';

recent_interview = '<img alt="インタビュー" src="/common/images/icon_interview_new.gif" width="59" height="59" />';
default_interview = '<img alt="インタビュー" src="/common/images/icon_interview.gif" width="59" height="59" />';

recent_monthly = '<img alt="月イチIT総括" src="/common/images/icon_monthly_new.gif" width="59" height="59" />';
default_monthly = '<img alt="月イチIT総括" src="/common/images/icon_monthly.gif" width="59" height="59" />';

recent_special = '<img alt="スペシャル" src="/common/images/icon_special_new.gif" width="59" height="59" />';
default_special = '<img alt="スペシャル" src="/common/images/icon_special.gif" width="59" height="59" />';

recent_info = '<img alt="お知らせ" src="/common/images/icon_info_new.gif" width="59" height="59" />';
default_info = '<img alt="お知らせ" src="/common/images/icon_info.gif" width="59" height="59" />';

recent_desk = '<img alt="From編集部" src="/common/images/icon_from_new.gif" width="59" height="59" />';
default_desk = '<img alt="From編集部" src="/common/images/icon_from.gif" width="59" height="59" />';

today = new Date();
upday = new Date();

function update_news(y, m, d) {
  upday.setFullYear(y);
  m = m - 1;
  upday.setMonth(m);
  upday.setDate(d);
  difference = today.getTime() - upday.getTime();
  difference = Math.floor(difference / (1000 * 60 * 60 * 24));
  if (difference < 6) {
    document.write(recent_news);
  }else{
    document.write(default_news);
  }
}

function update_words(y, m, d) {
  upday.setFullYear(y);
  m = m - 1;
  upday.setMonth(m);
  upday.setDate(d);
  difference = today.getTime() - upday.getTime();
  difference = Math.floor(difference / (1000 * 60 * 60 * 24));
  if (difference < 6) {
      document.write(recent_words);
  }else{
      document.write(default_words);
  }
}

function update_interview(y, m, d) {
  upday.setFullYear(y);
  m = m - 1;
  upday.setMonth(m);
  upday.setDate(d);
  difference = today.getTime() - upday.getTime();
  difference = Math.floor(difference / (1000 * 60 * 60 * 24));
  if (difference < 6) {
      document.write(recent_interview);
  }else{
      document.write(default_interview);
  }
}

function update_monthly(y, m, d) {
  upday.setFullYear(y);
  m = m - 1;
  upday.setMonth(m);
  upday.setDate(d);
  difference = today.getTime() - upday.getTime();
  difference = Math.floor(difference / (1000 * 60 * 60 * 24));
  if (difference < 6) {
      document.write(recent_monthly);
  }else{
      document.write(default_monthly);
  }
}

function update_special(y, m, d) {
  upday.setFullYear(y);
  m = m - 1;
  upday.setMonth(m);
  upday.setDate(d);
  difference = today.getTime() - upday.getTime();
  difference = Math.floor(difference / (1000 * 60 * 60 * 24));
  if (difference < 6) {
      document.write(recent_special);
  }else{
      document.write(default_special);
  }
}

function update_info(y, m, d) {
  upday.setFullYear(y);
  m = m - 1;
  upday.setMonth(m);
  upday.setDate(d);
  difference = today.getTime() - upday.getTime();
  difference = Math.floor(difference / (1000 * 60 * 60 * 24));
  if (difference < 6) {
      document.write(recent_info);
  }else{
      document.write(default_info);
  }
}

function update_desk(y, m, d) {
  upday.setFullYear(y);
  m = m - 1;
  upday.setMonth(m);
  upday.setDate(d);
  difference = today.getTime() - upday.getTime();
  difference = Math.floor(difference / (1000 * 60 * 60 * 24));
  if (difference < 6) {
      document.write(recent_desk);
  }else{
      document.write(default_desk);
  }
}

// Random Entry
function random_Entry() {
title = new Array();
link = new Array();
excerpt = new Array();

title[0] = 'SOPA / PIPA';
link[0] = 'http://securityblog.jp/words/4916.html';
excerpt[0] = 'SOPA(Stop Online Piracy Act) /...';
title[1] = 'spモード';
link[1] = 'http://securityblog.jp/words/4797.html';
excerpt[1] = 'spモード(エスピーモード)とは、NTTドコモが提供するスマ...';
title[2] = 'ペネトレーションテスト';
link[2] = 'http://securityblog.jp/words/4661.html';
excerpt[2] = 'ペネトレーションテスト(penetration test)と...';
title[3] = 'Carrier IQ';
link[3] = 'http://securityblog.jp/words/4537.html';
excerpt[3] = ' Carrier IQとは、モバイルサービスを手がける米国の...';
title[4] = 'マジコン';
link[4] = 'http://securityblog.jp/words/4501.html';
excerpt[4] = 'マジコンとは、家庭用ゲーム機のゲームソフトをコピーしたり、ま...';

i=Math.floor(Math.random() * 5);
document.write("<h3><a href='" + link[i] + "'>" + title[i] + "</a></h3>");
document.write("<p>" + excerpt[i] + "<a href='" + link[i] + "'>(続きを読む)</a></p>");
}


// Random Banner
function random_banner() {
link = new Array();
bannerimg = new Array();
alt = new Array();

link[0] = 'http://www.hitachi-solutions.co.jp/aruba/sp/';
link[1] = 'http://www.hitachi-solutions.co.jp/endpointsec/';
link[2] = 'http://www.hs-juniperproducts.jp/';
link[3] = 'http://www.hitachi-solutions.co.jp/dlp/';
link[4] = 'http://www.hitachi-solutions.co.jp/paloalto/';
link[5] = 'http://www.hitachi-solutions.co.jp/security_consul/sp/';
link[6] = 'http://www.hitachi-solutions.co.jp/srx/';
link[7] = 'http://www.hitachi-solutions.co.jp/websecurity/';

bannerimg[0] = 'aruba.gif';
bannerimg[1] = 'edgescreen.gif';
bannerimg[2] = 'junipernet.gif';
bannerimg[3] = 'jyohoroei.gif';
bannerimg[4] = 'pa.gif';
bannerimg[5] = 'sec-con.gif';
bannerimg[6] = 'srx.gif';
bannerimg[7] = 'websecurity.gif';

alt[0] = 'セキュア無線LANシステム　Arubaシリーズ';
alt[1] = '企業クライアントPCの管理やセキュリティに関わる様々な問題をSaaSで解決、エンドポイントセキュリティサービス EdgeScreen';
alt[2] = 'ますます充実。Juniper Networks製品。No.1ディストリビューター、日立ソリューションズから。';
alt[3] = 'お客様の情報漏洩対策に関する様々な悩み・課題を解決します。情報漏洩防止ソリューション';
alt[4] = 'アプリケーション制御ファイアウォール　Palo Alto Networks　PAシリーズ';
alt[5] = '情報資産保護対策は十分ですか？セキュリティコンサルティング';
alt[6] = 'ネットワーク/セキュリティに必要な機能を１台に統合したサービスゲートウェイ セキュアルータ Juniper Networks SRXシリーズ';
alt[7] = 'セキュリティ要件の整理から対策システムの構築・運用支援まで　Webセキュリティ強化ソリューション';

i=Math.floor(Math.random() * 8);
document.write('<a href="' + link[i] + '" target="_blank" onclick="pageTracker._trackEvent(\'Corp\',\'Click\',\'RandomBanner\');">');
document.write("<img alt='" + alt[i] + "' src='/images/banner_rotation/" + bannerimg[i] + "' width='270' height='80' />");
document.write("</a>");
}

// Random Banner2
function random_banner2() {


link = new Array();
bannerimg = new Array();
alt = new Array();

target_A = new Array();

link[0] = 'http://securityblog.jp/giga/';
link[1] = 'http://securityblog.jp/security_wordlist.html';
link[2] = 'http://securityblog.jp/guide/';
link[3] = 'http://www.youtube.com/user/johosecurityblog';

bannerimg[0] = '/images/giga/sidenav_banner_giga.jpg';
bannerimg[1] = '/common/images/banner_sakuin.jpg';
bannerimg[2] = '/common/images/banner_guide.png';
bannerimg[3] = '/images/sidenav_ytbanner.jpg';

alt[0] = '大江戸セキュリティ戯画';
alt[1] = 'セキュリティ用語解説50音さくいん';
alt[2] = 'インターネットには危険がいっぱい　初心者のためのセキュリティ対策';
alt[3] = 'Youtube情報セキュリティブログ公式チャンネルオープン！';

target_A[0] = '';
target_A[1] = '';
target_A[2] = '';
target_A[3] = '_blank';

i=Math.floor(Math.random() * 4);

document.write("<a href='" + link[i] + "' target='" + target_A[i] + "' >");
document.write("<img alt='" + alt[i] + "' src='" + bannerimg[i] + "' width='270' />");
document.write("</a>");
}

// Random Banner3
function random_banner3() {
link = new Array();
bannerimg = new Array();
alt = new Array();

target_A = new Array();

//link[0] = 'http://www.hitachi-solutions.co.jp/solutekun/xmas/2011/';
link[0] = 'http://www.hitachi-solutions.co.jp/column/yomu/';
link[1] = 'http://www.facebook.com/secure.blog';

//bannerimg[0] = '/images/xmas2011_jsblog_banner.jpg';
bannerimg[0] = '/images/starpuck.gif';
bannerimg[1] = '/images/sidenav_fbbanner.png';

//target_A[0] = '_blank';
target_A[1] = '_blank';

//alt[0] = '日立ソリューションズ　2011 Xmasキャンペーン';
alt[0] = '新社会人必見！ "読む"スタータパック';
alt[1] = '公式Facebookページオープン！';

//i=Math.floor(Math.random() * 1);
i=Math.floor(Math.random() * 2);
document.write("<a href='" + link[i] + "' target='" + target_A[i] + "' >");
document.write("<img alt='" + alt[i] + "' src='" + bannerimg[i] + "' width='270' />");
document.write("</a>");
}

// Random Banner4
function random_banner4() {
link = new Array();
bannerimg = new Array();
alt = new Array();

target_A = new Array();

link[0] = 'http://securityblog.jp/arashi/';

bannerimg[0] = '/images/sidenav_rectanglebanner_arashi.png';

target_A[0] = '';

alt[0] = 'ゲームセンターあらし セキュリティ炎のコマキャンペーン';

i=Math.floor(Math.random() * 1);
//i=Math.floor(Math.random() * 2);
document.write("<a href='" + link[i] + "' target='" + target_A[i] + "' >");
document.write("<img alt='" + alt[i] + "' src='" + bannerimg[i] + "' width='270' />");
document.write("</a>");
}


// Random Karuta
function random_karuta() {
title = new Array();
link = new Array();
thumb = new Array();

title[0] = '【京】きょうから　はじめる　　セキュリティ';
link[0] = 'http://securityblog.jp/iroha_karuta/794.html';
thumb[0] = 'left_iroha_048kyo.jpg';
title[1] = '【す】鈴木さん　パスワードまで　suzuki3';
link[1] = 'http://securityblog.jp/iroha_karuta/791.html';
thumb[1] = 'left_iroha_047su.jpg';
title[2] = '【せ】セキュリティ　想定外は　想定内';
link[2] = 'http://securityblog.jp/iroha_karuta/789.html';
thumb[2] = 'left_iroha_046se.jpg';
title[3] = '【も】「漏らしました」　その一言を　いう勇気';
link[3] = 'http://securityblog.jp/iroha_karuta/788.html';
thumb[3] = 'left_iroha_045mo.jpg';
title[4] = '【ひ】秘密のファイル　世界デビュー';
link[4] = 'http://securityblog.jp/iroha_karuta/787.html';
thumb[4] = 'left_iroha_044hi.jpg';
title[5] = '【ゑ】ウェブのリンクは　地雷原';
link[5] = 'http://securityblog.jp/iroha_karuta/782.html';
thumb[5] = 'left_iroha_043we.jpg';
title[6] = '【し】社長様　そのパソコンは　裸です';
link[6] = 'http://securityblog.jp/iroha_karuta/779.html';
thumb[6] = 'left_iroha_042shi.jpg';
title[7] = '【み】みんなで共有　みんなで漏えい';
link[7] = 'http://securityblog.jp/iroha_karuta/777.html';
thumb[7] = 'left_iroha_041mi.jpg';
title[8] = '【め】めったに　クラッシュ　するもんだ';
link[8] = 'http://securityblog.jp/iroha_karuta/774.html';
thumb[8] = 'left_iroha_040me.jpg';
title[9] = '【ゆ】油断やミスは　仕組みで　フォロー';
link[9] = 'http://securityblog.jp/iroha_karuta/769.html';
thumb[9] = 'left_iroha_039yu.jpg';
title[10] = '【き】記憶とともに　記録も消えた';
link[10] = 'http://securityblog.jp/iroha_karuta/766.html';
thumb[10] = 'left_iroha_038ki.jpg';
title[11] = '【さ】さきほどの　鍵は別便　別ルート';
link[11] = 'http://securityblog.jp/iroha_karuta/764.html';
thumb[11] = 'left_iroha_037sa.jpg';
title[12] = '【あ】宛先よし　CC確認　出してよし';
link[12] = 'http://securityblog.jp/iroha_karuta/760.html';
thumb[12] = 'left_iroha_036a.jpg';
title[13] = '【て】敵は　煩悩時にあり';
link[13] = 'http://securityblog.jp/iroha_karuta/758.html';
thumb[13] = 'left_iroha_035te.jpg';
title[14] = '【え】「エコだよ」と　裏紙つかって　情報漏えい';
link[14] = 'http://securityblog.jp/iroha_karuta/754.html';
thumb[14] = 'left_iroha_034e.jpg';
title[15] = '【こ】こっそり見ても　ごっそり感染';
link[15] = 'http://securityblog.jp/iroha_karuta/752.html';
thumb[15] = 'left_iroha_033ko.jpg';
title[16] = '【ふ】ブログから　もれて広まる　社内事情';
link[16] = 'http://securityblog.jp/iroha_karuta/747.html';
thumb[16] = 'left_iroha_032fu.jpg';
title[17] = '【け】「消した」は　実は消えてない';
link[17] = 'http://securityblog.jp/iroha_karuta/744.html';
thumb[17] = 'left_iroha_031ke.jpg';
title[18] = '【ま】まるみえ　アドレス　おまけつき';
link[18] = 'http://securityblog.jp/iroha_karuta/742.html';
thumb[18] = 'left_iroha_030ma.jpg';
title[19] = '【や】やっておこうよ　こまめな更新';
link[19] = 'http://securityblog.jp/iroha_karuta/739.html';
thumb[19] = 'left_iroha_029ya.jpg';
title[20] = '【く】クリック危険　添付に注意';
link[20] = 'http://securityblog.jp/iroha_karuta/736.html';
thumb[20] = 'left_iroha_028ku.jpg';
title[21] = '【お】おいらウイルス　USBにも　ひそんでる';
link[21] = 'http://securityblog.jp/iroha_karuta/732.html';
thumb[21] = 'left_iroha_027o.jpg';
title[22] = '【の】残された　その裏口が　命取り';
link[22] = 'http://securityblog.jp/iroha_karuta/727.html';
thumb[22] = 'left_iroha_026no.jpg';
title[23] = '【ゐ】ウィンドウ　ログインしたまま　閉じちゃダメ';
link[23] = 'http://securityblog.jp/iroha_karuta/724.html';
thumb[23] = 'left_iroha_025wi.jpg';
title[24] = '【う】牛にハエ　メアドにスパム';
link[24] = 'http://securityblog.jp/iroha_karuta/722.html';
thumb[24] = 'left_iroha_024u.jpg';
title[25] = '【む】無茶な規則で　オフィスが停止';
link[25] = 'http://securityblog.jp/iroha_karuta/718.html';
thumb[25] = 'left_iroha_023mu.jpg';
title[26] = '【ら】来客に　必要ないのに　情報開示';
link[26] = 'http://securityblog.jp/iroha_karuta/713.html';
thumb[26] = 'left_iroha_022ra.jpg';
title[27] = '【な】夏でも重ね着　風邪予防';
link[27] = 'http://securityblog.jp/iroha_karuta/709.html';
thumb[27] = 'left_iroha_021na.jpg';
title[28] = '【ね】寝かせても　パソコン　だもの...';
link[28] = 'http://securityblog.jp/iroha_karuta/704.html';
thumb[28] = 'left_iroha_020ne.jpg';
title[29] = '【つ】続けなきゃ 継続こそが セキュリティ';
link[29] = 'http://securityblog.jp/iroha_karuta/700.html';
thumb[29] = 'left_iroha_019tsu.jpg';
title[30] = '【そ】その口がセキュリティホール';
link[30] = 'http://securityblog.jp/iroha_karuta/696.html';
thumb[30] = 'left_iroha_018so.jpg';
title[31] = '【れ】霊じゃないあなたの肩ごしのぞいてる';
link[31] = 'http://securityblog.jp/iroha_karuta/691.html';
thumb[31] = 'left_iroha_017re.jpg';
title[32] = '【た】誰かいる　ふたりをつなぐ　糸の上';
link[32] = 'http://securityblog.jp/iroha_karuta/685.html';
thumb[32] = 'left_iroha_016ta.jpg';
title[33] = '【よ】よく言えば共有　実はタダ漏れ？';
link[33] = 'http://securityblog.jp/iroha_karuta/681.html';
thumb[33] = 'left_iroha_015yo.jpg';
title[34] = '【か】架空請求　読まずに捨てた';
link[34] = 'http://securityblog.jp/iroha_karuta/677.html';
thumb[34] = 'left_iroha_014ka.jpg';
title[35] = '【わ】罠がいっぱい野良無線';
link[35] = 'http://securityblog.jp/iroha_karuta/672.html';
thumb[35] = 'left_iroha_013wa.jpg';
title[36] = '【を】ウォッチできちゃうあなたの足跡';
link[36] = 'http://securityblog.jp/iroha_karuta/667.html';
thumb[36] = 'left_iroha_012wo.jpg';
title[37] = '【る】ルール決めてもスルーじゃ台無し';
link[37] = 'http://securityblog.jp/iroha_karuta/662.html';
thumb[37] = 'left_iroha_011ru.jpg';
title[38] = '【ぬ】盗まれた手元にあるけど盗まれた';
link[38] = 'http://securityblog.jp/iroha_karuta/657.html';
thumb[38] = 'left_iroha_010nu.jpg';
title[39] = '【り】理解せず「同意」を押して大失敗';
link[39] = 'http://securityblog.jp/iroha_karuta/652.html';
thumb[39] = 'left_iroha_009ri.jpg';
title[40] = '【ち】躊躇しないでLANから隔離';
link[40] = 'http://securityblog.jp/iroha_karuta/648.html';
thumb[40] = 'left_iroha_008chi.jpg';
title[41] = '【と】匿名と思っているのはあなただけ';
link[41] = 'http://securityblog.jp/iroha_karuta/643.html';
thumb[41] = 'left_iroha_007to.jpg';
title[42] = '【へ】ヘタすりゃスパム善意のチェーン';
link[42] = 'http://securityblog.jp/iroha_karuta/639.html';
thumb[42] = 'left_iroha_006he.jpg';
title[43] = '【ほ】ボット出のウィルスです';
link[43] = 'http://securityblog.jp/iroha_karuta/634.html';
thumb[43] = 'left_iroha_005ho.jpg';
title[44] = '【に】にせ者が にせアドレスで こんにちは';
link[44] = 'http://securityblog.jp/iroha_karuta/631.html';
thumb[44] = 'left_iroha_004ni.jpg';
title[45] = '【は】パスワード　桁けちるな';
link[45] = 'http://securityblog.jp/iroha_karuta/592.html';
thumb[45] = 'left_iroha_003ha.jpg';
title[46] = '【ろ】漏えいで　流れた社運';
link[46] = 'http://securityblog.jp/iroha_karuta/590.html';
thumb[46] = 'left_iroha_002ro.jpg';
title[47] = '【い】いつのまに　デスクトップが　ゴミ屋敷';
link[47] = 'http://securityblog.jp/iroha_karuta/586.html';
thumb[47] = 'left_iroha_001i.jpg';

i=Math.floor(Math.random() * 48);
document.write("<div class='text'>");
document.write("<h2><a href='http://securityblog.jp/iroha_karuta.html'><img src='/common/images/sidekaruta_title.jpg' width='130' height='35' alt='セキュリティいろはかるた' /></a></h2>");
document.write("<span><a class='yomifuda' href='" + link[i] + "'>" + title[i] + "</a></span>");
document.write("<span class='tRight'><a class='list' href='http://securityblog.jp/iroha_karuta.html'>絵札一覧</a></span>");
document.write("</div>");
document.write("<div class='thumbnail'>");
document.write("<a href='" + link[i] + "'><img alt='" + title[i] + "' src='/iroha_images/thumb/" + thumb[i] + "' width='100' height='131' /></a>");
document.write("</div>");
}

//footerlink
function footerlink() {
document.write(
'<!-- .footerNavi -->',
'<div class="footerNavi">',
'<h2>情報セキュリティについて知る</h2>',
'<h3><a href="http://securityblog.jp/news/">セキュリティニュース</a></h3>',
'<ul>',
'<li><a href="http://securityblog.jp/news/ipa/">独立行政法人 情報処理推進機構（IPA）</a></li>',
'<li><a href="http://securityblog.jp/news/event/">セキュリティイベント</a></li>',
'<li><a href="http://securityblog.jp/news/policy/">セキュリティポリシー</a></li>',
'<li><a href="http://securityblog.jp/news/guideline/">法律・ガイドライン</a></li>',
'<li><a href="http://securityblog.jp/news/copyright/">著作権保護</a></li>',
'</ul>',
'<h3><a href="http://securityblog.jp/words/">セキュリティ用語解説</a></h3>',
'<ul>',
'<li><a href="http://securityblog.jp/words/spyware/">スパイウェア対策</a></li>',
'<li><a href="http://securityblog.jp/words/worm/">ワーム</a></li>',
'<li><a href="http://securityblog.jp/words/oneclick/">ワンクリック詐欺</a></li>',
'<li><a href="http://securityblog.jp/words/phishing/">フィッシング詐欺</a></li>',
'<li><a href="http://securityblog.jp/words/internet/">インターネット詐欺</a></li>',
'<li><a href="http://securityblog.jp/words/securityhole/">セキュリティホール</a></li>',
'<li><a href="http://securityblog.jp/words/encipherment/">暗号化</a></li>',
'<li><a href="http://securityblog.jp/words/electronic_authentication/">電子認証</a></li>',
'<li><a href="http://securityblog.jp/words/virus/">ウィルス情報</a></li>',
'<li><a href="http://securityblog.jp/words/spam/">スパム対策</a></li>',
'<li><a href="http://securityblog.jp/words/compromise/">個人情報漏洩（漏えい）</a></li>',
'<li><a href="http://securityblog.jp/words/data_communication/">データ通信</a></li>',
'<li><a href="http://securityblog.jp/words/p2p/">P2P（ファイル共有）</a></li>',
'<li><a href="http://securityblog.jp/words/unauthorized_access/">不正アクセス</a></li>',
'<li><a href="http://securityblog.jp/words/cracking/">クラッキング</a></li>',
'<li><a href="http://securityblog.jp/security_wordlist.html">用語一覧</a></li>',
'</ul>',
'</div>',
'<!-- //.footerNavi -->',
'<!-- .footerNavi -->',
'<div class="footerNavi">',
'<h2>お役立ちコラム</h2>',
'<h3><a href="http://securityblog.jp/interview/">ITスペシャリストに聞く！</a></h3>',
'<ul>',
'<li><a href="http://securityblog.jp/interview/1133.html">園田道夫と行く、セキュリティ草の根コミュニティ</a></li>',
'<li><a href="http://securityblog.jp/interview/805.html">ハッカー検事、大橋充直見参！</a></li>',
'<li><a href="http://securityblog.jp/interview/755.html">セキュリティ・エバンジェリスト　高木浩光ができるまで</a></li>',
'<li><a href="http://securityblog.jp/interview/499.html">山口補佐官の憂鬱？</a></li>',
'<li><a href="http://securityblog.jp/interview/430.html">三輪信雄のセキュリティ・ブートキャンプ</a></li>',

'</ul>',
'<h3><a href="http://securityblog.jp/monthly/">月イチIT総括</a></h3>',
'<h3><a href="http://securityblog.jp/megane/">セキュリティめがね</a></h3>',
'<h2>注目のワード</h2>',
'<ul>',
'<li><a href="http://securityblog.jp/cgi-bin/mt-fts.fcgi?IncludeBlogs=1&amp;tag=%E3%83%8F%E3%83%83%E3%82%B7%E3%83%A5%E3%83%89%E3%82%B9&amp;limit=20" title="ハッシュドスの一覧を見る">ハッシュドス</a></li>',
'',
'<li><a href="http://securityblog.jp/cgi-bin/mt-fts.fcgi?IncludeBlogs=1&amp;tag=iBooks%20Author&amp;limit=20" title="iBooks Authorの一覧を見る">iBooks Author</a></li>',
'',
'<li><a href="http://securityblog.jp/cgi-bin/mt-fts.fcgi?IncludeBlogs=1&amp;tag=iBooks%202&amp;limit=20" title="iBooks 2の一覧を見る">iBooks 2</a></li>',
'',
'<li><a href="http://securityblog.jp/cgi-bin/mt-fts.fcgi?IncludeBlogs=1&amp;tag=hashdos&amp;limit=20" title="hashdosの一覧を見る">hashdos</a></li>',
'',
'<li><a href="http://securityblog.jp/cgi-bin/mt-fts.fcgi?IncludeBlogs=1&amp;tag=IE6&amp;limit=20" title="IE6の一覧を見る">IE6</a></li>',
'',
'<li><a href="http://securityblog.jp/cgi-bin/mt-fts.fcgi?IncludeBlogs=1&amp;tag=SOPA&amp;limit=20" title="SOPAの一覧を見る">SOPA</a></li>',
'',
'<li><a href="http://securityblog.jp/cgi-bin/mt-fts.fcgi?IncludeBlogs=1&amp;tag=PIPA&amp;limit=20" title="PIPAの一覧を見る">PIPA</a></li>',
'',
'<li><a href="http://securityblog.jp/cgi-bin/mt-fts.fcgi?IncludeBlogs=1&amp;tag=%E3%82%BB%E3%82%AD%E3%83%A5%E3%83%AA%E3%83%86%E3%82%A3%E3%80%8C%E7%82%8E%E3%81%AE%E3%82%B3%E3%83%9E%E3%80%8D%E3%82%AD%E3%83%A3%E3%83%B3%E3%83%9A%E3%83%BC%E3%83%B3&amp;limit=20" title="セキュリティ「炎のコマ」キャンペーンの一覧を見る">セキュリティ「炎のコマ」キャンペーン</a></li>',
'',
'<li><a href="http://securityblog.jp/cgi-bin/mt-fts.fcgi?IncludeBlogs=1&amp;tag=%E8%87%AA%E7%82%8A%E4%BB%A3%E8%A1%8C%E6%A5%AD%E8%80%85&amp;limit=20" title="自炊代行業者の一覧を見る">自炊代行業者</a></li>',
'',
'<li><a href="http://securityblog.jp/cgi-bin/mt-fts.fcgi?IncludeBlogs=1&amp;tag=Android%E7%89%88Google%E6%97%A5%E6%9C%AC%E8%AA%9E%E5%85%A5%E5%8A%9B&amp;limit=20" title="Android版Google日本語入力の一覧を見る">Android版Google日本語入力</a></li>',
'</ul>',
'</div>',
'<!-- //.footerNavi -->',
'<!-- .footerNavi -->',
'<div class="footerNavi">',
'<h2>おたのしみコンテンツ</h2>',
'<h3>キャンペーン</h3>',
'<ul>',
'<li><a href="http://securityblog.jp/dajyare_contest3.html">IT駄洒落コンテストNEO</a></li>',
'<li><a href="http://securityblog.jp/dajyare_contest.html">帰ってきたIT駄洒落コンテスト</a></li>',
'<li><a href="http://securityblog.jp/challenge_w/">ユミコの冬季セキュリンピック</a></li>',
'<li><a href="http://securityblog.jp/challenge/">ユミコのセキュリンピック</a></li>',
'<li><a href="http://securityblog.jp/blogparts/">セキュリティ格言ブログパーツ</a></li>',
'<li><a href="http://securityblog.jp/crossword/">大江戸セキュリティくろすわーど</a></li>',
'</ul>',
'<h3>学習コンテンツ</h3>',
'<ul>',
'<li><a href="http://securityblog.jp/mushimegane/">セキュリティ虫めがね</a></li>',
'<li><a href="http://securityblog.jp/freshers/campaign.html">セキュリーマン検定フレッシャーズ</a></li>',
'<li><a href="http://securityblog.jp/giga/">大江戸セキュリティ戯画</a></li>',
'<li><a href="http://securityblog.jp/rakugo.html">セキュリティ落語</a></li>',
'<li><a href="http://securityblog.jp/securyman/hitachisecuryman.html">セキュリーマン検定</a></li>',
'<li><a href="http://securityblog.jp/karuta/">セキュリティかるた</a></li>',
'<li><a href="http://securityblog.jp/iroha_karuta/">セキュリティいろはかるた</a></li>',
'<li><a href="http://it-words.jp/">日立ソリューションズIT用語辞典</a></li>',
'</ul>',
'<h3>このサイトについて</h3>',
'<ul>',
'<li><a href="http://securityblog.jp/concept/">このサイトについて</a></li>',
'<li><a href="http://securityblog.jp/character/">登場人物</a></li>',
'<li><a href="http://www.hitachi-solutions.co.jp/privacy/">個人情報保護に関して</a></li>',
'<li><a href="https://securityblog.jp/form/form.php">ご意見・ご感想</a></li>',
'<li><a href="http://securityblog.jp/sitemap.html">サイトマップ</a></li>',
'<li><a href="http://securityblog.jp/rss.html">RSS</a></li>',
'</ul>',
'</div>',
'<!-- //.footerNavi -->'
);
}

//popup
function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
}

// EasySlider Setting
$(document).ready(function(){
$("#gigaRSlide").length && $("#gigaRSlide").easySlider({
auto: true,
continuous: true,
speed: 800,
pause: 7000
});
});


//preload
var preLoad = function (url) {
    jQuery('<img />')
    .hide()
    .attr('src', url)
    .appendTo(document.body)
    .load(function () { jQuery(this).remove(); })
    .error(function () { jQuery(this).remove(); });
}

