﻿		   

/********************************************************************************************************
	Flash_Select
********************************************************************************************************/

function SetMainMenuFlashVars(pageNum, subNum)
{
	document.topmainflash.FlashVars = 'pageNum='+pageNum+'&subNum='+subNum;
}

function SetLeftMenuFlashVars(pageNum, subNum)
{
	document.leftmenu.FlashVars = 'pageNum='+pageNum+'&subNum='+subNum;
}
			   

/********************************************************************************************************
	Family site Link (footer)
********************************************************************************************************/

// Family site Link //
function goSite() {
	if(document.getElementById("site").value == "") {
		alert("Family site를 선택하세요.");
		document.getElementById("site").focus();
		return;
	} 

	path = document.getElementById("site").value;
	
	window.open(path);
}
/*********************/




/********************************************************************************************************
	팝업창 오픈
********************************************************************************************************/
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=300,height=300,toolbar=no,scrollbars=no" );
}


function uf_CartoonPop(url)
{
	var appVer=navigator.appVersion.substring(25,22);
	if(appVer=="5.5" || appVer=="6.0"){  // 버전이 6.0 이거나 5.5 일때
	  window.open(url,"","left=0, top=0, width=1216, height=820, toolbar=no,resizable=yes, scrollbars=yes" );
	  self.opener=self;
	}else { 
		window.open(url,"","left=0 top=0 width=1216 height=820 toolbar=no resizable=yes scrollbars=yes" );
	}
	
}





/****** 팝업창 리사이즈 **************************************************************/
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 = 50; //마지막 수는 상황에따라 알맞게 넣으세요. (템플릿의 헤더높이 + 풋터 높이 + 알파)
	} else {
	var marginY = 29; //마지막 수는 상황에따라 알맞게 넣으세요. (템플릿의 헤더높이 + 풋터 높이 + 알파)
	}
	
	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+10,thisY+marginY);
}

/****** 팝업창 리사이즈 **************************************************************/


/********************************************************************************************************
	팝업창 오픈
********************************************************************************************************/
function popup(pop,width,height,flag)
{
	var url = pop;
	var wd = width;
	var he = height;

	if (flag == 0 )
	{
		window.open(url,"","toolbar=0,menubar=0,scrollbars=no,resizable=no,left=0,top=0,width=" + wd +",height=" + he + ";")
	}
	else
	{
		window.open(url,"","toolbar=0,menubar=0,scrollbars=yes,resizable=no,left=0,top=0,width=" + wd +",height=" + he + ";")
	}
}
/********************************************************************************************************
	MAIN_채용정보 레이어
********************************************************************************************************/

		function recruit_view() {
			layer_recruit.style.display = "";
		}
		
		function recruit_hide() {
			layer_recruit.style.display = "none";
		} 	 
		
		function pop_view() {
			layer_popup.style.display = "";
		}
		
		function pop_hide() {
			layer_popup.style.display = "none";
		}   
		
		function pop_view02() {
			layer_popup02.style.display = "";
		}
		
		function pop_hide02() {
			layer_popup02.style.display = "none";
		}
		
/********************************************************************************************************
	이메일주소 수집거부 레이어
********************************************************************************************************/

		function email_view() {
			email_deny.style.display = "";
		}
		
		function email_hide() {
			email_deny.style.display = "none";
		}




/********************************************************************************************************
	MENU_LINK
********************************************************************************************************/
					    


// AMCO
function amco_00() {location.href = "/main.aspx";} 

// SITEMAP
function sitemap_00() {location.href = "/site/sitemap.aspx";} 

// CONTACT US
function contactus_00() {location.href = "/customer/question.aspx";} 

// ENGLISH
function english_00() {location.href = "/en/main.aspx";} 

// 채용정보
function recruit_01() {window.open ("http://recruit.amco.co.kr/");} 
// 자율준수프로그램
function program_01() {window.open ("http://cph.amco.co.kr/");} 
// 자재구매시스템
function system_01() {window.open ("http://mp.vaatz.com:7474/kor/front/index.jsp");} 
// 전자계약시스템
function system_02() {window.open ("http://econtract.amco.co.kr/");} 
// 분양금조회
function inquiry_01() {location.href = "/customer/research.aspx";} 
// A/S 접수
function inquiry_02() {window.open ("http://amcoservice.amco.co.kr/customer");} 
// cyber_room
function cyber_room_01() {window.open ("http://cyberaudit.amco.co.kr:8101/");} 

// 개인정보보호정책
function protect_01() {location.href = "/site/protect.aspx";} 
// 이메일주소무단수집거부
function email_01() {location.href = "javascript:email_view();";} 



// 기업정보
function about_00()  //  기업정보
{ 
location.href = "/about/info.aspx";
} 
	function about_01() {location.href = "/about/info.aspx";} //개요
	function about_02() {location.href = "/about/ceo.aspx";} //CEO인사말
	function about_03() {location.href = "/about/vision.aspx";} //비전 및 경영철학
	function about_04() {location.href = "/about/quality01.aspx";} //품질 안전 환경
	function about_10() {location.href = "/about/value.aspx";} //핵심가치 정립
	function about_05() {location.href = "/about/history.aspx";} //연혁
	function about_06() {location.href = "/about/system.aspx";} //조직도
	function about_07() {location.href = "/about/network01.aspx";} //글로벌네트워크
	function about_08() {location.href = "/about/recruit.aspx";} //채용정보
	function about_09() {location.href = "/about/map.aspx";} //오시는 길


// 사업소개
function business_00()  //  사업소개
{ 
location.href = "/business/intro.aspx";
} 
	function business_01() {location.href = "/business/intro.aspx";} //주요사업소개
	function business_02() {location.href = "/business/building01.aspx";} //건축사업_사업소개
	function business_022() {location.href = "/business/building02.aspx";} //건축사업_사업실적
	function business_03() {location.href = "/business/engineer01.aspx";} //토목사업_사업소개
	function business_032() {location.href = "/business/engineer02.aspx";} //토목사업_사업실적
	function business_04() {location.href = "/business/foreign01.aspx";} //해외사업_사업소개
	function business_042() {location.href = "/business/foreign02.aspx";} //해외사업_사업실적
	function business_05() {location.href = "/business/house01.aspx";} //주택사업_사업소개
	function business_052() {location.href = "/business/house02.aspx";} //주택사업_사업실적
	function business_053() {location.href = "/business/info01.aspx";} //주택사업_분양정보
	function business_06() {location.href = "/business/fm01.aspx";} //FM사업_사업소개
	function business_062() {location.href = "/business/fm02.aspx";} //FM사업_사업실적


// 첨단기술력
function technology_00()  //  첨단기술력
{ 
location.href = "/technology/module.aspx";
} 
	function technology_01() {location.href = "/technology/module.aspx";} //모듈화공법
	function technology_02() {location.href = "/technology/floating.aspx";} //Floating Dock


// 사회공헌
function contribution_00()  //  사회공헌
{ 
location.href = "/contribution/info.aspx";
} 
	function contribution_01() {location.href = "/contribution/info.aspx";} //사회공헌 소개
	function contribution_02() {location.href = "/contribution/active01.aspx";} //사회공헌 활동


// 사이버홍보
function cyber_00()  //  사이버홍보
{ 
location.href = "/cyber/news_list.aspx";
} 
	function cyber_01() {window.self.location.href = "/cyber/news_list.aspx";} //최신뉴스
	function cyber_02() {window.self.location.href = "/cyber/sale_list.aspx";} //분양소식
	function cyber_03() {location.href = "/cyber/press_list.aspx";} //보도자료
	function cyber_04() {location.href = "/cyber/ci.aspx";} //CI BI_CI 소개
	function cyber_042() {location.href = "/cyber/bi01.aspx";} //CI BI_BI 소개
	function cyber_05() {location.href = "/cyber/pr01.aspx";} //홍보자료_TV 광고
	function cyber_053() {location.href = "/cyber/pr03.aspx";} //홍보자료_홍보영상
	function cyber_06() { location.href = "/cyber/amco_pr01.aspx";} //엠코광고_기업이미지광고
	function cyber_062() { location.href = "/cyber/amco_pr02.aspx";} //엠코광고_분양광고
	function cyber_07() {location.href = "/cyber/love.aspx";} //e-사보
	function cyber_08() {location.href = "/cyber/cartoon.aspx";} //기업홍보만화



// 고객센터
function customer_00()  //  고객센터
{ 
location.href = "/customer/faq_list.aspx";
} 
	function customer_01() {location.href = "/customer/faq_list.aspx";} //자주묻는 질문
	function customer_02() {location.href = "/customer/question.aspx";} //고객상담
	function customer_03() {location.href = "/customer/company.aspx";} //사업상담
	function customer_04() {location.href = "/customer/research.aspx";} //분양금조회
	function customer_05() {window.open ("http://cyberaudit.amco.co.kr/");} //사이버감사실


// 엠코타운체험관
function amcotown_00()  //  엠코타운체험관
{ 
location.href = "/etc/amco_town.aspx";
} 
// 엠코타운
//function amcotown_01() {window.open ("http://www.amco.co.kr/etc/amco_town.aspx");} 

// 엠코타운
function amcotown_01()  //  엠코타운
{ location.href = "/etc/amco_town.aspx";}

// 엠코타운
function amcotown_02() {window.open ("http://www.amcotown.co.kr/prj/p_info/p_i_overview.asp?hPROJECT_ID=03&hMENU1=sell&hMENU2=housing4");} 


// 이브로슈어
function ebrocher_00()  //  이브로슈어
{ 
location.href = "javascript:popup('/etc/ebrocher.aspx','1000','630',0);";
} 

// 블루몬테
function blue_00() {window.open ("http://blumonte.amco.co.kr");} 

// 뉴스플라자
function newsplaza_00() {window.open ("http://news.hyundai-kiamotors.com");} 


// 첨단기술력
function module() //모듈화 공법 Visual Tour
{ 
//location.href = "javascript:alert('모듈화 공법 Visual Tour')";
location.href = "javascript:popup('/etc/tech01.aspx','735','617',0);";
} 
function floating() //Floating Dock 공법 보기
{ 
//location.href = "javascript:alert('Floating Dock 공법 보기')";
location.href = "javascript:popup('/etc/tech02.aspx','735','617',0);";
}

//엠코타운 브로슈어 보기
function amcotown_bro()
{ 
location.href = "javascript:alert('엠코타운 브로슈어 보기')";
}
	 
//******************************************************************//
// 메인 플래시 링크부분 

amcotown = new Array("","javascript:amcotown_02()")  //  울산엠코타운링크주소

//amcotown = new Array("","javascript:amcotown_00()") //엠코타운링크주소
banner_01 = new Array("","javascript:ebrocher_00()")  //  01_이브로슈어
banner_02 = new Array("","javascript:cyber_07()")  //  02_e-사보
banner_03 = new Array("","javascript:amcotown_01()")  //  03_엠코타운
banner_04 = new Array("","javascript:newsplaza_00()")  //  04_뉴스플라자
//banner_04 = new Array("","javascript:blue_00()")  //  04_블루몬테

quick_01 = new Array("","javascript:technology_01()")  //  01_모듈화공법
quick_02 = new Array("","javascript:technology_02()")  //  02_F/D공법
quick_03 = new Array("","javascript:contribution_00()")  //  03_사회공헌
		 
		 
//******************************************************************//
// leftmenu 플래시 링크부분 	 
left_quick_01 = new Array("","javascript:amcotown_00()")  //  엠코타운체험관
left_quick_02 = new Array("","javascript:ebrocher_00()")  //  이브로슈어


//******************************************************************//
// 주요사업소개 페이지 플래시 링크부분 

view_01 = new Array("","javascript:business_03()")  //  토목사업
view_02 = new Array("","javascript:business_02()")  //  건축사업
view_03 = new Array("","javascript:business_05()")  //  주택사업
view_04 = new Array("","javascript:business_06()")  //  FM사업
view_05 = new Array("","javascript:business_04()")  //  해외사업
															   

//******************************************************************//
// AMCO_intro			 
lan_ko = new Array("","javascript:amco_00()")  //  Korea
lan_en = new Array("","javascript:english_00()")  //  English

///////////////////////////////////////////////////////////////

//
function DetailView(name, win) {	
	if (eval(name)[1] == "") {
		// alert("서비스 준비중입니다.");
		return;	
	} else {
		if (eval(name)[0] == null || eval(name)[0] == "") {
//			parent.location.href = eval(name)[1];
			location.href = eval(name)[1];
		} else {
			if(eval(name)[0] == "new"){
				window.open(eval(name)[1],"","");
			}else if(eval(name)[0] == "pop"){
				window.open(eval(name)[1],"mini",eval(name)[2]);			
			}else if(eval(name)[0] == "top"){
				top.location.href = eval(name)[1];
			}
		}
	}
}

///////////////////////////////////////////////////////////////

