// Link
function allblur() {
			for (i = 0; i < document.links.length; i++)
				  document.links[i].onfocus = document.links[i].blur;
	 }

function bluring(){
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;

// Flash
function flash_write(strSrc, strW, strH , sxml , jsfunction )
{
	document.write('<Object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" WIDTH="'+strW+'" HEIGHT="'+strH+'" id="company_flash_sub_v1" ALIGN="">');
	document.write('<PARAM NAME=movie VALUE="'+strSrc+'"> ');
	document.write('<PARAM NAME=menu VALUE=false> ');
	document.write('<PARAM NAME=quality VALUE=high> ');
	document.write('<PARAM NAME=wmode VALUE=transparent> ');
	document.write('<PARAM NAME=bgcolor VALUE=#CCCCCC> ');
	document.write('<PARAM NAME=flashvars VALUE="jsfunction='+jsfunction+'&menuXML='+sxml+'"> ');
	document.write('<EMBED src="'+strSrc+'" menu=false quality=high wmode=transparent bgcolor=#CCCCCC  WIDTH="'+strW+'" HEIGHT="'+strH+'" NAME="company_flash_sub_v1" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
	document.write('</OBJECT>');
}


// È¸¿øÅ»Åð
function member_leave()
{
    if (confirm("Àü¼¼¹ö½º´åÄÄ¿¡¼­ Á¤¸» Å»Åð ÇÏ½Ã°Ú½À´Ï±î?"))
            location.href = "http://www.junsebus.com/bbs/member_confirm.php?url=member_leave.php";
}
// ÃÖ½Å±Û
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_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_showHideLayers() { //v6.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; }
}

//-----------------------------------------------------------------------------
// Àü¼¼·Î±×ÀÎ ¾Æµð ºñ¹ø
//-----------------------------------------------------------------------------
var check_usrId = false;
var check_passwd = false;
function input_id () {
	if ( check_usrId ) return true;
		document.fhead.mb_id.style.backgroundImage ="";
	check = true;
	return true;
	}
function input_pwd () {
	if ( check_passwd ) return true;
		document.fhead.mb_password.style.backgroundImage ="";
	check = true;
	return true;
}


//-----------------------------------------------------------------------------
// Àü¼¼Áñ°ÜÃ£±â
//-----------------------------------------------------------------------------
function myFavorite() { 
window.external.AddFavorite('http://www.junsebus.com', 'Àü¼¼¹ö½º´åÄÄ') 
} 


// È¸¿ø»ç ¹Ì´ÏÈ¨ÇÇ ÆË¾÷ ½ºÅ©¸³Æ®
function minihome(id, book) {
	if(book == undefined) var book = "";
	window.open("http://www.junsebus.com/new/minihome2.php?it_id="+id+"&book="+book+"", "", "width=1000, height=600");
}


// flash(ÆÄÀÏÁÖ¼Ò, °¡·Î, ¼¼·Î, ¹è°æ»ö, À©µµ¿ì¸ðµå, º¯¼ö, °æ·Î)
function flash(url,w,h,bg,win,vars,base){
	var s=
	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' align='middle'>"+
	"<param name='allowScriptAccess' value='always' />"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='wmode' value='"+win+"' />"+
	"<param name='menu' value='false' />"+
	"<param name='quality' value='high' />"+
	"<param name='FlashVars' value='"+vars+"' />"+
	"<param name='bgcolor' value='"+bg+"' />"+
	"<param name='base' value='"+base+"' />"+
	"<embed src='"+url+"' base='"+base+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";
	document.write(s);
}