///ブラウザ、OS判定
function browserOS(aol,winIE,pass,size){
	var unableAttribute = "width=350,height=250,menubar=no,scrollbars=no,resizable=no,status=no,toolbar=no";
	var agt = navigator.userAgent;
	
	if(navigator.appVersion.indexOf("Mac") > -1){
		//////Mac
		if(winIE==""){
			window.open(pass+"common/unable_pop_aol.html","unable",unableAttribute);
		}else{
			window.open(pass+"common/unable_pop_aolwinie.html","unable",unableAttribute);
		}
	}else{
		//////Win
		if(agt.indexOf('AOL')!=-1 || agt.indexOf('aol')!=-1){
			///AOL
			///size==0：同一ウィンドでページ切り替え
			///size==1：ポップアップ
			///size==2：ポップアップ（サイズ指定有り）
			
			if(size==0){
				browserOS_url = aol;
				jumpThisPage();
			}else if(size==1){
				window.open(aol,"","");
			}else{
				sizeArrey = size.split("_");
				window.open(aol,"","width="+sizeArrey[0]+",height="+sizeArrey[1]+",menubar=no,scrollbars=no,resizable=no,status=no,toolbar=no");
			}
			
		}else if(agt.indexOf('IE')!=-1 || agt.indexOf('ie')!=-1){
			///IE
			if(winIE != ""){
				if(size==0){
					browserOS_url = winIE;
					jumpThisPage();
				}else if(size==1){
					window.open(winIE,"","");
				}else{
					sizeArrey = size.split("_");
					window.open(winIE,"","width="+sizeArrey[0]+",height="+sizeArrey[1]+",menubar=no,scrollbars=no,resizable=no,status=no,toolbar=no");
				}
			}else{
				window.open(pass+"common/unable_pop_aol.html","unable",unableAttribute);
			}
		}else{
			///NN
			if(winIE==""){
				window.open(pass+"common/unable_pop_aol.html","unable",unableAttribute);
			}else{
				window.open(pass+"common/unable_pop_aolwinie.html","unable",unableAttribute);
			}
		}
	}
}
browserOS_Flag=0;
browserOS_url = "";
function jumpThisPage(){
	if(browserOS_Flag<=1){
		location.href = browserOS_url;
		browserOS_Flag++;
	}
	setTimeout("jumpThisPage()",100);
}


