/***************************************************************************
 * filename : head.js<br>
 * 공통으로 사용되는 함수및 속성<br>
 *
 * @version	: 1.0
 * @author	: free270
****************************************************************************/
if(GLOBALHEAD_CLASS!=null) {
	alert("[head.js]는 이미 include 되어있습니다!!");
}
var GLOBALHEAD_CLASS = true;

//BODY태그의 onLoad() 이벤트에서 호출하는 함수
function init(){
	//해당페이지내에서 overriding되어짐
}
function closeWindow(){}

function goFamilySite(url){
	open(url);
}

function FFOpen(link, winname, option){
	var win;
	if(winname == null && option == null){
		win = window.open(link); 		
	}else{
		win = window.open(link, winname, option); 
	}

	if(win == null){
		if(confirm('Pop-up windows are blocked off with your current setting.\nTo view the contents, please allow pop-up windows for this website.\n\n현재 브라우즈에서 팝업창이 차단되어 있습니다.\n팝업창을 허용해 주셔야 컨텐츠를 보실 수 있습니다.')){
			//location.href= GLOBAL_ROOT + '/customer/xphelp.html';
		}
	}
	//win.focus();
	return win;
}

function showEmbedObject(objid){
	var obj = document.getElementById(objid)
	document.write(obj.innerHTML);
	obj.id = "";
}

function showFlashObject(url, id,  width, height, bgcolor, transparent){

document.write("<object id='" + id + "' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='" + width + "' height='" + height + "'>");
document.write("<param name='movie' value='" + url + "'>");
document.write("<param name='quality' value='high'>");

if(bgcolor != null){
	document.write("<param name='bgcolor' value='high'>");
}
if(transparent != null && transparent){
	document.write("<param name='wmode' value='transparent'>");
}


document.write("<embed src='" + url + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + width + "' height='" + height + "'");
if(bgcolor !== null){
	document.write(" bgcolor='" + bgcolor + "' ");
}
if(transparent != null && transparent){
	document.write(" wmode='transparent' ");
}

document.write("></embed>");
document.write("</object>");


}