function setHomepage(sURL) {
	try {
		this.setHomePage(sURL);
	} catch (e) {
		alert("¿À·ù³»¿ë : " + e + "\n\n½ÃÀÛÆäÀÌÁö·Î µî·ÏÁß ¿À·ù¹ß»ý!");
	} finally {
	}
}

function addFavorite(sURL, sTitle) {
	try {
		window.external.AddFavorite(sURL, sTitle);
	} catch (e) {
		alert("¿À·ù³»¿ë : " + e + "\n\nÁñ°ÜÃ£±â¿¡ µî·ÏÁß ¿À·ù¹ß»ý!");
	} finally {
	}
}

function viewFavorite(iPosition, iLeft, iTop, sImg) {
	if(iPosition == 0) {
		sPosition = "relative";
	} else {
		sPosition = "absolute";
	}
	if(iLeft.length == 0) 
		iLeft = "970px";
	if(iTop.length == 0)
		iTop = "10px";
	
	var imgPath = "images/main/favorite1.gif";
	if(typeof(sImg) != "undefined") {
		if(sImg.length > 0) { 
			imgPath = sImg;
		}
	}
	
	var sFavorite = 		"<div id='lyFavorite' style='position:"+ sPosition +";left:"+ iLeft +";top:"+ iTop +";'>";
	sFavorite = sFavorite + "<img src='"+ imgPath +"' style='cursor:pointer' onclick='javascript:addFavorite(window.location.href, document.title)' alt='Áñ°ÜÃ£±â¿¡ Ãß°¡ÇÏ±â'>";
	sFavorite = sFavorite + "</div>";
	
	document.write(sFavorite);
}

/*	»ç¿ë¹æ¹ý : viewFavorite(À§Ä¡, ÁÂÇ¥X, ÁÂÇ¥Y)
	À§Ä¡ - 	0 : ÀÚ¸®Â÷Áö(relative)
			etc : ÀÚ¸®°ãÄ§(absolute)
	ÁÂÇ¥X -	ÇÈ¼¿(970px)
	ÁÂÇ¥Y -	ÇÈ¼¿(10px)
	
	»ç¿ë¿¹ : viewFavorite(1, "970px", "10px")
*/
//viewFavorite(1, "970px", "10px");
