/* SbPane表示制御 */
function showSbPane(whichPane,flag){
	
	var thisPane = whichPane + 'Pane';
	var thisBtn = whichPane + 'Btn';
	var btnPath =YAHOO.util.Dom.get(thisBtn);

	if(flag===1){
		YAHOO.util.Dom.removeClass(thisPane, 'sorthide');
		YAHOO.util.Dom.addClass(thisPane, 'sortshow');
		btnPath.innerHTML =  '<a href="javascript:showSbPane(\''+whichPane+'\',0);"><img alt="閉じる" src="/public/type02/images/bookmarker/icon_off.gif" width="27" height="15" /></a>';
	}else{
		YAHOO.util.Dom.removeClass(thisPane, 'sortshow');
		YAHOO.util.Dom.addClass(thisPane, 'sorthide');
		btnPath.innerHTML =  '<a href="javascript:showSbPane(\''+whichPane+'\',1);"><img alt="もっと" src="/public/type02/images/bookmarker/icon_more.gif" width="27" height="15" /></a>';
	}
}

/* BookMark */
function XBrowserBookmark(){
	if (document.all) {
		//IE
		window.external.AddFavorite(location.href, document.title);
		return false;
	}

	if (window.opera) {
		//Opera
		return true;
	}
	
	//firefox
	window.sidebar.addPanel(document.title, location.href,"");
	return false;
}