// JavaScript Document
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


//特典リスト用
function OpenWin01(){
    win=window.open("tokuten.php?tokuten=1","Newwindow01","width=240,height=630,scrollbars=no,resizable=yes");
}
function OpenWin02(){
    win=window.open("tokuten.php?tokuten=2","Newwindow02","width=240,height=630,scrollbars=no,resizable=yes");
}
function OpenWin03(){
    win=window.open("tokuten.php?tokuten=3","Newwindow03","width=240,height=400,scrollbars=no,resizable=yes");
}
function OpenWin04(){
    win=window.open("tokuten.php?tokuten=4","Newwindow04","width=240,height=400,scrollbars=no,resizable=yes");
}
function OpenWin05(){
    win=window.open("tokuten.php?tokuten=5","Newwindow05","width=240,height=400,scrollbars=no,resizable=yes");
}
function OpenWin06(){
    win=window.open("tokuten.php?tokuten=6","Newwindow06","width=240,height=630,scrollbars=no,resizable=yes");
}
function OpenWin07(){
    win=window.open("tokuten.php?tokuten=7","Newwindow07","width=240,height=400,scrollbars=no,resizable=yes");
}
function OpenWin08(){
    win=window.open("tokuten.php?tokuten=8","Newwindow08","width=240,height=400,scrollbars=no,resizable=yes");
}
function OpenWin09(){
    win=window.open("tokuten.php?tokuten=9","Newwindow09","width=326,height=280,scrollbars=no,resizable=yes");
}
function OpenWin10(){
    win=window.open("tokuten.php?tokuten=10","Newwindow10","width=240,height=400,scrollbars=no,resizable=yes");
}

//アウトラインページのスクショ用
function OpenWin20(){
    win=window.open("outline/scshot.php?scshot=1","Newwindow20","width=373,height=330,scrollbars=no,resizable=yes");
}
function OpenWin21(){
    win=window.open("outline/scshot.php?scshot=2","Newwindow20","width=373,height=330,scrollbars=no,resizable=yes");
}
function OpenWin22(){
    win=window.open("outline/scshot.php?scshot=3","Newwindow20","width=373,height=330,scrollbars=no,resizable=yes");
}
function OpenWin23(){
    win=window.open("outline/scshot.php?scshot=4","Newwindow20","width=373,height=330,scrollbars=no,resizable=yes");
}
function OpenWin24(){
    win=window.open("outline/scshot.php?scshot=5","Newwindow20","width=373,height=330,scrollbars=no,resizable=yes");
}
function OpenWin25(){
    win=window.open("outline/scshot.php?scshot=6","Newwindow20","width=373,height=330,scrollbars=no,resizable=yes");
}
function OpenWin26(){
    win=window.open("outline/scshot.php?scshot=7","Newwindow20","width=373,height=330,scrollbars=no,resizable=yes");
}
function OpenWin27(){
    win=window.open("outline/scshot.php?scshot=8","Newwindow20","width=373,height=330,scrollbars=no,resizable=yes");
}
function OpenWin28(){
    win=window.open("outline/scshot.php?scshot=9","Newwindow20","width=373,height=330,scrollbars=no,resizable=yes");
}



function OpenWin30(){
    win=window.open("outline/scshot.php?scshot=10","Newwindow20","width=373,height=330,scrollbars=no,resizable=yes");
}
function OpenWin31(){
    win=window.open("outline/scshot.php?scshot=11","Newwindow20","width=373,height=330,scrollbars=no,resizable=yes");
}
function OpenWin32(){
    win=window.open("outline/scshot.php?scshot=12","Newwindow20","width=373,height=330,scrollbars=no,resizable=yes");
}


//ぽけっとB's−LOG詳細用
function OpenWin(){
    win=window.open("pbl.html","new","width=240,height=450");
}

//TOPICS用
function OpenWin99(){
    win=window.open("https://secure.wayuta.net/senz/info.php","topi","width=500,height=445,scrollbars=no,resizable=yes");
}


//サントラジャケット用
function open_img(img) {
	myimg=new Image;
	myimg.src=img;
	
	var sizex=500;
	var sizey=248;
//	if (myimg.width>248) {
//		var sizex=380;
//		var sizey=248;
//	}
	var w=sizex+20;
	var h=sizey+30;
	var newnd=window.open(img,"image_view","width="+w+",height="+h+",scrollbars=no,resizable=no,");
	
	//newnd.focus();
	newnd.document.bgColor="#ffffff";
}


//投票結果コメント用
function OpenWin41(){
    win=window.open("comment.php?chara=1","Newwindow01","width=400,height=630,scrollbars=yes,resizable=yes");
}
function OpenWin42(){
    win=window.open("comment.php?chara=2","Newwindow02","width=400,height=630,scrollbars=yes,resizable=yes");
}
function OpenWin43(){
    win=window.open("comment.php?chara=3","Newwindow03","width=400,height=630,scrollbars=yes,resizable=yes");
}
function OpenWin44(){
    win=window.open("comment.php?chara=4","Newwindow04","width=400,height=630,scrollbars=yes,resizable=yes");
}
function OpenWin45(){
    win=window.open("comment.php?chara=5","Newwindow05","width=400,height=430,scrollbars=yes,resizable=yes");
}
function OpenWin46(){
    win=window.open("comment.php?chara=6","Newwindow06","width=400,height=330,scrollbars=yes,resizable=yes");
}
function OpenWin47(){
    win=window.open("comment.php?chara=7","Newwindow07","width=400,height=330,scrollbars=yes,resizable=yes");
}


//別ウインドウで拡大画像表示、javascript:open_img('ここに画像のパス')
//function open_img(img) {
//	myimg=new Image;
//	myimg.src=img;
//	
//	var sizex=322;
//	var sizey=250;
//	if (myimg.width>322) {
//		var sizex=250;
//		var sizey=322;
//	}
//	var w=sizex+20;
//	var h=sizey+30;
//	var newnd=window.open(img,"image_view","width="+w+",height="+h+",scrollbars=no,resizable=no,");
//	
//	newnd.focus();
//	newnd.document.bgColor="#ffffff";
//}
