// URL REP
// -----------------------------------------------
var uri = document.URL;

if (uri.match('www.itm')) {ThisSite = 'itmediacojpglobal';ImgSrv = 'http:/'+'/image.itm'+'edia.co'+'.jp';}
else if (uri.match('plusd.itm')) {ThisSite = 'itmediacojpglobal';ImgSrv = 'http:/'+'/image.itm'+'edia.co'+'.jp';}
else if (uri.match('techtarget.itm')) {ThisSite = 'itmediacojpglobal';ImgSrv = 'http:/'+'/image.itm'+'edia.co'+'.jp';}
else if (uri.match('wp.techtarget.itm')) {ThisSite = 'itmediacojpglobal';ImgSrv = 'http:/'+'/image.itm'+'edia.co'+'.jp';}
else if (uri.match('ttdev')) {ThisSite = 'itmediacojpglobal'+'dev';ImgSrv = '';}
else if (uri.match('preview')) {ThisSite = 'itmediacojpglobal'+'dev';ImgSrv = '';}
else if (uri.match('bro')) {ThisSite = 'itmediacojpglobal'+'dev';ImgSrv = '';}
else {ThisSite = '';ImgSrv = '';}
if (document.URL.match(/\/tt\/+(news|members)/)) {
var pageDir = 'articles';
} else {
var pageDir = 'indexes';
}

// -----------------------------------------------

myOP = window.opera;
myN6 = document.getElementById;
myIE = document.all;
myN4 = document.layers;
if      (myOP) myBR="N6";
else if (myIE) myBR="I4";
else if (myN6) myBR="N6";
else if (myN4) myBR="N4";
else           myBR="";

function myBrowserObj(myID){
  if (myBR=="N6") myRet=document.getElementById(myID).style;
  else if (myBR=="I4") myRet=document.all[myID].style;
  else if (myBR=="N4") myRet=document[myID];
  else myRet=0;
  return myRet;
}

function myDisp(myID,myVisibility){
  myObj = myBrowserObj(myID);
  if(myObj){
    myObj.display = myVisibility;
  }
  return true;
}
function myIn( myID ) {
  myDisp(myID,"block");
}
function myOut( myID ) {
  myDisp(myID,"none");
}

function insetRule(selector,declarations){
 var sheets=document.styleSheets;

 if(sheets){
  var tSheet=sheets[sheets.length-1];  // 一番最後のスタイルシート
   // MacIE4: styleSheets.item(sheets.length-1)は不可

  if(document.all)
   tSheet.addRule(selector,declarations);
    // reserved value addRule(sSelector, sStyle [, iIndex])
    // iIndexは省略可。省略するとスタイルシートの最後に追加。 

  else
   tSheet.insertRule(selector+"{"+declarations+"}"
    ,tSheet.cssRules.length);
    /* unsigned long insertRule(in DOMString rule
       , in unsigned long index) */
    // raises(DOMException);
    // ruleはセレクタと宣言ブロック。被挿入規則のインデックスが返る。
 }
}

if (uri.match(/#print/)){
document.write('<link href="');
document.write('/tt/css/tt_print.css');
document.write('" rel="stylesheet" type="text/css" media="all">');
}


// TECHTARGET CATEGORY
// -----------------------------------------------
function ttCategoryName(ttCategory){
	switch(ttCategory){
		case 'business':
			document.write('ビジネスとIT戦略'); break;
		case 'develop':
			document.write('システム開発／構築'); break;
		case 'operation':
			document.write('システム運用管理'); break;
		case 'security':
			document.write('セキュリティ'); break;
		case 'network':
			document.write('通信ネットワーク'); break;
		case 'application':
			document.write('基幹系アプリケーション'); break;
		case 'information':
			document.write('情報系アプリケーション'); break;
		case 'manufacture':
			document.write('製造業'); break;
		case 'retail':
			document.write('流通業'); break;
		case 'smb':
			document.write('中堅・中小企業'); break;
		default :
			document.write('ビジネスとIT戦略');
	}
}


// SWF EMBED
// -----------------------------------------------
function SwfEmbed(SwfSrc, SwfWidth, SwfHeight, SwfBgColor, SwfAlign, SwfURL) {
	switch(SwfAlign){
		case 'center':
			document.write('<div style="margin:0px auto;'); break;
		case 'left':
			document.write('<div style="float:left;'); break;
		case 'right':
			document.write('<div style="float:right;'); break;
		default :
			document.write('<div style="');
	}
	document.write('width:'+ SwfWidth + 'px;">');
	if(SwfURL != ''){
		document.write('<a href="' + SwfURL + '" style="position:absolute;z-index:21;"><img src="/tt/images/spacer.gif" width="' + SwfWidth + '" height="' + SwfHeight + '"></a>');
	}
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + SwfWidth + '" height="' + SwfHeight + '" id="flash" style="position:static;"');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="' + SwfSrc + '" />');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<param name="bgcolor" value="' + SwfBgColor + '" />');
	document.write('<embed src="' + SwfSrc + '" quality="high" bgcolor="');
	document.write(SwfBgColor);
	document.write('" width="' + SwfWidth + '" height="' + SwfHeight + '" wmode="transparent" name="flash" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
	document.write('</embed>');
	document.write('</object>');
	document.write('</div>');
}


// DESIGN CLICK COUNT
// -----------------------------------------------
function designCnt(scID, targetURI){
var id1 = scID + '_' + pageDir;
var id2 = id1 + ' ' + targetURI;
s.prop14 = id2;
s.tl(this,'e',id1);
s_objectid = id1;
}

// REGIST BANNER
// -----------------------------------------------
function registBanner(){
/*
document.write('<div class="cbox" id="registBan" style="width:632px;margin:0px auto;">');
document.write('<a href="http://techtarget.itmedia.co.jp/tt/membership/" onClick="');
document.write("var s=s_gi('" + ThisSite + "'); s.eVar16='tt_cc_membership_articles http://techtarget.itmedia.co.jp/tt/membership/'; s.tl(this,'e','tt_cc_membership_articles'); s_objectid='tt_cc_membership_articles';");
document.write('">');
document.write('<img src="' + ImgSrv + '/tt/images/banner_regist.gif">');
document.write('</a></div>');
*/
}

// EXPERT BOX
// -----------------------------------------------
function exProBox(exProAlign, exProWidth, exProIcon, exProIconAlign, exProCorpName, exProPost, exProName, exProField, exProAbs){
if(exProIcon == ''){
var exProIconOrg = document.URL.replace(/\.html/,'.jpg');
} else if(exProIcon == 'top'){
	if(document.URL.match(/expro/)){
		var exProIconOrg = document.URL.replace(/expro\.html/,'top_expro.jpg');
	} else if(document.URL.match(/members/)){
		var exProIconOrg = document.URL.replace(/news(\d\d)\.html/,'top_news$1.jpg');
	} else {
		var exProIconOrg2 = document.URL.replace(/techtarget/,'image');
		var exProIconOrg = exProIconOrg2.replace(/news(\d\d)\.html/,'top_news$1.jpg');
	}
} else {
var exProIconOrg = exProIcon;
}
if(exProIconAlign == 'left'){
var exProIconAlignOrg = 'colLeft';
} else if(exProIconAlign == 'right'){
var exProIconAlignOrg = 'colRight';
} else if(exProIconAlign == 'center'){
var exProIconAlignOrg = 'colCenter';
} else{
var exProIconAlignOrg = '';
}
if(exProAlign == 'left'){
var exProAlignOrg = 'colLeft';
} else if(exProAlign == 'right'){
var exProAlignOrg = 'colRight';
} else if(exProAlign == 'center'){
var exProAlignOrg = 'colCenter';
} else {
var exProAlignOrg = '';
}
if(exProWidth == ''){
var exProWidthOrg = '';
} else if(exProWidth < 180){
var exProWidthOrg = ' style="width:180px;"';
} else if(exProWidth > 610){
var exProWidthOrg = ' style="width:610px;"';
} else {
var exProWidthOrg = ' style="width:' + exProWidth + 'px;"';
}
document.write('<div class="expro" id="' + exProAlignOrg + '"' + exProWidthOrg + '><div class="inner">');
document.write('<img src="' + exProIconOrg + '" class="eximg" id="' + exProIconAlignOrg + '">');
document.write('<h5>' + exProCorpName + '<br>');
document.write('<span>' + exProPost + '</span></h5>');
document.write('<h3>' + exProName + '</h3>');
document.write('<p><span><strong>専門分野</strong>：' + exProField + '</span></p>');
document.write('<p>' + exProAbs + '</p>');
document.write('</div></div>');
}

// TT&WP 「新着ホワイトペーパー」パーツ共用スクリプト
// -----------------------------------------------
function TTWP_newWP(wpIcon, wpURL, wpCorpName, wpTitle, wpAbs, wpRank, wpUpdate){
if(document.URL.match('wp\.techtarget') || document.URL.match('dev01\.itmed')){
document.write('<img src="' + wpIcon + '" class="type">');
document.write('<h5>' + wpCorpName + '</h5>');
document.write('<h3><a href="' + wpURL + '">' + wpTitle + '</a></h3>');
document.write('<p class="WP">' + wpAbs + '<span>(' + wpUpdate + ')</span></p>');
document.write('<hr>');}
else if(document.URL.match('techtarget\.itmedia') || document.URL.match('view\.itmed') || document.URL.match(/oom\.itmed/)){
document.write('<div id="rank' + wpRank + '">');
if(document.URL.match('techtarget\.itmedia')){
document.write('<img src="http://image.itmedia.co.jp' + wpIcon + '" class="type">');}
else{
document.write('<img src="' + wpIcon + '" class="type">');}
document.write('<h5>' + wpCorpName + '</h5>');
document.write('<h3><a href="' + wpURL + '">' + wpTitle + '</a></h3>');
document.write('<p class="TT">' + wpAbs + '<span>(' + wpUpdate + ')</span></p>');
document.write('<hr>');
document.write('</div>');}
else{
document.write('');}
}

// TT&WP ロゴのリンク
// -----------------------------------------------
function LogoLink(){
if(document.URL.match('wp\.techtarget') || document.URL.match('dev01\.itmed')){
document.write('<a href="http://wp.techtarget.itmedia.co.jp/" title="ホワイトペーパーダウンロードセンター">ホワイトペーパーダウンロードセンター</a>');
}else{
document.write('<a href="http://techtarget.itmedia.co.jp/" title="テックターゲットジャパン">テックターゲットジャパン</a>');
}
}

// TT&WP SEARCH
// -----------------------------------------------
function TTWP_Search_head(){
if(document.URL.match('wp\.techtarget') || document.URL.match('dev01\.itmed')){
document.write('<label for="wpcx1"><input type="checkbox" name="idxname" value="wp" id="wpcx1" checked>ホワイトペーパーのみ</label>');
}else{
document.write('<label for="wpcx1"><input type="checkbox" name="idxname" value="wp" id="wpcx1">ホワイトペーパーのみ</label>');
}
}
function TTWP_Search_foot(){
if(document.URL.match('wp\.techtarget') || document.URL.match('dev01\.itmed')){
document.write('<label for="wpcx2"><input type="checkbox" name="idxname" value="wp" id="wpcx2" checked>ホワイトペーパーのみ</label>');
}else{
document.write('<label for="wpcx2"><input type="checkbox" name="idxname" value="wp" id="wpcx2">ホワイトペーパーのみ</label>');
}
}

// ぱんくず
// -----------------------------------------------
function TTpankuzu(BannerID, ArticleID){
var BannerID = BannerID;
var ArticleID = ArticleID;
var ttDomain = 'http://techtarget.itmedia.co.jp/';
var ttDir = 'tt/';
var ttHome = 'TechTargetホーム';

if (BannerID == 'techtarget'){
	var BannerURL = '';
	var BannerName = '';}
else if (BannerID == 'c1'){
	var BannerURL = 'business';
	var BannerName = 'ビジネスとIT戦略';}
else if (BannerID == 'c3'){
	var BannerURL = 'develop';
	var BannerName = 'システム開発／構築';}
else if (BannerID == 'c4'){
	var BannerURL = 'operation';
	var BannerName = 'システム運用管理';}
else if (BannerID == 'c5'){
	var BannerURL = 'security';
	var BannerName = 'セキュリティ';}
else if (BannerID == 'c6'){
	var BannerURL = 'network';
	var BannerName = '通信ネットワーク';}
else if (BannerID == 'c7'){
	var BannerURL = 'application';
	var BannerName = '基幹系アプリケーション';}
else if (BannerID == 'c8'){
	var BannerURL = 'information';
	var BannerName = '情報系アプリケーション';}
else if (BannerID == 'c9'){
	var BannerURL = 'manufacture';
	var BannerName = '製造業';}
else if (BannerID == 'c10'){
	var BannerURL = 'retail';
	var BannerName = '流通業';}
else if (BannerID == 'c11'){
	var BannerURL = 'smb';
	var BannerName = '中堅・中小企業';}
else{
}

if (ArticleID == 'expert'){
	var ArticleName = 'エキスパートに聞け！';}
else if (ArticleID == 'report'){
	var ArticleName = '勝ち組の導入事例レポート';}
else if (ArticleID == 'product'){
	var ArticleName = '企業を強くするIT製品レビュー';}
else if (ArticleID == 'overseas'){
	var ArticleName = '海外記事';}
else if (ArticleID == 'special'){
	var ArticleName = '特集企画';}
else if (ArticleID == 'agency'){
	var ArticleName = 'info Center';}
else if (ArticleID == 'rensai'){
	var ArticleName = '連載ミドル';}
else if (ArticleID == 'news'){
	var ArticleName = 'ニュース';}
else if (ArticleID == 'webcast'){
	var ArticleName = 'Webキャスト';}
else if (ArticleID == 'wp'){
	var ArticleName = 'ホワイトペーパー';}
else{
}

var cutTitle = document.title.replace('TechTargetジャパン：','').replace(' − TechTargetジャパン','');

if(cutTitle.length > 30){
	var breadTitle = cutTitle.slice(0,30) + ".....";
}else{
	var breadTitle = cutTitle;
}


if(BannerID == 'techtarget'){
	document.write('<p><a href="' + ttDomain + '">' + ttHome + '</a> <span>&gt;</span> ');
	document.write(breadTitle + '</p>');
}else{
	if (ArticleID == 'campaign'){
		document.write('<p><a href="' + ttDomain + '">' + ttHome + '</a>');
		document.write(' <span>&gt;</span> ' + breadTitle + '</p>');
	}else if (ArticleID == 'wp'){
		document.write('<p><a href="' + ttDomain + '">' + ttHome + '</a>');
		document.write(' <span>&gt;</span> <a href="' + ttDomain + ttDir + BannerURL + '/">' + BannerName + '</a> <span>&gt;</span> ');
		document.write('<span>' + ArticleName + '</span>' + ' <span>&gt;</span> ');
		document.write(breadTitle + '</p>');
	}else if (ArticleID == 'agency'){
		document.write('<p><a href="' + ttDomain + '">' + ttHome + '</a>');
		document.write(' <span>&gt;</span> <a href="' + ttDomain + ttDir + BannerURL + '/">' + BannerName + '</a> <span>&gt;</span> ');
		document.write('<span>' + ArticleName + '</span>' + ' <span>&gt;</span> ');
		document.write(breadTitle + '</p>');
	}else if (ArticleID == 'rensai'){
		document.write('<p><a href="' + ttDomain + '">' + ttHome + '</a>');
		document.write(' <span>&gt;</span> <a href="' + ttDomain + ttDir + BannerURL + '/">' + BannerName + '</a> <span>&gt;</span> ');
		document.write(breadTitle + '</p>');
	}else{
		document.write('<p><a href="' + ttDomain + '">' + ttHome + '</a>');
		document.write(' <span>&gt;</span> <a href="' + ttDomain + ttDir + BannerURL + '/">' + BannerName + '</a> <span>&gt;</span> ');
		document.write('<a href="' + ttDomain + ttDir + BannerURL + '/' + ArticleID + '.html">' + ArticleName + '</a> <span>&gt;</span> ');
		document.write(breadTitle + '</p>');
	}
}

}

// 記事下新着記事
// -----------------------------------------------
function newNewart(naTi, naAbs, naUrl) {
var sliceNum = 95;
if (naAbs.length > sliceNum) {
sliceAbs = naAbs.slice(0, sliceNum) + '.....';
} else {
sliceAbs = naAbs;
}
document.write('<li><a href="http://techtarget.itmedia.co.jp' + naUrl + '">' + naTi + '</a><br>' + sliceAbs + '</li>');
}


// EXTRAPARAM ジャンル名
// -----------------------------------------------
function GenreName(GenreName) {
if(GenreName.match('TechTarget')){}
else if(GenreName.match('mCateId1')){document.write('IT戦略／ITガバナンス');}
else if(GenreName.match('mCateId2')){document.write('IT投資／ROI・TCO');}
else if(GenreName.match('mCateId3')){document.write('ビジネスプロセス');}
else if(GenreName.match('mCateId4')){document.write('コンプライアンス／SOX法／CSR');}
else if(GenreName.match('mCateId5')){document.write('ベンダ選定／RFP');}
else if(GenreName.match('mCateId6')){document.write('IT組織／スタッフ育成');}
else if(GenreName.match('mCateId7')){document.write('eビジネス');}
else if(GenreName.match('mCateId14')){document.write('開発プロセス・プロジェクト管理');}
else if(GenreName.match('mCateId15')){document.write('分析・設計／モデリング');}
else if(GenreName.match('mCateId16')){document.write('開発言語／統合開発ツール');}
else if(GenreName.match('mCateId17')){document.write('テスト／バージョン管理');}
else if(GenreName.match('mCateId18')){document.write('アプリケーションサーバ');}
else if(GenreName.match('mCateId19')){document.write('データベース開発／ORマッピング');}
else if(GenreName.match('mCateId21')){document.write('リッチクライアント開発');}
else if(GenreName.match('mCateId22')){document.write('オフショア開発');}
else if(GenreName.match('mCateId23')){document.write('組み込みシステム開発');}
else if(GenreName.match('mCateId24')){document.write('帳票設計／出力');}
else if(GenreName.match('mCateId25')){document.write('アプリケーション統合／システム連携');}
else if(GenreName.match('mCateId26')){document.write('システム統合運用管理');}
else if(GenreName.match('mCateId27')){document.write('サーバOS');}
else if(GenreName.match('mCateId28')){document.write('ディレクトリサービス／アイデンティティ管理');}
else if(GenreName.match('mCateId29')){document.write('データベース運用管理');}
else if(GenreName.match('mCateId30')){document.write('PC／サーバ機器');}
else if(GenreName.match('mCateId31')){document.write('ストレージ／バックアップ');}
else if(GenreName.match('mCateId32')){document.write('UPS');}
else if(GenreName.match('mCateId33')){document.write('OA機器（複合機など）');}
else if(GenreName.match('mCateId34')){document.write('運用管理アウトソーシング');}
else if(GenreName.match('mCateId20')){document.write('システム性能／可用性／拡張性');}
else if(GenreName.match('mCateId35')){document.write('情報セキュリティポリシー');}
else if(GenreName.match('mCateId36')){document.write('情報漏えい対策');}
else if(GenreName.match('mCateId37')){document.write('ファイアウオール');}
else if(GenreName.match('mCateId38')){document.write('IDS・IPS');}
else if(GenreName.match('mCateId39')){document.write('ウイルス対策／スパイウェア対策');}
else if(GenreName.match('mCateId40')){document.write('スパム対策');}
else if(GenreName.match('mCateId41')){document.write('PKI・暗号・認証');}
else if(GenreName.match('mCateId42')){document.write('専用線／IP-VPN／広域イーサネット');}
else if(GenreName.match('mCateId43')){document.write('xDSL／FTTH');}
else if(GenreName.match('mCateId44')){document.write('IPSec VPN／SSL VPN');}
else if(GenreName.match('mCateId45')){document.write('PBX／VoIP・IP電話');}
else if(GenreName.match('mCateId46')){document.write('ルーター・スイッチ・ハブ');}
else if(GenreName.match('mCateId47')){document.write('ロードバランサ・帯域制御');}
else if(GenreName.match('mCateId48')){document.write('無線LAN');}
else if(GenreName.match('mCateId49')){document.write('RFID（ICタグ）');}
else if(GenreName.match('mCateId51')){document.write('ビデオ会議／コンテンツ配信');}
else if(GenreName.match('mCateId8')){document.write('ERP／財務会計／人事給与');}
else if(GenreName.match('mCateId9')){document.write('CRM／SFA');}
else if(GenreName.match('mCateId10')){document.write('SCM');}
else if(GenreName.match('mCateId52')){document.write('特定業種向けアプリケーション');}
else if(GenreName.match('mCateId11')){document.write('データウェアハウス/データマイニング/BI');}
else if(GenreName.match('mCateId12')){document.write('CTI／ヘルプデスク');}
else if(GenreName.match('mCateId13')){document.write('グループウェア');}
else if(GenreName.match('mCateId50')){document.write('コンテンツ管理／ドキュメント管理');}
else if(GenreName.match('mCateId53')){document.write('ナレッジマネジメント');}
else if(GenreName.match('mCateId54')){document.write('プロジェクト管理');}
else if(GenreName.match('mCateId55')){document.write('eラーニング');}
else if(GenreName.match('mCateId56')){document.write('ポータル');}
else if(GenreName.match('mCateId57')){document.write('エンタープライズサーチ');}
else{}
}

// EXTRAPARAM パンくず用
// -----------------------------------------------
function EX_bread(){
var EX_URL = document.URL.replace(/http.+tt\//,'/tt/').replace(/\_mCate.+/,'');
document.write('<p><a href="/tt/">TechTargetホーム</a> <span>&gt;</span> ');
if(document.URL.match('TTbread')){}
else if(document.URL.match(/news\.html$/)){
document.write('ニュース');}
else if(document.URL.match(/news\.html\?/)){
document.write('<a href="/tt/news.html">ニュース</a> <span>&gt;</span> ');}
else{}
if(document.URL.match('TTbread')){}
else if(document.URL.match(/business$/)){
document.write('ビジネスとIT戦略');}
else if(document.URL.match(/business\_/)){
document.write('<a href="' + EX_URL + '">ビジネスとIT戦略</a> <span>&gt;</span> ');}
else if(document.URL.match(/develop$/)){
document.write('システム開発／構築');}
else if(document.URL.match(/develop\_/)){
document.write('<a href="' + EX_URL + '">システム開発／構築</a> <span>&gt;</span> ');}
else if(document.URL.match(/operation$/)){
document.write('システム運用管理');}
else if(document.URL.match(/operation\_/)){
document.write('<a href="' + EX_URL + '">システム運用管理</a> <span>&gt;</span> ');}
else if(document.URL.match(/security$/)){
document.write('セキュリティ');}
else if(document.URL.match(/security\_/)){
document.write('<a href="' + EX_URL + '">セキュリティ</a> <span>&gt;</span> ');}
else if(document.URL.match(/network$/)){
document.write('通信ネットワーク');}
else if(document.URL.match(/network\_/)){
document.write('<a href="' + EX_URL + '">通信ネットワーク</a> <span>&gt;</span> ');}
else if(document.URL.match(/application$/)){
document.write('基幹系アプリケーション');}
else if(document.URL.match(/application\_/)){
document.write('<a href="' + EX_URL + '">基幹系アプリケーション</a> <span>&gt;</span> ');}
else if(document.URL.match(/information$/)){
document.write('情報系アプリケーション');}
else if(document.URL.match(/information\_/)){
document.write('<a href="' + EX_URL + '">情報系アプリケーション</a> <span>&gt;</span> ');}
else{}
if(document.URL.match('TTbread')){}
else if(document.URL.match(/mCateId1$/)){document.write('IT戦略／ITガバナンス');}
else if(document.URL.match(/mCateId2$/)){document.write('IT投資／ROI・TCO');}
else if(document.URL.match(/mCateId3$/)){document.write('ビジネスプロセス');}
else if(document.URL.match(/mCateId4$/)){document.write('コンプライアンス／SOX法／CSR');}
else if(document.URL.match(/mCateId5$/)){document.write('ベンダ選定／RFP');}
else if(document.URL.match(/mCateId6$/)){document.write('IT組織／スタッフ育成');}
else if(document.URL.match(/mCateId7$/)){document.write('eビジネス');}
else if(document.URL.match(/mCateId14$/)){document.write('開発プロセス・プロジェクト管理');}
else if(document.URL.match(/mCateId15$/)){document.write('分析・設計／モデリング');}
else if(document.URL.match(/mCateId16$/)){document.write('開発言語／統合開発ツール');}
else if(document.URL.match(/mCateId17$/)){document.write('テスト／バージョン管理');}
else if(document.URL.match(/mCateId18$/)){document.write('アプリケーションサーバ');}
else if(document.URL.match(/mCateId19$/)){document.write('データベース開発／ORマッピング');}
else if(document.URL.match(/mCateId21$/)){document.write('リッチクライアント開発');}
else if(document.URL.match(/mCateId22$/)){document.write('オフショア開発');}
else if(document.URL.match(/mCateId23$/)){document.write('組み込みシステム開発');}
else if(document.URL.match(/mCateId24$/)){document.write('帳票設計／出力');}
else if(document.URL.match(/mCateId25$/)){document.write('アプリケーション統合／システム連携');}
else if(document.URL.match(/mCateId26$/)){document.write('システム統合運用管理');}
else if(document.URL.match(/mCateId27$/)){document.write('サーバOS');}
else if(document.URL.match(/mCateId28$/)){document.write('ディレクトリサービス／アイデンティティ管理');}
else if(document.URL.match(/mCateId29$/)){document.write('データベース運用管理');}
else if(document.URL.match(/mCateId30$/)){document.write('PC／サーバ機器');}
else if(document.URL.match(/mCateId31$/)){document.write('ストレージ／バックアップ');}
else if(document.URL.match(/mCateId32$/)){document.write('UPS');}
else if(document.URL.match(/mCateId33$/)){document.write('OA機器（複合機など）');}
else if(document.URL.match(/mCateId34$/)){document.write('運用管理アウトソーシング');}
else if(document.URL.match(/mCateId20$/)){document.write('システム性能／可用性／拡張性');}
else if(document.URL.match(/mCateId35$/)){document.write('情報セキュリティポリシー');}
else if(document.URL.match(/mCateId36$/)){document.write('情報漏えい対策');}
else if(document.URL.match(/mCateId37$/)){document.write('ファイアウオール');}
else if(document.URL.match(/mCateId38$/)){document.write('IDS・IPS');}
else if(document.URL.match(/mCateId39$/)){document.write('ウイルス対策／スパイウェア対策');}
else if(document.URL.match(/mCateId40$/)){document.write('スパム対策');}
else if(document.URL.match(/mCateId41$/)){document.write('PKI・暗号・認証');}
else if(document.URL.match(/mCateId42$/)){document.write('専用線／IP-VPN／広域イーサネット');}
else if(document.URL.match(/mCateId43$/)){document.write('xDSL／FTTH');}
else if(document.URL.match(/mCateId44$/)){document.write('IPSec VPN／SSL VPN');}
else if(document.URL.match(/mCateId45$/)){document.write('PBX／VoIP・IP電話');}
else if(document.URL.match(/mCateId46$/)){document.write('ルーター・スイッチ・ハブ');}
else if(document.URL.match(/mCateId47$/)){document.write('ロードバランサ・帯域制御');}
else if(document.URL.match(/mCateId48$/)){document.write('無線LAN');}
else if(document.URL.match(/mCateId49$/)){document.write('RFID（ICタグ）');}
else if(document.URL.match(/mCateId51$/)){document.write('ビデオ会議／コンテンツ配信');}
else if(document.URL.match(/mCateId8$/)){document.write('ERP／財務会計／人事給与');}
else if(document.URL.match(/mCateId9$/)){document.write('CRM／SFA');}
else if(document.URL.match(/mCateId10$/)){document.write('SCM');}
else if(document.URL.match(/mCateId52$/)){document.write('特定業種向けアプリケーション');}
else if(document.URL.match(/mCateId11$/)){document.write('データウェアハウス/データマイニング/BI');}
else if(document.URL.match(/mCateId12$/)){document.write('CTI／ヘルプデスク');}
else if(document.URL.match(/mCateId13$/)){document.write('グループウェア');}
else if(document.URL.match(/mCateId50$/)){document.write('コンテンツ管理／ドキュメント管理');}
else if(document.URL.match(/mCateId53$/)){document.write('ナレッジマネジメント');}
else if(document.URL.match(/mCateId54$/)){document.write('プロジェクト管理');}
else if(document.URL.match(/mCateId55$/)){document.write('eラーニング');}
else if(document.URL.match(/mCateId56$/)){document.write('ポータル');}
else if(document.URL.match(/mCateId57$/)){document.write('エンタープライズサーチ');}
else{}
document.write('</p>');
if(document.URL.match('TTbread')){}
else if(document.URL.match('business')){
document.write('<div class="rssbtn"><a href="http://rss.itmedia.co.jp/rss/1.0/tt_business.xml" target="_blank">「ビジネスとIT戦略」最新記事</a></div>');}
else if(document.URL.match('develop')){
document.write('<div class="rssbtn"><a href="http://rss.itmedia.co.jp/rss/1.0/tt_develop.xml" target="_blank">「システム開発／構築」最新記事</a></div>');}
else if(document.URL.match('operation')){
document.write('<div class="rssbtn"><a href="http://rss.itmedia.co.jp/rss/1.0/tt_operation.xml" target="_blank">「システム運用管理」最新記事</a></div>');}
else if(document.URL.match('security')){
document.write('<div class="rssbtn"><a href="http://rss.itmedia.co.jp/rss/1.0/tt_security.xml" target="_blank">「セキュリティ」最新記事</a></div>');}
else if(document.URL.match('network')){
document.write('<div class="rssbtn"><a href="http://rss.itmedia.co.jp/rss/1.0/tt_network.xml" target="_blank">「通信ネットワーク」最新記事</a></div>');}
else if(document.URL.match('application')){
document.write('<div class="rssbtn"><a href="http://rss.itmedia.co.jp/rss/1.0/tt_application.xml" target="_blank">「基幹系アプリケーション」最新記事</a></div>');}
else if(document.URL.match('information')){
document.write('<div class="rssbtn"><a href="http://rss.itmedia.co.jp/rss/1.0/tt_information.xml" target="_blank">「情報系アプリケーション」最新記事</a></div>');}
else{}
}


// WPダウンロードセンターカテゴリタイトル分岐
// -----------------------------------------------
function wpCategoryTitle(){
	var ct = document.title.replace(' − TechTargetジャパン ホワイトペーパー ダウンロードセンター','').replace(/：.+/,'');
	var ge = document.title.replace(' − TechTargetジャパン ホワイトペーパー ダウンロードセンター','').replace(/.+：/,'');
	var cl = 'none';
	var st = '0';
	switch(ct){
		case 'ビジネスとIT戦略':
			cl = 'c1'; st = '-50'; break;
 		case 'システム開発／構築':
			cl = 'c3'; st = '-100'; break;
		case 'システム運用管理':
			cl = 'c4'; st = '-150'; break;
		case 'セキュリティ':
			cl = 'c5'; st = '-200'; break;
		case '通信ネットワーク':
			cl = 'c6'; st = '-250'; break;
		case '基幹系アプリケーション':
			cl = 'c7'; st = '-300'; break;
		case '情報系アプリケーション':
			cl = 'c8'; st = '-350'; break;
		case '全企業向け':
			cl = 'g1'; st = '-400'; break;
		case '製造':
			cl = 'g2'; st = '-450'; break;
		case '流通':
			cl = 'g3'; st = '-500'; break;
		case '情報通信':
			cl = 'g4'; st = '-550'; break;
		case '農林水産':
			cl = 'g5'; st = '-600'; break;
		case '建設・不動産':
			cl = 'g6'; st = '-650'; break;
		case '金融・保険':
			cl = 'g7'; st = '-700'; break;
		case '飲食・宿泊':
			cl = 'g8'; st = '-750'; break;
		case '医療・福祉': 
			cl = 'g9'; st = '-800'; break;
		case '教育':
			cl = 'g10'; st = '-850'; break;
		case '官公庁':
			cl = 'g11'; st = '-900'; break;
		case 'サービス':
			cl = 'g12'; st = '-950'; break;
		case '公益事業':
			cl = 'g13'; st = '-1000'; break;
		case 'その他':
			cl = 'g14'; st = '-1050'; break;
		case '全企業規模向け':
			cl = 'cc1'; st = '-1150'; break;
		case '大企業':
			cl = 'cc2'; st = '-1200'; break;
		case '中堅・中小企業':
			cl = 'cc3'; st = '-1250'; break;
		case 'SOHO':
			cl = 'cc4'; st = '-1300'; break;
		case '検索結果':
			cl = 'etc1'; st = '-1350'; break;
		default:
			(function(){
				cl = 'none'; st = '0';
				document.getElementById('category-title').style.display = cl;
			})();
	}
	document.getElementById('category-title').innerHTML = ct;
	document.getElementById('category-title').className = cl;
	document.getElementById('category-title').style.backgroundPositionY = st;

	if(document.title.match(/：/)){
		document.getElementById('category-genru').innerHTML = ge;
	}else{
		document.getElementById('category-genru').style.display = 'none';
	}

/*
if(document.title.match(/ビジネスとIT戦略/)){
document.getElementById('category-title').innerHTML = 'ビジネスとIT戦略';
document.getElementById('category-title').className = 'c1';
}else if(document.title.match(/システム開発／構築/)){
document.getElementById('category-title').innerHTML = 'システム開発／構築';
document.getElementById('category-title').className = 'c3';
}else if(document.title.match(/システム運用管理/)){
document.getElementById('category-title').innerHTML = 'システム運用管理';
document.getElementById('category-title').className = 'c4';
}else if(document.title.match(/セキュリティ/)){
document.getElementById('category-title').innerHTML = 'セキュリティ';
document.getElementById('category-title').className = 'c5';
}else if(document.title.match(/通信ネットワーク/)){
document.getElementById('category-title').innerHTML = '通信ネットワーク';
document.getElementById('category-title').className = 'c6';
}else if(document.title.match(/基幹系アプリケーション/)){
document.getElementById('category-title').innerHTML = '基幹系アプリケーション';
document.getElementById('category-title').className = 'c7';
}else if(document.title.match(/情報系アプリケーション/)){
document.getElementById('category-title').innerHTML = '情報系アプリケーション';
document.getElementById('category-title').className = 'c8';
}else{
document.getElementById('category-title').style.display = 'none';
}
if(document.title.match(/：/)){
document.getElementById('category-genru').innerHTML = document.title.replace(' − TechTargetジャパン ホワイトペーパー ダウンロードセンター','').replace(/.+：/,'');
}else{
document.getElementById('category-genru').style.display = 'none';
}
*/
}

function wpCategoryNav(){
if(document.title.match(/ビジネスとIT戦略/)){
document.write('<div class="l50">');
document.write('<ul class="archive">');
document.write('<li id="mCateId01"><a href="/category/?mCateId=1">IT戦略／ITガバナンス</a></li>');
document.write('<li id="mCateId02"><a href="/category/?mCateId=2">IT投資／ROI・TCO</a></li>');
document.write('<li id="mCateId03"><a href="/category/?mCateId=3">ビジネスプロセス</a></li>');
document.write('<li id="mCateId04"><a href="/category/?mCateId=4">コンプライアンス／SOX法／CSR</a></li>');
document.write('</div>');
document.write('<div class="r50">');
document.write('<ul class="archive">');
document.write('<li id="mCateId05"><a href="/category/?mCateId=5">ベンダ選定／RFP</a></li>');
document.write('<li id="mCateId06"><a href="/category/?mCateId=6">組織改善（CMM/CMMIなど）／人材育成・研修</a></li>');
document.write('<li id="mCateId07"><a href="/category/?mCateId=7">eビジネス</a></li>');
document.write('</ul>');
document.write('</div>');
}else if(document.title.match(/システム開発／構築/)){
document.write('<div class="l50">');
document.write('<ul class="archive">');
document.write('<li id="mCateId14"><a href="/category/?mCateId=14">開発プロセス・プロジェクト管理</a></li>');
document.write('<li id="mCateId15"><a href="/category/?mCateId=15">分析・設計／モデリング</a></li>');
document.write('<li id="mCateId16"><a href="/category/?mCateId=16">開発言語／統合開発ツール</a></li>');
document.write('<li id="mCateId17"><a href="/category/?mCateId=17">テスト／バージョン管理</a></li>');
document.write('<li id="mCateId18"><a href="/category/?mCateId=18">アプリケーションサーバ</a></li>');
document.write('<li id="mCateId19"><a href="/category/?mCateId=19">データベース開発／ORマッピング</a></li>');
document.write('</ul>');
document.write('</div>');
document.write('<div class="r50">');
document.write('<ul class="archive">');
document.write('<li id="mCateId21"><a href="/category/?mCateId=21">リッチクライアント開発</a></li>');
document.write('<li id="mCateId22"><a href="/category/?mCateId=22">オフショア開発</a></li>');
document.write('<li id="mCateId23"><a href="/category/?mCateId=23">組み込みシステム開発</a></li>');
document.write('<li id="mCateId24"><a href="/category/?mCateId=24">帳票設計／出力</a></li>');
document.write('<li id="mCateId25"><a href="/category/?mCateId=25">アプリケーション統合／システム連携</a></li>');
document.write('</ul>');
document.write('</div>');
}else if(document.title.match(/システム運用管理/)){
document.write('<div class="l50">');
document.write('<ul class="archive">');
document.write('<li id="mCateId26"><a href="/category/?mCateId=26">システム統合運用管理</a></li>');
document.write('<li id="mCateId27"><a href="/category/?mCateId=27">サーバOS</a></li>');
document.write('<li id="mCateId28"><a href="/category/?mCateId=28">ディレクトリサービス／アイデンティティ管理</a></li>');
document.write('<li id="mCateId29"><a href="/category/?mCateId=29">データベース運用管理</a></li>');
document.write('<li id="mCateId30"><a href="/category/?mCateId=30">PC／サーバ機器</a></li>');
document.write('</ul>');
document.write('</div>');
document.write('<div class="r50">');
document.write('<ul class="archive">');
document.write('<li id="mCateId31"><a href="/category/?mCateId=31">ストレージ／バックアップ</a></li>');
document.write('<li id="mCateId32"><a href="/category/?mCateId=32">電源・空調などのサーバ環境</a></li>');
document.write('<li id="mCateId33"><a href="/category/?mCateId=33">OA機器（複合機など）</a></li>');
document.write('<li id="mCateId34"><a href="/category/?mCateId=34">運用管理アウトソーシング</a></li>');
document.write('<li id="mCateId20"><a href="/category/?mCateId=20">システム性能／可用性／拡張性</a></li>');
document.write('</ul>');
document.write('</div>');
}else if(document.title.match(/セキュリティ/)){
document.write('<div class="l50">');
document.write('<ul class="archive">');
document.write('<li id="mCateId35"><a href="/category/?mCateId=35">情報セキュリティポリシー</a></li>');
document.write('<li id="mCateId36"><a href="/category/?mCateId=36">情報漏えい対策</a></li>');
document.write('<li id="mCateId37"><a href="/category/?mCateId=37">ファイアウォール</a></li>');
document.write('<li id="mCateId38"><a href="/category/?mCateId=38">IDS・IPS</a></li>');
document.write('</ul>');
document.write('</div>');
document.write('<div class="r50">');
document.write('<ul class="archive">');
document.write('<li id="mCateId39"><a href="/category/?mCateId=39">ウイルス対策／スパイウェア対策</a></li>');
document.write('<li id="mCateId40"><a href="/category/?mCateId=40">スパム対策</a></li>');
document.write('<li id="mCateId41"><a href="/category/?mCateId=41">PKI・暗号・認証</a></li>');
document.write('</ul>');
document.write('</div>');
}else if(document.title.match(/通信ネットワーク/)){
document.write('<div class="l50">');
document.write('<ul class="archive">');
document.write('<li id="mCateId42"><a href="/category/?mCateId=42">専用線／IP-VPN／広域イーサネット</a></li>');
document.write('<li id="mCateId43"><a href="/category/?mCateId=43">xDSL／FTTH</a></li>');
document.write('<li id="mCateId44"><a href="/category/?mCateId=44">IPSec VPN／SSL VPN</a></li>');
document.write('<li id="mCateId45"><a href="/category/?mCateId=45">PBX／VoIP・IP電話</a></li>');
document.write('<li id="mCateId46"><a href="/category/?mCateId=46">ルーター・スイッチ・ハブ</a></li>');
document.write('</ul>');
document.write('</div>');
document.write('<div class="r50">');
document.write('<ul class="archive">');
document.write('<li id="mCateId47"><a href="/category/?mCateId=47">ロードバランサ・帯域制御</a></li>');
document.write('<li id="mCateId48"><a href="/category/?mCateId=48">無線LAN</a></li>');
document.write('<li id="mCateId49"><a href="/category/?mCateId=49">RFID（ICタグ）</a></li>');
document.write('<li id="mCateId51"><a href="/category/?mCateId=51">ビデオ会議／コンテンツ配信</a></li>');
document.write('</ul>');
document.write('</div>');
}else if(document.title.match(/基幹系アプリケーション/)){
document.write('<div class="l50">');
document.write('<ul class="archive">');
document.write('<li id="mCateId08"><a href="/category/?mCateId=8">ERP／財務会計／人事給与</a></li>');
document.write('<li id="mCateId09"><a href="/category/?mCateId=9">CRM／SFA</a></li>');
document.write('</ul>');
document.write('</div>');
document.write('<div class="r50">');
document.write('<ul class="archive">');
document.write('<li id="mCateId10"><a href="/category/?mCateId=10">SCM</a></li>');
document.write('<li id="mCateId52"><a href="/category/?mCateId=52">特定業種向けアプリケーション</a></li>');
document.write('</ul>');
document.write('</div>');
}else if(document.title.match(/情報系アプリケーション/)){
document.write('<div class="l50">');
document.write('<ul class="archive">');
document.write('<li id="mCateId11"><a href="/category/?mCateId=11">データウェアハウス／データマイニング／BI</a></li>');
document.write('<li id="mCateId12"><a href="/category/?mCateId=12">CTI／ヘルプデスク</a></li>');
document.write('<li id="mCateId13"><a href="/category/?mCateId=13">グループウェア／メッセージング</a></li>');
document.write('<li id="mCateId50"><a href="/category/?mCateId=50">コンテンツ管理／ドキュメント管理</a></li>');
document.write('<li id="mCateId53"><a href="/category/?mCateId=53">ナレッジマネジメント</a></li>');
document.write('</ul>');
document.write('</div>');
document.write('<div class="r50">');
document.write('<ul class="archive">');
document.write('<li id="mCateId54"><a href="/category/?mCateId=54">プロジェクト管理</a></li>');
document.write('<li id="mCateId55"><a href="/category/?mCateId=55">eラーニング</a></li>');
document.write('<li id="mCateId56"><a href="/category/?mCateId=56">ポータル</a></li>');
document.write('<li id="mCateId57"><a href="/category/?mCateId=57">エンタープライズサーチ</a></li>');
document.write('</ul>');
document.write('</div>');
}else{
}
if(document.URL.match(/mCateId=00/)){}
else if(document.URL.match(/mCateId=1$/)){document.getElementById('mCateId01').className = "active";}
else if(document.URL.match(/mCateId=2$/)){document.getElementById('mCateId02').className = "active";}
else if(document.URL.match(/mCateId=3$/)){document.getElementById('mCateId03').className = "active";}
else if(document.URL.match(/mCateId=4$/)){document.getElementById('mCateId04').className = "active";}
else if(document.URL.match(/mCateId=5$/)){document.getElementById('mCateId05').className = "active";}
else if(document.URL.match(/mCateId=6$/)){document.getElementById('mCateId06').className = "active";}
else if(document.URL.match(/mCateId=7$/)){document.getElementById('mCateId07').className = "active";}
else if(document.URL.match(/mCateId=8$/)){document.getElementById('mCateId08').className = "active";}
else if(document.URL.match(/mCateId=9$/)){document.getElementById('mCateId09').className = "active";}
else if(document.URL.match(/mCateId=10$/)){document.getElementById('mCateId10').className = "active";}
else if(document.URL.match(/mCateId=11$/)){document.getElementById('mCateId11').className = "active";}
else if(document.URL.match(/mCateId=12$/)){document.getElementById('mCateId12').className = "active";}
else if(document.URL.match(/mCateId=13$/)){document.getElementById('mCateId13').className = "active";}
else if(document.URL.match(/mCateId=14$/)){document.getElementById('mCateId14').className = "active";}
else if(document.URL.match(/mCateId=15$/)){document.getElementById('mCateId15').className = "active";}
else if(document.URL.match(/mCateId=16$/)){document.getElementById('mCateId16').className = "active";}
else if(document.URL.match(/mCateId=17$/)){document.getElementById('mCateId17').className = "active";}
else if(document.URL.match(/mCateId=18$/)){document.getElementById('mCateId18').className = "active";}
else if(document.URL.match(/mCateId=19$/)){document.getElementById('mCateId19').className = "active";}
else if(document.URL.match(/mCateId=20$/)){document.getElementById('mCateId20').className = "active";}
else if(document.URL.match(/mCateId=21$/)){document.getElementById('mCateId21').className = "active";}
else if(document.URL.match(/mCateId=22$/)){document.getElementById('mCateId22').className = "active";}
else if(document.URL.match(/mCateId=23$/)){document.getElementById('mCateId23').className = "active";}
else if(document.URL.match(/mCateId=24$/)){document.getElementById('mCateId24').className = "active";}
else if(document.URL.match(/mCateId=25$/)){document.getElementById('mCateId25').className = "active";}
else if(document.URL.match(/mCateId=26$/)){document.getElementById('mCateId26').className = "active";}
else if(document.URL.match(/mCateId=27$/)){document.getElementById('mCateId27').className = "active";}
else if(document.URL.match(/mCateId=28$/)){document.getElementById('mCateId28').className = "active";}
else if(document.URL.match(/mCateId=29$/)){document.getElementById('mCateId29').className = "active";}
else if(document.URL.match(/mCateId=30$/)){document.getElementById('mCateId30').className = "active";}
else if(document.URL.match(/mCateId=31$/)){document.getElementById('mCateId31').className = "active";}
else if(document.URL.match(/mCateId=32$/)){document.getElementById('mCateId32').className = "active";}
else if(document.URL.match(/mCateId=33$/)){document.getElementById('mCateId33').className = "active";}
else if(document.URL.match(/mCateId=34$/)){document.getElementById('mCateId34').className = "active";}
else if(document.URL.match(/mCateId=35$/)){document.getElementById('mCateId35').className = "active";}
else if(document.URL.match(/mCateId=36$/)){document.getElementById('mCateId36').className = "active";}
else if(document.URL.match(/mCateId=37$/)){document.getElementById('mCateId37').className = "active";}
else if(document.URL.match(/mCateId=38$/)){document.getElementById('mCateId38').className = "active";}
else if(document.URL.match(/mCateId=39$/)){document.getElementById('mCateId39').className = "active";}
else if(document.URL.match(/mCateId=40$/)){document.getElementById('mCateId40').className = "active";}
else if(document.URL.match(/mCateId=41$/)){document.getElementById('mCateId41').className = "active";}
else if(document.URL.match(/mCateId=42$/)){document.getElementById('mCateId42').className = "active";}
else if(document.URL.match(/mCateId=43$/)){document.getElementById('mCateId43').className = "active";}
else if(document.URL.match(/mCateId=44$/)){document.getElementById('mCateId44').className = "active";}
else if(document.URL.match(/mCateId=45$/)){document.getElementById('mCateId45').className = "active";}
else if(document.URL.match(/mCateId=46$/)){document.getElementById('mCateId46').className = "active";}
else if(document.URL.match(/mCateId=47$/)){document.getElementById('mCateId47').className = "active";}
else if(document.URL.match(/mCateId=48$/)){document.getElementById('mCateId48').className = "active";}
else if(document.URL.match(/mCateId=49$/)){document.getElementById('mCateId49').className = "active";}
else if(document.URL.match(/mCateId=50$/)){document.getElementById('mCateId50').className = "active";}
else if(document.URL.match(/mCateId=51$/)){document.getElementById('mCateId51').className = "active";}
else if(document.URL.match(/mCateId=52$/)){document.getElementById('mCateId52').className = "active";}
else if(document.URL.match(/mCateId=53$/)){document.getElementById('mCateId53').className = "active";}
else if(document.URL.match(/mCateId=54$/)){document.getElementById('mCateId54').className = "active";}
else if(document.URL.match(/mCateId=55$/)){document.getElementById('mCateId55').className = "active";}
else if(document.URL.match(/mCateId=56$/)){document.getElementById('mCateId56').className = "active";}
else if(document.URL.match(/mCateId=57$/)){document.getElementById('mCateId57').className = "active";}
else{}
}



function searchCheck(obj){
if (obj.checked){document.getElementById('cxtop').value = "000492183644671384608:pmxftbg-fbs";}
else{document.getElementById('cxtop').value = "000492183644671384608:je41regkdqu";}
}
function searchCheck2(obj){
if (obj.checked){document.getElementById('cxfoot').value = "000492183644671384608:pmxftbg-fbs";}
else{document.getElementById('cxfoot').value = "000492183644671384608:je41regkdqu";}
}


function tmplclient(e){
	var doc = document;
	var path = location.pathname.replace(/news\d\d\.html$/,'');
	var style = ['<style type="text/css"><!--',
	'body {background:#EFEFEF;}',
	'.outBody {border-color:#CCC;font-family:"メイリオ" !important;}',
	'.inBody {border-color:#EEE;}',
	'.header {position:relative;}',
	'.insertpr {position:absolute;top:5px;left:5px;font-size:10px;font-family:Verdana;}',
	'#logo {text-indent:0px;position:relative;top:30px;left:10px;margin-bottom:30px;background:url(' + ImgSrv + path + e['クライアントロゴ'] + ') no-repeat 0 0;width:' + e['クライアントロゴwidth'] + 'px;height:' + e['クライアントロゴheight'] + 'px;}',
	'#logo a {display:none;}',
	'.maincol h1 {margin-bottom:20px;color:#' + e['タイトル文字色'] + ';}',
	'.maincol .newart#campaign h1 {font-size:24px;line-height:30px;}',
	'.maincol .newart#campaign h2 {font-family:"メイリオ" !important;color:#A73 !important;}',
	'.maincol h3 {font-size:16px;background:#' + e['見出し背景色'] + ';}',
	'.maincol p {font-size:14px;}',
	'.footer {position:relative;height:75px;background:url(' + ImgSrv + '/tt/images/status_logo.gif) no-repeat 0 0;}',
	'.footer .navi {position:absolute;bottom:0;right:0;}',
	'--></style>'];
	doc.write(style.join('\n'));
	var docdiv = doc.getElementsByTagName('div');
	for(var i = 0, ddlen = docdiv.length; i < ddlen; i++){
		if(docdiv[i].className == 'header'){
		var trg = docdiv[i];
		break;
		}
	}
	var div = doc.createElement('div');
	div.className = 'insertpr';
	div.appendChild(doc.createTextNode(e['最上位左にPR表記']));
	trg.appendChild(div);
	return false;
}

