function PreloadDefault(){
	MM_preloadImages('/img/special/booking_bottun2.gif','/img/special/okuyami_bottun2.gif','/img/top/ragistration_b2.gif','/img/top/mypage_b2.gif');
}
function PreloadMyPage(){
	MM_preloadImages('/img/special/booking_bottun2.gif','/img/special/okuyami_bottun2.gif','/img/top/ragistration_b2.gif','/img/top/mypage_b2.gif','/img/my/henkou2.gif','/img/my/password2.gif','/img/my/touroku_henkou2.gif','/img/my/keisai2.gif','/img/my/syuusei2.gif','/img/my/mail2.gif','/img/my/kihon_henkou002.gif','/img/my/password002.gif','/img/my/tenpo_henkou002.gif','/img/my/osusume002.gif','/img/my/osusume_syusei002.gif','/img/my/mail002.gif','/img/my/genre002.gif','/img/my/mail_setup002.gif', '/img/minibottun/bottun015-2.gif', '/img/minibottun/bottun073-2.gif', '/img/minibottun/bottun016-2.gif', '/img/minibottun/bottun082-2.gif', '/img/minibottun/bottun018-2.gif', '/img/minibottun/bottun075-2.gif');
}
function PreloadCom(){
	MM_preloadImages('/img/special/booking_bottun2.gif','/img/special/okuyami_bottun2.gif','/img/top/ragistration_b2.gif','/img/top/mypage_b2.gif','/img/minibottun/bottun023-2.gif','/img/minibottun/bottun024-2.gif','/img/minibottun/bottun025-2.gif','/img/com/hiroba_in02.gif');
}
function PreloadCircle(){
	MM_preloadImages('/img/com/friend_bbs2.gif','/img/com/communication_bbs2.gif','/img/com/recommend_spot2.gif','/img/com/friendry_circle2.gif','/img/minibottun/bottun050-2.gif','/img/minibottun/bottun051-2.gif','/img/minibottun/bottun049-2.gif','/img/minibottun/bottun048-2.gif','/img/minibottun/bottun007-2.gif','/img/minibottun/bottun008-2.gif','/img/minibottun/bottun006-2.gif','/img/minibottun/bottun052-2.gif');
}

function CloseAll(tName, start, end){
	for(i=start;i<end;++i){
		tName2 = tName+i;
		tMenu = document.getElementById(tName2).style;
		tMenu.display = "none";
	}
}

function OpenMenu(tName){
	tMenu = document.getElementById(tName).style;
	if(tMenu.display == 'none'){
		tMenu.display = "block";
	}else{
		tMenu.display = "none";
	}
}

function OpenMenu2(tName, start, end, tNum){
	for(i=start;i<=end;++i){
		tName2 = tName+i;
		tMenu = document.getElementById(tName2).style;
		if(i == tNum){
			tMenu.display = "block";
		}else{
			tMenu.display = "none";
		}
	}
}

function Cursor(Num, NumAll){
	for(i=0;i<=NumAll;++i){
		IdName = "img"+i;
		Menu = document.getElementById(IdName).style;
		if(i == Num){
			Menu.border = "2px solid red";
		}else{
			Menu.border = "0px solid red";
		}
	}
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

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_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

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 OnCheck(sForm, sElement){
	Form = document.getElementById(sForm);
	Max = Form.elements[sElement].length;
	if(Max == undefined){
		Form.elements[sElement].checked = true;
	}else{
		for(i=0; i<Max; ++i){
			Form.elements[sElement][i].checked = true;
		}
	}
}
function OffCheck(sForm, sElement){
	Form = document.getElementById(sForm);
	Max = Form.elements[sElement].length;
	if(Max == undefined){
		Form.elements[sElement].checked = false;
	}else{
		for(i=0; i<Max; ++i){
			Form.elements[sElement][i].checked = false;
		}
	}
}

