//앨범 리스트 변경하기
function type_change(type)
{
	location.replace("newAlbum_list.ifrm.html?type="+type);
}

function type_change1(type)
{
	location.replace("albumList.ifr.html?type="+type);
}
//[음악메인] 앨범 리스트 변경하기
function type_changeMM(type,page)
{
	location.replace("album_list.ifrm.html?type="+type+"&page="+page);
}

//[음악메인2] 앨범 리스트 변경하기
function type_change2(type,page)
{
	location.replace("index_album_list.ifrm.html?type="+type+"&page="+page);
}

function goAlbumInfoP(album_id,page){
	if(album_id)
	parent.location.href("/cont/music/album/newAlbum_detail.html?album_id="+album_id+"&page="+page);
}

function goAlbumInfo(album_id){
	if(album_id)
	location.href("/cont/music/album/newAlbum_detail.html?album_id="+album_id);
}

function goArtistInfo(artist_id){
	if(artist_id)
	parent.location.href("/cont/music/album/newAlbum_artist.html?artist_id="+artist_id);
}

function goAlbumInfo01(album_id){
	if(album_id)
	location.replace("newAlbum_detail01.ifrm.html?album_id="+album_id);
}

function goAlbumInfo02(album_id){
	if(album_id)
	location.replace("newAlbum_detail02.ifrm.html?album_id="+album_id);
}

function goAlbumInfo03(album_id){
	if(album_id)
	location.replace("newAlbum_detail03.ifrm.html?album_id="+album_id);
}

function listenAlbum(album_id){
	if(checkLogin())
	{
		if(album_id)
		iframePs.location.replace("/cont/music/pop.html?mode=listen&from=new&album_id="+album_id);
	}
}

function downAlbum(album_id){
	if(checkLogin())
	{
		if(album_id)
		__openMp3Down(album_id);
	//	iframePs.location.replace("/cont/music/pop.html?mode=down&album_id="+album_id);
	}
}

function buyAlbum(no){
	if(checkLogin())
	{
		if(no)
		parent.location.href("/shop/mall.php?cat=016000000&query=view&no="+no);
	}
}

function newAlbumImage(albumImg, kind, size, exec)
{
	var strImg = "";
	if(kind == undefined || kind == null) kind = "";

	if(kind == "new")
	{
		strImg = '<div id="albumImg" style="position:relative; width:84; height:84; overflow:hidden" onclick="javascript:'+exec+'">';
		strImg += '<div id="upImg" style="position:absolute; width:25; height:25; left:0; top:0; z-index:100">';
		strImg += '<img src="http://image.ccmlove.com/main/images/album_icon_new.gif" width="33" height="33" border="0"></div>';
		strImg += '<div id="aImge" style="position:absolute; left:0; top:0; z-index:1">';
		strImg += '<img src="'+albumImg+'" width="'+size+'" height="'+size+'" border="0" style="cursor:hand;"></div>';
		strImg += '<div>';
	}
	else
	{
		strImg = '<div id="albumImg" style="position:relative; width:84; height:84; overflow:hidden" onclick="javascript:'+exec+'">';
		strImg += '<div id="aImge" style="position:absolute; left:0; top:0; z-index:1">';
		strImg += '<img src="'+albumImg+'" width="'+size+'" height="'+size+'" border="0" style="cursor:hand;" onclick="javascript:'+exec+'"></div>';
		strImg += '<div>';
	}

	document.write(strImg);
}