Event.observe(window, 'load', function() {
	var goTermSuggestion = new GoTermSuggestion(
								'goTermSearchInput',
								'goTermSearchForm',
								'goTermSuggestion',
								'h3',
								'GO Term Search Keyword Suggestion Result',
								'goSuggestionList',
								'../images/suggestionLoading.gif', 
								'../images/suggestionPrev.gif',
								'../images/suggestionNext.gif', 
								'goTermSuggestionAjaxAction.do',
								'post');
});

var GoTermSuggestion = Class.create();
Object.extend(GoTermSuggestion.prototype, Suggestion.prototype);
Object.extend(GoTermSuggestion.prototype, {
	// 候補キーワードリストの位置をブラウザごとに微調整を行います。 (オーバーライド)
	adjustSuggestion: function(left, top, width) {
		if (this.client.isWinOS && this.client.isIE) {
			left += 0; top -= 1; width -= 3;
			
		} else if (this.client.isWinOS && this.client.isFirefox) {
			left += 0; top -= 2; width -= 3;
			
		} else if (this.client.isWinOS && this.client.isSafari) {
			left += 0; top -= 1; width -= 3;
			
		} else if (this.client.isWinOS && this.client.isOpera) {
			left += 0; top -= 1; width -= 3;
			
		}  else if (this.client.isMacOS && this.client.isFirefox) {
			left += 0; top += 1; width -= 3;
			
		} else if (this.client.isMacOS && this.client.isSafari) {
			left += 0; top -= 0; width -= 3;
			
		} else if (this.client.isLinuxOS && this.client.isFirefox) {
			left += 0; top -= 1; width -= 3;
		}
		
		return '{left: ' + left + ', top: ' + top + ', width: '+ width +'}';
	}
});