Event.observe(window, 'load', function() {
	var goGeneProductSuggestion = new GoGeneProductSuggestion(
								'goGeneProductSearchInput',
								'goGeneProductSearchForm',
								'goGeneProductSuggestion',
								'h3',
								'GO Gene Product Search Keyword Suggestion Result',
								'goSuggestionList',
								'../images/suggestionLoading.gif', 
								'../images/suggestionPrev.gif',
								'../images/suggestionNext.gif', 
								'goGeneProductSuggestionAjaxAction.do',
								'post');
});

var GoGeneProductSuggestion = Class.create();
Object.extend(GoGeneProductSuggestion.prototype, Suggestion.prototype);
Object.extend(GoGeneProductSuggestion.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 -= 0; 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 +'}';
	}
});