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_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_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 NewWin(val){

if(val ==" 1"){

window.open("http://www.coat.co.jp/new/new.html","1","width=760,height=358")

}

}





function openWin(val){ //EXFEED




	if(val ==" 1"){

		window.open("http://www.coat.co.jp/exfeed/exfeed.html","1","width=750,height=700,scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no")

	}





	if(val ==" 2"){//バサラ

		window.open("http://www.coat.co.jp/linksites/bsr_web2/index.html","2","width=900,height=370,scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no")

	}



	if(val ==" 3"){//luxe

		window.open("http://www.coat.co.jp/linksites/luxe3/luxe03.html","1","width=650,height=400,scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no")

	}



	if(val ==" 4"){//VIP

		window.open("http://www.coat.co.jp/linksites/vip/vip.html","4","width=900,height=600,scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no")

	}



	if(val ==" 5"){ //2008.10.14 NAGI SHO メッセージ

		window.open("http://www.coat.co.jp/ns_yokoku/ns_yokoku.html","5","width=640,height=480,scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no")

	}
	
	if(val ==" 6"){ //大運動会

		window.open("http://www.coat.co.jp/linksites/undokai/undokai.html","6","width=640,height=480,scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no")

	}
	if(val ==" 7"){ //がっちび

		window.open("http://www.coat.co.jp/linksites/gc/gc04.html","7","width=640,height=480")

	}
	if(val ==" 8"){//NakedStaff募集

		window.open("http://www.coat.co.jp/naked/naked.html","8","width=640,height=480,scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no")

	}
	
	if(val ==" 9"){//DMT5

		window.open("http://www.coat.co.jp/linksites/DMT/dmt05.html","9","width=640,height=480,scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no")

	}
	
	if(val ==" 10"){//MVP

		window.open("http://www.coat.co.jp/linksites/mvp/top.html","10","width=648,height=503,scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no")

	}
	if(val ==" 11"){//idolboard

		window.open("http://www.coat.co.jp/gal/idol3/ib03.html","11","width=480,height=640,scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no")

	}
	if(val ==" 12"){//Nanpa

		window.open("http://www.coat.co.jp/gal/nanpa/nanpa01.html","12","width=640,height=600,scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no")

	}
	if(val ==" 13"){//GC04

		window.open("http://www.coat.co.jp/linksites/gc/gc04.html","13","width=640,height=480,scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no")

	}
	if(val ==" 14"){//ATOMIC

		window.open("http://www.coat.co.jp/linksites/atomic/as.html","14","width=640,height=480,scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no")

	}
	
	if(val ==" 20"){//新宿CHECK

		window.open("http://www.check-dvd.com/","CHECK")

	}
	if(val ==" 21"){//ELoS

		window.open("http://www.coat.co.jp/linksites/elos/elos.html","ELoS","width=640,height=480,scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no")

	}
	if(val ==" 22"){//特定取引

		window.open("http://www.coat.co.jp/law.html","tokutei","width=560,height=500,scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=no")

	}
	if(val ==" 23"){//NakedStaffWEST

		window.open("http://www.coat.co.jp/naked/nakedWEST.html","23","width=640,height=480,scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no")

	}
	if(val ==" 24"){//IDOL

		window.open("http://www.coat.co.jp/linksites/idolSEJ/IBhp.html","24","width=640,height=480,scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=no")

	}

}



function openCWindow(uri, width, height,bar){



	var left = Math.floor((screen.width-width) / 2),

		top  = Math.floor((screen.height-height) / 2);





	var win = window.open(uri, "_blank", "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars="+bar+",resizable=0,width=" + width + ",height=" + height + ",left=" + left + ",top="+top);



	if (document.all === void 0

		&& document.layers === void 0

		&& document.getElementById === void 0){



		win.resizeTo(width, height);



		win.moveTo(left, top);

	}



	win.focus();

}



function click(e){

	if(document.all&&event.button==2){

		alert('このページは著作権で保護されています');

		return false

	}

	if(document.layers&&e.which==3){

		alert('このページは著作権で保護されています');

		return false

	}

}

if(document.layers)document.captureEvents(event.mousedown);

document.onmousedown=click;

window.open

