

var _info = navigator.userAgent; 
var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);

//======================================================================
//	* Citation
//======================================================================

function CallCitation(vCC){

	var str;
	str = "";
	
	if(vCC == "US"){
			if (_ie == true) {
				str = str + '<OBJECT CLASSID="clsID:8AD9C840-044E-11D1-B3E9-00805F499D93" width="98%" height="88%" ID=Applet1 codebase="http://java.sun.com/update/1.5.0/jinstall-1_5_0_07-windows-i586.cab">' +
					'<param name=CODEBASE value=".">' +
					'<param name=code value="com.wips.citation.CitationApplet.class">' +
					'<param name=archive value="citation.jar">';
			}
			else {
				str = str + '<Applet CODEBASE="." code="com.wips.citation.CitationApplet.class" archive="citation.jar" width="98%" height="88%">';
			}
	}else if(vCC == "US_3D"){
			if (_ie == true) {
				document.writeln(
					'<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="98%" height="88%" id=Applet1 codebase="http://java.sun.com/update/1.5.0/jinstall-1_5_0_07-windows-i586.cab">' +
					'<param name=codebase value=".">' +
					'<param name=code value="com.wips.threedimension.ThreeDimensionApplet.class">' +
					'<param name=archive value="ThreeDimensionTest.jar">');
			}
			else {
				document.writeln('<Applet codebase="." code="com.wips.threedimension.ThreeDimensionApplet.class" archive="ThreeDimensionTest.jar" width="98%" height="88%">');
			}
	}
	
	document.writeln(str);	
}

//======================================================================
//	* Related Application
//======================================================================

function CallRelated(vCC){

	var str;
	str = "";
	
	if(vCC == "JP"){
			
	}else if(vCC == "US"){			
			if(_ie == true) {
				str = str + '<OBJECT CLASSID="clsID:8AD9C840-044E-11D1-B3E9-00805F499D93" width="98%" height="82%" ID=Applet2 codebase="http://java.sun.com/update/1.5.0/jinstall-1_5_0_07-windows-i586.cab">' +
				'<param name=CODEBASE value=".">' +
				'<param name=code value="com.wips.related.RelatedApplicationApplet.class">' +
				'<param name=archive value="RelatedApplication.jar">';
			}
			else {
				str = str + '<Applet CODEBASE="." code="com.wips.related.RelatedApplicationApplet.class" archive="RelatedApplication.jar" width="98%" height="82%">';
			}
	}

	document.writeln(str);		
}



//======================================================================
//	* MyFolder / Left bar & Save & Move
//======================================================================

function CallMyFolder(vWID, vHig, vClass, vJar){
	
	var str;
	str = "";
	
	if (_ie == true){
		str = str + '<OBJECT CLASSID="clsID:8AD9C840-044E-11D1-B3E9-00805F499D93" align="baseline" width="'+vWID+'" height="'+vHig+'" codebase="http://java.sun.com/update/1.5.0/jinstall-1_5_0_07-windows-i586.cab">' + 
			'<param name="CODEBASE" value=".">'+
			'<param name="code" value="com.wips.mypage.'+vClass+'.class">'+
			'<param name="archive" value="'+vJar+'.jar">';
	}
	else{
		str = str + '<Applet CODEBASE="." code="com.wips.mypage.'+vClass+'.class" archive="'+vJar+'.jar" width="'+vWID+'" height="'+vHig+'">';
	}

	document.writeln(str);	
}


//======================================================================
//	* Download / FullTextDownload
//======================================================================

function CallDownload(vCID, vCB, vID){
	var str;
	str = "";
	str = str + '<OBJECT CLASSID="'+vCID+'"  CODEBASE="'+vCB+'" ID="'+vID+'" VIEWASTEXT></OBJECT>';
	
	document.writeln(str);
}

//======================================================================
//	* PMManager
//======================================================================

function CallPMManager(vCID, vCB, vID){
	var str;
	str = "";
	str = str + '<OBJECT CLASSID="'+vCID+'"  CODEBASE="'+vCB+'" ID="'+vID+'" VIEWASTEXT></OBJECT>';
	
	document.writeln(str);
}


