﻿/**
 * 플래시 길이, 높이 값 설정
 *
 * @param flashIDstr	플래시 ID
 * @param widthNum		넓이
 * @param heightNum		높이
 */
function changeFlashSize( flashIDstr, widthNum, heightNum )
{
	var swfmovie = document.getElementById( flashIDstr );
	if( swfmovie )
	{
		if( widthNum != null ) swfmovie.setAttribute( "width", widthNum );
		if( heightNum != null ) swfmovie.setAttribute( "height", heightNum );
	}
}



/**
 * 페이지 이동 설정.
 *
 * @param pageURL		이동될 페이지
 * @param pageTarget	보여질 타겟
 */
function gotoPage( pageURL, pageTarget )
{
	if(target == "_blank")
	{
		if(opt == null) opt = "";
	
		var el = document.getElementById("flash_ticketing");
		if(el) el = el.parentNode;

		if(el)
		{
			onmouseout_callback = el.onmouseout;
			el.onmouseout = null;
		}
		
		if (navigator.appName.indexOf("Microsoft") == -1)
		{
			if(opt == "")
			{
				var w = window.screen.availWidth - 20;
				var h = window.screen.availHeight - 20;
				opt = "scrollbars=yes,top=0,left=0,height="+h+",width="+w+",status=yes,toolbar=yes,menubar=yes,location=yes,center=yes,resizable=yes,minimize=yes,maximize=yes";
			}
	
			newwindow = window.open(pageUrl, "", opt);	
		}
		else
		{
			newwindow = window.open(pageUrl, "", opt);
		}
		
		//if (window.focus) {newwindow.focus()}
		
		setTimeout("restoreMouseOutCallback()", 1000);
	}
	else
	{
		location.href = pageUrl;
	}
	
	return false;
}

/**
 * 담기 설정.
 */
function ADD()
{
	var FlashPlayer = document.getElementById("flash_mypage_pageinformation");
	 FlashPlayer.myAlbumADD();
}

/**
 * 빼기 설정.
 */
function MINUS()
{
	var FlashPlayer = document.getElementById("flash_mypage_pageinformation");
	FlashPlayer.myAlbumMINUS();
}

/**
 * 메인메뉴 숨겨질때
 */
function viewMenu( value ) 
{
	var flash = document.getElementById("flash_navigation");
	flash.view( value );
}

/* 플래시 오브젝트 생성 */
function _getFlash ( swfPath, swfWidth, swfHeight, swfQuality, etcOption )	{
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0' width=" + swfWidth+" height=" +swfHeight +">");
	document.write("<param name='movie' value='" + swfPath +"'>");
	document.write("<param name=quality value=high>");
	document.write("<param name='wmode' Value='Transparent'>");
	document.write("<embed src='" + swfPath + "' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width=" + swfWidth+" height=" +swfHeight +">");
	document.write("</embed>");
	document.write("</object>");
}