// JavaScript Document

<!--
 SiteUrl = '/bnd2009/';



url_list = new Array();
newwin_list = new Array();
window_list = new Array()
fullwin_list = new Array()

url_alert = new Array();

// ÇÃ·¹½ÃÆÄÀÏ¿¡¼­ ¸µÅ©°É¶§¿¡´Â
// javascript:go_site(1);
// ÀÌ·±½ÄÀ¸·Î ¸µÅ©°É¸é µË´Ï´Ù.
// ¹øÈ£´Â url_list[¹øÈ£]°ªÀ» ³ÖÀ¸¸é µË´Ï´Ù.




//##############################   ÆäÀÌÁö Á¤ÀÇ   ###############################

url_list[0] = 'mailto:bnd@bndnet.com'; 
//url_list[1] = SiteUrl + 'index.php';
url_list[1] = 'http://www.bndnet.com/';


//È¨¸Þ´º
url_list[2] = SiteUrl + 'recruit/bnd_recruit.zip'; 
//Main_Events
url_list[3] = 'http://www.bndnet.com/xe/?mid=events&document_srl=71'; 
url_list[4] = 'http://www.bndnet.com/xe/?mid=events&document_srl=79'; 
//Main_Press
url_list[5] = 'http://www.bndnet.com/xe/?mid=epress&document_srl=87'; 
url_list[6] = 'http://www.bndnet.com/xe/?mid=epress&document_srl=85'; 
//´ÙÀ½¸Þ´º±îÁö ¿©À¯¸¦ µÎ°í Á¤ÀÇ

// ¸Þ´º½ÃÀÛ

//1_products()
 url_list[110] = SiteUrl + '1_products/msg1.php'; 
 url_list[120] = SiteUrl + '1_products/msg2.php';
 url_list[130] = SiteUrl + '1_products/mvds.php';
 url_list[140] = SiteUrl + '1_products/avls.php';
 url_list[150] = SiteUrl + '1_products/mtv1.php';
 url_list[160] = SiteUrl + '1_products/mtv2.php';

//2_services()
 url_list[210] = SiteUrl + '2_services/serv1.php';
// newwin_list[210] = 'true';
 url_list[220] = SiteUrl + '2_services/serv2.php';
 url_list[230] = SiteUrl + '2_services/serv3.php';
 url_list[240] = SiteUrl + '2_services/serv4.php';

//3_bnd()
 url_list[310] = SiteUrl + '3_bnd/bnd1.php';
 url_list[320] = SiteUrl + '3_bnd/bnd2.php';
 url_list[330] = SiteUrl + '3_bnd/bnd3.php';
 url_list[340] = SiteUrl + '3_bnd/bnd4.php';
 url_list[350] = SiteUrl + '3_bnd/bnd5.php';

//4_news()
 url_list[410] = 'http://www.bndnet.com/xe/?mid=epress';
 url_list[420] = 'http://www.bndnet.com/xe/?mid=events';
 
//5_solution
 url_list[510] = SiteUrl + 'solution/BND_SolutionBrochure.pdf';
// newwin_list[510] = 'true';
 url_list[520] = SiteUrl + 'solution/MVDS_en.exe';
 
//##############################   ÆäÀÌÁö Á¤ÀÇ   ###############################


// »õÃ¢ÀÎ ¸Þ´º
//newwin_list[211] = 'true';


// À©µµ¿ì·Î ¿­¸®´Â°æ¿ì
//window_list[81] = 'width=788 height=789 resizable=auto';


//ÀüÃ¼È­¸éÀÎ ¸Þ´º
//fullwin_list[10] = 'true'


function go_site(num)
{
	//alert(num);
	//alert(url_list[num]);
	if(url_list[num])
	{
		// º»Ã¢À¸·Î ÀÌµ¿ÇÏ´Â °æ¿ì
		if(newwin_list[num] != 'true' && fullwin_list[num] != 'true' && (window_list[num] == '' || window_list[num] == null))
		{
			location.href=url_list[num];
		}
	
		// À©µµ¿ì Ã¢À¸·Î ¿­¸®´Â°æ¿ì
		if(window_list[num] != '' && window_list[num] != null)
		{
			window.open(url_list[num], 'new_win', window_list[num]);
		}
	
	
		// ÀüÃ¼Ã¢À¸·Î ¿­¸®´Â °æ¿ì
		if(fullwin_list[num] == 'true')
		{
			window.open(url_list[num], 'new_win', 'width=1024 height=724 resizable=yes');
		}
	
	
		// »õÃ¢À¸·Î ¿­¸®´Â°æ¿ì
		if(newwin_list[num] == 'true')
		{
			window.open(url_list[num], '_blank', 'directories=yes, titlebar=yes, toolbar=yes, menubar=yes, statusbar=yes, scrollbars=yes, resizable=yes, location=yes, status=yes');
		}
	}else if(url_alert[num]) {		// Alert Ã¢ ¶ç¿ï¶§
		//alert(url_alert[num]);
		window.alert("ÁØºñÁßÀÔ´Ï´Ù.");
	}
}

// »õÃ¢ÀÎ ¸Þ´º
function getCookie(name) { 
var Found = false 
var start, end 
var i = 0 

while(i <= document.cookie.length) { 
start = i 
end = start + name.length 

if(document.cookie.substring(start, end) == name) { 
Found = true 
break 
} 
i++ 
} 
if(Found == true) { 
start = end + 1 
end = document.cookie.indexOf(";", start) 
if(end < start) 
end = document.cookie.length 
return document.cookie.substring(start, end) 
} 
return "" 
} 

function openPopup() 
{ 
var noticeCookie=getCookie("CookieName"); 
if (noticeCookie != "no") 

window.open(SiteUrl + '/pages/popup/tour_1029.php','tour','width=400,height=546,top=30,left=30,scrollbars=no');

} 


//activex * »ç¿ë¹ý <script>swf('./images/top_menu.swf',660,64);/script>
//function swf(src,width,height){
//object = '';
//object += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="param" width="'+width+'" height="'+height+'">';
//object += '<param name="movie" value="'+src+'"><param name=wmode value=transparent>';
//object += '<embed src="'+src+'" quality="high" wmode="transparent" bgcolor="#ffffff" menu="false" width="'+width+'" height="'+height+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
//object += '<\/object>';
//document.write(object);
//}

//activex * »ç¿ë¹ý <script>swf('swf/TopMenu1.swf',955,96);/script>
function swf(src,width,height){
object = '';
object += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="param" width="'+width+'" height="'+height+'">';
object += '<param name="movie" value="'+src+'"><param name=wmode value=transparent>';
object += '<embed src="'+src+'" quality="high" wmode="transparent" bgcolor="#ffffff" menu="false" width="'+width+'" height="'+height+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
object += '<\/object>';
document.write(object);
}

//activex * »ç¿ë¹ý <script>swf2('swf/TopMenu1',955,96,1);/script>
function swf2(src,width,height,menu){
object = '';
object += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="param" width="'+width+'" height="'+height+'">';
object += '<param name="movie" value="'+src+".swf?pageNum="+menu+'"><param name=wmode value=transparent>';
object += '<embed src="'+src+".swf?pageNum="+menu+'" quality="high" wmode="transparent" bgcolor="#ffffff" menu="false" width="'+width+'" height="'+height+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
object += '<\/object>';
document.write(object);
}

//activex * »ç¿ë¹ý <script>swf3('swf/TopMenu1',955,96,1,2);/script>
function swf3(src,width,height,menu,menu1){
object = '';
object += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="param" width="'+width+'" height="'+height+'">';
object += '<param name="movie" value="'+src+".swf?pageNum="+menu+"&subNum="+menu1+'"><param name=wmode value=transparent>';
object += '<embed src="'+src+".swf?pageNum="+menu+"&subNum="+menu1+'" quality="high" wmode="transparent" bgcolor="#ffffff" menu="false" width="'+width+'" height="'+height+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
object += '<\/object>';
document.write(object);
}



//Dynamic
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
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;
}

//Imageing
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_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 MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->



var old='';
var playEvent_flag = true;

function menu_off(name){
	if(name == '0'){				
	   popup.style.display='none';
	}
}

function menu_off_1(name){
}

// ¸¶¿ì½º ¿Ã·ÈÀ»¶§ ¿òÁ÷ÀÓ ³¡
// ÀÏÁ¤ ½Ã°£ÀÌ Áö³ª¸é¼­ ÆË¾÷ ÀÚ·á ¹Ù²î°Ô ÇÏ´Â°Å
function change_popup(){
}

function StopEvent() {
	playEvent_flag = false;
}
function PlayEvent() {
	playEvent_flag = true;
}
//-->


<!--
	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 VideoControl( mode ) {
		switch (mode)
		{
			case "play"	 : objPlayer.controls.play(); break;
			case "stop"  : objPlayer.controls.stop(); break;
			case "pause" : objPlayer.controls.pause(); break;
		}
	}
//-->

// JavaScript Document

<!--
//	self.onError=null;
//	currentX = currentY = 0;  
//	whichIt = null;           
//	lastScrollX = 0; lastScrollY = 0;
//	NS = (document.layers) ? 1 : 0;
//	IE = (document.all) ? 1: 0;
	<!-- STALKER CODE -->
//	function heartBeat() {
//		if(IE) { 
//			  diffY = document.body.scrollTop; 
// 			  diffX = 0; 
//		       }
//	    if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
//		if(diffY != lastScrollY) {
//	                percent = .1 * (diffY - lastScrollY);
//	                if(percent > 0) percent = Math.ceil(percent);
//	                else percent = Math.floor(percent);
//			if(IE) document.all.floater.style.pixelTop += percent;
//			if(NS) document.floater.top += percent; 
//	                lastScrollY = lastScrollY + percent;
//	    }
//		if(diffX != lastScrollX) {
//			percent = .1 * (diffX - lastScrollX);
//			if(percent > 0) percent = Math.ceil(percent);
//			else percent = Math.floor(percent);
//			if(IE) document.all.floater.style.pixelLeft += percent;
//			if(NS) document.floater.top += percent;
//			lastScrollY = lastScrollY + percent;
//		}		
//	}	
//	if(NS || IE) action = window.setInterval("heartBeat()",1);
//	
//	function MM_openBrWindow(theURL,winName,features) { //v2.0
//	  window.open(theURL,winName,features);
//	}
//
//expression((document.body.clientWidth-896)/2 + 905)
//document.writeln('<div id=floater style="Z-INDEX: 1; LEFT:1024px; TOP: 300px; WIDTH: 24px; HEIGHT: 87px; POSITION: absolute; visibility: visible;"><table width="24px" height="87px" border="0" cellspacing="0" cellpadding="0"><tr><td><a href="#top"><img src="/include/images/scroll_top.gif" width="24px" height="87px"></a></td></tr></table></DIV>');

<!--expression((document.body.clientWidth-this.style.width)/2-->

//-->


