function wikiFactry(){
	var msg3 = document.getElementById("input_box").value;
	var msg5 = "";
	var id_start = msg3.indexOf('("', 0) + 2;
	var id_end = msg3.indexOf('",', 0);
	var id = msg3.substring(id_start, id_end);
	var id2_end = id.length;
	var id2 = id.substring(3, id2_end);
	var id3 = id2.substring(0, 2);
	var id4 = id2.substring(id2.length-3, id2.length);
	var type_start = msg3.indexOf('"0", "', 0);
	var type_end = msg3.indexOf('");',0);
	var type = msg3.substring(type_start+6, type_end);
	if (msg3.substring(id_start, id_start+2) == "BU") {
		if (type == "affiliate") {
			msg5 = "[[item(http://static.floq.jp/floqdata/" + type + ".swf?mode=player&nfid=" + id +"&xml=http://static.floq.jp/bu/" + id3 + "/" + id2 + "/xml/" + id + "_gui.xml&userid=" + id + "&swfdir=http://static.floq.jp/floqdata/,160,445)]]";
		}else if (type == "multi1") {
			msg5 = "[[item(http://static.floq.jp/floqdata/" + type + ".swf?mode=player&nfid=" + id +"&xml=http://static.floq.jp/bu/" + id3 + "/" + id2 + "/xml/" + id + "_gui.xml&userid=" + id + ",160,474)]]";
		}else if (type == "multi2") {
			msg5 = "[[item(http://static.floq.jp/floqdata/" + type + ".swf?mode=player&nfid=" + id +"&xml=http://static.floq.jp/bu/" + id3 + "/" + id2 + "/xml/" + id + "_gui.xml&userid=" + id + ",160,399)]]";
		}else if (type == "multi3") {
			msg5 = "[[item(http://static.floq.jp/floqdata/" + type + ".swf?mode=player&nfid=" + id +"&xml=http://static.floq.jp/bu/" + id3 + "/" + id2 + "/xml/" + id + "_gui.xml&userid=" + id + ",475,475)]]";
		}else if (type == "container") {
			msg5 = "[[item(http://static.floq.jp/floqdata/" + type + ".swf?mode=player&nfid=" + id +"&xml=http://static.floq.jp/bu/" + id3 + "/" + id2 + "/xml/" + id + "_gui.xml&userid=" + id + ",160,369)]]";
		}else if (type == "audiovisual") {
			msg5 = "[[item(http://static.floq.jp/floqdata/" + type + ".swf?mode=player&nfid=" + id +"&xml=http://static.floq.jp/bu/" + id3 + "/" + id2 + "/xml/" + id + "_gui.xml&userid=" + id + ",265,320)]]";
		}else {
			msg5 = "入力が不正です";
		}
	}else if (msg3.substring(id_start, id_start+2) == "GU") {
		if (type == "container") {
			msg5 = "[[item(http://static.floq.jp/floqdata/" + type + ".swf?mode=player&nfid=" + id +"&xml=http://static.floq.jp/gu/xml/" + id4 + "/" + id + "_gui.xml&userid=" + id + ",160,369)]]";
		}else {
			msg5 = "入力が不正です";
		}
	}else {
			msg5 = "入力が不正です";
	}
	document.getElementById("output_box").value = msg5;
}