// Link to Japan
function sendUrl(str) {
	var userSel = window.confirm('We apologize for the inconvenience.\nThe following pages are available only in Japanese.\nPlease click OK to view the contents in Japanese.')
	//alert(userSel)
	if(userSel != false) {
		window.open(str, "_new");
	}
}

// Link to English
function sendUrl_eng(str) {
	var userSel = window.confirm('We apologize for the inconvenience.\nThe following pages are available only in English.\nPlease click OK to view the contents in English.')
	//alert(userSel)
	if(userSel != false) {
		window.open(str, "_new");
	}
}

// hotel contents menu highlight

function CHclass(obj,num) {
	for (i=1;i<num+1;i++) {
		document.getElementById("ch_link" + i).className = "";
	}
	obj.className = "on";
}


// service popup open
function popOpen(url) {
	var positionX = (screen.width-612)/2;
	var positionY = (screen.height-500)/2;
	window.open(url,"","left="+positionX+",top="+positionY+",width=612,height=490,toolbar=no,scrollbars=yes" );
}

// popup to opener
function LinktoOpener() {
	opener.location.replace("../service/use.html");
	opener.focus();
}

// Flash Load
function flash(flashid, flashfilename, flashwidth, flashheight, flashvars) {
	document.write('<object id="' + flashid + '" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ flashwidth +'" height="'+ flashheight +'">');
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<param name="movie" value="'+ flashfilename +'">');
	if (flashvars) document.write('<param name="flashVars" value="'+ flashvars +'">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed wmode="transparent" name="' + flashid + '"');
	if (flashvars) document.write(' flashVars="'+ flashvars +'" ');
	document.write(' src="'+ flashfilename +'" width="'+ flashwidth +'" height="'+ flashheight +'" ');
	document.write(' allowScriptAccess="always" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" >');
	document.write('</embed>');
	document.write('</object>');
}

// Flash Link Data
// top GNB
function Home() { //home
	location.href="../index.html"
}
function attraction() { // 어트랙션
	location.href="../attraction/list.html"
}
function character() { // 캐릭터
	location.href="../character/main.html"
}
function restaurant() { // 레스토랑
	location.href="../restaurant/japanese.html"
}
function shopping() { // 쇼핑
	location.href="../shopping/souvenir.html"
}
function schedule() { // 영업시간
	location.href="../schedule/main.html"
}
function access() { // 교통
	location.href="../access/train01.html"
}
function ticket() { // 티켓
	location.href="../ticket/kind.html"
}
function service() { // 서비스 안내
	location.href="../service/total.html"
}
function hotel() { // 호텔
	location.href="../hotel/hotel_list.html"
}
function news() { // 뉴스
	location.href="../etc/news_01.html"
}
function company() { // 유니버셜스튜디오재팬™이란?
	location.href="../etc/company.html"
}
function sitemap() { // 사이트맵
	location.href="../etc/sitemap.html"
}
function lang_kr() { // Language > 한국어
	top.location.href="http://www.usj.co.kr/"
}
function lang_jp() { // Language > 일본어
	top.location.href="http://www.usj.co.jp/"
}
function lang_eng() { // Language > 영어
	topt.location.href="http://www.usj.co.jp/e/"
}
function lang_big1() { // Language > 번체(타이완)
	top.location.href="http://www.usj.tw/"
}
function lang_big2() { // Language > 번체(홍콩)
	top.location.href="http://www.usj.hk/"
}
function lang_gb() { // Language > 간체
	top.location.href="http://www.usj2.cn/"
}
function lang_ti() { // Language > 타이어
	top.location.href="http://www.usj.in.th/"
}


// attraction submain
function space_att_1() {	//어트랙션 > 라이드 어트랙션 > 스페이스 환타지 더 라이드
	location.href ="../attraction/space.html";
}
function ride_att_1() {	//어트랙션 > 라이드 어트랙션 > 할리우드 드림 더 라이드
	location.href ="../attraction/hollywood.html";
}
function ride_att_2() {	//어트랙션 > 라이드 어트랙션 > 어메이징 어드벤처 오브 스파이더맨™ 더 라이드
	location.href ="../attraction/spiderman.html";
}
function ride_att_3() {	//어트랙션 > 라이드 어트랙션 > 쥬라기공원 더 라이드®
	location.href ="../attraction/jurassicpark.html";
}
function ride_att_4() {	//어트랙션 > 라이드 어트랙션 > 죠스®
	location.href ="../attraction/jaws.html";
}
function ride_att_5() {	//어트랙션 > 라이드 어트랙션 > 백 투 더 퓨처® 더 라이드
	location.href ="../attraction/backtothefuture.html";
}
function ride_att_6() {	//어트랙션 > 라이드 어트랙션 > E.T. 어드벤처®
	location.href ="../attraction/et.html";
}
function ride_att_7() {	//어트랙션 > 라이드 어트랙션 > 매지컬 오즈 고 라운드
	location.href ="../attraction/magicaloz.html";
}
function ride_att_8() {	//어트랙션 > 라이드 어트랙션 > 페퍼민트 패티의 스턴트 슬라이드™
	location.href ="../attraction/snoopyplayland.html";
}
function ride_att_9() {	//어트랙션 > 라이드 어트랙션 > 스누피의 그레이트 레이스™
	location.href ="../attraction/snoopyadvanture.html";
}
function show_att_1() {	//어트랙션 > 쇼 어트랙션 > 환타스틱 월드
	location.href ="../attraction/fantastic.html";
}
function show_att_2() {	//어트랙션 > 쇼 어트랙션 > 피터팬의 네버랜드
	location.href ="../attraction/neverland.html";
}
function show_att_3() {	//어트랙션 > 쇼 어트랙션 > 위키드
	location.href ="../attraction/wicked.html";
}
function show_att_4() {	//어트랙션 > 쇼 어트랙션 > 토토＆프렌즈
	location.href ="../attraction/toto.html";
}
function show_att_5() {	//어트랙션 > 쇼 어트랙션 > 워터월드™
	location.href ="../attraction/waterworld.html";
}
function show_att_6() {	//어트랙션 > 쇼 어트랙션 > 터미네이터 2：3-D®
	location.href ="../attraction/terminater.html";
}
function show_att_7() {	//어트랙션 > 쇼 어트랙션 > 백드래프트®
	location.href ="../attraction/backdraft.html";
}
function show_att_8() {	//어트랙션 > 쇼 어트랙션 > 유니버설 몬스터 라이브 록큰롤 쇼™
	location.href ="../attraction/monster.html";
}
function show_att_9() {	//어트랙션 > 쇼 어트랙션 > 애니메이션 셀레브레이션®
	location.href ="../attraction/animation.html";
}
function show_att_10() { //어트랙션 > 쇼 어트랙션 > 슈렉 4-D 어드벤처™
	location.href ="../attraction/shrek.html";
}
function show_att_11() { //어트랙션 > 쇼 어트랙션 > 세서미 스트리트 4-D 무비 매직™
	location.href ="../attraction/sesame.html";
}
function show_att_12() { //어트랙션 > 쇼 어트랙션 > 매지컬 스타라이트 퍼레이드
	location.href ="../attraction/parade.html";
}
function play_att_1() {	//어트랙션 > 플레이 존 > 스누피 사운드 스테이지 어드벤처™
	location.href ="../attraction/snoopyadvanture.html";
}
function play_att_2() {	//어트랙션 > 플레이 존 > 스누피 플레이랜드™
	location.href ="../attraction/snoopyplayland.html";
}

// charact submain
function character_1() { // 캐릭터 > 딱다구리™와 친구들
	location.href ="../character/woodywoodpecker.html";
}
function character_2() { // 캐릭터 > 스누피와 친구들
	location.href ="../character/snoopy.html";
}
function character_3() { // 캐릭터 > 슈렉과 친구들
	location.href ="../character/shrek.html";
}
function character_4() { // 캐릭터 > 세서미스트리트™ 친구들
	location.href ="../character/sesamestreet.html";
}
function character_5() { // 캐릭터 > 헬로 키티
	location.href ="../character/hellokitty.html";
}
function character_6() { // 캐릭터 > 핑크 팬더
	location.href ="../character/pinkpanther.html";
}
function character_7() { // 캐릭터 > 베티 붑™
	location.href ="../character/bettyboop.html";
}
function character_8() { // 캐릭터 > 뽀빠이®와 친구들
	location.href ="../character/popeye.html";
}
function character_9() { // 캐릭터 > 오즈의 마법사 친구들
	location.href ="../character/thewizardofoz.html";
}
function character_10() { // 캐릭터 > 크래쉬 밴디쿳™
	location.href ="../character/crash.html";
}
function character_11() { // 캐릭터 > 어트랙션 캐릭터
	location.href ="../character/attraction.html";
}

// restaurant
function restaurant_1() { // 레스토랑 > 일식
	location.href ="../restaurant/japanese.html";
}
function restaurant_2() { // 레스토랑 > 면
	location.href ="../restaurant/noodle.html";
}
function restaurant_3() { // 레스토랑 > 밥
	location.href ="../restaurant/rice.html";
}
function restaurant_4() { // 레스토랑 > 중식
	location.href ="../restaurant/chinese.html";
}
function restaurant_5() { // 레스토랑 > 이태리 요리
	location.href ="../restaurant/italian.html";
}
function restaurant_6() { // 레스토랑 > 햄버거
	location.href ="../restaurant/hamburger.html";
}
function restaurant_7() { // 레스토랑 > 가벼운 식사
	location.href ="../restaurant/lightmeal.html";
}
function restaurant_8() { // 레스토랑 > 디저트
	location.href ="../restaurant/sweets.html";
}
function restaurant_9() { // 레스토랑 > 아이스크림
	location.href ="../restaurant/icecream.html";
}

//shopping
function shopping_1() { // 쇼핑 > 기념품샵
	location.href ="../shopping/souvenir.html";
}
function shopping_2() { // 쇼핑 > 테마샵
	location.href ="../shopping/theme.html";
}
function shopping_3() { // 쇼핑 > 포토서비스
	location.href ="../shopping/photo.html";
}
function shopping_4() { // 쇼핑 > 게임
	location.href ="../shopping/game.html";
}
function shopping_2_1(){ // 캐릭터 상세 아비 >> 쇼핑
	location.href="../shopping/theme.html#link_ch1";
}
function shopping_2_2(){ // 캐릭터 상세 헬로키티 >> 쇼핑
	location.href="../shopping/theme.html#link_ch2";
}
function shopping_2_3(){ // 캐릭터 상세 핑크팬더 >> 쇼핑
	location.href="../shopping/theme.html#link_ch3";
}

//main_event
function event_1() {
	location.href="../etc/news_01.html";
}
function event_2() {
	location.href="../etc/news_03.html";
}

//use
function use() {
	location.href="../etc/use.html";
}