//Index、アンケートリストページ用
function showFlash(qid,ipad,host){
        fontcolor = "000000";
        bgcolor = "FFFFFF";
		document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' width='180' height='250' id='in_graph' align='middle'>");
		document.write("<param name='movie' value='flash/in_graph.swf'>");
		document.write("<param name='loop' value='false'>");
		document.write("<param name='quality' value='high'>");
		document.write("<param name='bgcolor' value='#" + bgcolor + "' />");
		document.write("<param name='FlashVars' value='qid=" + qid + "&fontcolor=" + fontcolor + "&hostip=" + ipad + "&hostname=" + host + "' />");
		document.write("<embed flashvars='qid=" + qid + "&fontcolor=" + fontcolor + "&hostip=" + ipad + "&hostname=" + host + "' src='flash/in_graph.swf' loop='false' quality='high' bgcolor='#" + bgcolor + "' width='180' height='250' name='in_graph' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>");
		document.write("</embed>");
		document.write("</object>");
}


//BBS用
function showFlashForBbs(qid,ipad,host){
        fontcolor = "000000";
        bgcolor = "FFFFFF";
		document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' width='350' height='180' id='in_graph' align='middle'>");
		document.write("<param name='movie' value='flash/graph_for_bbs.swf'>");
		document.write("<param name='loop' value='false'>");
		document.write("<param name='quality' value='high'>");
		document.write("<param name='bgcolor' value='#" + bgcolor + "' />");
		document.write("<param name='FlashVars' value='qid=" + qid + "&fontcolor=" + fontcolor + "&hostip=" + ipad + "&hostname=" + host + "' />");
		document.write("<embed flashvars='qid=" + qid + "&fontcolor=" + fontcolor + "&hostip=" + ipad + "&hostname=" + host + "' src='flash/graph_for_bbs.swf' loop='false' quality='high' bgcolor='#" + bgcolor + "' width='350' height='180' name='graph_for_bbs' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>");
		document.write("</embed>");
		document.write("</object>");
}


//詳細ページ用
function showFlashForDetail(qid,ipad,host){
        fontcolor = "000000";
        bgcolor = "FFFFFF";
       	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' width='250' height='360' id=graph_for_detail' align='middle'>");
		document.write("<param name='movie' value='flash/graph_for_detail.swf'>");
		document.write("<param name='loop' value='false'>");
		document.write("<param name='quality' value='high'>");
		document.write("<param name='bgcolor' value='#" + bgcolor + "' />");
		document.write("<param name='FlashVars' value='qid=" + qid + "&fontcolor=" + fontcolor + "&hostip=" + ipad + "&hostname=" + host + "' />");
		document.write("<embed flashvars='qid=" + qid + "&fontcolor=" + fontcolor + "&hostip=" + ipad + "&hostname=" + host + "' src='flash/graph.swf' loop='false' quality='high' bgcolor='#" + bgcolor + "' width='250' height='360' name='graph_for_detail' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>");
		document.write("</embed>");
		document.write("</object>");
}

//ブログパーツ用
function showFlashForBlog(qid,ipad,host,now_time,fontcolor,bgcolor){
       	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' width='220' height='325' id='graph' align='middle'>");
		document.write("<param name='movie' value='../flash/graph.swf?" + now_time + "'>");
		document.write("<param name='loop' value='false'>");
		document.write("<param name='quality' value='high'>");
		document.write("<param name='bgcolor' value='#" + bgcolor + "' />");
		document.write("<param name='FlashVars' value='qid=" + qid + "&fontcolor=" + fontcolor + "&hostip=" + ipad + "&hostname=" + host + "' />");
		document.write("<embed flashvars='qid=" + qid + "&fontcolor=" + fontcolor + "&hostip=" + ipad + "&hostname=" + host + "' src='../flash/graph.swf?" + now_time + "' loop='false' quality='high' bgcolor='#" + bgcolor + "' width='220' height='325' name='graph' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>");
		document.write("</embed>");
		document.write("</object>");
}

//ブログパーツ(小)用
function showFlashMiniForBlog(qid,ipad,host,now_time,fontcolor,bgcolor){
       	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' width='170' height='240' id='graph' align='middle'>");
		document.write("<param name='movie' value='../flash/graph_s.swf?" + now_time + "'>");
		document.write("<param name='loop' value='false'>");
		document.write("<param name='quality' value='high'>");
		document.write("<param name='bgcolor' value='#" + bgcolor + "' />");
		document.write("<param name='FlashVars' value='qid=" + qid + "&fontcolor=" + fontcolor + "&hostip=" + ipad + "&hostname=" + host + "' />");
		document.write("<embed flashvars='qid=" + qid + "&fontcolor=" + fontcolor + "&hostip=" + ipad + "&hostname=" + host + "' src='../flash/graph_s.swf?" + now_time + "' loop='false' quality='high' bgcolor='#" + bgcolor + "' width='150' height='240' name='graph' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>");
		document.write("</embed>");
		document.write("</object>");
}
