document.title="[Lotte Department Store] “Always with you”"


/*셀렉박스*/
function goToThisLink(obj) {
	if (obj) {
		var index = (obj.selectedIndex==-1) ? 0 : obj.selectedIndex;
		var option = obj.options[index];
		var url = option.value;
		var target = option.getAttribute("target");
		if (target==undefined||target=="") target = "_self";
		if (url!="") open(url, target, "");
	}
}

/*input default*/
function ClearText(obj){
		obj.value = "";
}

/*레이어 온오프*/
function Show_Layer(obj,total,num) {

	if (document.getElementById(obj.name + num).style.display != "none"){
		document.getElementById(obj.name + num).style.display = "none";
	}
	
	else {
	
		for (i=1;i<total+1;i++) {
			document.getElementById(obj.name + i).style.display = "none";
		}
		document.getElementById(obj.name + num).style.display = "block";
	}
}

/*링크에 점선없앰*/	
function allblur() {
document.title="lotteshopping"
  for (i = 0; i < document.links.length; i++) {
    var obj = document.links[i];
    if(obj.addEventListener) obj.addEventListener("focus", oneblur, false);
    else if(obj.attachEvent) obj.attachEvent("onfocus", oneblur);
  }
}
 
function oneblur(e) {
  var evt = e ? e : window.event;

  if(evt.target) evt.target.blur();
  else if(evt.srcElement) evt.srcElement.blur();
}

/*이미지 온오프*/
var ex_on = '';

function Img_OnOff(obj,name) {

	if ( name == '' ) {
		imgElement = obj.name;
	}
	else {
		imgElement = name;  
	}
	
		imgPath = obj.src; 
		imgPathLen = imgPath.length;
		imgPathFlag = imgPath.lastIndexOf("/");
		imgName = imgPath.substring(0,imgPathFlag+1);
		
		obj.src =  imgName + imgElement + "_on.gif";  
	
	
		if ( ex_on != '' && ex_on != imgName + imgElement){
		ex_imgPath.src = ex_on + "_off.gif";
		}

		ex_imgPath = obj
		ex_on = imgName + imgElement
	
}

function Img_OverOut(obj, flag){

	imgPath = obj.src; 
	imgPathLen = imgPath.length;
	imgPathFlag = imgPath.lastIndexOf("-");
	imgName = imgPath.substring(0,imgPathFlag+1);
	
	obj.src = imgName + flag +".gif";		
}

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 ''; 
} 

/********************************************************************************************************
	플래시
********************************************************************************************************/
function Flash_display(sFName, nWidth, nHeight, sVName, BGColor, Wmode ){	
	document.writeln ('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http:// fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ nWidth + '" height="'+ nHeight + '" id="'+ sVName +'" align="middle">');
	document.writeln ('<param name="allowScriptAccess" value="sameDomain" />');
	document.writeln ('<param name="movie" value="'+ sFName + '" />');
	document.writeln ('<param name="quality" value="high" />');
	document.writeln ('<param name="bgcolor" value="' + BGColor + '" />');
	document.writeln ('<param name="wmode" value="' + Wmode + '" />');
	document.writeln ('<embed src="'+ sFName + '" quality="high" bgcolor="#ffffff" width="'+ nWidth + '" height="'+ nHeight + '" name="'+ sVName +'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http:// www.macromedia.com/go/getflashplayer" /> ');
	document.writeln ('</object>');	
}

/********************************************************************************************************
	팝업창 오픈
********************************************************************************************************/
function uf_popOpen(url) {
	var positionX = 0;
	var positionY = 0;
//	var positionX = (screen.width-450)/2;
//	var positionY = (screen.height-250)/2;
	window.open(url,"","left="+positionX+",top="+positionY+",width=622,height=500,toolbar=no,scrollbars=no" );
}

/****** 팝업창 리사이즈 **************************************************************/
function uf_popResize() {
	var thisX = document.getElementById("offsetTable").offsetWidth;
	var thisY = document.getElementById("offsetTable").offsetHeight;
	var maxThisX = screen.width - 50;
	var maxThisY = screen.height - 80;
	if (window.navigator.userAgent.indexOf("SV1") != -1){
	var marginY = 29; //마지막 수는 상황에따라 알맞게 넣으세요. (템플릿의 헤더높이 + 풋터 높이 + 알파)
	} else {
	var marginY = 18; //마지막 수는 상황에따라 알맞게 넣으세요. (템플릿의 헤더높이 + 풋터 높이 + 알파)
	}
	
	if (thisX > maxThisX) {
		window.document.body.scroll = "yes";
		thisX = maxThisX;
	}
	if (thisY > maxThisY - marginY) {
		window.document.body.scroll = "yes";
		thisX += 19;
		thisY = maxThisY - marginY;
	}
	
	var windowX = (screen.width - (thisX+10))/2;
	var windowY = (screen.height - (thisY+marginY))/2 - 20;
//	window.moveTo(windowX,windowY);
	window.resizeTo(thisX+24,thisY+marginY);
}

/****** 팝업창 리사이즈 **************************************************************/

window.onload = allblur;

// 국문회사소개
function goKorea() {
	location.href = "/lotte/submain.jsp";
}

// 영문회사소개
function goEnglish() {
	location.href = "/english/index.jsp";
}

// 일문회사소개
function goJapanese() {
	location.href = "/japanese/index.jsp";
}

// 중문회사소개
function goChinese() {
	location.href = "/chinese/index.jsp";
}


