// ¸µÅ©½Ã »ý±â´Â Á¡¼± ¾ø¾Ö±â
function allblur() {
    for (i = 0; i < document.links.length; i++) {
        document.links[i].onfocus = document.links[i].blur;
	}
}

// Rollover Script //
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];}
}


//Layer, show hide Layer//
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_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; }
}



// ÆË¾÷ °ü·Ã
// ½ºÅ©·Ñ ¾ø´Â ÆË¾÷
function fnPopupNoScroll(URL, width, Height)
{
	var win=window.open(URL,"popup","width="+width+",height="+Height+",status=no,scrollbars=no");
	win.focus();
}

// ½ºÅ©·Ñ ÀÖ´Â ÆË¾÷
function fnPopupScroll(URL, width, Height)
{
	var win=window.open(URL,"popup","width="+width+",height="+Height+",status=no,scrollbars=yes");
	win.focus();
}

// ½ºÅ©·Ñ ÀÖ´Â ÆË¾÷
function fnPopupAutoScroll(URL, width, Height)
{
	var win=window.open(URL,"popup","width="+width+",height="+Height+",status=no,scrollbars=auto");
	win.focus();
}

// ÇöÀç ÆäÀÌÁö ÀÌµ¿
function fnOpenSelf(URL)
{
	var win=window.open(URL,"_self");
	win.focus();
}

function fullwin(URL)
{
	var win = window.open(URL,"movie","fullscreen=1,scrollbars=yes");
	win.focus();
}

function jsfullwin(URL)
{
	inWidth = screen.width;
	inHeight = screen.height;
	var win = window.open(URL,"movie","left=0,top=0,width="+inWidth+",height="+inHeight+",scrollbars=no,toolbars=no");
	win.focus();
}

// ¸ðµç ¿É¼ÇÀ» ¹Þ´Â  ÆË¾÷
function fnOpenWin(URL,stname, par)
{
	var win=window.open(URL, stname, par);
	win.focus();
}

//¸Þ´º
function link(menuno)
{
	var URL;
	switch (menuno) 
	{
		case 1: // È¨
			URL = "../home/home.htm ";
			break;
		case 2: //softDsp
			URL = "../company/profile.htm";
			break;
		case 3: //Product
			URL = "../product/sds200a_01.htm";
			break;
		case 4: //Support
			URL = "../BIBoard/list.php?id=eng_download ";
			break;
		case 5: //Shop
			URL = " ../shop/shopping.htm";
			break;
		case 6: //sitemap/ sitemap
			URL = " ../sitemap/sitemap.htm";
			break;
		case 7: //
			URL = "http://www.softdsp.co.kr";
			break;
		case 201: //softDsp / Profile
			URL = " ../company/profile.htm";
			break;
		case 202: //softDsp / History
			URL = "../company/history.htm";
			break;
		case 203: //softDsps / Prize
			URL = " ../company/prize.htm";
			break;
		case 204: //softDsp / Contact Us
			URL = " ../company/contact.htm";
			break;
		case 301: //product / sds200a
			URL = " ../product/sds200a_01.htm";
			break;
		case 401: //product / sds200a
			URL = " ../BIBoard/list.php?id=eng_download";
			break;
		case 402: //product / sds200a
			URL = "../support/registration.htm ";
			break;
		case 403: //product / sds200a
			URL = " ../BIBoard/list.php?id=eng_faq";
			break;
		case 3011: //product / sds200a
			URL = " ../product/sds200a_01.htm";
			break;
		case 3012: //product / sds200a
			URL = " ../product/sds200a_02.htm";
			break;
		case 3013: //product / sds200a
			URL = " ../product/sds200a_03.htm";
			break;
		case 3014: //product / sds200a
			URL = " ../product/sds200a_04.htm";
			break;
		case 3015: //product / sds200a
			URL = " ../product/sds200a_05.htm";
			break;
		case 3016: //product / sds200a
			URL = " ../product/sds200a_06.htm";
			break;
		case 302: //product / turbo
			URL = " ../product/turbo_01.htm";
			break;
		case 3021: //product / turbo
			URL = " ../product/turbo_01.htm";
			break;
		case 3022: //product / turbo
			URL = " ../product/turbo_02.htm";
			break;
		case 303: //product / sns2100
			URL = " ../product/sns2100_01.htm";
			break;
		case 3031: //product / sns2100
			URL = " ../product/sns2100_01.htm";
			break;
		case 3032: //product / sns2100
			URL = " ../product/sns2100_02.htm";
			break;
		case 304: //product / srf2400m
			URL = " ../product/srf2400m_01.htm";
			break;
		case 3041: //product / srf2400m
			URL = " ../product/srf2400m_01.htm";
			break;
		case 3042: //product / srf2400m
			URL = " ../product/srf2400m_02.htm";
			break;
		case 3043: //product / srf2400m
			URL = " ../product/srf2400m_03.htm";
			break;
		
		case 305: //product / SDU2040
			URL = " ../product/sdu2040_01.htm";
			break;
		case 3051: //product / SDU2040
			URL = " ../product/sdu2040_01.htm";
			break;
		case 3052: //product / SDU2040
			URL = " ../product/sdu2040_02.htm";
			break;
		case 3053: //product / SDU2040
			URL = " ../product/sdu2040_03.htm";
			break;
		
		case 501: //shop/ shopping
			URL = " ../shop/shopping.htm";
			break;
		case 5011: //shop/ shopping
			URL = " ../shop/shopping_cart.htm";
			break;
		case 502: //shop/ dealers
			URL = " ../shop/dealers.htm";
			break;
		case 503: //shop/ Warranty
			URL = " ../shop/warranty.htm";
			break;

		default:			
			//alert("¸µÅ© ¾øÀ½");
			return;
			break;
	}
	//alert(URL);
	window.open(URL,"_self");	

}
