// finetune　ポップアップオープン
function openfinetune(url,e) {
	if(e.preventDefault){
	e.preventDefault();
	e.stopPropagation();
	}
	e.returnValue=false;
	e.cancelBubble=true;

	w=window.open("/popup/finetune.html?"+url,"finetune","width=215,height=215");
	w.focus();
}

// finetune　プレイヤー埋め込み
function loadfinetune(){
	var n = location.href.split("?")[1];

	var x = document.getElementById("player");
	var y = document.createElement("object");

	var z = document.createElement("param");
	z.setAttribute("name","src");
	z.setAttribute("value","http://www.finetune.com/player/FineTuneShell.swf?pinst="+n);
	y.appendChild(z);
	var z = document.createElement("param");
	z.setAttribute("name","autostart");
	z.setAttribute("value","true");
	y.appendChild(z);
	var z = document.createElement("param");
	z.setAttribute("name","quality");
	z.setAttribute("value","high");
	y.appendChild(z);
	var z = document.createElement("param");
	z.setAttribute("name","flashVars");
	z.setAttribute("value","pinst="+n+"&height=215&width=215");
	y.appendChild(z);
	var z = document.createElement("param");
	z.setAttribute("name","pluginspage");
	z.setAttribute("value","http://www.macromedia.com/go/getflashplayer");
	y.appendChild(z);

	y.setAttribute("data","http://www.finetune.com/player/FineTuneShell.swf?pinst="+n);
	y.setAttribute("type","application/x-shockwave-flash");
	y.setAttribute("width","215");
	y.setAttribute("height","215");
	x.appendChild(y);
}
