/********************************************************************************************************
	image over / out
********************************************************************************************************/
function setIMG(thisImg, sMode) {
	var sPath = thisImg.src;
	var sCommonPath = sPath.substring(0, sPath.lastIndexOf("_") + 1);
	var sType = sPath.substring(sPath.lastIndexOf("."), sPath.length);
	//alert(sCommonPath + "on" + sType);
	thisImg.src = sCommonPath + sMode + sType;
}

function goRegion(ref) {
	if (ref == '')
		return;
		
	location.href = ref;
}

function goSite(obj) {	
	if (obj.value != "") {
		window.open(obj.value,"_blank","");
	}
}

function goGcsc(form) {		
	var sel_index = form.country.selectedIndex;
	
	if (sel_index != 0) {
		form.CNT.value = 	form.country.options[sel_index].value;
		form.submit();
	}else {
		alert("Select country / region");
	}
}

function Flash(id,url,w,h,bg,t){
	document.write("\
	<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0' width="+w+" height="+h+" id="+id+">\
	<param name='movie' value="+url+" />\
	<param name='wmode' value="+t+" />\
	<param name='bgcolor' value="+bg+" />\
	<param name='allowScriptAccess' value='sameDomain' />\
	<param name='quality' value='high' />\
	<param name='menu' value='false' />\
	<embed src="+url+" wmode="+t+" width="+w+" height="+h+" name="+id+" bgcolor="+bg+" allowScriptAccess='sameDomain' quality='high' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />\
	</object>\
	");
}

function pop(tgt,name,w,h){ 
	if (tgt == '/experience/story/pub_eng/intro.htm') 
		location.href = '/about/corporate/history.jsp';
		
	window.open(tgt,name,'width='+w+',height='+h+',scrollbars=no');
}

function pops(url,name,w,h){ window.open(url,name,'width='+w+',height='+h+',scrollbars=yes') }

function downAction(fpath, fname) {
	location.href = '/DownloadJsp.jsp?filePath=' + fpath + '&fileName=' + fname;
}

function popngo(page, pop_page, name, w, h) {
	window.open(pop_page, name,'width='+w+',height='+h+',scrollbars=no');
	location.href = page;
}

function __ShowEmbedObject(__ELEMENT_ID) {
	var msie = (document.all) ? true : false;
	
	if (msie) {
		document.write( __ELEMENT_ID.text );
		__ELEMENT_ID.id = "";
	}
}

function popup(url) {
	var width = 670;
	var height = 520;
	
	if (url == "/products/contents/tv/pdp/flash.htm") {
		width = 670;
		height = 576;
	} else if (url == "/products/contents/home_cinema_system/flash.htm") {
		width = 670;
		height = 520;
	} else if (url == "/products/contents/washingmachine/flash.htm") {
		width = 670;
		height = 520;
	} else if (url == "/products/contents/notebook/flash.htm") {
		width = 670;
		height = 520;
	} else if (url == "/products/LG_Mobile/LGmobile.htm" || url == "/products/contents/home_theater_ht762/main.html") {
		width = 750;
		height = 520;
	}	

	newwin=window.open(url,"new","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + width + ",height=" + height); 
}
