<!--
/**
 * Ryucom Internet Service JavaScript
 *
 * @author		Masanori Yamashiro
 * @copyright		Ryucom Co,.Ltd.
 * @since		Version 1.0
 */

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

/**
 * Page Onload Action
 *
 * @return	void
 */
window.onload = function() {
	document.getElementById('favorite').innerHTML = htmlAddFavorite();
}

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

/**************************************************************************
 * Favorite Section
 */

/**
 * Action Add Favorite
 *
 * @return	string	innerHTML String
 */

function htmlAddFavorite() {
	result = '';
	if (navigator.userAgent.indexOf("MSIE") > -1) {
		result = '<a href="javascript:void(0);" onclick="window.external.AddFavorite(\'http://www.ryucom.ne.jp\',\'リウコムインターネットサービス\');">お気に入りに登録</a>';
	} else if (navigator.userAgent.indexOf("Firefox") > -1) {
		result = '<a href="javascript:void(0);" onclick="window.sidebar.addPanel(\'リウコムインターネットサービス\',\'http://www.ryucom.ne.jp\',\'\');">ブックマークに登録</a>';
	} else if (navigator.userAgent.indexOf("Opera") > -1) {
		result = '<a href="http://www.ryucom.ne.jp" rel="sidebar" title="リウコムインターネットサービス">ブックマークに登録</a>';   
	} else {
		result = '';
	}
	return result;
}
// ------------------------------------------------------------------------

// -->

