// サイトカタリストの設定

// 環境依存値
var server = "WWW";

// ［すべて］タブ、CR、LFを削除して返す
function removeProhibitedChar(str) {
	var TAB = String.fromCharCode(9);
	var CR = String.fromCharCode(13);
	var LF = String.fromCharCode(10);

	var re = new RegExp("[" + TAB + CR + LF + "]", "g");
	return str.replace(re, "");
}

// ［s.products］セミコロン (;) 、コンマ (,) 、通貨記号、等号 (=) 、縦棒 (l) を削除して返す
function removeProhibitedProductsChar(str) {
	return str.replace(/[\,;=\\l]/g, "");
}

// ［s.events］コンマ、コロン (:) を削除して返す
function removeProhibitedEventsChar(str) {
	return str.replace(/[\,:]/g, "");
}

// UTF-8文字列より、左から指定されたバイト長分返す
function leftb(str, maxlen) {
	var rb = 0;		// バイト数
	var rc = 0;		// 文字数

	// バイト数を判定して切り出す文字数をカウントする
	for (var i = 0; i < str.length; i++) {
		var c = str.charCodeAt(i);
		// Unicode : 0x0 ～ 0x80, 0xf8f0, 0xff61 ～ 0xff9f, 0xf8f1 ～ 0xf8f3
		if ((c >= 0x0 && c < 0x81) || (c == 0xf8f0) || (c >= 0xff61 && c < 0xffa0) || (c >= 0xf8f1 && c < 0xf8f4)) {
			rb += 1;
		} else {
			rb += 3;
		}
		if (rb <= maxlen) {
			rc += 1;
		} else {
			break;
		}
	}

	return str.substr(0, rc);
}

/* SiteCatalyst code version: H.15.1.
Copyright 1997-2008 Omniture, Inc. More info available at
http://www.omniture.com */

/* You may give each page an identifying name, server, and channel on
the next lines. */

if (typeof sc_pagename != 'undefined' && sc_pagename) var pn = sc_pagename; else var pn = document.title;
s.pageName = leftb(removeProhibitedChar(pn), 100);

s.server = leftb(removeProhibitedChar(server), 100);

if (typeof sc_channel != 'undefined' && sc_channel) s.channel = leftb(removeProhibitedChar(sc_channel), 100);

if (typeof sc_prop1 != 'undefined' && sc_prop1) s.prop1 = leftb(removeProhibitedChar(sc_prop1), 100);
if (typeof sc_prop2 != 'undefined' && sc_prop2) s.prop2 = leftb(removeProhibitedChar(sc_prop2), 100);
if (typeof sc_prop3 != 'undefined' && sc_prop3) s.prop3 = leftb(removeProhibitedChar(sc_prop3), 100);
if (typeof sc_prop4 != 'undefined' && sc_prop4) s.prop4 = leftb(removeProhibitedChar(sc_prop4), 100);
if (typeof sc_prop5 != 'undefined' && sc_prop5) s.prop5 = leftb(removeProhibitedChar(sc_prop5), 100);
if (typeof sc_prop6 != 'undefined' && sc_prop6) s.prop6 = leftb(removeProhibitedChar(sc_prop6), 100);
if (typeof sc_prop7 != 'undefined' && sc_prop7) s.prop7 = leftb(removeProhibitedChar(sc_prop7), 100);
if (typeof sc_prop8 != 'undefined' && sc_prop8) s.prop8 = leftb(removeProhibitedChar(sc_prop8), 100);
if (typeof sc_prop9 != 'undefined' && sc_prop9) s.prop9 = leftb(removeProhibitedChar(sc_prop9), 100);
if (typeof sc_prop10 != 'undefined' && sc_prop10) s.prop10 = leftb(removeProhibitedChar(sc_prop10), 100);
if (typeof sc_prop11 != 'undefined' && sc_prop11) s.prop11 = leftb(removeProhibitedChar(sc_prop11), 100);
if (typeof sc_prop12 != 'undefined' && sc_prop12) s.prop12 = leftb(removeProhibitedChar(sc_prop12), 100);
if (typeof sc_prop13 != 'undefined' && sc_prop13) s.prop13 = leftb(removeProhibitedChar(sc_prop13), 100);
if (typeof sc_prop14 != 'undefined' && sc_prop14) s.prop14 = leftb(removeProhibitedChar(sc_prop14), 100);
if (typeof sc_prop15 != 'undefined' && sc_prop15) s.prop15 = leftb(removeProhibitedChar(sc_prop15), 100);
if (typeof sc_prop16 != 'undefined' && sc_prop16) s.prop16 = leftb(removeProhibitedChar(sc_prop16), 100);
if (typeof sc_prop17 != 'undefined' && sc_prop17) s.prop17 = leftb(removeProhibitedChar(sc_prop17), 100);
if (typeof sc_prop18 != 'undefined' && sc_prop18) s.prop18 = leftb(removeProhibitedChar(sc_prop18), 100);
if (typeof sc_prop19 != 'undefined' && sc_prop19) s.prop19 = leftb(removeProhibitedChar(sc_prop19), 100);
if (typeof sc_prop20 != 'undefined' && sc_prop20) s.prop20 = leftb(removeProhibitedChar(sc_prop20), 100);
if (typeof sc_prop21 != 'undefined' && sc_prop21) s.prop21 = leftb(removeProhibitedChar(sc_prop21), 100);
if (typeof sc_prop22 != 'undefined' && sc_prop22) s.prop22 = leftb(removeProhibitedChar(sc_prop22), 100);
if (typeof sc_prop23 != 'undefined' && sc_prop23) s.prop23 = leftb(removeProhibitedChar(sc_prop23), 100);
if (typeof sc_prop24 != 'undefined' && sc_prop24) s.prop24 = leftb(removeProhibitedChar(sc_prop24), 100);
if (typeof sc_prop25 != 'undefined' && sc_prop25) s.prop25 = leftb(removeProhibitedChar(sc_prop25), 100);
if (typeof sc_prop26 != 'undefined' && sc_prop26) s.prop26 = leftb(removeProhibitedChar(sc_prop26), 100);
if (typeof sc_prop27 != 'undefined' && sc_prop27) s.prop27 = leftb(removeProhibitedChar(sc_prop27), 100);
if (typeof sc_prop28 != 'undefined' && sc_prop28) s.prop28 = leftb(removeProhibitedChar(sc_prop28), 100);
if (typeof sc_prop29 != 'undefined' && sc_prop29) s.prop29 = leftb(removeProhibitedChar(sc_prop29), 100);
if (typeof sc_prop30 != 'undefined' && sc_prop30) s.prop30 = leftb(removeProhibitedChar(sc_prop30), 100);
if (typeof sc_prop31 != 'undefined' && sc_prop31) s.prop31 = leftb(removeProhibitedChar(sc_prop31), 100);
if (typeof sc_prop32 != 'undefined' && sc_prop32) s.prop32 = leftb(removeProhibitedChar(sc_prop32), 100);
if (typeof sc_prop33 != 'undefined' && sc_prop33) s.prop33 = leftb(removeProhibitedChar(sc_prop33), 100);
if (typeof sc_prop34 != 'undefined' && sc_prop34) s.prop34 = leftb(removeProhibitedChar(sc_prop34), 100);
if (typeof sc_prop35 != 'undefined' && sc_prop35) s.prop35 = leftb(removeProhibitedChar(sc_prop35), 100);
if (typeof sc_prop36 != 'undefined' && sc_prop36) s.prop36 = leftb(removeProhibitedChar(sc_prop36), 100);
if (typeof sc_prop37 != 'undefined' && sc_prop37) s.prop37 = leftb(removeProhibitedChar(sc_prop37), 100);
if (typeof sc_prop38 != 'undefined' && sc_prop38) s.prop38 = leftb(removeProhibitedChar(sc_prop38), 100);
if (typeof sc_prop39 != 'undefined' && sc_prop39) s.prop39 = leftb(removeProhibitedChar(sc_prop39), 100);
if (typeof sc_prop40 != 'undefined' && sc_prop40) s.prop40 = leftb(removeProhibitedChar(sc_prop40), 100);

/* Conversion Variables */

if (typeof sc_campaign != 'undefined' && sc_campaign) s.campaign = leftb(escape(sc_campaign), 20);

if (typeof sc_state != 'undefined' && sc_state) s.state = leftb(removeProhibitedChar(sc_state), 100);

if (typeof sc_events != 'undefined' && sc_events) s.events = leftb(removeProhibitedChar(sc_events), 100);

if (typeof sc_products != 'undefined' && sc_products) s.products = removeProhibitedChar(sc_products);

if (typeof sc_evar1 != 'undefined' && sc_evar1) s.eVar1 = leftb(removeProhibitedChar(sc_evar1), 100);
if (typeof sc_evar2 != 'undefined' && sc_evar2) s.eVar2 = leftb(removeProhibitedChar(sc_evar2), 100);
if (typeof sc_evar3 != 'undefined' && sc_evar3) s.eVar3 = leftb(removeProhibitedChar(sc_evar3), 100);
if (typeof sc_evar4 != 'undefined' && sc_evar4) s.eVar4 = leftb(removeProhibitedChar(sc_evar4), 100);
if (typeof sc_evar5 != 'undefined' && sc_evar5) s.eVar5 = leftb(removeProhibitedChar(sc_evar5), 100);
if (typeof sc_evar6 != 'undefined' && sc_evar6) s.eVar6 = leftb(removeProhibitedChar(sc_evar6), 100);
if (typeof sc_evar7 != 'undefined' && sc_evar7) s.eVar7 = leftb(removeProhibitedChar(sc_evar7), 100);
if (typeof sc_evar8 != 'undefined' && sc_evar8) s.eVar8 = leftb(removeProhibitedChar(sc_evar8), 100);
if (typeof sc_evar9 != 'undefined' && sc_evar9) s.eVar9 = leftb(removeProhibitedChar(sc_evar9), 100);
if (typeof sc_evar10 != 'undefined' && sc_evar10) s.eVar10 = leftb(removeProhibitedChar(sc_evar10), 100);
if (typeof sc_evar11 != 'undefined' && sc_evar11) s.eVar11 = leftb(removeProhibitedChar(sc_evar11), 100);
if (typeof sc_evar12 != 'undefined' && sc_evar12) s.eVar12 = leftb(removeProhibitedChar(sc_evar12), 100);
if (typeof sc_evar13 != 'undefined' && sc_evar13) s.eVar13 = leftb(removeProhibitedChar(sc_evar13), 100);
if (typeof sc_evar14 != 'undefined' && sc_evar14) s.eVar14 = leftb(removeProhibitedChar(sc_evar14), 100);
if (typeof sc_evar15 != 'undefined' && sc_evar15) s.eVar15 = leftb(removeProhibitedChar(sc_evar15), 100);
if (typeof sc_evar16 != 'undefined' && sc_evar16) s.eVar16 = leftb(removeProhibitedChar(sc_evar16), 100);
if (typeof sc_evar17 != 'undefined' && sc_evar17) s.eVar17 = leftb(removeProhibitedChar(sc_evar17), 100);
if (typeof sc_evar18 != 'undefined' && sc_evar18) s.eVar18 = leftb(removeProhibitedChar(sc_evar18), 100);
if (typeof sc_evar19 != 'undefined' && sc_evar19) s.eVar19 = leftb(removeProhibitedChar(sc_evar19), 100);
if (typeof sc_evar20 != 'undefined' && sc_evar20) s.eVar20 = leftb(removeProhibitedChar(sc_evar20), 100);
if (typeof sc_evar21 != 'undefined' && sc_evar21) s.eVar21 = leftb(removeProhibitedChar(sc_evar21), 100);
if (typeof sc_evar22 != 'undefined' && sc_evar22) s.eVar22 = leftb(removeProhibitedChar(sc_evar22), 100);
if (typeof sc_evar23 != 'undefined' && sc_evar23) s.eVar23 = leftb(removeProhibitedChar(sc_evar23), 100);
if (typeof sc_evar24 != 'undefined' && sc_evar24) s.eVar24 = leftb(removeProhibitedChar(sc_evar24), 100);
if (typeof sc_evar25 != 'undefined' && sc_evar25) s.eVar25 = leftb(removeProhibitedChar(sc_evar25), 100);
if (typeof sc_evar26 != 'undefined' && sc_evar26) s.eVar26 = leftb(removeProhibitedChar(sc_evar26), 100);
if (typeof sc_evar27 != 'undefined' && sc_evar27) s.eVar27 = leftb(removeProhibitedChar(sc_evar27), 100);
if (typeof sc_evar28 != 'undefined' && sc_evar28) s.eVar28 = leftb(removeProhibitedChar(sc_evar28), 100);
if (typeof sc_evar29 != 'undefined' && sc_evar29) s.eVar29 = leftb(removeProhibitedChar(sc_evar29), 100);
if (typeof sc_evar30 != 'undefined' && sc_evar30) s.eVar30 = leftb(removeProhibitedChar(sc_evar30), 100);
if (typeof sc_evar31 != 'undefined' && sc_evar31) s.eVar31 = leftb(removeProhibitedChar(sc_evar31), 100);
if (typeof sc_evar32 != 'undefined' && sc_evar32) s.eVar32 = leftb(removeProhibitedChar(sc_evar32), 100);
if (typeof sc_evar33 != 'undefined' && sc_evar33) s.eVar33 = leftb(removeProhibitedChar(sc_evar33), 100);
if (typeof sc_evar34 != 'undefined' && sc_evar34) s.eVar34 = leftb(removeProhibitedChar(sc_evar34), 100);
if (typeof sc_evar35 != 'undefined' && sc_evar35) s.eVar35 = leftb(removeProhibitedChar(sc_evar35), 100);
if (typeof sc_evar36 != 'undefined' && sc_evar36) s.eVar36 = leftb(removeProhibitedChar(sc_evar36), 100);
if (typeof sc_evar37 != 'undefined' && sc_evar37) s.eVar37 = leftb(removeProhibitedChar(sc_evar37), 100);
if (typeof sc_evar38 != 'undefined' && sc_evar38) s.eVar38 = leftb(removeProhibitedChar(sc_evar38), 100);
if (typeof sc_evar39 != 'undefined' && sc_evar39) s.eVar39 = leftb(removeProhibitedChar(sc_evar39), 100);
if (typeof sc_evar40 != 'undefined' && sc_evar40) s.eVar40 = leftb(removeProhibitedChar(sc_evar40), 100);

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code);
// /DO NOT REMOVE/
// End SiteCatalyst code version: H.15.1.