<!--
//====================================================================
// 2010부산국제의료관광컨벤션 JAVA SCRIPT 정의 [허미숙]
//====================================================================


//======================================
//		FLASH ACTIVE-X 문제해결
//======================================

function swf(src,w,h){
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="high">';
	html += '<param name="menu" value="false">';
	html += '<param name="swliveconnect" value="true">';
	html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" menu="false" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	html += '<\/object>';
	document.write(html);
}

function swf_bgcolor(src,w,h,color){
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="high">';
	html += '<param name="bgcolor" value="'+color+'">';
	html += '<param name="menu" value="false">';
	html += '<param name="swliveconnect" value="true">';
	html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" menu="false" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	html += '<\/object>';
	document.write(html);
}

function swf_wmode(src,w,h){
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="high">';
	html += '<param name="menu" value="false">';
	html += '<param name="swliveconnect" value="true">';
	html += '<param name="wmode" value="transparent">';
	html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" menu="false" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	html += '<\/object>';
	document.write(html);
}



//======================================
//		롤오버버튼
//======================================

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.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 bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;

//==========================================================
//		FLASH MENU URL 정의 JS
//==========================================================

/******* MAIN MENU LINK *********************************************************************************/
function menu0() { location.href = "/2010/main.php"; } // Main
function menu01() { location.href = "main.php"; } // Main 2009
function menu1() { location.href = "/2010/introduction/introduction.php?dir=greeting"; } // INTRODUCTION (컨벤션소개)
function menu2() { location.href = "/2010/event/event.php?dir=event01"; } // EVENT (행사안내)
function menu3() { location.href = "/2010/application/application.php?dir=guide"; } // APPLICATION (참가안내)
function menu4() { location.href = "/bbs/board.php?bo_table=notice2"; } // BBS (게시판)

function menu11() { window.open('/2010/ebook/EBook.htm',"NewWindow4"); } // e-brochure
function menu12() { location.href = "/2010/application/application.php?dir=guide"; } // 컨벤션참가신청서

/******* INTRODUCTION (컨벤션소개) LINK ****************************************************************/
function menu1sub1() { location.href = "/2010/introduction/introduction.php?dir=greeting"; } // 인사말
function menu1sub2() { location.href = "/2010/introduction/introduction.php?dir=outline"; } // 컨벤션 개요
function menu1sub3() { location.href = "/2010/introduction/introduction.php?dir=vision"; } // 컨벤션 비전
function menu1sub4() { location.href = "/2010/introduction/introduction.php?dir=map"; } // 오시는 길
function menu1sub5() { location.href = "/2010/introduction/introduction.php?dir=accommodation"; } // 숙박안내

/******* EVENT (행사안내) LINK **************************************************************/
function menu2sub1() { location.href = "/2010/event/event.php?dir=event01"; } // 행사일정
function menu2sub2() { location.href = "/2010/event/event.php?dir=event02"; } // 부대행사

/******* APPLICATION (참가안내) LINK ****************************************************************/
function menu3sub1() { location.href = "/2010/application/application.php?dir=guide"; } // 참가안내
function menu3sub2() {  window.open('http://bimtc.org/head/login2_2010.php',"NewWindow","left=200, top=100, toolbar=no, location=no, directories=no, status=no, fullscreen=no, menubar=no, scrollbars=yes, resizable=no, width=770 height=700");  } // 참가신청서확인
function menu3sub3() { location.href = "/2010/application/application.php?dir=directory"; } // 디렉토리신청

/******* BBS (게시판) LINK **********************************************************/
function menu4sub1() { location.href = "http://www.bimtc.org/bbs/board.php?bo_table=notice2"; } // 공지사항
function menu4sub2() { location.href = "http://www.bimtc.org/bbs/board.php?bo_table=news2"; } // 컨벤션뉴스
function menu4sub3() { location.href = "http://www.bimtc.org/bbs/board.php?bo_table=photo2"; } // 포토갤러리
function menu4sub4() { location.href = "http://www.bimtc.org/bbs/board.php?bo_table=down2"; } // 자료실
function menu4sub5() { location.href = "http://www.bimtc.org/bbs/board.php?bo_table=qna2"; } // Q&A

/******* Language (외국어) LINK **********************************************************/
function menu10sub1() {  window.open('http://www.bimtc.org/sub/eng2_01.php',"NewWindow1","left=33, top=50, toolbar=no, location=no, directories=no, status=no, fullscreen=no, menubar=no, scrollbars=yes, resizable=no, width=1067 height=743"); } // English
function menu10sub2() { window.open('http://www.bimtc.org/sub/japan2_01.php',"NewWindow2","left=33, top=50, toolbar=no, location=no, directories=no, status=no, fullscreen=no, menubar=no, scrollbars=yes, resizable=no, width=1067 height=743");  } // Japanese
function menu10sub3() { window.open('http://www.bimtc.org/sub/china2_01.php',"NewWindow3","left=33, top=50, toolbar=no, location=no, directories=no, status=no, fullscreen=no, menubar=no, scrollbars=yes, resizable=no, width=1067 height=743");  } // Chinese
function menu10sub4() { window.open('http://www.bimtc.org/sub/russia2_01.php',"NewWindow4","left=33, top=50, toolbar=no, location=no, directories=no, status=no, fullscreen=no, menubar=no, scrollbars=yes, resizable=no, width=1067 height=742");  } // Russian


/******* Language (외국어) LINK **********************************************************/
function menu31sub1() {  window.open('http://www.bimtc.org/sub/eng3_01.php',"NewWindow1","left=33, top=50, toolbar=no, location=no, directories=no, status=no, fullscreen=no, menubar=no, scrollbars=yes, resizable=no, width=1000 height=717"); } // English
function menu31sub2() { window.open('http://www.bimtc.org/sub/japan3_01.php',"NewWindow2","left=33, top=50, toolbar=no, location=no, directories=no, status=no, fullscreen=no, menubar=no, scrollbars=yes, resizable=no, width=1000 height=717");  } // Japanese
function menu31sub3() { window.open('http://www.bimtc.org/sub/china3_01.php',"NewWindow3","left=33, top=50, toolbar=no, location=no, directories=no, status=no, fullscreen=no, menubar=no, scrollbars=yes, resizable=no, width=1000 height=717");  } // Chinese
function menu31sub4() { window.open('http://www.bimtc.org/sub/russia3_01.php',"NewWindow4","left=33, top=50, toolbar=no, location=no, directories=no, status=no, fullscreen=no, menubar=no, scrollbars=yes, resizable=no, width=1000 height=717");  } // Russian
function menu31sub5() { window.open('http://www.bimtc.org/sub/korean3_01.php',"NewWindow5","left=33, top=50, toolbar=no, location=no, directories=no, status=no, fullscreen=no, menubar=no, scrollbars=yes, resizable=no, width=700 height=700");  } // Russian

