
//---- flash view -----//
function ShowFlash(url, width, height){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + width + '" height="' + height + '" VIEWASTEXT>');
	document.write('<param name="allowScriptAccess" value="always">');
	document.write('<param name="movie" value="..' + url + '">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="menu" value="false">');
	document.write('<PARAM NAME=wmode VALUE=transparent>');
	document.write('<embed src="..' + url + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed>');
	document.write('</object>');
}



//·Ñ¿À¹ö
function imgExchange(obj){

	imgName = obj.src.slice(obj.src.lastIndexOf('/') + 1, obj.src.length);
	imgPath = '/images/common/'; //ÀÌ¹ÌÁöÀ§Ä¡°¡ ¹Ù²î¸é ÀÌ°÷ÀÇ °æ·Îµµ ¹Ù²ãÁÖ¼¼¿ä

	if(imgName.indexOf('_ov') > 0){
		imgName = imgName.replace('_ov', '');
	}else{
		imgName = imgName.replace('.', '_ov.');
	}

	obj.src = imgPath + imgName;

}

//Å¬¸¯½Ã Å×µÎ¸® ¾È»ý±â´Â ¼Ò½º
function bluring()
{
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG")document.body.focus();
}
document.onfocusin=bluring
//ÅÇ¸Þ´º
function board(pst)
		{
		if(pst == 0)
		{
		board01.style.display = '';
		board02.style.display = 'none';
		board03.style.display = 'none';
		}
		else if(pst == 1)
		{
		board02.style.display = '';
		board01.style.display = 'none';
		board03.style.display = 'none';
		}
		else if(pst == 2)
		{
		board03.style.display = '';
		board01.style.display = 'none';
		board02.style.display = 'none';
		}
		}

// PODs. ÆíÁý³»¿ë ¹Ì¸®º¸±â Ã¢ È£Ãâ
function goPreview(viewType, storageCode) {
	var turl = "";
	var selfParam = "?storageid=" + storageCode+"&viewtype="+viewType;
	var selfWindow = "";

	if (viewType == "print") {
		turl = "/goods/preview_print.asp" + selfParam;
		selfWindow = window.open(turl, 'printPreview', 'width=750,height=550,scrollbars=yes');
	} else if (viewType == "identity") {
		alert('ÁØºñÁßÀÔ´Ï´Ù.');
	} else if (viewType == "photobook") {
		turl = "/goods/preview_photobook.asp" + selfParam;
		selfWindow = window.open(turl, 'photobookPreview', 'width=1000,height=700,scrollbars=auto');
	} else if (viewType == "photofancy") {
		alert('ÁØºñÁßÀÔ´Ï´Ù.');
	} else if (viewType == "calendar") {
		alert('ÁØºñÁßÀÔ´Ï´Ù.');
	} else {
		alert('¹Ì¸®º¸±â À¯ÇüÀ» ¼±ÅÃÇØÁÖ¼¼¿ä.');
	}

}
//Æ÷Åä½ºÅä¸® ¹Ì¸®º¸±â
function goPhotoStoryView(stgid) {
	turl = "/webzin/photostory.asp?stgid=" + stgid;
	window.open(turl,'Æ÷Åä½ºÅä¸®','scrollbars=yes,resizable=no,width=1007 height=800 top=100 left=100');
}

