
/**
 * 定数文字列，定数正規表現のインスタンス
 */
var $C = {
	//url
	indicator : "img/indicator_big.gif",
	highlightItemColor: "#ddffdd",
	
	
	icon_em : "img/emphasis.gif",
	icon_del : "img/deletion.gif",
	
	button_em : "img/button_promote.png",
	button_del : "img/button_demote.png",

	emphasis : '<img src="' + this.icon_em + '" class="emphasis icon">',
	deletion : '<img src="' + this.icon_del + '" class="del icon">',
	
	stopWords : {
		"COM" : true,"NET" : true,
		"WWW" : true,"HTTP" : true,
		"AND" : true,"THE" : true,
		"WEB" : true,"FOR" : true,
		"CGI" : true,"HATENA" : true,
		"HTML" : true,"COPY" : true,
		"RIGHTS" : true, "RIGHT": true,
		"INFO" : true, "INC" : true,
		"TOP" : true,"INDEX" : true,
		"YAHOO": true, "GOOGLE" : true,
		"HOME" : true,"GOO" : true,
		"ALL" : true, "TEL" : true,
		"FAX" : true, "SITE" : true,
		"ISBN" : true , "MAIL" : true,
		"PAGE" : true, "ABOUT" : true,
		"PLEASE" : true, "YOU" : true,
		"サイト" : true, "ホームページ" : true,
		"ページ" : true,
		"ログイン" : true, "ヘルプ": true
	},
	
	//形態素解析用の正規表現
	morphReg : new RegExp()
	
};

if ($.browser.opera) {
	$C.morphReg.compile("(" +
	"[ァ-ヴー]+" + //カタカナのみ
	"|" +
	"[a-zA-Z]+['-]*[a-zA-Z]+" + //英語のみ
	"|" +
	"[一-龠々〆ヵヶァ-ヴー]+?[一-龠々〆ヵヶァ-ヴーあ-ん・]*?[ぁ-ん]{2,}" +
	"|" +
	"[一-龠々〆ヵヶァ-ヴー]+[一-龠々〆ヵヶァ-ヴーぁ-ん]+[一-龠々〆ヵヶ]+" +
	"|" +
	"[0-9]{3,}[一-龠々〆ヵヶァ-ヴーa-zA-Zあ-ん]+" + //100年とか
	"|" +
	"[0-9]{2}月[0-9]{2}日" +
	"|" +
	"[一-龠々〆ヵヶァ-ヴー]+[ ][一-龠々〆ヵヶァ-ヴー]+" +
	"|" +
	"[一-龠々〆ヵヶァ-ヴーa-zA-Z]{2,}" +
	")", 'g');	
}
else{
	$C.morphReg.compile("(" +
	"[ァ-ヴ]+[・]*[ァ-ヴー]+" + //カタカナのみ
	"|" +
	"[a-zA-Z]+['-]*[a-zA-Z]+" + //英語のみ
	+"|" +
	"[一-龠々〆ヵヶァ-ヴー]+?[一-龠々〆ヵヶァ-ヴーあ-ん・]*?[ぁ-ん]{2,}" +
	"|" +
	"[一-龠々〆ヵヶァ-ヴー]+[一-龠々〆ヵヶァ-ヴーぁ-ん]+[一-龠々〆ヵヶ]+" +
	"|" +
	"[0-9]{3,}[一-龠々〆ヵヶァ-ヴーa-zA-Zあ-ん]+" + //100年とか
	"|" +
	"[0-9]{2}月[0-9]{2}日" +
	"|" +
	"[一-龠々〆ヵヶァ-ヴー]+[ ][一-龠々〆ヵヶァ-ヴー]+" +
	"|" +
	"[一-龠々〆ヵヶァ-ヴーa-zA-Z]{2,}" +
	")", 'g');	
}

