// JavaScript Document

function AddFavorite(){
	if( (navigator.userAgent.indexOf("Win") != -1) 
		&& (navigator.appName.indexOf("Internet Explorer") != -1) )
	{
		if( (location.href.match(/dream\.com/))
		 || (location.href.match(/mbn\.or\.jp/))
		 || (location.href.match(/dreamnet\.co\.jp/))
		 || (location.href.match(/uranai2/)) ){
			var URL = 'http://uranai.dream.com';
		}
		else{
			var URL = 'http://uranai.ocn.ne.jp';
		}
		window.external.addFavorite(URL,'占い通り');
	}
	else{
		alert("ご利用のブラウザは、この機能に対応していません。");
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
