function getFlashVersion(){ 
  // ie 
  try { 
    try { 
      // avoid fp6 minor version lookup issues 
      // see: http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/ 
      var axo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6'); 
      try { axo.AllowScriptAccess = 'always'; } 
      catch(e) { return '6,0,0'; } 
    } catch(e) {} 
    return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1]; 
  // other browsers 
  } catch(e) { 
    try { 
      if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){ 
        return (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1]; 
      } 
    } catch(e) {} 
  } 
  return '0,0,0'; 
} 

function getFlashVersionToNumber(str){ 
	var arr=str.split(",")
	var txt=""
	for ( var i=0 ; i<arr.length; i++ ) {
		var p=arr[i];
		if(Number(p)<10) {
		  txt+="0"+p
		}
		else {
		  txt+=p
		}
	}
	return Number(txt)
} 


function resizeNav(isOpen)
{
	var nav=document.getElementById("NavMenu")
	if(!nav)
		nav=NavMenu
	if(isOpen)
	{
		nav.height=443
	}
	else
	{
		nav.height=193
	}
}


function FlashGen(id, w, h, url, trans, color, arrowDomain)
{
	if(color == null) color = "#FFFFFFF"; 
	if(trans == null) trans = "transparent"; 
	if(arrowDomain == null) color = "#always";
	//alert(url)
	//var _globlURL="./Flash/";
	//var _globlURL="./Flash/";

	//if(navigator.appName == "Mxxxxx")
	//if(navigator.appName == "Microsoft Internet Explorer")
	if (navigator.appName == "Microsoft Internet Explorer") {
		var url=url;
		if (arrowDomain){
			var arrowDomainT = "always";
		}
		else {
			var arrowDomainT = "always";
		}	
		document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=10,0,32,18' width="+w+" height="+h+" id='"+id+"'>")
		document.write("<param name='movie' value='"+url+"'/>");
		document.write("<param name='quality' value='best' />");
		document.write("<param name='allowFullScreen' value='true' />");
		document.write("<param name='wmode' value='"+trans+"' />");
		document.write("<param name='allowScriptAccess' value='"+arrowDomainT+"' />");
		document.write("<embed src='"+url+"' quality='high' wmode='"+trans+"' width="+w+" height="+h+" name='"+id+"' align='middle' allowScriptAccess='"+arrowDomainT+"' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
		document.write("</object>");
	}
	else {
		wmode='wmode="'+trans+'"'
		document.write( '<embed id="'+id+'" src="'+url+'" quality="high" '+wmode+' style="width:'+w+'; height:'+h+';" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	}
	
}

function getVersion(){
 var browser=navigator.appName; 
var b_version=navigator.appVersion; 
var version=parseFloat(b_version); 
	if(browser.indexOf("Microsoft")!=-1){
		return "ie"
	}else{
		return "etc"
	}
}

function popup(url,cw,ch,scroll,resize) {
    var sw=screen.availWidth;
    var sh=screen.availHeight;
    var px=(sw-cw)/2;
    var py=(sh-ch)/2;
    window.open(''+url+'','�ű�����','left='+px+',top='+py+',width='+cw+',height='+ch+',toolbar=no,menubar=no,status=no,scrollbars='+scroll+',resizable='+resize);
}

var isFmailySite=false

function showFmailySite() {
	showFmailySiteHandle(!isFmailySite)
}

function showFmailySiteHandle(b)
{
	isFmailySite=b
	try{
		var div=divFamilySite
		var flash=FamilySiteM
	} catch(e)
	{
		div=document.getElementById("divFamilySite")
		flash=document.getElementById("FamilySiteM")
	}

	div.style.top=document.body.scrollTop+((document.body.clientHeight-420)/2)
	if(b) {
		flash.style.height=420
	}
	else {
		flash.style.height=1
	}
}
