/* 自動単語リンクプラグイン for jQuery
2009.1 By KaZuhiro FuRuhata  */
$.fn.addlink = function(baseURL){
    var dict = [
"大水深", "http://www.jdc.co.jp/etc/glossary/cd/deepwater.php",
"マッドポンプ", "http://www.jdc.co.jp/etc/glossary/mn/mudpump.php",
"ドローワークス", "http://www.jdc.co.jp/etc/glossary/cd/drawworks.php",
"トップドライブ", "http://www.jdc.co.jp/etc/glossary/st/topdrive.php",
"ドリルストリングコンペンセーター", "http://www.jdc.co.jp/etc/glossary/cd/drill-string.php",
"統合国際深海掘削計画", "http://www.jdc.co.jp/etc/glossary/ij/iodp.php",
"船級", "http://www.jdc.co.jp/etc/glossary/cd/classification.php",
"ダイナミック・ポジショニング・システム", "http://www.jdc.co.jp/etc/glossary/cd/dps.php",
"坑内リスク", "http://www.jdc.co.jp/etc/glossary/cd/downhole-risk.php",
"改修", "http://www.jdc.co.jp/etc/glossary/wx/reformation.php",
"仕上げ", "http://www.jdc.co.jp/etc/glossary/cd/completion.php",
"競争市場リグ", "http://www.jdc.co.jp/etc/glossary/cd/competitive-market.php",
"出来高方式", "http://www.jdc.co.jp/etc/glossary/ef/footage.php",
"ターンキー方式", "http://www.jdc.co.jp/etc/glossary/st/turnkey.php",
"ドリルシップ", "http://www.jdc.co.jp/etc/glossary/cd/drilling-ship.php",
"ロータリー式掘削", "http://www.jdc.co.jp/etc/glossary/qr/rotarydrilling.php",
"泥水", "http://www.jdc.co.jp/etc/glossary/mn/post-1.php",
"掘削班長", "http://www.jdc.co.jp/etc/glossary/st/tp.php",
"掘削監督", "http://www.jdc.co.jp/etc/glossary/cd/drlgsupt.php",
"ドリリングクルー", "http://www.jdc.co.jp/etc/glossary/cd/drilling-crew.php",
"ドリルパイプ", "http://www.jdc.co.jp/etc/glossary/cd/drill-pipe.php",
"下流部門", "http://www.jdc.co.jp/etc/glossary/cd/downstream.php",
"上流部門", "http://www.jdc.co.jp/etc/glossary/uv/upstream.php",
"傾斜試験", "http://www.jdc.co.jp/etc/glossary/ij/inclining-test.php",
"裸傭船契約", "http://www.jdc.co.jp/etc/glossary/ab/bbc.php",
"休業災害", "http://www.jdc.co.jp/etc/glossary/kl/lti.php",
"ケーシング", "http://www.jdc.co.jp/etc/glossary/cd/casing.php",
"エイチエスキューイーマネージメントシステム", "http://www.jdc.co.jp/etc/glossary/gh/hsqe.php",
"メタンハイドレート", "http://www.jdc.co.jp/etc/glossary/mn/methan-hydrate.php",
"ジャッキアップ", "http://www.jdc.co.jp/etc/glossary/ij/jackup.php",
"セミサブマーシブル", "http://www.jdc.co.jp/etc/glossary/st/semisub.php",
"復員費", "http://www.jdc.co.jp/etc/glossary/cd/demobilization-cost.php",
"動員費", "http://www.jdc.co.jp/etc/glossary/mn/mobilization-cost.php",
"日割作業料", "http://www.jdc.co.jp/etc/glossary/cd/dayrate.php",
"ビット", "http://www.jdc.co.jp/etc/glossary/ab/bit.php",
"レーザ掘削", "http://www.jdc.co.jp/etc/glossary/kl/laser-drilling.php",
"生産テスト", "http://www.jdc.co.jp/etc/glossary/cd/dst.php",
"ライザー", "http://www.jdc.co.jp/etc/glossary/qr/riser.php",
"オペレータ", "http://www.jdc.co.jp/etc/glossary/op/operator.php",
"噴出防止装置", "http://www.jdc.co.jp/etc/glossary/ab/post.php",
"国際掘削業者協会", "http://www.jdc.co.jp/etc/glossary/ij/iadc.php",
"エービーエス", "http://www.jdc.co.jp/etc/glossary/ab/abs.php",
"海洋掘削リグ", "http://www.jdc.co.jp/etc/glossary/qr/rig.php",
"Deepwater", "http://www.jdc.co.jp/etc/glossary/cd/deepwater.php",
"Mud　Pump", "http://www.jdc.co.jp/etc/glossary/mn/mudpump.php",
"Drawworks", "http://www.jdc.co.jp/etc/glossary/cd/drawworks.php",
"Top Drive System (TDS)", "http://www.jdc.co.jp/etc/glossary/st/topdrive.php",
"Drill String Compensator", "http://www.jdc.co.jp/etc/glossary/cd/drill-string.php",
"IODP", "http://www.jdc.co.jp/etc/glossary/ij/iodp.php",
"Classification", "http://www.jdc.co.jp/etc/glossary/cd/classification.php",
"DPS", "http://www.jdc.co.jp/etc/glossary/cd/dps.php",
"Downhole Risk", "http://www.jdc.co.jp/etc/glossary/cd/downhole-risk.php",
"Workover", "http://www.jdc.co.jp/etc/glossary/wx/reformation.php",
"Completion", "http://www.jdc.co.jp/etc/glossary/cd/completion.php",
"Competitive Market Rig", "http://www.jdc.co.jp/etc/glossary/cd/competitive-market.php",
"Footage Contract", "http://www.jdc.co.jp/etc/glossary/ef/footage.php",
"Turnkey Contract", "http://www.jdc.co.jp/etc/glossary/st/turnkey.php",
"Drill Ship", "http://www.jdc.co.jp/etc/glossary/cd/drilling-ship.php",
"Rotary Drilling", "http://www.jdc.co.jp/etc/glossary/qr/rotarydrilling.php",
"Mud", "http://www.jdc.co.jp/etc/glossary/mn/post-1.php",
"Tool Pusher", "http://www.jdc.co.jp/etc/glossary/st/tp.php",
"Drilling Supt.", "http://www.jdc.co.jp/etc/glossary/cd/drlgsupt.php",
"Drilling Crew", "http://www.jdc.co.jp/etc/glossary/cd/drilling-crew.php",
"Drill Pipe", "http://www.jdc.co.jp/etc/glossary/cd/drill-pipe.php",
"Downstream", "http://www.jdc.co.jp/etc/glossary/cd/downstream.php",
"Upstream", "http://www.jdc.co.jp/etc/glossary/uv/upstream.php",
"Inclining Test", "http://www.jdc.co.jp/etc/glossary/ij/inclining-test.php",
"BBC", "http://www.jdc.co.jp/etc/glossary/ab/bbc.php",
"LTI", "http://www.jdc.co.jp/etc/glossary/kl/lti.php",
"Casing", "http://www.jdc.co.jp/etc/glossary/cd/casing.php",
"HSQE Management System", "http://www.jdc.co.jp/etc/glossary/gh/hsqe.php",
"Methan Hydrate", "http://www.jdc.co.jp/etc/glossary/mn/methan-hydrate.php",
"Jack-up", "http://www.jdc.co.jp/etc/glossary/ij/jackup.php",
"Semisubmersible", "http://www.jdc.co.jp/etc/glossary/st/semisub.php",
"Demobilization Cost", "http://www.jdc.co.jp/etc/glossary/cd/demobilization-cost.php",
"Mobilization Cost", "http://www.jdc.co.jp/etc/glossary/mn/mobilization-cost.php",
"Day Rate", "http://www.jdc.co.jp/etc/glossary/cd/dayrate.php",
"Bit", "http://www.jdc.co.jp/etc/glossary/ab/bit.php",
"Laser Drilling", "http://www.jdc.co.jp/etc/glossary/kl/laser-drilling.php",
"DST", "http://www.jdc.co.jp/etc/glossary/cd/dst.php",
"Riser　", "http://www.jdc.co.jp/etc/glossary/qr/riser.php",
"Operator", "http://www.jdc.co.jp/etc/glossary/op/operator.php",
"BOP", "http://www.jdc.co.jp/etc/glossary/ab/post.php",
"IADC", "http://www.jdc.co.jp/etc/glossary/ij/iadc.php",
"ABS", "http://www.jdc.co.jp/etc/glossary/ab/abs.php",
"Rig", "http://www.jdc.co.jp/etc/glossary/qr/rig.php", "HSQE Management System","/etc/glossary/gh/hsqe.php"];
    return this.each(function(){
        var srcText = this.innerHTML;
        for (var i=0; i<dict.length; i+=2){
            srcText = srcText.replace(new RegExp(dict[i],"g"),'<a href="'+dict[i+1]+'\" class=\"glossary\">'+dict[i]+'</a>');
        }
        this.innerHTML = srcText;
    });
}

