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.0
  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 && document.getElementById) x=document.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];}
}
var subWins = new Array ();
function MM_openBrWindow (uri, winName, w) {
	if (subWins[winName] && !subWins[winName].closed) {
		subWins[winName].close ();
	}
	subWins[winName] = window.open (uri, winName, w);
	subWins[winName].focus ();
}

function MM_reloadPage(init) {//reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
 document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->

function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
 if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
 obj.visibility=v; }
}

// openWin
function openWin(wUrl,wName,wWidth,wHeight,wResize,wCenter,wScroll){
	if ( document.all || document.layers || document.getElementById ){
		scWidthCenter = screen.availWidth / 2;
		scHeightCenter = screen.availHeight / 2;
	}
	else {
		wCenter = 0;	
	}	
	if ( wCenter == 1 ){
		wOption = "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=" + wResize + ",width=" + wWidth + ",height=" + wHeight + ",left=" + (scWidthCenter - (wWidth / 2)) + ",top=" + (scHeightCenter - (wHeight / 2));
	}
	else {
		wOption = "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=" + wResize + ",width=" + wWidth + ",height=" + wHeight;
	}
	window.open(wUrl,wName,wOption);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function PrintPage(){
	if(document.getElementById || document.layers){
		window.print();		//印刷をします
	}
}



window.onload = function(){
/*
	var inc_f = '<div id="header">';
	inc_f += '<h1><a href="/pc/"><img src="/pc/common/logo.gif" width="211" height="52" alt="" /></a></h1>';
	inc_f += '<div class="column_s">Customer '+allcount+'　【Today:'+todaycount+', Yesterday:'+yesterdaycount+'】<IMG src="http://www.clubnamida.com/cgi/cc/tcount.cgi?'+parent.document.referrer+'" border=0 width=0 height=0><br />';
	inc_f += '<img src="/pc/common/head01.gif" width="154" height="23" alt="大阪・日本橋の風俗優良店&#13;&#10;朝8時から営業スタート" /><img src="/pc/common/head_tel.gif" width="158" height="23" alt="06-6646-1818" style="margin-right:0;" /></div>';
	inc_f += '<div class="price">大阪・日本橋の風俗優良店<br />';
	inc_f += '<img src="/pc/common/head_price.gif" width="149" height="93" alt="" /></div>';

	inc_f += '<div id="navi">';
	inc_f += '<ul>';
	inc_f += '<li><a href="/pc/news/index.php"><img src="/pc/common/menu01_off.gif" width="120" height="40" alt="速報" /></a></li>';
	inc_f += '<li><a href="/pc/girls_shift/"><img src="/pc/common/menu02_off.gif" width="116" height="40" alt="出勤表" /></a></li>';
	inc_f += '<li><a href="/pc/girls_search/"><img src="/pc/common/menu03_off.gif" width="117" height="40" alt="女の子検索" /></a></li>';
	inc_f += '<li><a href="/pc/s001_service/index.html"><img src="/pc/common/menu04_off.gif" width="116" height="40" alt="サービスシステム" /></a></li>';
	inc_f += '<li><a href="/pc/s008_members/index.html"><img src="/pc/common/menu05_off.gif" width="119" height="40" alt="メルマガ会員募集中" /></a></li>';
	inc_f += '</ul>';
	inc_f += '</div>';
	inc_f += '</div>';

	if(document.getElementById('include_f')){
		document.getElementById('include_f').innerHTML = inc_f;
	}
*/
	
/**/
	var inc_f = '<div id="header">';
	inc_f += '<h1><a href="/pc/"><img src="/pc/common/logo.gif" width="211" height="52" alt="" /></a></h1>';
	inc_f += '<div class="column_s">Customer '+allcount+'　【Today:'+todaycount+', Yesterday:'+yesterdaycount+'】<IMG src="http://www.clubnamida.com/cgi/cc/tcount.cgi?'+parent.document.referrer+'" border=0 width=0 height=0><br />';
	inc_f += '<span>大阪・日本橋の風俗優良店</span><img src="/pc/common/head01.gif" width="154" height="23" alt="朝8時から営業スタート" /><img src="/pc/common/head_tel.gif" width="158" height="23" alt="06-6646-1818" style="margin-right:0;" /></div>';
	inc_f += '<div class="price">これからずっとこの価格<br />';
	inc_f += '<img src="/pc/common/head_price.gif" width="149" height="93" alt="" /></div>';

	inc_f += '<div id="navi">';
	inc_f += '<ul>';
	inc_f += '<li><a href="/pc/news/index.php"><img src="/pc/common/menu01_off.gif" width="120" height="40" alt="速報" /></a></li>';
	inc_f += '<li><a href="/pc/girls_shift/"><img src="/pc/common/menu02_off.gif" width="116" height="40" alt="出勤表" /></a></li>';
	inc_f += '<li><a href="/pc/girls_search/"><img src="/pc/common/menu03_off.gif" width="117" height="40" alt="女の子検索" /></a></li>';
	inc_f += '<li><a href="/pc/s001_service/index.html"><img src="/pc/common/menu04_off.gif" width="116" height="40" alt="サービスシステム" /></a></li>';
	inc_f += '<li><a href="/pc/s008_members/index.html"><img src="/pc/common/menu05_off.gif" width="119" height="40" alt="メルマガ会員募集中" /></a></li>';
	inc_f += '</ul>';
	inc_f += '</div>';
	inc_f += '</div>';
	
	if(document.getElementById('include_f')){
		document.getElementById('include_f').innerHTML = inc_f;
	}
/**/

	var inc_sm ='<div id="smenu">';
	inc_sm +='<ul>';
	inc_sm +='<li><a href="/erogals/index.html" target="_blank"><img src="/pc/common/smenu01_off.gif" alt="エロギャルズアルバム" width="151" height="61" border="0" /></a></li>';
	inc_sm +='<li><a href="/photo/album/index.html" target="_blank"><img src="/pc/common/smenu02_off.gif" alt="ギャルズアルバム" width="151" height="60" border="0" /></a></li>';
	inc_sm +='<li><a href="/pc/s004_newfacephotobbs/index.php"><img src="/pc/common/smenu03_off.gif" alt="New Face写メ板" width="151" height="60" border="0" /></a></li>';
	inc_sm +='<li><a href="/cgi/bbs/c-board.cgi?id=ClubNamida" target="_blank"><img src="/pc/common/smenu04_off.gif" alt="BBS" width="151" height="30" border="0" /></a></li>';
	inc_sm +='<li><a href="/photo/index.html" target="_blank"><img src="/pc/common/smenu05_off.gif" alt="コスチューム" width="151" height="30" border="0" /></a></li>';
	inc_sm +='<li><a href="/pc/s008_members/index.html"><img src="/pc/common/smenu06_off.gif" alt="メルマガ登録「涙の会」" width="151" height="30" border="0" /></a></li>';
	inc_sm +='<li><a href="/pc/s009_complaintsbox/index.html"><img src="/pc/common/smenu07_off.gif" alt="ご意見目安箱" width="151" height="30" border="0" /></a></li>';
	inc_sm +='<li><a href="/pc/s010_question/index.html"><img src="/pc/common/smenu08_off.gif" alt="アンケート" width="151" height="30" border="0" /></a></li>';
	inc_sm +='<li><a href="javascript:;" onclick="MM_openBrWindow(\'/pc/venerealdisease.html\',\'pop\',\'width=350,height=320\')"><img src="/pc/common/smenu09_off.gif" alt="性病検査について" width="151" height="30" border="0" /></a></li>';
	inc_sm +='<li><a href="mailto:clubnamida1818@clubnamida.com"><img src="/pc/common/smenu10_off.gif" alt="お問い合わせ" width="151" height="30" border="0" /></a></li>';
	inc_sm +='<li><a href="/pc/link/index.html"><img src="/pc/common/smenu11_off.gif" alt="リンク集" width="151" height="30" border="0" /></a></li>';
//	inc_sm +='<li class="mailmag"><a href="/pc/s008_members/index.html"><img src="/pc/common/smenu_mailmaga_off.gif" alt="メルマガ会員募集中" width="129" height="57" border="0" /></a></li>';
	inc_sm +='<li class="qr"><img src="/pc/common/side_qr.gif" alt="" width="130" height="130" border="0" /><br />';
	inc_sm +='↑携帯サイトへ<br>';
	inc_sm +='今すぐアクセス<br />';
	inc_sm +='<a href="mailto:?subject=クラブナミダ携帯用HP&body=http://www.clubnamida.com/" class="text"> ケータイへURL送信</a></li>';
	inc_sm +='<li class="recruit"><a href="/pc/s007_recruit/index.html"><img src="/pc/common/smenu_recruit_off.gif" alt="女の子求人情報" width="130" height="74" border="0" /></a></li>';
	inc_sm +='</ul>';
	inc_sm +='<img src="/pc/common/side_btm.gif" width="151" height="8" alt="" />';
	inc_sm +='</div>';
	
	document.getElementById('include_sm').innerHTML = inc_sm;



	var inc_fo ='新風営適正化法届出済優良店<br />';
	inc_fo +='このサイトで使用している全てのデータ・画像の著作は「クラブナミダ」に帰属し、複製・転載は固くお断り致します。<br />';
	inc_fo +='当店はイメージヘルスです。本番行為を含む全ての違法行為を固く禁止致します。尚、同業者の方やスカウト行為の疑いがある方も、ご利用を固くお断りさせて頂きます。<br />';
	inc_fo +='<img src="/pc/common/copyright.gif" alt="" width="218" height="13" />';
	document.getElementById('footer').innerHTML = inc_fo;


CallList();
}

//smartRollover

function smartRollover() {
	if(document.getElementsByTagName) {
		var images = document.getElementsByTagName("img");

		for(var i=0; i < images.length; i++) {
			if(images[i].getAttribute("src").match("_off."))
			{
				images[i].onmouseover = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
				}
				images[i].onmouseout = function() {
					this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
				}
			}
		}
	}
}

if(window.addEventListener) {
	window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
	window.attachEvent("onload", smartRollover);
}

//pinpointRollover
var idximages;
var chid;
function indexOv(chname,ID){
	chid = "_"+chname;
	idximages = document.getElementById(ID);
	idximages.setAttribute("src", idximages.getAttribute("src").replace("_def", chid));
}
function indexOut(){
	idximages.setAttribute("src", idximages.getAttribute("src").replace(chid, "_def"));
}