function get_browser(){    checkOP = window.opera;            // OP    checkN6 = document.getElementById; // N6    checkIE = document.all;            // IE    checkN4 = document.layers;         // N4    if(checkOP) {        return "OP6";  // Opera 6 or above    } else if(checkIE) {        return "IE4";  // Internet Explorer 4.0 or above    } else if(checkN6) {		userAgent = navigator.userAgent;		if(userAgent.indexOf("Safari") >= 0) {			return "SA1";  // Safari 1.X		}        return "NS6";  // Netscape 6 or above    } else if(myN4) {        return "NN4";  // Netscape Navigator 4 to 5    } else {        if(navigator.appName == "Netscape") {            return "NS";        } else if(navigator.appName == "Microsoft Internet Explorer") {            return "IE";        }    }    return "UNKNOWN";}function get_os(){	platform = navigator.platform;		if(platform >= "Win") {		return "WIN";	} else if(platform >= "Mac") {		return "MAC";	}		return "UNKNOWM";}function document_out(id_str, out_str){    br = get_browser();    if(br=="IE4" || br=="OP6"){           // IE4の時の表示        document.all(id_str).innerHTML = out_str;    } else if (br == "NN4") {    // NN4の時の表示        document.layers[id_str].document.open();        document.layers[id_str].document.write(out_str);        document.layers[id_str].document.close();    } else if (br=="NS6" || br=="SA1") {    // NS6の時の表示        document.getElementById(id_str).innerHTML = out_str;    }}function openMovWindow(movURL, movWidth, movHeight, winTitle){	protocol = location.protocol;		os = get_os();		if(os == "MAC") {		movHeight = movHeight + 72;	} else {		movHeight = movHeight + 69;	}	if(get_browser() == "SA1") {		newWin = open("", "", "toolbar=no,location=no,directoryies=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width="+movWidth+",height="+movHeight);	} else {		newWin = open("./", "", "toolbar=no,location=no,directoryies=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width="+movWidth+",height="+movHeight);	}    newWin.moveTo(10, 10);    newWin.document.open();    newWin.document.writeln("<html><head>");    newWin.document.writeln("<title>"+winTitle+"</title>");	newWin.document.writeln('<style type="text/css">');    newWin.document.writeln('<!--');	newWin.document.writeln('    body { background-color:#000000; margin:0px; padding:0px; }');    newWin.document.writeln('-->');	newWin.document.writeln('</style>');    newWin.document.writeln('</head><body>');		newWin.document.writeln('<object id="WindowsMedia" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"');	if(protocol == "http:") {	    newWin.document.writeln('        codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"');    	newWin.document.writeln('        standby="Loading Microsoft Windows Media Player components..."');	}    newWin.document.writeln('        type="application/x-oleobject" width='+movWidth+' height='+movHeight+'>');    newWin.document.writeln('    <param name="FileName" value="'+movURL+'">');    newWin.document.writeln('    <param name="AnimationatStart" value="true">');    newWin.document.writeln('    <param name="TransparentatStart" value="true">');    newWin.document.writeln('    <param name="ControlType" value="2">');    newWin.document.writeln('    <param name="AutoStart" value="true">');    newWin.document.writeln('    <param name="ShowStatusBar" value="1">');    newWin.document.writeln('    <embed type="application/x-mplayer2"');    newWin.document.writeln('        pluginspage="'+protocol+'//www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"');    newWin.document.writeln('        src="'+movURL+'"');    newWin.document.writeln('        Name="WindowsMedia"');    newWin.document.writeln('        ShowControls="1"');    newWin.document.writeln('        ShowDisplay="0"');    newWin.document.writeln('        ShowStatusBar="1"');    newWin.document.writeln('		 width='+movWidth+' height='+movHeight+'>');    newWin.document.writeln('    </embed>');    newWin.document.writeln('</object>');	    newWin.document.writeln("</body></html>");    newWin.document.close();}
