try {
	document.execCommand('BackgroundImageCache', false, true);
} catch(e) {}


document.title = 'Welcome To Samsung Heavy Industries.';


/********************************************************************************************************
	°øÅëPopup Á¤ÀÇ
	º¯¼ö Á¤ÀÇ : pop - ÆÄÀÏ¸í, width - °¡·Î»çÀÌÁî, height - ¼¼·Î»çÀÌÁî, flag - 0:½ºÅ©·Ñ¾øÀ½, 1:½ºÅ©·ÑÀÖÀ½
********************************************************************************************************/
function pop( url, width, height, flag ) {
    if ( flag == "0" )
		window.open( url, "", "toolbar=0,menubar=0,scrollbars=no,resizable=no,width=" + width + ",height=" + height + ";");
    else 
		window.open( url, "", "toolbar=0,menubar=0,scrollbars=yes,resizable=no,width=" + width + ",height=" + height + ";");
}
function popfix(pop,tname,width,height,flag)
{
  var url = pop;
  var wd = width;
  var he = height;
  var tn = tname;

  if ((window.navigator.userAgent.indexOf("SV1") != -1) || (window.navigator.userAgent.indexOf("MSIE 7") != -1)) {
    wd2 = wd + 16;
        
    if (flag == "0" )    {  
      window.open(url,tn,"toolbar=0,menubar=0,scrollbars=no,resizable=no,width=" + wd + ",height=" + he + ";");  }
    else  {  
      window.open(url,tn,"toolbar=0,menubar=0,scrollbars=yes,resizable=no,width=" + wd2 + ",height=" + he + ";");  }
  }
  else {
	wd2 = wd + 16;
	if (flag == "0" )    {  
		window.open(url,tn,"toolbar=0,menubar=0,scrollbars=no,resizable=no,width=" + wd +",height=" + he + ";");  }
	else  {  
		window.open(url,tn,"toolbar=0,menubar=0,scrollbars=yes,resizable=no,width=" + wd2 +",height=" + he + ";");  }  
	}
}


function isNumeric(str) { 
    var r = new RegExp("^[0-9]+$"); 
    return r.test(str);
}


function isAlphaNumeric( str ) {
    for ( var i = 0; i < str.length; i++ ) {
        if ( !( str.charAt( i ) >= '0' && str.charAt( i ) <= '9' ) &&
                !( str.charAt( i ) >= 'a' && str.charAt( i ) <= 'z' ) &&
                !( str.charAt( i ) >= 'A' && str.charAt( i ) <= 'Z' ) )
            return false;
    }
    
    return true;
}

function isEmail(str) { 
    var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)"); 
    var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$"); 
    return (!r1.test(str) && r2.test(str)); 
} 


function isPhone(str) { 
    var r = new RegExp("^[0-9]{2,4}-[0-9]{2,4}-[0-9]{4,4}$"); 
    return r.test(str); 
} 

/**********  table color change **********************/
function changeto(highlightcolor)
{
    source=event.srcElement;
    
	if (source.tagName=="TABLE")
	return;
	while(source.tagName!="TR")
	source=source.parentElement;
	if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
    source.style.backgroundColor=highlightcolor;
}

/**********  PNG24 Åõ¸íÃ³¸®  **********************/
function setPng24(obj) { 
	obj.width=obj.height=1; 
	obj.className=obj.className.replace(/\bpng24\b/i,''); 
	obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 
	obj.src='';  
	return ''; 
}

/**********  FAQ show/hide **********************/
var cmz=0;
var ctFlag="";
function cmdisplay(cstr,cdflag)
{  cmnum = cstr.substring(cstr.length - 2);
    cmstr = cstr.substring(0, cstr.length - 2);

    if (cdflag == "0" & document.getElementById(cmstr+cmnum).style.display=="block")
    {  return;     }
    else
    { 
		if(document.getElementById(cmstr+cmnum).style.display=="block")
        { 
            document.getElementById(cmstr+cmnum).style.display="none";
            ctFlag = document.getElementById("txt" + cmnum);
            ctFlag.className = "unsel";
               
            cmz=0;  
        }
        else 
        {
			ctFlag = document.getElementById("txt" + cmnum);
            ctFlag.className = "sel";
			
            if(cmz != 0)
            {  
                document.getElementById(cmstr+cmz).style.display="none";
                ctFlag = document.getElementById("txt" + cmz);
                ctFlag.className = "unsel";
                    
                document.getElementById(cmstr+cmnum).style.display="block";
                ctFlag = document.getElementById("txt" + cmnum);
                ctFlag.className = "sel";
            }
            document.getElementById(cmstr+cmnum).style.display="block";
            cmz=cmnum; 
        }
    }
}	 
	
/* top link JS  */
function topQuick(tlnk_str) {
	switch (tlnk_str) {
		case "Link1" : window.location.href = "/Eng/etc/sitemap.aspx";
			break;
		case "Link2" : window.location.href = "/Kor/default.aspx";
			break;

		default :	
	}	
}

function logoBTN() {	window.location.href = "/Eng/default.aspx";   }

/* footer JS  */
function footerMenu(lnk_str) {
	switch (lnk_str) {
		case "Link1" : window.open("http://shiec.co.kr/eng/main.aspx");
			break;
		case "Link2" : window.open("http://www.digitalvessel.com/");
			break;
		case "Link3" : window.open("http://www.sghotel.co.kr/eng/index.asp");
			break;
		case "Link4" : window.open("http://www.samsungfocus.com/main/index_frame.asp");
			break;

		default :	
	}	
}

function footerRight(lnk_str) {
	switch (lnk_str) {
		case "Link1" : window.location.href = "/Eng/etc/qna.aspx";
			break;
		case "Link2" : window.location.href = "/Eng/etc/rss.aspx";
			break;

		default :	
	}	
}

function showTopVisual() { 
  $("wrap_layer").moveTo(0, 566);
}

function hideTopVisual() { 
  $("wrap_layer").moveTo(0, 300);
} 

function resizeTopVisual(h){
	document.getElementById("wrap_layer").style.top = h + "px";
}

function selectVisualTab(n) {
  
	thisMovie("visualzone").selectTab(n);
	
}


function thisMovie(movieName) {
	if (navigator.appName.indexOf("Microsoft") != -1) {
		return document[movieName]
	}
	else {
	    
		return window[movieName]		
	}
}

function openTour() {
	popfix('/Eng/etc/p_cyber.aspx','',980,710,0);
}

function openShowRoom() {
	popfix('/Eng/etc/p_showroom.aspx','',920,560,0);
}

/* ¿ÜºÎ JS include */
document.write(' <script type="text/javascript" src="/Kor/common/js/selectBox.js"></script> ');