// http://www.sktea.com/  -> ±³Ã¼ 

// JavaScript Document
	//»õÃ¢ °¡¿îµ¥·Î ¶ç¿ì±â
	function NewWindow(mypage, myname, w, h, scroll){
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresize';
		win = window.open(mypage, myname, winprops)
		if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	}


		//»õÃ¢ °¡¿îµ¥·Î ¶ç¿ì±â
	function new_window(mypage, myname, w, h, scroll)
	{
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',toolbar=yes,location=yes,status=yes,menubar=yes,resizable=yes';
		win = window.open(mypage, myname, winprops)
		if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	} 


//Áñ°ÜÃ£±â
function goBookmark() {
	window.external.AddFavorite('','½Ö°è¸íÂ÷');
}


function sitelink(code) {
        var LinkCode = code
                // È¨
        if (LinkCode == "home") {
                document.location.href = "/index.php"							
      //°ü¸®ÀÚÈ¨ 
     } else if (LinkCode == "admin") { 
                document.location.href = "/admin/default.htm"


// ½Ö°è¸íÂ÷´Â ===========================================================================================
      //ÀÎ»ç¸» 
     } else if (LinkCode == "ceo01") { 
                document.location.href = "http://www.sktea.com/html/info/info04.php"
	  //¹ßÀÚÃë 
     } else if (LinkCode == "history") { 
                document.location.href = "http://www.sktea.com/html/info/info01.php"
      //Â÷¿Í ÇÔ²²ÇÑ 40³â 
     } else if (LinkCode == "ceo") { 
                document.location.href = "http://www.sktea.com/html/info/info02.php"
      //¿À½Ã´Â±æ 
     } else if (LinkCode == "location") { 
                document.location.href = "http://www.sktea.com/html/info/info03.php"

// ½Ö°è¸íÂ÷ ÀÌ¾ß±â ===========================================================================================
      //¼ºÁö Áö¸®»ê 
     } else if (LinkCode == "story01") { 
                document.location.href = "http://www.sktea.com/html/story/story01.php"
      //¸íÀÎÀÌ ¸¸µçÂ÷
     } else if (LinkCode == "story02") { 
                document.location.href = "http://www.sktea.com/html/story/story02.php"
      //Á¦Á¶°úÁ¤
     } else if (LinkCode == "story03") { 
                document.location.href = "http://www.sktea.com/html/story/story03.php"
      

// ½Ö°è¸íÂ÷ Á¦Ç° ===========================================================================================
      //ÇÖÀÌ½´ 
     } else if (LinkCode == "pro01") { 
                document.location.href = "http://www.sktea.com/html/product/pro01.php"
      //½Ö°è¸íÂ÷
     } else if (LinkCode == "pro02") { 
                document.location.href = "http://www.sktea.com/html/product/pro02.php"
      //»ê¾ßÂ÷
     } else if (LinkCode == "pro03") { 
                document.location.href = "http://www.sktea.com/html/product/pro03.php"
      //ÇÇ¶ó¹Ìµå¹é
     } else if (LinkCode == "pro04") { 
                document.location.href = "http://www.sktea.com/html/product/pro04.php"
      //Å©¸®½ºÅ»
     } else if (LinkCode == "pro05") { 
                document.location.href = "http://www.sktea.com/html/product/pro05.php"
      //¼±¹°¼¼Æ®
     } else if (LinkCode == "pro06") { 
                document.location.href = "http://www.sktea.com/html/product/pro06.php"
      //Æ¼¹é
     } else if (LinkCode == "pro07") { 
                document.location.href = "http://www.sktea.com/html/product/pro07.php"
      //´Ù±¸, Â÷¼ÒÇ°
     } else if (LinkCode == "pro08") { 
                document.location.href = "http://www.sktea.com/html/product/pro08.php"
      

// Â÷°øºÎ ===========================================================================================
      //Â÷ °­ÀÇ
     } else if (LinkCode == "tea01") { 
                document.location.href = "http://www.sktea.com/html/tea/tea01.php"
      //Â÷¿Í °Ç°­
     } else if (LinkCode == "tea02") { 
                document.location.href = "http://www.sktea.com/html/tea/tea02.php"
      //Çö´ëÀÎÀÇ Â÷ »ýÈ°
     } else if (LinkCode == "tea03") { 
                document.location.href = "http://www.sktea.com/html/tea/tea03.php"
	  //Â÷¿Í °Ç°­
     } else if (LinkCode == "tea04") { 
                document.location.href = "http://www.sktea.com/html/tea/tea04.php"


// °í°´¼¾ÅÍ ===========================================================================================
      //»õ¼Ò½Ä 
     } else if (LinkCode == "notice") { 
 //               document.location.href = "http://www.sktea.com/html/cs/notice.php"
                document.location.href = "http://www.sktea.com/html/cs2/sub5_1.html"
      //°í°´°Ô½ÃÆÇ 
     } else if (LinkCode == "board") { 
                document.location.href = "http://www.sktea.com/html/cs/board.php"
      //Âü¿©°ø°£ 
     } else if (LinkCode == "board2") { 
                document.location.href = "http://www.sktea.com/html/cs/board2.php"


// È¸¿ø ===========================================================================================
      //·Î±×ÀÎ 
     } else if (LinkCode == "login") { 
                document.location.href = "http://www.sktea.com/html/join/login.php"
      //·Î±×¾Æ¿ô 
     } else if (LinkCode == "logout") { 
                document.location.href = "http://www.sktea.com/html/join/logoutok.php"
      //È¸¿ø°¡ÀÔ 
     } else if (LinkCode == "join") { 
                document.location.href = "http://www.sktea.com/html/join/join.php"
      //È¸¿øÁ¤º¸¼öÁ¤ 
     } else if (LinkCode == "joinEdit") { 
                document.location.href = "http://www.sktea.com/html/join/joinEdit.php"
      //È¸¿ø¾à°ü 
     } else if (LinkCode == "agree") { 
                document.location.href = "http://www.sktea.com/html/join/agreement.php"
      //°³ÀÎÁ¤º¸º¸È£Á¤Ã¥ 
     } else if (LinkCode == "individual") { 
                document.location.href = "http://www.sktea.com/html/join/individual.php"
      //¾ÆÀÌµðºñ¹Ð¹øÈ£ 
     } else if (LinkCode == "idpw") { 
                document.location.href = "http://www.sktea.com/html/join/idpw.php"
      //È¸¿øÅ»Åð 
     } else if (LinkCode == "memout") { 
                document.location.href = "http://www.sktea.com/html/join/memout.php"
	}
}




//ÇÃ·¡½Ã
function ShowFlash(obj,strMediaURL,obj_width,obj_height)  {
  var sTag = ''
    + '<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="' + obj_width + '" height="' + obj_height + '">'
    + '<param name="movie" value="' + strMediaURL + '">'
    + '<param name="quality" value="best">'
    + '<param name="WMode" value="Transparent">'
    + '<embed src="' + strMediaURL + '" quality="best" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + obj_width + '" height="' + obj_height + '"></embed>'
    + '</object>'
    + '';
  document.write (sTag);
}


function flash(w,h,u) {
 var flash_tag = "";
 flash_tag = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
 flash_tag +='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ';
 flash_tag +='WIDTH="'+w+'" HEIGHT="'+h+'" >';
 flash_tag +='<param name="movie" value="'+u+'">';
 flash_tag +='<param name="quality" value="high">';
 flash_tag +='<param name="wmode" value="transparent">';
 flash_tag +='<embed src="'+u+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ';
 flash_tag +='type="application/x-shockwave-flash"  WIDTH="'+w+'" HEIGHT="'+h+'"></embed></object>'
 document.write(flash_tag);
}

function swap_image(img, txt, ext)
{
    if(img.src.indexOf(txt) == -1)
        img.src = img.src.replace(ext, txt+ext);
}
function change_image(img, src, des)
{
    if(src != des)
        img.src = img.src.replace(des, "");
}

//onfocus='blur();' ¸¦ ÇÑ¹ø¿¡
function bluring(){
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
	}
	document.onfocusin=bluring;


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];}
}

