function swf(Url,Width,Height,idname){
	var obj_idname, emb_idname;
	obj_idname = idname ? " id='" + idname + "'" : "";
	emb_idname = idname ? " name='" + idname + "'" : "";
	document.writeln("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+Width+"' height='"+Height+"'"+obj_idname+">");
	document.writeln("<param name='movie' value='"+Url+"'>");
	document.writeln("<param name='quality' value='high'>");
	document.writeln("<param name='wmode' value='transparent'>");
	document.writeln("<embed src='"+Url+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+Width+"' height='"+Height+"'"+emb_idname+">");
	document.writeln("</object>");
}


function re_height(){
	document.getElementById('frm_main').height =  frm_main.document.body.scrollHeight;
}

function menu(m,s){
	if(m==0){  // ¸ÞÀÎ¸Þ´º ¸µÅ©

		if(s==1){  
			document.location.href = "/introduction/m1_1.php?m=1&s=1";
		}else if(s==2){
			document.location.href = "/menu/menu_list.php?m=2&s=1";
		}else if(s==3){
			document.location.href = "/location/store_list.php?m=3&s=1";
		}else if(s==4){
			document.location.href = "/customer/photo_list.php?m=4&s=1";
		}else if(s==5){
			document.location.href = "/recruit/staff.php?m=5&s=1";
		}

	}else if(m==1){
		
		if(s==1 || s==2){
		document.location.href = "/introduction/m"+m+"_"+s+".php?m="+m+"&s="+s;	
		}else if(s==3){
		document.location.href = "/customer/notice_list.php?m="+m+"&s="+s;	
		}
		
	}else if(m==2){  // ¸Þ´º
		if(s==13){
		document.location.href = "/menu/menu_new.php?m="+m+"&s="+s;
		}else{
		document.location.href = "/menu/menu_list.php?m="+m+"&s="+s;
		}
	}else if(m==3){  // ÁöÁ¡¾È³»
		document.location.href = "/location/store_view.php?m="+m+"&s="+s;
	}else if(m==4){  // °í°´Âü¿©
		if(s==1){
			document.location.href = "/customer/photo_list.php?m="+m+"&s="+s;
		}else if(s==2){
			document.location.href = "/customer/cook_list.php?m="+m+"&s="+s;
		}else if(s==3){
			document.location.href = "/customer/suggestion.php?m="+m+"&s="+s;
		}else if(s==4){
			document.location.href = "/customer/question.php?m="+m+"&s="+s;
		}
	}else if(m==5){  //Ã¤¿ëÁ¤º¸
		if(s==1){
			document.location.href = "/recruit/staff.php?m="+m+"&s="+s;
		}else if(s==2){
			document.location.href = "/recruit/recruit.php?m="+m+"&s="+s;
		}
	}
}

function view(num) {
	if(num==0){
		document.getElementById('login_bg').style.display = 'none';
		document.getElementById('login_main').style.display = 'none';
		document.body.style.overflowY = 'auto';
		document.body.style.overflowX = 'auto';		
	}else{
		document.getElementById('login_bg').style.display = 'block';
		document.getElementById('login_main').style.display = 'block';
		document.body.style.overflowY = 'hidden';
		document.body.style.overflowX = 'hidden';
	}
}